/*
 * SWAM · Meet the Ecuadorian Expert — acabado de los formularios.
 *
 * Solo contiene lo que Elementor NO expone como ajuste nativo: el aspecto de las
 * opciones de radio/checkbox, el foco de los campos, la rejilla de opciones y la
 * barra de pasos. Colores, tipografías, márgenes, textos y botones se siguen
 * editando desde Elementor.
 *
 * Todo está prefijado con .mtee-form o .mtee-grid: no afecta a ningún otro
 * formulario del sitio.
 */

/* ------------------------------------------------------------------ *
 * 1. Rejilla de opciones — clase CSS "mtee-grid" en el campo
 * ------------------------------------------------------------------ */
/* Ojo: en los campos de radio y casilla, Elementor pone la clase CSS sobre el
 * propio .elementor-field-subgroup, no sobre un contenedor padre. Por eso el
 * selector va pegado (.elementor-field-subgroup.mtee-grid) y no como
 * descendiente. Se deja también la variante descendiente por si algún día
 * Elementor la coloca más arriba. */
.elementor-field-subgroup.mtee-grid,
.mtee-grid .elementor-field-subgroup {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
}

@media (max-width: 767px) {
	.elementor-field-subgroup.mtee-grid,
	.mtee-grid .elementor-field-subgroup {
		grid-template-columns: 1fr;
	}

	/* Ancho completo garantizado: Elementor solo declara .elementor-col-50
	 * dentro de @media (min-width:768px). */
	.mtee-form .elementor-field-group {
		width: 100%;
		flex-basis: 100%;
	}
}

/* ------------------------------------------------------------------ *
 * 2. Etiquetas
 * ------------------------------------------------------------------ */
.mtee-form .elementor-field-label {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 9px;
	line-height: 1.5;
}

/* Las preguntas largas de radio/checkbox no deben ir en versalitas. */
.mtee-form .elementor-field-type-radio > .elementor-field-label,
.mtee-form .elementor-field-type-checkbox > .elementor-field-label,
.mtee-form .elementor-field-type-acceptance > .elementor-field-label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 15px;
	font-weight: 500;
	color: #EDE6D5;
	margin-bottom: 12px;
}

/* ------------------------------------------------------------------ *
 * 3. Campos de texto y desplegables
 *
 * El alto fijo que heredan del kit recortaba tildes y colas de letra
 * ("Cédula ecuatoriana", "Medicina estética"). Lo marca el contenido.
 * ------------------------------------------------------------------ */
.mtee-form input.elementor-field-textual,
.mtee-form select.elementor-field-textual,
.mtee-form textarea.elementor-field-textual {
	height: auto;
	min-height: 52px;
	line-height: 1.5;
	padding-top: 13px;
	padding-bottom: 13px;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.mtee-form textarea.elementor-field-textual {
	min-height: 96px;
}

.mtee-form select.elementor-field-textual {
	text-overflow: ellipsis;
}

.mtee-form .elementor-field-textual:focus {
	border-color: #C9A84C;
	box-shadow: 0 0 0 3px rgba(201, 168, 76, .18);
	outline: none;
}

.mtee-form .elementor-field-textual::placeholder {
	color: #7C7566;
	opacity: 1;
}

/* ------------------------------------------------------------------ *
 * 4. Opciones seleccionables
 *
 * Elementor las pinta como texto suelto con un control del sistema. Aquí se
 * convierten en filas con borde que se iluminan al elegirlas: es lo que da el
 * aire premium y, de paso, agranda el área táctil en móvil.
 * ------------------------------------------------------------------ */
.mtee-form .elementor-field-subgroup .elementor-field-option {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 12px 15px;
	border: 1px solid #2B2F3A;
	border-radius: 10px;
	background: #14171F;
	line-height: 1.5;
	transition: border-color .16s ease, background-color .16s ease;
}

.mtee-form .elementor-field-subgroup .elementor-field-option:hover {
	border-color: #5A4A22;
}

/* Estado elegido. :has() no existe en navegadores antiguos; si falla, el punto
 * dorado del control sigue indicando la selección. */
.mtee-form .elementor-field-subgroup .elementor-field-option:has(input:checked) {
	border-color: #C9A84C;
	background: #1A1813;
}

.mtee-form .elementor-field-subgroup input[type="checkbox"],
.mtee-form .elementor-field-subgroup input[type="radio"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 2px 0 0;
	accent-color: #C9A84C;
	cursor: pointer;
}

.mtee-form .elementor-field-subgroup label {
	cursor: pointer;
	margin: 0;
	font-size: 15px;
}

/* Listas en línea (Sí / No): que no ocupen todo el ancho. */
.mtee-form .elementor-subgroup-inline .elementor-field-option {
	flex: 0 1 auto;
	min-width: 116px;
}

/* ------------------------------------------------------------------ *
 * 5. Consentimientos
 * ------------------------------------------------------------------ */
.mtee-form .elementor-field-type-acceptance .elementor-field-option {
	align-items: flex-start;
}

.mtee-form .elementor-field-type-acceptance label {
	font-size: 13.5px;
	line-height: 1.6;
	color: #B9AC8C;
}

.mtee-form .elementor-field-type-acceptance a {
	color: #E9C46A;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ *
 * 6. Pasos y botones
 * ------------------------------------------------------------------ */
.mtee-form .e-form__indicators {
	margin-bottom: 30px;
}

.mtee-form .e-form__indicators__indicator__progress {
	border-radius: 99px;
	overflow: hidden;
}

.mtee-form .e-form__indicators__indicator__progress__meter {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
}

.mtee-form .e-form__buttons {
	gap: 12px;
	margin-top: 10px;
}

.mtee-form .e-form__buttons__wrapper__button {
	transition: transform .14s ease, box-shadow .14s ease, background-color .16s ease;
}

.mtee-form .elementor-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(201, 168, 76, .22);
}

/* ------------------------------------------------------------------ *
 * 7. Mensajes
 * ------------------------------------------------------------------ */
.mtee-form .elementor-message {
	font-size: 14.5px;
	line-height: 1.6;
}

.mtee-form .elementor-message-success {
	padding: 16px 18px;
	border: 1px solid #3A2F16;
	border-radius: 10px;
	background: #14171F;
}

.mtee-form .elementor-field-group.elementor-error .elementor-field-textual {
	border-color: #B4726F;
}
