/*
Site Lead Form — global 3-field form for site pages (Project B).

Enqueued ONLY on pages using page-site.php. All selectors scoped under
.site-form-* — the LP final-form CSS (.lp-final-form__input) is NOT touched
and NOT shared. Field look-and-feel (purple aura + gold hairline + autofill
override) is DUPLICATED here on purpose so lp.css / final-form.css remain
zero-touch.
*/

.site-form-wrap {
	max-width: 560px;
	margin-inline: auto;
}

.site-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: relative;
}

.site-form-field {
	display: flex;
	flex-direction: column;
}
.site-form-label {
	font-size: 15px;
	color: var(--text-body);
	margin-bottom: 8px;
	font-weight: 500;
}

.site-form-input {
	width: 100%;
	padding: 14px 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(212, 175, 55, 0.22);
	border-radius: 16px;
	color: var(--text-heading);
	font-family: 'Heebo', sans-serif;
	font-size: 16px;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.site-form-input::placeholder {
	color: rgba(160, 160, 160, 0.6);
}
.site-form-input:hover {
	border-color: rgba(212, 175, 55, 0.42);
}
.site-form-input:focus,
.site-form-input:focus-visible {
	border-color: rgba(212, 175, 55, 0.6);
	background: rgba(255, 255, 255, 0.05);
	box-shadow:
		0 0 0 3px rgba(138, 79, 255, 0.14),
		0 0 0 1px rgba(212, 175, 55, 0.45);
}
.site-form-input:invalid:not(:placeholder-shown):not(:focus) {
	border-color: rgba(248, 113, 113, 0.6);
}

/* Autofill — hard override for Chrome / Safari yellow box */
.site-form-input:-webkit-autofill,
.site-form-input:-webkit-autofill:hover,
.site-form-input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--text-heading) !important;
	-webkit-box-shadow: 0 0 0 1000px rgba(17, 17, 17, 0.96) inset !important;
	box-shadow: 0 0 0 1000px rgba(17, 17, 17, 0.96) inset !important;
	transition: background-color 5000s ease-in-out 0s;
	caret-color: var(--text-heading);
	border-color: rgba(212, 175, 55, 0.4) !important;
}

/* Honeypot — visually hidden, off-screen, accessible (aria-hidden in markup) */
.site-form-honeypot {
	position: absolute;
	inset-inline-start: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	pointer-events: none;
}

.site-form-submit {
	margin-top: 6px;
	width: 100%;
}

.site-form-privacy {
	font-size: 13px;
	color: var(--text-meta);
	line-height: 1.55;
	margin: 4px 0 0;
	text-align: center;
}
.site-form-privacy a {
	color: var(--gold-primary);
	text-decoration: underline;
	text-decoration-color: rgba(212, 175, 55, 0.4);
	text-underline-offset: 2px;
}
.site-form-privacy a:hover,
.site-form-privacy a:focus-visible {
	color: var(--gold-highlight);
	text-decoration-color: var(--gold-highlight);
}

/* Inline status messages */
.site-form-status {
	font-size: 14px;
	text-align: center;
	margin: 0;
	min-height: 1.4em;
	color: var(--text-meta);
}
.site-form-status[data-state="error"] {
	color: #F87171;
}
.site-form-status[data-state="ok"] {
	color: var(--gold-highlight);
}

/* Post-submit success block (replaces the form on success) */
.site-form-success {
	text-align: center;
	padding: 36px 20px;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(212, 175, 55, 0.18);
	border-radius: 14px;
}
.site-form-success h3 {
	font-family: 'Rubik', sans-serif;
	color: var(--gold-highlight);
	font-size: clamp(22px, 3vw, 28px);
	margin: 0 0 12px;
}
.site-form-success p {
	color: var(--text-body);
	margin: 0;
	line-height: 1.6;
}
