:root {
  color-scheme:light;
  --page:#edf4f9; --card:#fff; --ink:#102f4d; --muted:#46647b; --line:#b7cede;
  --field:#f8fbfe; --subtle:#e5f1fa; --gold:#f8d389; --accent:#005d84;
  --error:#8b172a; --error-bg:#fff0f1;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--page); color:var(--ink); font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:var(--accent); }
:focus-visible { outline:3px solid #3999ce; outline-offset:3px; }
.site-head { background:#082b50; color:#fff; border-bottom:1px solid #426c8d; }
.head-inner { width:min(880px,calc(100% - 36px)); margin:auto; min-height:70px; display:flex; gap:14px; align-items:center; justify-content:space-between; }
.brand { color:#fff; text-decoration:none; display:flex; align-items:center; gap:11px; font-size:21px; font-weight:800; line-height:1.16; }
.brand img { border-radius:11px; }
.brand small { display:block; color:#c2d8e9; font-size:9px; letter-spacing:.12em; margin-top:5px; }
.back-site { color:#ebf6ff; font-size:13px; white-space:nowrap; text-underline-offset:4px; }
.page { width:min(720px,calc(100% - 36px)); margin:30px auto 0; }
.inside-app .page { margin-top:16px; }
.intro { padding:24px 28px; background:linear-gradient(140deg,#082b50,#153f63); color:#fff; border:1px solid #557995; border-radius:24px; }
.eyebrow { margin:0 0 7px; font-size:11px; font-weight:800; letter-spacing:.15em; color:var(--accent); }
.intro .eyebrow { color:var(--gold); }
.intro h1 { margin:0; font-size:clamp(27px,5vw,39px); line-height:1.15; letter-spacing:-.025em; color:#fff; }
.intro p:last-child { margin:9px 0 0; color:#dbeaf7; }
.progress ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0; margin:14px 0; list-style:none; }
.progress li { display:flex; align-items:center; justify-content:center; gap:7px; min-height:42px; border:1px solid var(--line); border-radius:12px; background:var(--card); color:var(--muted); font-size:13px; font-weight:650; }
.progress li span { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:var(--subtle); font-size:11px; }
.progress li[aria-current] { background:#16496f; border-color:#16496f; color:white; }
.progress li[aria-current] span { background:#f8d389; color:#082b50; }
.form-card { margin-top:15px; padding:24px 28px; background:var(--card); border:1px solid var(--line); border-radius:23px; box-shadow:0 12px 28px #082b5012; }
fieldset { border:0; margin:0; padding:0; min-width:0; }
fieldset + fieldset { margin-top:21px; }
.progress:not([hidden]) + form fieldset { margin-top:0; }
legend { padding:0; margin-bottom:13px; font-size:21px; font-weight:800; }
.field { min-width:0; margin-bottom:14px; }
.field label { display:block; margin-bottom:5px; font-size:14px; font-weight:720; }
.field small { display:block; margin-top:5px; color:var(--muted); font-size:12px; }
.field input:not([type=checkbox]),.field select,.field textarea {
  display:block; width:100%; min-width:0; min-height:48px; padding:10px 12px;
  font:inherit; color:var(--ink); background:var(--field); border:1px solid var(--line); border-radius:11px;
}
.field input[type=date] { appearance:none; }
.field textarea { resize:vertical; }
.fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 14px; }
.note { background:var(--subtle); border:1px solid var(--line); border-radius:12px; padding:11px 13px; color:var(--ink); font-size:14px; margin:2px 0 15px; }
.consent label { display:flex; gap:10px; align-items:flex-start; }
.consent input { accent-color:#006083; width:20px; height:20px; margin:2px 0 0; flex:0 0 20px; }
.actions { display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }
.button { display:inline-flex; align-items:center; justify-content:center; text-align:center; min-height:47px; padding:10px 17px; border-radius:12px; font:inherit; font-weight:750; border:1px solid var(--line); cursor:pointer; text-decoration:none; }
.primary { background:var(--gold); color:#082b50; border-color:#dda854; }
.secondary { background:var(--field); color:var(--ink); }
.button:disabled { cursor:wait; opacity:.65; }
.wide { width:100%; }
.form-error,.errorlist { color:var(--error); }
.form-error { background:var(--error-bg); padding:10px 13px; border-radius:10px; margin-bottom:14px; }
.errorlist { margin:5px 0; padding-left:19px; font-size:13px; }
.summary { margin:0 0 15px; padding:0; display:grid; grid-template-columns:minmax(74px,auto) 1fr; gap:7px 13px; font-size:14px; }
.summary dt { font-weight:750; color:var(--muted); }
.summary dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.reference { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.reference strong { overflow-wrap:anywhere; letter-spacing:.02em; font-size:clamp(16px,4vw,23px); }
.copy-status,.privacy,.new-request { font-size:13px; color:var(--muted); }
footer { display:flex; flex-wrap:wrap; gap:12px 19px; font-size:13px; padding:17px 0 calc(21px + env(safe-area-inset-bottom)); }
@media(max-width:560px) {
  .page { width:calc(100% - 24px); margin-top:14px; }
  .intro,.form-card { padding:17px; border-radius:18px; }
  .fields { grid-template-columns:1fr; }
  .progress li { font-size:12px; gap:4px; }
  .actions button { flex:1; }
  .brand { font-size:18px; }
}
@media(prefers-color-scheme:dark) {
  :root:not([data-service-theme=light]) { color-scheme:dark; --page:#091624; --card:#152d44; --ink:#eff7ff; --muted:#b5cde0; --line:#476983; --field:#10283d; --subtle:#203f5b; --accent:#91d9fc; --error:#ffbec7; --error-bg:#4d2634; }
}

:root[data-service-theme=dark] { color-scheme:dark; --page:#091624; --card:#152d44; --ink:#eff7ff; --muted:#b5cde0; --line:#476983; --field:#10283d; --subtle:#203f5b; --accent:#91d9fc; --error:#ffbec7; --error-bg:#4d2634; }
