/**
 * Formularios (front-end). Estilo sobrio alineado con la marca La Heroica
 * (rojo #C3360E, dorado #BA9E60). Accesible y legible.
 */

.lht-form {
	--lht-form-red: #C3360E;
	--lht-form-red-dark: #6E1D08;
	--lht-form-gold: #BA9E60;
	--lht-form-line: #d8d2c7;
	--lht-form-err: #b32d0e;
	max-width: 640px;
	margin: 1.25rem 0;
}

.lht-form__field {
	margin-bottom: 1.1rem;
}

.lht-form__field > label,
.lht-form__field legend {
	display: block;
	font-weight: 600;
	margin-bottom: .35rem;
}

.lht-form__req {
	color: var(--lht-form-red);
}

.lht-form input[type=text],
.lht-form input[type=email],
.lht-form input[type=tel],
.lht-form input[type=number],
.lht-form select,
.lht-form textarea {
	width: 100%;
	padding: .65rem .75rem;
	font-size: 1rem;
	line-height: 1.4;
	color: #1A1A1A;
	background: #fff;
	border: 1px solid var(--lht-form-line);
	border-radius: 5px;
	box-sizing: border-box;
}

.lht-form input:focus,
.lht-form select:focus,
.lht-form textarea:focus {
	outline: none;
	border-color: var(--lht-form-gold);
	box-shadow: 0 0 0 2px rgba(201, 166, 107, .35);
}

.lht-form textarea {
	resize: vertical;
}

.lht-form fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

.lht-form__choice {
	display: block;
	font-weight: 400;
	margin: .25rem 0;
}

.lht-form__consent {
	display: flex;
	gap: .5rem;
	align-items: flex-start;
	font-weight: 400;
}

/* Honeypot: oculto a la vista y a lectores de pantalla, pero presente para bots. */
.lht-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lht-form__actions {
	margin-top: 1.2rem;
}

.lht-form__submit {
	display: inline-block;
	padding: .75rem 1.8rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #fff;
	background: var(--lht-form-red);
	border: 2px solid var(--lht-form-red);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
}

.lht-form__submit:hover,
.lht-form__submit:focus {
	background: var(--lht-form-red-dark);
	border-color: var(--lht-form-red-dark);
	transform: translateY(-1px);
}

/* Errores y confirmación */
.lht-form__field.has-error input,
.lht-form__field.has-error select,
.lht-form__field.has-error textarea {
	border-color: var(--lht-form-err);
	box-shadow: 0 0 0 2px rgba(179, 45, 14, .15);
}

.lht-form__error {
	display: block;
	margin-top: .3rem;
	color: var(--lht-form-err);
	font-size: .88rem;
}

.lht-form__error-summary {
	margin-bottom: 1rem;
	padding: .8rem 1rem;
	background: #fcebe7;
	border-left: 4px solid var(--lht-form-err);
	border-radius: 4px;
	color: #7a1f0a;
}

.lht-form__success {
	padding: 1.2rem 1.4rem;
	background: #eef6ee;
	border-left: 4px solid #3f8a3f;
	border-radius: 6px;
	font-size: 1.05rem;
}

.lht-form__notice {
	padding: 1rem;
	background: #faf7f0;
	border: 1px dashed var(--lht-form-line);
	border-radius: 6px;
	color: #434343;
}
