/* Public notary booking page — /notary
   Same tokens as the rest of the website (see as-featured-in.html and index.html), plus the booking
   form and the day/time picker. The picker rules mirror the portal's own .nb* rules in
   client-portal/portal.css so both look the same; change them together. */

:root {
  --bg: #F6F2E9; --surface: #FFFFFF; --surface-2: #F0EADD;
  --fg: #17140F; --muted: #6A6256;
  --gold: #8F610C; --gold-bright: #C19031;
  --grad-gold: linear-gradient(135deg, #8F610C 0%, #C19031 52%, #F8D080 100%);
  --line: rgba(21, 18, 13, .12);
  --accent-soft: rgba(193, 144, 49, .16);
  --crit: #B3302A; --good: #2F7A47;
  --radius: 16px;
  --shadow-sm: 0 12px 30px -22px rgba(21, 18, 13, .45);
  --f-display: "Bitter", Georgia, serif;
  --f-body: "Questrial", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121009; --surface: #1A1710; --surface-2: #14110B;
    --fg: #F5F0E4; --muted: #A99E88;
    --gold: #E0B45C; --gold-bright: #E6BC68;
    --line: rgba(245, 240, 228, .12);
    --accent-soft: rgba(224, 180, 92, .18);
    --crit: #E8857E; --good: #7FC79A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121009; --surface: #1A1710; --surface-2: #14110B;
  --fg: #F5F0E4; --muted: #A99E88;
  --gold: #E0B45C; --gold-bright: #E6BC68;
  --line: rgba(245, 240, 228, .12);
  --accent-soft: rgba(224, 180, 92, .18);
  --crit: #E8857E; --good: #7FC79A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.6; }

/* ---- page shell, same as the other secondary pages ---- */
.top { background: #15120D; border-bottom: 2px solid transparent; border-image: var(--grad-gold) 1; }
.top .in { max-width: 1180px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top img { height: 54px; width: auto; display: block; }
.top a.back { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #F5F0E4; text-decoration: none; border: 1px solid rgba(245, 240, 228, .25); border-radius: 4px; padding: .7em 1em; }
.top a.back:hover { border-color: #C19031; color: #E6BC68; }
main { max-width: 1180px; margin: 0 auto; padding: 40px 16px 64px; }
.eyebrow { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); display: block; text-align: center; }
h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.08; text-align: center; margin: 12px 0 0; }
.sub { text-align: center; color: var(--muted); max-width: 62ch; margin: 14px auto 0; }
.fine { font-size: .8rem; color: var(--muted); margin-top: 36px; }
footer { background: #15120D; color: #B6AC97; text-align: center; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; padding: 20px 16px; }
footer a { color: #E6BC68; }

/* ---- service area strip ---- */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }
.strip span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .55em 1em; }

/* ---- cards ---- */
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.card + .card { margin-top: 18px; }
.card h2 { font-family: var(--f-display); font-size: 1.22rem; margin: 0 0 2px; }
.card h2 + p { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.card h3 { font-family: var(--f-display); font-size: 1.05rem; margin: 0 0 10px; }
.side { display: grid; gap: 18px; align-content: start; }

/* ---- form fields ---- */
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.field > label { font-size: .84rem; font-weight: 600; color: var(--fg); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, textarea { font: inherit; font-size: 16px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--fg); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-bright); outline-offset: 1px; }
textarea { resize: vertical; }
.mut { color: var(--muted); font-weight: 400; }
.nbhint { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.idline { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 4px 0 14px; }
.idline input { width: auto; margin-top: 3px; flex: none; }

.btn { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 13px 18px; cursor: pointer; background: var(--grad-gold); color: #15120D; width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

#nbMsg { margin: 0 0 12px; padding: 11px 13px; border: 1px solid var(--crit); border-left: 3px solid var(--crit); border-radius: 9px; background: var(--surface-2); font-size: .88rem; }
.securenote { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.securenote .ok { color: var(--good); font-weight: 700; flex: none; }

/* ---- estimate box (mirrors .est in client-portal/portal.css) ---- */
.est { margin: 2px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold-bright); border-radius: 10px; background: var(--surface-2); font-size: .85rem; }
.est-h { font-family: var(--f-display); font-weight: 700; margin-bottom: 6px; }
.est-l { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.est-l.mut { color: var(--muted); font-size: .79rem; }
.est-t { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.est-t b { font-family: var(--f-mono); font-size: 1.12rem; color: var(--gold); }
.est-f { margin-top: 8px; font-size: .76rem; color: var(--muted); }

/* ---- day and time picker (mirrors .nb* in client-portal/portal.css) ---- */
.nbcal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.nbcal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nbcal-h b { font-family: var(--f-display); font-size: .95rem; }
.nbnav { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; line-height: 1; color: var(--fg); padding: 0; }
.nbnav:disabled { opacity: .35; cursor: default; }
.nbgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.nbw { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 2px 0 4px; }
.nbc { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: .85rem; color: var(--muted); opacity: .55; }
.nbc.empty { visibility: hidden; }
.nbc.today { box-shadow: inset 0 0 0 1px var(--line); }
.nbc.open { opacity: 1; color: var(--fg); background: var(--accent-soft); border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
.nbc.open:hover { outline: 2px solid var(--gold-bright); }
.nbc.on { background: var(--grad-gold); color: #15120D; }
.nblegend { margin: 8px 0 0; font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nblegend i { width: 12px; height: 12px; border-radius: 3px; background: var(--accent-soft); display: inline-block; }
.nbslots-h { font-family: var(--f-display); font-weight: 600; font-size: .92rem; margin: 4px 0 8px; }
.nbtimes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; }
.nbtime { padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font: inherit; font-size: .85rem; color: var(--fg); }
.nbtime:hover { border-color: var(--gold-bright); }
.nbtime.on { background: var(--grad-gold); border-color: transparent; color: #15120D; font-weight: 600; }

/* ---- lists and content blocks ---- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; }
.facts .yes { color: var(--good); font-weight: 700; flex: none; }
.facts .no { color: var(--crit); font-weight: 700; flex: none; }
.nbway, .nbbring { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nbway:last-child, .nbbring:last-child { border-bottom: 0; padding-bottom: 0; }
.nbway b, .nbbring b { font-size: .9rem; }
.nbway span, .nbbring span { font-size: .82rem; color: var(--muted); }

/* ---- the thank-you panel ---- */
#nbDone { text-align: center; }
.nbseal { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: #15120D; font-size: 26px; font-weight: 700; }
#nbDone h3 { font-family: var(--f-display); font-size: 1.3rem; margin: 0 0 8px; }

@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .nbcal { grid-template-columns: 1fr; } .f2 { grid-template-columns: 1fr; } }
