/* Form Section — layout "Contact": texto a la izquierda, formulario Fluent a la derecha
   sobre foto con overlay. Se usa desde el template de Elementor "Form Section" (biblioteca).
   Todo va por clases (.tfw-form-section*), asi que sirve en cualquier pagina donde se inserte.
   El fondo y el overlay son ajustes nativos del contenedor (Estilo > Fondo); aqui solo layout,
   tipografia y el look de los campos. Valores tomados de .contact-form-hero-28386. */

.tfw-form-section {
	position: relative;
	min-height: 100vh;
	min-height: 100svh; /* en movil descuenta la barra del navegador */
	justify-content: center;
	color: #fff;
	font-family: "azo-sans-web", Arial, sans-serif;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
}

/* ---------- Grid de dos columnas ---------- */
.tfw-form-section .tfw-form-section__inner {
	display: grid;
	grid-template-columns: minmax(390px, 492px) minmax(540px, 610px);
	column-gap: 92px;
	align-items: start;
	width: min(100% - 48px, 1232px);
	max-width: none;
	margin: 0 auto;
	--padding-top: 112px;
	--padding-bottom: 64px;
}

.tfw-form-section .tfw-form-section__content,
.tfw-form-section .tfw-form-section__form {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: none;
	padding: 0;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
}

/* ---------- Columna izquierda ---------- */
.tfw-form-section .tfw-form-section__title .elementor-heading-title {
	margin: 0 0 11px;
	color: #fff;
	font-family: inherit;
	font-size: clamp(2.5rem, 4.2vw, 3.75rem);
	overflow-wrap: break-word;
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 0.9;
	text-transform: uppercase;
}

.tfw-form-section .tfw-form-section__subtitle .elementor-heading-title {
	margin: 0;
	color: #fff;
	font-family: inherit;
	font-size: clamp(1.75rem, 2.6vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.12;
	text-transform: uppercase;
}

.tfw-form-section .tfw-form-section__intro-title .elementor-heading-title {
	margin: 34px 0 9px;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.tfw-form-section .tfw-form-section__intro-text,
.tfw-form-section .tfw-form-section__intro-text p {
	max-width: 488px;
	margin: 0;
	color: #fff;
	font-family: inherit;
	font-size: var(--tw-body-size, 18px);
	font-weight: 400;
	line-height: 1.18;
}

/* Bloque de datos (direcciones, IDs, enlaces) con regla roja a la izquierda */
.tfw-form-section .tfw-form-section__info {
	position: relative;
	margin-top: 27px;
	padding-left: 31px;
}

.tfw-form-section .tfw-form-section__info::before {
	position: absolute;
	top: 1px;
	bottom: 2px;
	left: 0;
	width: 2px;
	background: #dd001b;
	content: "";
}

.tfw-form-section .tfw-form-section__info,
.tfw-form-section .tfw-form-section__info p {
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.35;
}

.tfw-form-section .tfw-form-section__info p {
	margin: 0 0 8px;
}

.tfw-form-section .tfw-form-section__info a,
.tfw-form-section .tfw-form-section__info a:visited {
	color: #fff;
	text-decoration: none;
}

.tfw-form-section .tfw-form-section__info a:hover,
.tfw-form-section .tfw-form-section__info a:focus {
	color: #0477bf;
}

/* ---------- Formulario Fluent ---------- */
/* Fluent fija una fuente de sistema en sus propios selectores. */
.tfw-form-section .fluentform.ff-default,
.tfw-form-section .fluentform.ff-default * {
	font-family: "azo-sans-web", Arial, sans-serif;
}

.tfw-form-section .fluentform form.frm-fluent-form {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.tfw-form-section .fluentform form fieldset {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px 31px;
}

.tfw-form-section .fluentform form fieldset > * {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
}

.tfw-form-section .fluentform form fieldset > .ff-el-group:has(input[type="email"]),
.tfw-form-section .fluentform form fieldset > .ff-el-group:has(input[type="tel"]) {
	grid-column: auto;
}

.tfw-form-section .fluentform .ff-el-group {
	margin: 0;
}

/* Filas de varias columnas (nombre, direccion): tantas columnas como celdas */
.tfw-form-section .fluentform .ff-t-container {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0 31px;
}

.tfw-form-section .fluentform .ff-t-container + .ff-t-container {
	margin-top: 15px;
}

.tfw-form-section .fluentform .ff-t-container .ff-t-cell {
	width: auto;
	padding: 0;
}

.tfw-form-section .fluentform .ff-custom_html {
	color: #fff;
	font-size: 18px;
	line-height: 1.35;
}

/* Etiquetas: solo lectores de pantalla (se usan placeholders, como en el hero).
   Se conserva la de los grupos sin placeholder: casillas y bloque de direccion. */
.tfw-form-section .fluentform .ff-el-input--label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tfw-form-section .fluentform .ff-el-group:has(.ff-el-form-check) > .ff-el-input--label,
.tfw-form-section .fluentform .ff-field_container > .ff-el-input--label,
.tfw-form-section .fluentform .ff-address-label {
	position: static;
	width: auto;
	height: auto;
	margin: 0 0 10px;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

.tfw-form-section .fluentform .ff-el-group:has(.ff-el-form-check) > .ff-el-input--label label,
.tfw-form-section .fluentform .ff-field_container > .ff-el-input--label label {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

.tfw-form-section .fluentform .ff-el-tooltip svg,
.tfw-form-section .fluentform .ff-el-tooltip svg path {
	fill: #e1001a;
}

/* Campos */
.tfw-form-section .fluentform .ff-el-form-control,
.tfw-form-section .fluentform .choices__inner {
	width: 100%;
	min-height: 43px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.68);
	border-radius: 0;
	outline: 0;
	background-color: rgba(255, 255, 255, 0.13);
	box-shadow: none;
	color: #fff;
	font-family: "azo-sans-web", Arial, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.2;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.tfw-form-section .fluentform input.ff-el-form-control {
	height: 43px;
	padding: 0 14px;
}

.tfw-form-section .fluentform textarea.ff-el-form-control {
	display: block;
	height: 150px;
	padding: 10px 14px;
	resize: vertical;
}

.tfw-form-section .fluentform .ff-el-form-control::placeholder {
	opacity: 1;
	color: #fff;
}

.tfw-form-section .fluentform .ff-el-form-control:focus,
.tfw-form-section .fluentform .choices.is-focused .choices__inner,
.tfw-form-section .fluentform .choices.is-open .choices__inner {
	border-color: #fff;
	background-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* Selects nativos (p. ej. pais) */
.tfw-form-section .fluentform select.ff-el-form-control:not([multiple]) {
	height: 43px;
	padding: 0 40px 0 14px;
	background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
	background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
	background-repeat: no-repeat;
	background-size: 7px 7px, 7px 7px;
	appearance: none;
}

.tfw-form-section .fluentform select.ff-el-form-control option {
	background: #17212b;
	color: #fff;
}

/* Selects de Choices.js */
.tfw-form-section .fluentform .choices {
	margin: 0;
}

.tfw-form-section .fluentform .choices__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 4px 40px 4px 14px;
	background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
	background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
	background-repeat: no-repeat;
	background-size: 7px 7px, 7px 7px;
}

.tfw-form-section .fluentform .choices__list--multiple {
	display: contents;
}

.tfw-form-section .fluentform .choices__list--multiple .choices__item {
	margin: 0;
	padding: 4px 10px;
	border: 1px solid #fff;
	border-radius: 0;
	background-color: rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 15px;
}

.tfw-form-section .fluentform .choices__input--cloned {
	flex: 1 1 120px;
	min-width: 120px;
	margin: 0;
	padding: 0;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
}

.tfw-form-section .fluentform .choices__input--cloned::placeholder {
	opacity: 1;
	color: #fff;
}

.tfw-form-section .fluentform .choices__list--dropdown,
.tfw-form-section .fluentform .choices__list[aria-expanded] {
	border: 1px solid rgba(255, 255, 255, 0.68);
	border-radius: 0;
	background: #17212b;
	color: #fff;
}

.tfw-form-section .fluentform .choices__list--dropdown .choices__item,
.tfw-form-section .fluentform .choices__list[aria-expanded] .choices__item {
	color: #fff;
	font-size: 16px;
}

.tfw-form-section .fluentform .choices__list--dropdown .choices__item--selectable.is-highlighted,
.tfw-form-section .fluentform .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
	background-color: rgba(255, 255, 255, 0.16);
}

.tfw-form-section .fluentform .choices__placeholder {
	opacity: 1;
	color: #fff;
}

/* Casillas y radios: dos columnas */
.tfw-form-section .fluentform .ff-el-group:has(.ff-el-form-check) .ff-el-input--content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 31px;
}

.tfw-form-section .fluentform .ff-el-form-check {
	margin: 0;
}

.tfw-form-section .fluentform .ff-el-form-check-label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
}

.tfw-form-section .fluentform .ff-el-form-check-input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #e1001a;
}

/* Boton. El widget Fluent Form emite su azul por defecto con !important, por eso el
   selector largo (mayor especificidad que el suyo) y el !important propio. */
.elementor .tfw-form-section .elementor-widget-fluent-form-widget .fluentform-widget-wrapper .ff-el-group.ff_submit_btn_wrapper .ff-btn-submit {
	width: auto;
	min-width: 178px;
	height: 56px;
	padding: 0 28px;
	border: 2px solid #e1001a;
	border-radius: 0;
	background-color: rgba(135, 0, 17, 0.46) !important;
	box-shadow: none;
	color: #fff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}

.elementor .tfw-form-section .elementor-widget-fluent-form-widget .fluentform-widget-wrapper .ff-el-group.ff_submit_btn_wrapper .ff-btn-submit:hover,
.elementor .tfw-form-section .elementor-widget-fluent-form-widget .fluentform-widget-wrapper .ff-el-group.ff_submit_btn_wrapper .ff-btn-submit:focus {
	border-color: #e1001a;
	background-color: rgba(135, 0, 17, 0.58) !important;
	color: #fff !important;
}

.tfw-form-section .fluentform .ff_submit_btn_wrapper {
	margin-top: 3px;
	text-align: right;
}

.tfw-form-section .fluentform .error.text-danger,
.tfw-form-section .fluentform .ff-el-is-error .text-danger {
	color: #ff8a96;
	font-size: 14px;
}

/* Aviso bajo el formulario (SMS) */
.tfw-form-section .tfw-form-section__disclosure,
.tfw-form-section .tfw-form-section__disclosure p {
	margin: 12px 0 0;
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.55;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
	.tfw-form-section .tfw-form-section__inner {
		grid-template-columns: minmax(330px, 0.82fr) minmax(480px, 1.18fr);
		column-gap: 48px;
	}
}

@media (max-width: 900px) {
	.tfw-form-section .tfw-form-section__inner {
		grid-template-columns: 1fr;
		row-gap: 48px;
		width: min(100% - 48px, 680px);
		/* El header flota encima: el padding parte de su alto para no tapar el título. */
		--padding-top: calc(var(--tw-header-h, 100px) + 32px);
		--padding-bottom: 64px;
	}

	.tfw-form-section .tfw-form-section__intro-text,
	.tfw-form-section .tfw-form-section__intro-text p {
		max-width: 620px;
	}
}

@media (max-width: 560px) {
	.tfw-form-section .tfw-form-section__inner {
		width: min(100% - 32px, 680px);
		--padding-top: calc(var(--tw-header-h, 100px) + 24px);
		--padding-bottom: 48px;
	}

	.tfw-form-section .tfw-form-section__subtitle .elementor-heading-title {
		font-size: 1.45rem;
	}

	.tfw-form-section .tfw-form-section__intro-text p,
	.tfw-form-section .tfw-form-section__info,
	.tfw-form-section .fluentform .ff-el-form-control,
	.tfw-form-section .fluentform .choices__inner {
		font-size: 16px;
	}

	.tfw-form-section .fluentform form fieldset,
	.tfw-form-section .fluentform .ff-el-group:has(.ff-el-form-check) .ff-el-input--content {
		grid-template-columns: 1fr;
	}

	.tfw-form-section .fluentform .ff-t-container {
		grid-auto-flow: row;
		gap: 15px 0;
	}

	.tfw-form-section .fluentform form fieldset > .ff-el-group:has(input[type="email"]),
	.tfw-form-section .fluentform form fieldset > .ff-el-group:has(input[type="tel"]) {
		grid-column: 1 / -1;
	}

	.elementor .tfw-form-section .elementor-widget-fluent-form-widget .fluentform-widget-wrapper .ff-el-group.ff_submit_btn_wrapper .ff-btn-submit {
		width: 100%;
	}
}
