/*
 * Westwood form landing pages (/forms/{slug}/): one focused column of cards,
 * no site header or footer. Shared by every landing form; form-specific bits
 * live under their own prefix further down.
 */
:root {
	--lf-navy: #14293A;
	--lf-blue: #2E7DB8;
	--lf-gold: #F6C445;
	--lf-bg: #F3EEE3;
	--lf-paper: #FFFFFF;
	--lf-field: #FDFCF9;
	--lf-line: #E4DCC9;
	--lf-line-soft: #EFE9DA;
	--lf-muted: #4A5E6E;
	--lf-faint: #857D6D;
	--lf-soft: #EDF4F9;
	--lf-error: #B42318;
	--lf-error-bg: #FDECEA;
	--lf-head: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
	--lf-body: "Manrope", "Segoe UI", system-ui, sans-serif;
	color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lf-body { margin: 0; background: var(--lf-bg); color: var(--lf-navy); font-family: var(--lf-body); font-size: 16px; line-height: 1.5; }
.lf :focus-visible { outline: 3px solid var(--lf-blue); outline-offset: 2px; }
:where(.lf) button, :where(.lf) input, :where(.lf) textarea { font: inherit; color: inherit; } /* zero specificity, so each control keeps its own weight */
.lf [hidden] { display: none !important; }
.lf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Frame: navy Westwood band up top, cards rising out of it onto cream */
.lf { min-height: 100vh; display: flex; flex-direction: column; }
.lf-wrap { width: 100%; max-width: 792px; margin-left: auto; margin-right: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.lf-hero {
	background-color: var(--lf-navy);
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px), radial-gradient(120% 90% at 100% 0%, rgba(46,125,184,.35), transparent 60%);
	color: #fff;
	padding-top: env(safe-area-inset-top, 0px);
}
.lf-hero__in { padding-block: 24px 128px; }
.lf-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--lf-head); font-weight: 800; font-size: 17px; letter-spacing: -.01em; margin-bottom: 44px; }
.lf-brand img { display: block; }
.lf-brand:hover span { text-decoration: underline; text-underline-offset: 3px; }
.lf-eyebrow { display: block; margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lf-gold); }
.lf-title { font-family: var(--lf-head); font-size: clamp(34px, 6vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 0 0 16px; text-wrap: balance; }
.lf-intro { margin: 0; font-size: 17px; line-height: 1.65; color: #C3D3DF; max-width: 58ch; }
.lf-main { flex: 1; display: flex; flex-direction: column; gap: 16px; margin-top: -88px; padding-bottom: 40px; }
.lf-app { display: flex; flex-direction: column; gap: 16px; }
.lf-foot { padding-block: 20px max(32px, env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 13.5px; color: var(--lf-faint); }
.lf-foot p { margin: 2px 0; }
.lf-foot a { color: inherit; }

/* Cards */
.lf-card { background: var(--lf-paper); border: 1px solid var(--lf-line); border-radius: 22px; padding: 30px 32px; min-width: 0; box-shadow: 0 1px 2px rgba(20,41,58,.05), 0 10px 30px rgba(20,41,58,.06); }
.lf-muted { margin: 0; color: var(--lf-muted); }
.lf-card.is-invalid { border-color: var(--lf-error); }
.lf-req { color: var(--lf-error); }
.lf-sec { display: flex; flex-direction: column; gap: 22px; }
.lf-sec__head { display: flex; flex-direction: column; gap: 4px; }
.lf-sec__title { font-family: var(--lf-head); font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.lf-sec__sub { margin: 0; color: var(--lf-muted); font-size: 15px; }

/* Fields */
.lf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.lf-label { font-size: 15px; font-weight: 800; padding: 0; }
.lf-opt { font-weight: 600; color: var(--lf-faint); }
.lf-input { width: 100%; padding: 13px 16px; border-radius: 12px; border: 2px solid var(--lf-line); background: var(--lf-field); font-weight: 500; font-size: 16px; }
.lf-input:focus { border-color: var(--lf-blue); outline: none; }
.lf-input::placeholder { color: #8A96A0; }
textarea.lf-input { min-height: 160px; resize: vertical; line-height: 1.6; font-size: 15.5px; }
.lf-field.is-invalid .lf-input { border-color: var(--lf-error); }
.lf-err { margin: 0; color: var(--lf-error); font-size: 14px; font-weight: 700; }
.lf-hint { margin: 0; font-size: 13.5px; color: var(--lf-faint); }
.lf-banner { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--lf-error-bg); color: var(--lf-error); font-weight: 700; }
.lf-note { display: flex; gap: 12px; align-items: flex-start; background: var(--lf-soft); border-radius: 14px; padding: 13px 16px; font-size: 14.5px; line-height: 1.55; }
.lf-note svg { flex: none; margin-top: 2px; color: var(--lf-blue); }

/* Checkbox and radio cards */
.lf-checks { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.lf-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lf-checks--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lf-check { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px; border: 2px solid var(--lf-line); background: var(--lf-paper); cursor: pointer; font-weight: 700; font-size: 15px; line-height: 1.3; min-width: 0; transition: background .15s ease, border-color .15s ease; }
.lf-check input { position: absolute; opacity: 0; pointer-events: none; }
.lf-box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--lf-navy); display: grid; place-items: center; background: var(--lf-paper); }
.lf-box svg { opacity: 0; color: #fff; }
.lf-check--radio .lf-box { border-radius: 50%; }
.lf-check--radio .lf-box::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: 0; }
.lf-check:has(input:checked) { border-color: var(--lf-blue); background: var(--lf-soft); }
.lf-check:has(input:checked) .lf-box { background: var(--lf-blue); border-color: var(--lf-blue); }
.lf-check:has(input:checked) .lf-box svg, .lf-check--radio:has(input:checked) .lf-box::after { opacity: 1; }
.lf-check:has(input:focus-visible) { outline: 3px solid var(--lf-blue); outline-offset: 2px; }
.lf-check__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lf-check__small { font-size: 13px; font-weight: 600; color: var(--lf-muted); }
.lf-check--big { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
.lf-check__num { font-family: var(--lf-head); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }

/* Buttons */
.lf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; font-size: 16px; font-weight: 800; line-height: 1.2; background: var(--lf-gold); color: var(--lf-navy); text-decoration: none; transition: background .15s ease, color .15s ease; }
.lf-btn:hover { background: var(--lf-navy); color: #fff; }
.lf-btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.lf-btn--outline { background: transparent; border-color: var(--lf-navy); }
.lf-btn--outline:hover { background: var(--lf-bg); color: var(--lf-navy); }
.lf-link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 14.5px; font-weight: 800; color: var(--lf-blue); text-decoration: underline; text-underline-offset: 3px; }
.lf-link:hover { color: var(--lf-navy); }
.lf-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.lf-row > .lf-field { flex: 1 1 240px; }
.lf-row > .lf-btn { min-height: 52px; }
.lf-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.lf-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 4px 0; }
.lf-submit p { margin: 0; font-size: 14px; color: var(--lf-faint); max-width: 46ch; }

/* Find-me card */
.lf-find { scroll-margin-top: 16px; display: flex; flex-direction: column; gap: 18px; border: 0; box-shadow: 0 2px 4px rgba(20,41,58,.08), 0 18px 44px rgba(20,41,58,.16); }
.lf-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 800; color: var(--lf-faint); }
.lf-steps li { display: inline-flex; align-items: center; gap: 8px; }
.lf-steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 2px solid var(--lf-line); color: var(--lf-faint); background: var(--lf-paper); }
.lf-steps li.is-on { color: var(--lf-navy); }
.lf-steps li.is-on i { background: var(--lf-navy); border-color: var(--lf-navy); color: #fff; }
.lf-steps li.is-done { color: var(--lf-blue); }
.lf-steps li.is-done i { background: var(--lf-blue); border-color: var(--lf-blue); color: #fff; }
.lf-find h2 { font-family: var(--lf-head); font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 8px; }
.lf-find__lead { margin: 0; color: var(--lf-muted); font-size: 15.5px; line-height: 1.6; max-width: 60ch; }
.lf-why { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--lf-bg); border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.lf-why li { display: flex; gap: 10px; align-items: flex-start; }
.lf-why svg { flex: none; margin-top: 2px; color: var(--lf-blue); }
.lf-code { letter-spacing: .3em; font-weight: 800; text-align: center; font-size: 20px; }
.lf-row > .lf-field--code { flex: 0 1 220px; }
.lf-me { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.lf-me__av { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--lf-gold); color: var(--lf-navy); font-family: var(--lf-head); font-weight: 800; font-size: 20px; }
.lf-me__txt { flex: 1 1 220px; min-width: 0; }
.lf-me__name { font-family: var(--lf-head); font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.lf-me__txt p { margin: 4px 0 0; color: var(--lf-muted); font-size: 15px; }
.lf-hh { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lf-hh span { font-size: 13.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--lf-soft); }
.lf-pick { display: flex; flex-direction: column; gap: 16px; }

/* Household rows */
.lf-prefs { display: flex; flex-direction: column; border: 1px solid var(--lf-line); border-radius: 16px; overflow: hidden; }
.lf-pref { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 14px 18px; min-width: 0; }
.lf-pref + .lf-pref { border-top: 1px solid var(--lf-line-soft); }
.lf-pref__who { font-weight: 800; font-size: 15.5px; min-width: 0; }
.lf-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.lf-pill { position: relative; cursor: pointer; }
.lf-pill input { position: absolute; opacity: 0; pointer-events: none; }
.lf-pill span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--lf-line); font-size: 13.5px; font-weight: 700; background: var(--lf-paper); }
.lf-pill input:checked + span { background: var(--lf-navy); border-color: var(--lf-navy); color: #fff; }
.lf-pill input:focus-visible + span { outline: 3px solid var(--lf-blue); outline-offset: 2px; }

/* Area groups */
.lf-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lf-group { border: 1px solid var(--lf-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lf-group__name { font-family: var(--lf-head); font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.lf-group .lf-check { padding: 10px 13px; font-size: 14.5px; border-width: 1.5px; }
.lf-group .lf-box { width: 22px; height: 22px; border-radius: 7px; }
.lf-count { margin: 0; font-size: 14px; font-weight: 700; color: var(--lf-blue); min-height: 1.5em; }

.lf-refs { display: flex; flex-direction: column; gap: 14px; }
.lf-ref { border: 1px solid var(--lf-line); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.lf-ref__title, .lf-ref__wide, .lf-ref > .lf-err { grid-column: 1 / -1; }
.lf-ref__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.lf-ref__title > span { font-family: var(--lf-head); font-weight: 800; font-size: 17px; line-height: 1.2; }
.lf-ref .lf-input { padding: 11px 14px; }
.lf-ref.is-invalid { border-color: var(--lf-error); }

/* Youth agreement */
.lf-agree { border: 1px solid var(--lf-line); border-radius: 16px; background: var(--lf-bg); padding: 18px 20px; }
.lf-agree h3 { font-family: var(--lf-head); font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; }
.lf-agree ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.6; }
.lf-agree p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; }
.lf-agree ul + p { margin-top: 16px; }
.lf-agree p + ul { margin-bottom: 4px; }
.lf-check--agree { align-items: flex-start; }
.lf-check--agree .lf-box { margin-top: 1px; }
.lf-sig { position: relative; border: 2px solid var(--lf-line); border-radius: 14px; background: #fff; }
.lf-field.is-invalid .lf-sig { border-color: var(--lf-error); }
.lf-sig__canvas { display: block; width: 100%; height: 150px; touch-action: none; cursor: crosshair; border-radius: 12px; }
.lf-sig__hint { position: absolute; left: 18px; bottom: 40px; font-size: 14px; font-weight: 700; color: #B9B1A0; pointer-events: none; }
.lf-sig__line { position: absolute; left: 16px; right: 16px; bottom: 34px; border-top: 1.5px dashed #D9CFB8; pointer-events: none; }
.lf-sig__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lf-parent { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--lf-line-soft); padding-top: 22px; }
.lf-parent__title { margin: 0; font-family: var(--lf-head); font-size: 18px; font-weight: 800; }

/* Done */
.lf-done { text-align: center; padding: 48px 28px; }
.lf-done__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--lf-blue); color: #fff; }
.lf-done h2 { font-family: var(--lf-head); font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.lf .lf-done h2:focus, .lf .lf-done h2:focus-visible { outline: none; }
.lf-done p { color: var(--lf-muted); line-height: 1.65; max-width: 460px; margin: 0 auto 24px; }
.lf-done__list { text-align: left; max-width: 440px; margin: 0 auto 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lf-done__list li { display: flex; gap: 10px; font-size: 15px; font-weight: 600; }
.lf-done__list b { flex: none; min-width: 9.5em; color: var(--lf-faint); font-weight: 700; }

@media (max-width: 680px) {
	.lf-hero__in { padding-block: 18px 104px; }
	.lf-brand { margin-bottom: 30px; }
	.lf-intro { font-size: 16px; }
	.lf-main { margin-top: -72px; }
	.lf-card { padding: 24px 18px; border-radius: 18px; }
	.lf-row > .lf-field, .lf-row > .lf-field--code, .lf-row > .lf-btn { flex: 1 1 100%; }
	.lf-grid, .lf-groups, .lf-checks--2, .lf-pref, .lf-ref { grid-template-columns: minmax(0, 1fr); }
	.lf-pref { gap: 10px; }
	.lf-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.lf-pill span { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 8px 6px; font-size: 13px; line-height: 1.25; border-radius: 12px; }
	.lf-checks--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lf-submit .lf-btn { width: 100%; }
	.lf-done { padding: 36px 18px; }
	.lf-done__list li { flex-direction: column; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.lf-check, .lf-btn { transition: none; }
}

/* Hero extras: quick reassurances, a verse */
.lf-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; font-weight: 700; color: #E8EEF3; }
.lf-points li { display: inline-flex; align-items: center; gap: 8px; }
.lf-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--lf-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314293A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; flex: none; }
.lf-verse { margin: 22px 0 0; padding-left: 16px; border-left: 3px solid var(--lf-gold); font-size: 15.5px; font-style: italic; line-height: 1.6; color: #E8EEF3; max-width: 56ch; }
.lf-verse cite { display: block; margin-top: 4px; font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lf-gold); }

/* The site's own forms (forms.js) on a landing page: same cards, fields and choices as the Kids form */
.lf-site-form { max-width: none; }
.lf-site-form .ww-f__card,
.lf-site-form.ww-f--serve .ww-f__card { background: var(--lf-paper); border: 1px solid var(--lf-line); border-radius: 22px; padding: 30px 32px; box-shadow: 0 2px 4px rgba(20,41,58,.08), 0 18px 44px rgba(20,41,58,.16); }
.lf-site-form .ww-f__title { font-size: 26px; letter-spacing: -.025em; }
.lf-site-form .ww-f__input,
.lf-site-form .ww-f__panel--form .ww-f__input { border: 2px solid var(--lf-line); background: var(--lf-field); border-radius: 12px; padding: 13px 16px; font-weight: 500; }
.lf-site-form .ww-f__input:focus { border-color: var(--lf-blue); outline: none; }
.lf-site-form .ww-f__field.is-invalid .ww-f__input { border-color: var(--lf-error); }
.lf-site-form .ww-f__chip { border: 2px solid var(--lf-line); font-weight: 700; }
.lf-site-form .ww-f__chip.is-on { background: var(--lf-navy); border-color: var(--lf-navy); color: #fff; }
.lf-site-form .ww-f__check.is-on { background: var(--lf-soft); color: var(--lf-navy); border-color: var(--lf-blue); }
.lf-site-form .ww-f__choice { border: 1px solid var(--lf-line); box-shadow: none; border-radius: 16px; }
.lf-site-form .ww-f__choice:hover { border-color: var(--lf-blue); }
.lf-site-form .ww-f__radio { border-color: var(--lf-line); }
/* Serve sign-up: everything sits inside the white card */
.lf-site-form.ww-f--serve .ww-f__panel { padding: 30px 28px; border-radius: 18px; }
.lf-site-form.ww-f--serve .ww-f__panel--form { padding: 0; border: 0; }
.lf-site-form .ww-f__teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lf-site-form .ww-f__track { padding: 28px 26px; }
.lf-site-form.ww-f--serve .ww-f__done { border: 0; padding: 30px 0; }
@media (max-width: 680px) {
	.lf-site-form .ww-f__card,
	.lf-site-form.ww-f--serve .ww-f__card { padding: 24px 18px; border-radius: 18px; }
	.lf-site-form .ww-f__teams { grid-template-columns: minmax(0, 1fr); }
	.lf-site-form.ww-f--serve .ww-f__panel { padding: 24px 18px; }
}
