/**
 * EP Landing Page — Lead Capture Form Styles
 *
 * L12 §01 / S10 §2.11: inline 3-field form rendered at hero, after-pricing,
 * and final-CTA placements on /host/. Mobile-first single column; 56px
 * primary button; 44px minimum touch targets; 16px inputs (prevents iOS
 * zoom on focus). Ocean/sand token palette from tokens.css.
 *
 * Sticky mobile CTA bar anchors to the final form and stays out of the
 * way on desktop (display: none above 860px).
 */

.gdc-ep-lead-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 480px;
	margin: 24px auto 0;
	padding: 24px;
	background: var(--glass-bg, rgba(20, 27, 36, 0.65));
	border: 1px solid var(--glass-border, rgba(196, 169, 125, 0.14));
	border-radius: var(--card-radius, 16px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	text-align: left;
}

.gdc-ep-lead-form[data-placement="hero"] {
	margin-top: 36px;
}

.gdc-ep-lead-form-lead {
	font-size: 0.875rem;
	color: var(--white-soft, rgba(255, 255, 255, 0.82));
	line-height: 1.6;
	margin: 0 0 4px;
}

.gdc-ep-lead-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gdc-ep-lead-field label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--white-soft, rgba(255, 255, 255, 0.82));
	letter-spacing: 0.01em;
}

.gdc-ep-lead-field input,
.gdc-ep-lead-field select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--white, #FFFFFF);
	background: rgba(10, 14, 20, 0.6);
	border: 1px solid rgba(196, 169, 125, 0.18);
	border-radius: 10px;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.gdc-ep-lead-field select {
	background-image: linear-gradient(45deg, transparent 50%, rgba(196, 169, 125, 0.6) 50%),
		linear-gradient(135deg, rgba(196, 169, 125, 0.6) 50%, transparent 50%);
	background-position:
		calc(100% - 20px) 50%,
		calc(100% - 14px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 40px;
}

.gdc-ep-lead-field input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.gdc-ep-lead-field input:focus,
.gdc-ep-lead-field select:focus {
	outline: none;
	border-color: var(--sand, #C4A97D);
	background: rgba(10, 14, 20, 0.9);
	box-shadow: 0 0 0 3px rgba(196, 169, 125, 0.18);
}

.gdc-ep-lead-field.is-invalid input,
.gdc-ep-lead-field.is-invalid select {
	border-color: var(--danger, #EF4444);
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.gdc-ep-lead-field-error {
	font-size: 0.8125rem;
	color: var(--danger-light, #FCA5A5);
	margin: 0;
	line-height: 1.4;
}

.gdc-ep-lead-form-submit {
	width: 100%;
	min-height: 56px;
	padding: 16px 20px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--void, #0A0A0A);
	background: var(--sand, #C4A97D);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.2s ease, opacity 0.2s ease;
	margin-top: 4px;
}

.gdc-ep-lead-form-submit:hover {
	background: var(--sand-light, #D9BF95);
}

.gdc-ep-lead-form-submit:active {
	transform: translateY(1px);
}

.gdc-ep-lead-form-submit:focus-visible {
	outline: 2px solid var(--sand-light, #D9BF95);
	outline-offset: 3px;
}

.gdc-ep-lead-form-submit[aria-busy="true"],
.gdc-ep-lead-form-submit[disabled] {
	opacity: 0.7;
	cursor: not-allowed;
}

.gdc-ep-lead-form-footnote {
	font-size: 0.75rem;
	color: var(--white-faint, rgba(255, 255, 255, 0.55));
	line-height: 1.5;
	text-align: center;
	margin: 4px 0 0;
}

.gdc-ep-lead-form-message {
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--danger-light, #FCA5A5);
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
}

.gdc-ep-lead-form-message:empty {
	display: none;
}

.gdc-ep-lead-form-message[data-variant="error"] {
	color: var(--danger-light, #FCA5A5);
	background: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.3);
}

.gdc-ep-lead-form-success {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border-radius: 12px;
	background: rgba(77, 212, 192, 0.08);
	border: 1px solid rgba(77, 212, 192, 0.28);
	color: var(--white, #FFFFFF);
}

.gdc-ep-lead-form-success h3 {
	font-family: var(--heading, "Cormorant Garamond", Georgia, serif);
	font-size: 1.25rem;
	font-weight: 500;
	margin: 0;
	color: var(--white, #FFFFFF);
}

.gdc-ep-lead-form-success p {
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
	color: var(--white-soft, rgba(255, 255, 255, 0.85));
}

.gdc-ep-lead-form-success-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	margin-top: 6px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	color: var(--void, #0A0A0A);
	background: var(--sand, #C4A97D);
	border-radius: 10px;
	transition: background-color 0.2s ease;
}

.gdc-ep-lead-form-success-link:hover {
	background: var(--sand-light, #D9BF95);
}

.gdc-ep-lead-form.is-submitted .gdc-ep-lead-field,
.gdc-ep-lead-form.is-submitted .gdc-ep-lead-form-submit,
.gdc-ep-lead-form.is-submitted .gdc-ep-lead-form-footnote,
.gdc-ep-lead-form.is-submitted .gdc-ep-lead-form-lead {
	display: none;
}

/* Hero placement — tuck the form under the headline without a card shell */
.host-hero .gdc-ep-lead-form {
	background: rgba(10, 14, 20, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Sticky mobile CTA bar — shows once the visitor scrolls past the hero
 * form and disappears when the final form enters the viewport (R6 #7). */
.gdc-ep-sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	min-height: 56px;
	background: var(--void, #0A0A0A);
	border-top: 1px solid rgba(196, 169, 125, 0.2);
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
	transform: translateY(100%);
	transition: transform 0.3s ease;
	z-index: 90;
	pointer-events: none;
}

.gdc-ep-sticky-cta.is-visible {
	transform: translateY(0);
	pointer-events: auto;
}

.gdc-ep-sticky-cta-label {
	flex: 1 1 auto;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--white-soft, rgba(255, 255, 255, 0.88));
	line-height: 1.3;
}

.gdc-ep-sticky-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 18px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--void, #0A0A0A);
	background: var(--sand, #C4A97D);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
}

.gdc-ep-sticky-cta-btn:hover {
	background: var(--sand-light, #D9BF95);
}

@media (min-width: 860px) {
	.gdc-ep-sticky-cta {
		display: none;
	}
	.gdc-ep-lead-form {
		padding: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gdc-ep-sticky-cta {
		transition: none;
	}
	.gdc-ep-lead-form-submit {
		transition: none;
	}
}
