/**
 * Lead capture — fiche piscine (section + modale).
 * Brand : #EC4C1B / #061F44 / #ffffff
 */

/* ── Section ─────────────────────────────────────────────────────────── */
article.block_lead_capture {
	all: revert;
	background: #061f44;
	display: block;
	width: 100%;
	padding-top: 6rem;
	padding-bottom: 6rem;
	color: #ffffff;
	overflow: hidden;
}

.block_lead_capture__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
	width: 100%;
}

.block_lead_capture__text {
	width: 100%;
	margin-bottom: 2rem;
}

.block_lead_capture .block_lead_capture__text > p {
	font-family: Montserrat, sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.6;
	color: #ffffff;
	margin: 0 0 1.25rem 0;
}

.block_lead_capture p,
.block_lead_capture .block_banner__promos__content p {
	font-size: inherit !important;
	font-weight: inherit !important;
	margin-bottom: 0 !important;
	line-height: inherit !important;
}

.block_lead_capture__text > p {
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	margin-bottom: 1.25rem !important;
	line-height: 1.6 !important;
}

.block_lead_capture .block_lead_capture__text h2 {
	font-family: Montserrat, sans-serif;
	font-weight: 900;
	font-size: 2.8rem;
	line-height: 1.2;
	color: #ffffff;
	margin: 0 0 1.5rem 0;
}

.block_lead_capture__form {
	width: 100%;
	flex: unset;
	min-width: 0;
	max-width: 100%;
	text-align: left;
}

/* Toujours préfixer par .swimstars-lead-form pour ne pas impacter le reste de la fiche piscine. */
.swimstars-lead-form .lf-row {
	display: flex;
	gap: 1rem;
}

.swimstars-lead-form .lf-row .lf-field {
	flex: 1;
}

.swimstars-lead-form .lf-tel-hint {
	font-size: 0.95rem;
	font-weight: 700 !important;
	color: #ec4c1b;
	margin: 0;
	text-align: left;
}

/* ── Formulaire (section — fond bleu) ─────────────────────────────────── */
.swimstars-lead-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.swimstars-lead-form .lf-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
}

.swimstars-lead-form .lf-field label {
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffffff;
	line-height: 1.3;
}

.swimstars-lead-form .lf-field .lf-optional {
	display: block;
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.02em;
	text-transform: none;
	opacity: 0.65;
	margin-top: 0.2rem;
}

.swimstars-lead-form .lf-field input[type="text"],
.swimstars-lead-form .lf-field input[type="email"],
.swimstars-lead-form .lf-field input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	padding: 1rem 1.25rem;
	font-family: Montserrat, sans-serif;
	font-size: 1.05rem;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 0;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.swimstars-lead-form .lf-field input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.swimstars-lead-form .lf-field input:focus {
	outline: none;
	border-color: #ec4c1b;
	background: rgba(255, 255, 255, 0.14);
}

.swimstars-lead-form .lf-field input.lf-input-error {
	border-color: rgba(220, 53, 69, 0.9);
}

.swimstars-lead-form .lf-select {
	width: 100%;
	box-sizing: border-box;
	padding: 1rem 1.25rem;
	font-family: Montserrat, sans-serif;
	font-size: 1.05rem;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 0;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.swimstars-lead-form .lf-select option {
	background: #061F44;
	color: #ffffff;
}

.swimstars-lead-form .lf-select:focus {
	outline: none;
	border-color: #ec4c1b;
	background: rgba(255, 255, 255, 0.14);
}

.block_lead_modal .swimstars-lead-form .lf-select {
	color: #061f44;
	background: #f1f3f5;
	border: 1px solid #ced4da;
}

.block_lead_modal .swimstars-lead-form .lf-select option {
	background: #ffffff;
	color: #061f44;
}

.swimstars-lead-form .lf-error {
	font-family: Montserrat, sans-serif;
	font-size: 0.75rem;
	color: #ffb4b4;
	min-height: 1em;
}

.swimstars-lead-form .lf-submit {
	position: relative;
	width: 100%;
	margin-top: 0.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	font-size: 1.2rem;
}

.swimstars-lead-form .lf-submit__loader {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 1.35rem;
	height: 1.35rem;
	margin: -0.675rem 0 0 -0.675rem;
	border: 3px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: lf-spin 0.75s linear infinite;
}

.swimstars-lead-form .lf-submit.is-loading .lf-submit__text {
	opacity: 0;
}

.swimstars-lead-form .lf-submit.is-loading .lf-submit__loader {
	display: block;
}

.swimstars-lead-form .lf-submit.is-loading {
	pointer-events: none;
	opacity: 0.9;
}

@keyframes lf-spin {
	to {
		transform: rotate(360deg);
	}
}

.swimstars-lead-form .lf-success {
	display: none;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: rgba(32, 160, 137, 0.2);
	border: 1px solid rgba(32, 160, 137, 0.45);
	border-radius: 4px;
	font-family: Montserrat, sans-serif;
	font-size: 0.9375rem;
	color: #ffffff;
}

.swimstars-lead-form .lf-success.is-visible {
	display: flex;
}

.swimstars-lead-form .lf-success .fa-check-circle {
	color: #20a089;
	font-size: 1.35rem;
	flex-shrink: 0;
	margin-top: 0.1rem;
}

.swimstars-lead-form .lf-success p {
	margin: 0;
	color: #ffffff;
}

.swimstars-lead-form .lf-error-global {
	display: none;
	padding: 0.875rem 1rem;
	background: rgba(220, 53, 69, 0.18);
	border: 1px solid rgba(220, 53, 69, 0.45);
	border-radius: 4px;
	font-family: Montserrat, sans-serif;
	font-size: 0.875rem;
	color: #ffb4b4;
}

.swimstars-lead-form .lf-error-global.is-visible {
	display: block !important;
}

.swimstars-lead-form .lf-error-global p {
	margin: 0;
}

.swimstars-lead-form.is-success .lf-row,
.swimstars-lead-form.is-success .lf-field,
.swimstars-lead-form.is-success .lf-submit {
	display: none !important;
}

.swimstars-lead-form.is-success .lf-error-global {
	display: none !important;
}

/* ── Masquage temporaire champ téléphone — retirer cette règle pour le réactiver ── */
.swimstars-lead-form .lf-field:has(input[name="telephone"]) { display: none; }

/* ── Modale ───────────────────────────────────────────────────────────── */
#leadModal .modal-content {
	border-radius: 0;
	border: none;
}

#leadModal .lead-modal__dialog {
	max-width: min(1100px, 96vw);
	width: 96vw;
}

.block_lead_modal {
	position: relative;
	border-radius: 0;
	background: #ffffff;
	padding: 3rem 3.25rem;
	border: none;
	box-shadow: 0 1rem 2.5rem rgba(6, 31, 68, 0.18);
}

.block_lead_modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 1060;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #6c757d;
	font-size: 1.35rem;
	line-height: 1;
	transition: color 0.2s ease;
}

.block_lead_modal__close i {
	pointer-events: none;
}

.block_lead_modal__close:hover,
.block_lead_modal__close:focus {
	color: #ec4c1b;
}

.block_lead_modal__close:focus-visible {
	outline: 2px solid #ec4c1b;
	outline-offset: 2px;
}

.block_lead_modal .block_lead_capture__text h2 {
	font-family: Montserrat, sans-serif;
	font-weight: 900;
	font-size: 1.5rem;
	color: #061f44;
	margin: 0 0 0.75rem 0;
	line-height: 1.25;
}

.block_lead_modal .block_lead_capture__text > p {
	font-family: Montserrat, sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #061f44;
	line-height: 1.5;
	margin: 0 0 1rem 0;
}

.block_lead_modal .swimstars-lead-form .lf-tel-hint {
	font-size: 0.95rem;
	font-weight: 700 !important;
	color: #ec4c1b;
}

/* Formulaire dans la modale (fond blanc) */
.block_lead_modal .swimstars-lead-form .lf-field label {
	color: #061f44;
}

.block_lead_modal .swimstars-lead-form .lf-field .lf-optional {
	color: rgba(6, 31, 68, 0.55);
}

.block_lead_modal .swimstars-lead-form .lf-field input[type="text"],
.block_lead_modal .swimstars-lead-form .lf-field input[type="email"],
.block_lead_modal .swimstars-lead-form .lf-field input[type="tel"] {
	color: #061f44;
	background: #f1f3f5;
	border: 1px solid #ced4da;
}

.block_lead_modal .swimstars-lead-form .lf-field input::placeholder {
	color: rgba(6, 31, 68, 0.45);
}

.block_lead_modal .swimstars-lead-form .lf-field input:focus {
	border-color: #ec4c1b;
	background: #ffffff;
}

.block_lead_modal .swimstars-lead-form .lf-error {
	color: #c92a2a;
}

.block_lead_modal .swimstars-lead-form .lf-submit.is-loading .lf-submit__loader {
	border-color: rgba(6, 31, 68, 0.25);
	border-top-color: #061f44;
}

.block_lead_modal .swimstars-lead-form .lf-success {
	color: #061f44;
}

.block_lead_modal .swimstars-lead-form .lf-success p {
	color: #061f44;
}

.block_lead_modal .swimstars-lead-form .lf-error-global {
	color: #842029;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
	.block_lead_capture .block_lead_capture__text h2 {
		font-size: 1.75rem;
	}

	article.block_lead_capture {
		padding-top: 3.5rem;
		padding-bottom: 3.5rem;
	}
}

@media (max-width: 767.98px) {
	.block_lead_capture .block_lead_capture__text > p {
		font-size: 1.2rem;
	}
}

@media (max-width: 575.98px) {
	.swimstars-lead-form .lf-row {
		flex-direction: column;
		gap: 0;
	}

	article.block_lead_capture {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}

	.block_lead_modal {
		padding: 2rem 1.25rem;
	}
}
