/* Shared look for the interest forms and the staff page (matches the intake page). */
:root {
  color-scheme: light;
  --bg: #f0f4f8; --panel: #ffffff; --panel-soft: #eaf0f6; --field: #ffffff;
  --ink: #0f1f35; --ink-2: #3b4f68; --muted: #5a6e85; --line: #c8d6e5; --line-soft: #dde6ef;
  --accent: #1a4480; --accent-soft: rgba(26, 68, 128, 0.08); --on-accent: #ffffff;
  --teal: #0d7a6e; --teal-soft: rgba(13, 122, 110, 0.1); --focus: #0d7a6e;
  --err: #b3261e; --err-bg: rgba(179, 38, 30, 0.07); --good: #0a7a2f; --good-bg: rgba(12, 163, 12, 0.1);
  --warn-bg: #fff6dc; --warn-line: #e3b341; --warn-ink: #5a4300;
  --shadow: 0 1px 2px rgba(15, 31, 53, 0.05), 0 6px 24px rgba(15, 31, 53, 0.07);
  --ribbon: #0f2d5e;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1424; --panel: #121e33; --panel-soft: #18263f; --field: #0e192c;
    --ink: #e8eef6; --ink-2: #b9c6d8; --muted: #8a9bb3; --line: #2a3d5c; --line-soft: #1f2f4a;
    --accent: #8fb4e8; --accent-soft: rgba(143, 180, 232, 0.12); --on-accent: #0b1424;
    --teal: #3cc2b0; --teal-soft: rgba(60, 194, 176, 0.12); --focus: #3cc2b0;
    --err: #f28b82; --err-bg: rgba(242, 139, 130, 0.1); --good: #4cc76a; --good-bg: rgba(76, 199, 106, 0.12);
    --warn-bg: #2b2412; --warn-line: #9c7a22; --warn-ink: #f3dc9b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --ribbon: #0a1a33;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1424; --panel: #121e33; --panel-soft: #18263f; --field: #0e192c;
  --ink: #e8eef6; --ink-2: #b9c6d8; --muted: #8a9bb3; --line: #2a3d5c; --line-soft: #1f2f4a;
  --accent: #8fb4e8; --accent-soft: rgba(143, 180, 232, 0.12); --on-accent: #0b1424;
  --teal: #3cc2b0; --teal-soft: rgba(60, 194, 176, 0.12); --focus: #3cc2b0;
  --err: #f28b82; --err-bg: rgba(242, 139, 130, 0.1); --good: #4cc76a; --good-bg: rgba(76, 199, 106, 0.12);
  --warn-bg: #2b2412; --warn-line: #9c7a22; --warn-ink: #f3dc9b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --ribbon: #0a1a33;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }

.ribbon { background: var(--ribbon); color: #e6edf7; }
.ribbon-in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo { width: 40px; height: 40px; border-radius: 10px; background: #0d7a6e; color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; flex: none; }
.ribbon b { font-family: var(--display); font-size: 19px; color: #fff; display: block; line-height: 1.15; }
.ribbon small { color: #a9bcd8; font-size: 13px; }
.ribbon .help { margin-left: auto; font-size: 14px; color: #c9d6ea; }
.ribbon .help strong { color: #fff; user-select: all; }
.demo { background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: var(--warn-ink); font-size: 14px; }
.demo-in { max-width: 1120px; margin: 0 auto; padding: 8px 20px; display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; }
.demo-in .grow { flex: 1; min-width: 220px; }
.demo button { font-size: 13.5px; border: 1px solid var(--warn-line); background: transparent; border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 32px; }

.page { max-width: 860px; margin: 0 auto; padding: 28px 20px 64px; }
.page.wide { max-width: 1180px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.page h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin-top: 6px; }
.lead { color: var(--ink-2); font-size: 17.5px; margin-top: 10px; max-width: 64ch; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow); padding: 26px 28px; margin-top: 22px; }
.card h2 { font-family: var(--display); font-size: 22px; }
.card > .hint { color: var(--muted); font-size: 15px; margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 18px; margin-top: 16px; }
.f { grid-column: span 4; min-width: 0; }
.f.w-half { grid-column: span 2; }
.f.w-quarter { grid-column: span 1; }
.f label, .f legend { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 6px; padding: 0; }
fieldset.f { border: 0; margin: 0; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.f .hint { color: var(--muted); font-size: 14px; margin: -2px 0 8px; }
.f input, .f select, .f textarea { width: 100%; background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; min-height: 46px; }
.f textarea { min-height: 96px; resize: vertical; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--muted); }
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--err); background: var(--err-bg); }
.err { color: var(--err); font-size: 14px; margin-top: 6px; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.block { flex-direction: column; align-items: stretch; }
/* ".chips .chip" outranks the ".f label" / ".f input" text-field rules above, which otherwise strip the padding. */
.chips .chip { position: relative; display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: var(--field); border-radius: 10px; padding: 9px 16px 9px 12px; margin: 0; cursor: pointer; min-height: 44px; font-size: 15.5px; font-weight: 500; user-select: none; transition: border-color .12s, background-color .12s; }
.chips .chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
/* The control itself, always visible: an empty circle (choose one) or box (choose any) that fills in when chosen. */
.chip::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 50%; background: var(--field); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; transition: inherit; }
.chip:has(input[type="checkbox"])::before { border-radius: 5px; }
.chip:hover { border-color: var(--teal); background: var(--teal-soft); }
.chip:hover::before { border-color: var(--teal); }
.chip:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--teal); }
.chip:has(input[type="radio"]:checked)::before { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3.5px var(--field); }
.chip:has(input[type="checkbox"]:checked)::before { content: "✓"; border-color: var(--teal); background: var(--teal); }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pick { font-weight: 400; color: var(--muted); font-size: 14px; white-space: nowrap; }
fieldset.f.bad .chip { border-color: var(--err); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn { appearance: none; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: 12px; padding: 12px 22px; min-height: 48px; cursor: pointer; font-size: 16px; text-decoration: none; display: inline-flex; align-items: center; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--line); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14.5px; border-radius: 10px; }
.issues { border: 1.5px solid var(--err); background: var(--err-bg); border-radius: 12px; padding: 14px 18px; margin-top: 18px; }
.issues ul { margin: 6px 0 0; padding-left: 20px; }
.done { text-align: center; padding: 40px 28px; }
.done .ic { width: 64px; height: 64px; border-radius: 50%; background: var(--good-bg); color: var(--good); display: grid; place-items: center; font-size: 30px; margin: 0 auto 14px; }
.done .ref { display: inline-block; margin-top: 14px; font-weight: 700; background: var(--panel-soft); padding: 6px 14px; border-radius: 999px; user-select: all; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.side-note { color: var(--muted); font-size: 14.5px; margin-top: 16px; }

@media (max-width: 720px) {
  .ribbon-in, .demo-in { padding-inline: 16px; }
  .ribbon .help { margin-left: 0; width: 100%; }
  .page { padding: 20px 16px 48px; }
  .card { padding: 20px 16px; border-radius: 14px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .f, .f.w-half { grid-column: span 2; }
  .f.w-quarter { grid-column: span 1; }
}
@media (prefers-reduced-motion: no-preference) { .card { animation: rise .35s ease both; } @keyframes rise { from { opacity: 0; transform: translateY(6px); } } }
