/* Intake form — Immigration Medical Toronto brand reference V2 (tokens from the
   website: white-led, quiet, no shadows, no gradients on content surfaces). */
@font-face { font-family: "Newsreader Variable"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader Variable"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/newsreader-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Albert Sans Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/albert-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Albert Sans Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/albert-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink:#101c2c; --navy:#17497e; --steel:#52708f; --ice:#c9dcec; --frost:#eef4f9; --body:#44586e;
  --green:#2e7d52; --error:#9a4b3b; --white:#ffffff; --hairline:#e4eaf0;
  --font-display:"Newsreader Variable", Georgia, serif;
  --font-text:"Albert Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --r-control:5px; --r-card:8px; --r-pill:100px; --label-track:.16em;
}
*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--white); color:var(--body); font-family:var(--font-text); font-size:17px; line-height:1.55; }
h1 { font-family:var(--font-display); font-weight:500; color:var(--ink); letter-spacing:-.01em; line-height:1.08; font-size:clamp(30px, 7vw, 40px); margin:0 0 .4em; }
h2 { font-family:var(--font-text); font-weight:600; color:var(--ink); font-size:17px; line-height:1.35; margin:18px 0 6px; }
p { margin:0 0 .9em; }
ul { padding-inline-start:1.2em; margin:0 0 .9em; }
li { margin-bottom:.35em; }
a { color:var(--navy); }
strong { font-weight:600; color:var(--ink); }
.label { font-weight:600; font-size:12.5px; letter-spacing:var(--label-track); text-transform:uppercase; color:var(--steel); }

/* header */
.top[hidden] { display:none; }
.top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 20px; background:var(--white); border-bottom:1px solid var(--hairline); position:sticky; top:0; z-index:2; }
.top img { height:34px; width:auto; display:block; }
.brand { font-weight:600; color:var(--ink); font-size:15px; }
.lang-btn { font:inherit; font-size:14px; font-weight:600; color:var(--navy); padding:8px 14px; border:1.5px solid var(--ice); border-radius:var(--r-pill); background:var(--white); cursor:pointer; }
.lang-btn:hover { background:var(--frost); }

/* layout */
.app { max-width:680px; margin:0 auto; padding:20px 20px 110px; }
.foot { max-width:680px; margin:0 auto; padding:0 20px 24px; color:var(--steel); font-size:13.5px; }
.card { background:var(--white); border:1px solid var(--hairline); border-radius:var(--r-card); padding:20px 22px; margin:0 0 14px; }
.panel { background:var(--frost); border:1px solid var(--ice); border-radius:var(--r-card); padding:14px 18px; margin:0 0 14px; }
.step { margin-bottom:8px; }

/* landing */
.landing { text-align:center; padding:28px 0 0; }
.landing .lockup { width:min(72vw, 300px); height:auto; margin:8px auto 22px; display:block; }
.landing h1 { font-size:clamp(36px, 9vw, 48px); }
.landing .label { display:block; margin-bottom:6px; }
.landing .lead { max-width:40ch; margin:0 auto 22px; color:var(--body); }
.lang-select { width:100%; max-width:420px; margin:0 auto 22px; font:inherit; font-size:18px; color:var(--ink); background:var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'><path d='M1 1l7 7 7-7' fill='none' stroke='%2317497e' stroke-width='2'/></svg>") no-repeat right 16px center; border:1.5px solid var(--ice); border-radius:var(--r-control); padding:14px 44px 14px 16px; appearance:none; -webkit-appearance:none; display:block; }
[dir=rtl] .lang-select { background-position:left 16px center; padding:14px 16px 14px 44px; }
.btn { display:inline-block; font-family:var(--font-text); font-weight:600; line-height:1; border-radius:var(--r-pill); border:1.5px solid transparent; cursor:pointer; text-decoration:none; transition:background-color .15s ease, color .15s ease; }
.btn--primary { background:var(--navy); color:var(--white); }
.btn--primary:hover { background:var(--ink); }
.btn--secondary { background:var(--white); border-color:var(--ice); color:var(--navy); }
.btn--secondary:hover { background:var(--frost); }
.btn--start { font-size:20px; letter-spacing:.08em; text-transform:uppercase; padding:20px 56px; width:100%; max-width:420px; }
.btn:disabled { opacity:.5; cursor:default; }

/* fields */
label.field { display:block; margin:16px 0 6px; font-weight:600; color:var(--ink); }
input[type=date] { width:100%; font:inherit; font-size:17px; color:var(--ink); padding:12px 14px; border:1px solid var(--hairline); border-radius:var(--r-control); background:var(--white); min-height:50px; -webkit-appearance:none; appearance:none; }
.hint { display:block; color:var(--steel); font-size:13.5px; margin-top:4px; }
input[type=text], input[type=email] { width:100%; font:inherit; font-size:17px; color:var(--ink); padding:12px 14px; border:1px solid var(--hairline); border-radius:var(--r-control); background:var(--white); }
input::placeholder { color:#9aa9b8; }
.err { color:var(--error); font-size:.92rem; margin:5px 0 0; min-height:0; }
.invalid { border-color:var(--error) !important; }
.choice { display:flex; gap:10px; flex-wrap:wrap; margin:8px 0; }
.choice button { flex:1 1 45%; min-height:52px; padding:12px 14px; font:inherit; font-size:16px; border:1.5px solid var(--ice); border-radius:var(--r-card); background:var(--white); color:var(--ink); text-align:start; cursor:pointer; }
.choice button[aria-pressed=true] { border-color:var(--navy); background:var(--frost); font-weight:600; color:var(--navy); }
.q { padding:14px 0; border-top:1px solid var(--hairline); }
.q:first-child { border-top:0; padding-top:4px; }
.q .label-q { color:var(--ink); margin-bottom:6px; }
/* signature: big, unmistakable */
.sig-block { margin:10px 0 4px; }
.sig-frame { position:relative; width:100%; aspect-ratio:310/150; min-height:220px; border:2.5px dashed var(--navy); border-radius:var(--r-card); background:var(--frost); overflow:hidden; }
.sig-frame.signed { background:var(--white); border-style:solid; }
.sig { position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none; background:transparent; }
.sig-prompt { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--navy); pointer-events:none; }
.sig-prompt .sig-x { font-size:28px; font-weight:600; position:absolute; left:16px; bottom:30px; opacity:.6; }
.sig-prompt::after { content:""; position:absolute; left:16px; right:16px; bottom:28px; border-bottom:1.5px solid var(--navy); opacity:.45; }
.sig-prompt .sig-hint { font-size:19px; font-weight:600; text-align:center; padding:0 24px; }
.sig-frame.signed .sig-prompt { display:none; }
[dir=rtl] .sig-prompt .sig-x { left:auto; right:16px; }
.sig-row { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:10px; color:var(--steel); font-size:13.5px; }
.minor-notice { background:#fff6e0; border:1px solid #f0c060; color:#7a4b00; border-radius:var(--r-card); padding:12px 14px; font-weight:600; margin:14px 0 4px; }
.notice p, .notice li { font-size:15.5px; }
.courtesy { background:var(--frost); border-color:var(--ice); color:var(--body); font-size:15px; }
.alert { border-color:var(--error); color:var(--error); }

/* bottom nav */
.nav { position:fixed; inset-inline:0; bottom:0; background:var(--white); border-top:1px solid var(--hairline); padding:12px 20px calc(12px + env(safe-area-inset-bottom)); display:flex; gap:12px; justify-content:space-between; }
.nav .btn { flex:1; font-size:15px; padding:16px 20px; }
.done { text-align:center; padding:48px 10px; }
.done h1 { color:var(--green); }
.done img { width:96px; margin:0 auto 18px; display:block; }
button:focus-visible, input:focus-visible, select:focus-visible { outline:2px solid var(--navy); outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { * { transition-duration:.01ms !important; } }
