/**
 * Estilos públicos para el formulario del Libro de Reclamaciones Perú.
 *
 * Diseño minimalista con alta legibilidad.
 *
 * @package TWF_Libro_Reclamaciones
 * @since 1.0.0
 */

/* ============================================================
 * Contenedor
 * ============================================================ */

.twf-lr-form-wrapper {
	max-width: 740px;
	margin: 48px auto;
	padding: 44px 40px;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Oxygen-Sans,
		Ubuntu,
		Cantarell,
		sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #1e1e1e;
}

.twf-lr-form-title {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	color: #1e1e1e;
	margin: 0 0 4px;
}

.twf-lr-form-subtitle {
	text-align: center;
	font-size: 13.5px;
	color: #757575;
	margin: 0 0 32px;
}

/* ============================================================
 * Secciones
 * ============================================================ */

.twf-lr-section {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}

.twf-lr-section:last-of-type {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.twf-lr-section-title {
	font-size: 15px;
	font-weight: 600;
	color: #1e1e1e;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid #1e1e1e;
}

/* ============================================================
 * Tabla de información
 * ============================================================ */

.twf-lr-info-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
}

.twf-lr-info-table td {
	padding: 7px 14px;
	border: 1px solid #e2e4e7;
	font-size: 13.5px;
}

.twf-lr-label {
	background: #f7f7f7;
	font-weight: 600;
	color: #555;
	width: 170px;
}

.twf-lr-value {
	color: #1e1e1e;
}

.twf-lr-placeholder {
	color: #999;
	font-style: italic;
	font-size: 13px;
}

/* ============================================================
 * Filas y campos
 * ============================================================ */

.twf-lr-form-row {
	display: flex;
	gap: 16px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.twf-lr-form-group {
	flex: 1;
	min-width: 200px;
}

.twf-lr-form-group label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #555;
	margin-bottom: 5px;
	letter-spacing: 0.2px;
}

.twf-lr-form-group .required {
	color: #c00;
	margin-left: 1px;
}

.twf-lr-col-full { flex: 1 1 100%; }
.twf-lr-col-half { flex: 1 1 calc(50% - 10px); }

/* ============================================================
 * Inputs
 * ============================================================ */

.twf-lr-input,
.twf-lr-select,
.twf-lr-textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-family: inherit;
	font-size: 14.5px;
	color: #1e1e1e;
	background: #fff;
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}

.twf-lr-input:focus,
.twf-lr-select:focus,
.twf-lr-textarea:focus {
	border-color: #1e1e1e;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0,0,0,.06);
}

.twf-lr-input::placeholder,
.twf-lr-textarea::placeholder {
	color: #aaa;
}

.twf-lr-input-error {
	border-color: #c00 !important;
	box-shadow: 0 0 0 2px rgba(204,0,0,.08) !important;
}

.twf-lr-textarea {
	resize: vertical;
	min-height: 85px;
}

/* ============================================================
 * Contador de caracteres
 * ============================================================ */

.twf-lr-char-counter {
	display: block;
	text-align: right;
	font-size: 11.5px;
	color: #888;
	margin-top: 4px;
}

.twf-lr-char-counter.warn {
	color: #f0ad4e;
	font-weight: 600;
}

.twf-lr-char-counter.limit {
	color: #c00;
	font-weight: 600;
}

.twf-lr-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 8.8L1.2 4 2.2 3 6 6.7 9.8 3 10.8 4z' fill='%23555'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
	cursor: pointer;
}

/* ============================================================
 * Alertas
 * ============================================================ */

.twf-lr-alert {
	padding: 12px 16px;
	border-radius: 3px;
	margin-bottom: 18px;
	font-size: 13.5px;
}

.twf-lr-alert-error {
	background: #fff5f5;
	border: 1px solid #fcc;
	color: #900;
}

.twf-lr-alert-error ul {
	margin: 0;
	padding-left: 20px;
}

.twf-lr-alert-error li {
	margin-bottom: 2px;
}

.twf-lr-message {
	padding: 28px;
	border-radius: 6px;
	text-align: center;
	font-size: 15px;
	max-width: 600px;
	margin: 40px auto;
}

.twf-lr-message-warning {
	background: #fffbed;
	border: 1px solid #f0d570;
	color: #664d03;
}

/* ============================================================
 * Éxito
 * ============================================================ */

.twf-lr-success-box {
	text-align: center;
	padding: 28px;
	background: #f0faf3;
	border: 1px solid #b7dfc5;
	border-radius: 6px;
	margin-bottom: 20px;
}

.twf-lr-success-icon { margin-bottom: 16px; }

.twf-lr-success-box p {
	font-size: 15px;
	color: #135e24;
	margin: 4px 0 0 0;
}

.twf-lr-success-details {
	margin-bottom: 18px;
}

.twf-lr-success-details td {
	padding: 7px 14px;
	font-size: 13.5px;
}

.twf-lr-success-info {
	background: #f7f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	padding: 16px 20px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #555;
	line-height: 1.65;
}

.twf-lr-success-info p {
	margin: 0 0 4px;
}

/* ============================================================
 * Botón
 * ============================================================ */

/* Cloudflare Turnstile */
.cf-turnstile {
	margin-bottom: 16px;
	display: flex;
	justify-content: center;
}

.twf-lr-form-actions {
	text-align: center;
	margin-top: 28px;
}

.twf-lr-submit-btn {
	display: inline-block;
	padding: 12px 36px;
	background: #1e1e1e;
	color: #fff;
	border: 0;
	border-radius: 3px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, opacity .15s;
	text-decoration: none;
}

.twf-lr-submit-btn:hover {
	background: #333;
	color: #fff;
	text-decoration: none;
}

.twf-lr-submit-btn:active {
	background: #000;
}

.twf-lr-submit-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0,0,0,.15);
}

.twf-lr-submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ============================================================
 * Términos y condiciones
 * ============================================================ */

.twf-lr-terms-screen {
	margin-bottom: 28px;
}

.twf-lr-terms-box {
	max-height: 280px;
	overflow-y: auto;
	padding: 16px 20px;
	background: #f9f9f9;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	font-size: 13.5px;
	line-height: 1.7;
	color: #444;
	margin-bottom: 18px;
}

.twf-lr-terms-actions {
	text-align: center;
}

.twf-lr-terms-checkbox {
	display: block;
	margin-bottom: 14px;
	font-size: 14px;
	cursor: pointer;
}

.twf-lr-terms-checkbox input[type="checkbox"] {
	margin-right: 8px;
	transform: scale(1.2);
	cursor: pointer;
}

/* ============================================================
 * Responsive
 * ============================================================ */

@media (max-width: 600px) {
	.twf-lr-form-wrapper {
		padding: 24px 16px;
		margin: 16px 8px;
		border-radius: 3px;
	}

	.twf-lr-form-title { font-size: 19px; }
	.twf-lr-section-title { font-size: 14px; }
	.twf-lr-col-half { flex: 1 1 100%; }
	.twf-lr-form-row { gap: 10px; margin-bottom: 10px; }
	.twf-lr-submit-btn { width: 100%; }
	.twf-lr-label { width: 110px; font-size: 12px; }
}
