/* LeadFlow Forms — matches the theme's former inline .lead-form styles */
.lead-form.lff .lff-grid { display: flex; flex-wrap: wrap; column-gap: 16px; }
.lead-form.lff .lff-w-full { flex: 0 0 100%; }
.lead-form.lff .lff-w-half { flex: 0 0 calc(50% - 8px); }
@media (max-width: 575px) { .lead-form.lff .lff-w-half { flex-basis: 100%; } }

.lead-form .lead-field { margin-bottom: 25px; position: relative; }
.lead-form label, .lead-form .lff-label { display: block; color: var(--form-label, #8A9BB5); font-size: 12px; font-weight: 400; margin-bottom: 5px; }
.lead-form input:not([type=checkbox]):not([type=radio]), .lead-form select, .lead-form textarea {
	width: 100%; height: 52px; border: 1px solid var(--form-input-border, #BCD2F4); background: var(--form-input-bg, #fff);
	color: var(--form-color, #151515); border-radius: var(--radius-xl, 24px); padding: 14px 16px;
	font-family: var(--font-body, 'JetBrains Mono', monospace); font-size: 14px; font-weight: 400; outline: none; appearance: none;
	transition: border-color .2s ease; box-sizing: border-box;
}
.lead-form textarea { height: auto; min-height: 110px; resize: vertical; }
.lead-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238A9BB5' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 40px; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--neutral, #8A90B5); }
.lead-form input:hover, .lead-form select:hover, .lead-form textarea:hover { border-color: var(--form-input-border-hover, #9dc0f0); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--color-primary, #0073FF); }

.lead-form .lff-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text, #5b6472); margin: 0 0 6px; }
.lead-form .lff-check input { margin-top: 2px; accent-color: var(--color-primary, #0073FF); }
.lead-form .lff-check a { color: var(--color-primary, #0073FF); }

.lead-form .lff-field.is-invalid input, .lead-form .lff-field.is-invalid select, .lead-form .lff-field.is-invalid textarea { border-color: #DC2626; }
.lead-form .lff-field.is-invalid label, .lead-form .lff-field.is-invalid .lff-label { color: #DC2626; }

.lead-form .lff-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lead-form .lead-error { color: #DC2626; font-size: 13px; margin: 0 0 10px; text-align: center; }

.lead-form .lead-btn { width: 100%; display: flex; align-items: center; justify-content: center; margin-top: 20px; color: var(--btn-text, #fff); background: var(--btn-primary-bg, #0073FF); border: none; border-radius: var(--radius-xl, 24px); font-family: var(--font-title, 'Bebas Neue', sans-serif); font-size: 16px; font-weight: 400; cursor: pointer; padding: 14px 32px; transition: background .2s ease; }
.lead-form .lead-btn:hover { background: var(--btn-bg-hover, #75B3FF); }
.lead-form .lead-btn:disabled { cursor: not-allowed; opacity: .7; }

.lead-form .lff-ok { text-align: center; padding: 12px 0; }
.lead-form .lff-ok__icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(34, 197, 94, .14); color: #22c55e; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.lead-form .lff-ok__title { font-family: var(--font-title, 'Bebas Neue'); font-size: 26px; color: var(--title, #151515); margin: 0 0 8px; }
.lead-form .lff-ok__text { font-size: 13px; color: var(--text, #5b6472); margin: 0; }

/* Success swap: card keeps its height (min-height set in JS), message is centred, cross-fade. */
.lead-form.lff .lff-form { transition: opacity .25s ease; }
.lead-form.lff .lff-form.is-leaving { opacity: 0; pointer-events: none; }
.lead-form.lff.is-sent { display: flex; flex-direction: column; justify-content: center; }
.lead-form.lff.is-sent .lff-ok { animation: lff-fade-in .35s ease both; }
@keyframes lff-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.lead-form.lff .lff-form { transition: none; }
	.lead-form.lff.is-sent .lff-ok { animation: none; }
}

/* Per-field error (under the input) and help text */
.lead-form .lff-field__error { color: #DC2626; font-size: 13px; line-height: 1.4; margin-top: 6px; }
.lead-form .lff-field__error:empty { display: none; }
.lead-form .lff-field.is-invalid .lff-field__error { animation: lff-err-in .2s ease both; }
.lead-form .lff-field__help { color: var(--form-label, #8A9BB5); font-size: 12px; line-height: 1.4; margin-top: 6px; }
@keyframes lff-err-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lead-form .lff-field.is-invalid .lff-field__error { animation: none; } }

/* Cloudflare Turnstile widget (empty/invisible in "interaction-only" mode until a challenge is needed) */
.lead-form .lff-turnstile { display: flex; justify-content: center; }
.lead-form .lff-turnstile:not(:empty) { margin: 0 0 12px; }

/* Section heading (field type "section") and file field */
.lead-form.lff .lff-section { flex: 0 0 100%; margin: 12px 0 18px; }
.lead-form.lff .lff-section:first-child { margin-top: 0; }
.lead-form .lff-section__title { font-size: 18px; font-weight: 600; color: var(--title, #151515); margin: 0; }
.lead-form .lff-section__text { font-size: 13px; color: var(--text, #5b6472); margin: 6px 0 0; }
.lead-form input[type=file] { height: auto; padding: 12px 16px; cursor: pointer; }
