/* =====================================================================
   /npp — New Patient Paperwork
   Strictly monochrome funnel. Black focus-screen intro → white,
   industry-standard multi-step form. Brand fonts only (Cormorant
   Garamond + Mulish). No accent colour anywhere — black, white, grey.
   ===================================================================== */

:root {
  --ink:        #0a0a0a;   /* primary text / fills */
  --ink-2:      #1a1a1a;
  --paper:      #ffffff;
  --muted:      #5a5a5a;   /* secondary text */
  --muted-2:    #8c8c8c;   /* tertiary / placeholder */
  --soft:       #f5f5f5;   /* soft surfaces */
  --soft-2:     #ededed;
  --line:       rgba(0,0,0,0.14);
  --line-2:     rgba(0,0,0,0.08);
  --line-str:   rgba(0,0,0,0.34);   /* stronger hairline */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --sh-sm: 0 1px 2px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
  --sh-md: 0 6px 18px rgba(0,0,0,0.08), 0 18px 48px rgba(0,0,0,0.07);
  --sh-lg: 0 20px 50px rgba(0,0,0,0.16), 0 40px 90px rgba(0,0,0,0.12);

  --maxw: 680px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 60px;
  --footer-h: 78px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: #0a0a0a; color: #fff; }

/* =====================================================================
   1 · INTRO  (the black focus screen from the brief)
   ===================================================================== */
.npp-intro {
  position: fixed; inset: 0; z-index: 50;
  background: #ffffff; color: #0a0a0a;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  opacity: 1;
  transition: opacity .55s ease, transform .55s cubic-bezier(.4,0,.2,1);
}
.npp-intro.leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }

.npp-intro .intro-mark {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .34em; text-transform: uppercase; color: rgba(0,0,0,0.5);
  margin-bottom: clamp(22px, 5vh, 44px);
  animation: introUp .7s .05s both cubic-bezier(.2,.8,.2,1);
}
.npp-intro h1 {
  margin: 0; line-height: 1.02; text-wrap: balance;
}
.npp-intro h1 .l1 {
  display: block; font-family: var(--sans); font-weight: 300;
  font-size: clamp(2.1rem, 8vw, 4.1rem); letter-spacing: -.01em; color: #0a0a0a;
  animation: introUp .7s .12s both cubic-bezier(.2,.8,.2,1);
}
.npp-intro h1 .l2 {
  display: block; font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.5rem, 10.5vw, 5.3rem); letter-spacing: -.02em; line-height: .98;
  margin-top: .06em; color: #0a0a0a;
  animation: introUp .7s .2s both cubic-bezier(.2,.8,.2,1);
}
.npp-intro .intro-sub {
  margin: clamp(20px, 4vh, 30px) auto 0; max-width: 36ch;
  color: rgba(0,0,0,0.6); font-size: clamp(.95rem, 2.4vw, 1.06rem); line-height: 1.6;
  animation: introUp .7s .28s both cubic-bezier(.2,.8,.2,1);
}
.intro-cta {
  margin-top: clamp(34px, 6vh, 52px);
  animation: introUp .7s .36s both cubic-bezier(.2,.8,.2,1);
}
.intro-btn {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background: #0a0a0a; color: #fff; border: 1.5px solid #0a0a0a;
  font-weight: 800; font-size: 1.02rem; letter-spacing: .01em;
  padding: 1.05rem 3.4rem; border-radius: 4px;
  display: inline-flex; align-items: center; gap: .7rem;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.intro-btn .arrow { transition: transform .25s; }
.intro-btn:hover { background: transparent; color: #0a0a0a; transform: translateY(-2px); }
.intro-btn:hover .arrow { transform: translateX(4px); }
.intro-btn:active { transform: translateY(0); }
.intro-foot {
  position: absolute; left: 0; right: 0; bottom: max(22px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  animation: introUp .7s .44s both cubic-bezier(.2,.8,.2,1);
}
@keyframes introUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   2 · FUNNEL SHELL  (header · scroll body · footer)
   ===================================================================== */
.npp-app {
  height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper);
  opacity: 0; animation: appIn .5s .1s both ease;
}
@keyframes appIn { from { opacity: 0; } to { opacity: 1; } }

/* Header — brand + progress */
.npp-header {
  flex: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
}
.npp-brand {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink);
  letter-spacing: -.01em; white-space: nowrap; text-decoration: none;
}
.npp-brand small {
  display: none; font-family: var(--sans); font-size: .54rem; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
/* Brand wordmark logo — dark variant on the white header + intro (both light bg) */
.npp-brand { display: inline-flex; align-items: center; line-height: 0; }
.npp-brand .brand-logo { display: block; height: 30px; width: auto; }
.npp-intro .intro-mark .intro-logo { display: block; height: clamp(34px, 6.5vw, 52px); width: auto; }
@media (max-width: 600px) { .npp-brand .brand-logo { height: 26px; } }
/* progress now lives INSIDE the page, pinned to the top of the scroll body */
.npp-prog { flex: 0 0 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 3.4vh, 32px) var(--gutter) 0; }
.npp-prog .track { height: 4px; border-radius: 999px; background: var(--soft-2); overflow: hidden; }
.npp-prog .fill { height: 100%; background: #0a0a0a; border-radius: 999px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.npp-prog .meta {
  display: flex; justify-content: space-between; margin-top: .5rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); text-transform: uppercase;
}
.npp-savetag {
  justify-self: end; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted-2); display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.npp-savetag .dot { width: 6px; height: 6px; border-radius: 999px; background: #0a0a0a; }

/* Scroll body — column: [ progress (top) · stage (fills + centers) ] */
.npp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scroll-behavior: smooth; display: flex; flex-direction: column; }
.npp-stage {
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(24px, 4vh, 48px) var(--gutter) clamp(28px, 5vh, 56px);
  text-align: center;
}

/* Step header */
.step-eyebrow {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.step-title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(2rem, 5.5vw, 3.1rem); line-height: 1.05; margin: 0 0 .55rem;
}
.step-hint { color: var(--muted); font-size: 1.02rem; line-height: 1.55; margin: 0 auto 2rem; max-width: 52ch; }

/* Step transition (transform only — content never stuck invisible) */
.step-anim { width: 100%; animation: stepIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step-anim.back { animation-name: stepInBack; }
@keyframes stepInBack { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step-anim, .npp-app, .npp-intro .intro-mark, .npp-intro h1 .l1, .npp-intro h1 .l2, .npp-intro .intro-sub, .intro-cta, .intro-foot { animation: none !important; } }

/* Footer nav */
.npp-footer {
  flex: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--footer-h);
  padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line-2);
}
.npp-back {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-weight: 700; font-size: .95rem; padding: .7rem .3rem;
  display: inline-flex; align-items: center; gap: .45rem; transition: color .18s, transform .18s;
}
.npp-back:hover { color: var(--ink); }
.npp-back:hover .arrow { transform: translateX(-3px); }
.npp-back .arrow { transition: transform .2s; }
.npp-back:disabled { opacity: 0; pointer-events: none; }
.foot-spacer { flex: 1; }

/* =====================================================================
   3 · BUTTONS
   ===================================================================== */
.btn {
  -webkit-appearance: none; appearance: none; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-weight: 800; font-size: 1rem; line-height: 1;
  border-radius: 999px; padding: 1.05rem 2.2rem; border: 1.5px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .22s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: #0a0a0a; color: #fff; border-color: #0a0a0a; }
.btn-primary:hover { background: #000; box-shadow: 0 12px 26px -10px rgba(0,0,0,0.6); transform: translateY(-2px); }
.btn-primary:disabled { background: #c9c9c9; border-color: #c9c9c9; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-str); }
.btn-ghost:hover { border-color: #0a0a0a; background: rgba(0,0,0,0.03); }
.btn-lg { padding: 1.15rem 2.5rem; font-size: 1.04rem; }

/* =====================================================================
   4 · FIELDS
   ===================================================================== */
.field { margin-bottom: 1.3rem; }
.field:last-child { margin-bottom: 0; }
.field > label {
  display: block; font-size: .76rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; text-align: center;
}
.field .opt { color: var(--muted-2); font-weight: 700; letter-spacing: .02em; }
.field .help { display: block; font-size: .85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; margin-top: -.25rem; margin-bottom: .55rem; text-align: center; }

.inp, .ta, select.inp {
  width: 100%; font-family: var(--sans); font-size: 1.05rem; color: var(--ink); text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: .95rem 1.05rem; transition: border-color .16s, box-shadow .16s; line-height: 1.4;
}
.inp::placeholder, .ta::placeholder { color: var(--muted-2); }
.inp:focus, .ta:focus, select.inp:focus {
  outline: none; border-color: #0a0a0a; box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.inp.bad, .ta.bad { border-color: #0a0a0a; box-shadow: 0 0 0 3px rgba(0,0,0,0.10); }
.ta { resize: vertical; min-height: 130px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* DOB — manual Month / Day / Year inputs */
.dob-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: .8rem; width: 100%; max-width: 430px; margin: 0 auto; }

/* HIPAA trust badge (every step, pinned at the bottom of the scroll body) */
.npp-hipaa { flex: 0 0 auto; width: 100%; display: flex; justify-content: center; padding: 1.6rem var(--gutter) 1.9rem; }
.hipaa-img { height: 30px; width: auto; opacity: .68; filter: grayscale(1); display: block; }

/* validation message — monochrome (no red) */
.bad-msg {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .5rem; font-size: .82rem; font-weight: 700; color: #0a0a0a;
}
.bad-msg::before {
  content: "!"; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 999px;
  background: #0a0a0a; color: #fff; font-size: .68rem; font-weight: 900;
  display: grid; place-items: center;
}

/* Segmented control (sex) */
.seg { display: inline-flex; background: var(--soft-2); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; max-width: 100%; }
.seg button {
  border: none; background: transparent; font-weight: 800; font-size: .92rem; color: var(--muted);
  padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer; transition: all .16s;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: #0a0a0a; color: #fff; }

/* derived value pill (age) */
.derived {
  display: inline-flex; align-items: baseline; gap: .55rem;
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: .85rem 1.1rem; background: var(--soft);
}
.derived .k { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.derived .v { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.derived .v small { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--muted); }

/* =====================================================================
   5 · SELECTABLE OPTIONS (procedures, nicotine types)
   ===================================================================== */
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.opt {
  display: flex; align-items: center; gap: .85rem; text-align: left; width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 1rem 1.1rem; cursor: pointer; transition: border-color .16s, background .16s, transform .12s;
  color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.3;
}
.opt:hover { border-color: var(--line-str); }
.opt:active { transform: scale(.99); }
.opt.on { border-color: #0a0a0a; background: #0a0a0a; color: #fff; }
.opt .box {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-str);
  display: grid; place-items: center; color: #0a0a0a; background: #fff; transition: all .16s;
}
.opt.radio .box { border-radius: 999px; }
.opt.on .box { background: #fff; border-color: #fff; }
.opt.on .box svg { color: #0a0a0a; }

/* =====================================================================
   6 · YES / NO TOGGLE
   ===================================================================== */
.yn { display: flex; gap: .7rem; }
.yn button {
  flex: 1; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 800; font-size: 1.02rem; padding: 1rem 1rem; border-radius: var(--r-md);
  cursor: pointer; transition: all .16s; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.yn button:hover { border-color: var(--line-str); }
.yn button.on { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.yn button .tick { width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid currentColor; display: inline-grid; place-items: center; opacity: .5; }
.yn button.on .tick { opacity: 1; background: #fff; color: #0a0a0a; border-color: #fff; }

/* conditional reveal block */
.reveal-block {
  margin-top: 1.1rem; padding: 1.2rem; border: 1.5px solid var(--line); border-left-width: 3px; border-left-color: #0a0a0a;
  border-radius: var(--r-md); background: var(--soft);
  animation: revealDown .35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes revealDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.reveal-block .sub-label { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 .7rem; }
.reveal-block .sub-label + .sub-label,
.reveal-block .field + .sub-label { margin-top: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 700; font-size: .9rem; padding: .55rem 1rem; border-radius: 999px; cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: .45rem;
}
.chip:hover { border-color: var(--line-str); }
.chip.on { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }

/* "none / not applicable" quick toggle for free-text history */
.none-row { margin-top: .8rem; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.none-toggle {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font-size: .9rem; font-weight: 700; color: var(--muted);
  border: 1.5px solid var(--line); background: #fff; padding: .55rem 1rem; border-radius: 999px; transition: all .15s;
}
.none-toggle:hover { border-color: var(--line-str); color: var(--ink); }
.none-toggle.on { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.none-toggle .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid currentColor; display: grid; place-items: center; }

/* =====================================================================
   7 · CALENDAR  (industry-standard month picker)
   ===================================================================== */
.cal {
  width: 100%; max-width: 380px; margin: 0 auto; text-align: left;
  border: 1.5px solid var(--line); border-radius: var(--r-lg); background: #fff;
  padding: 14px; box-shadow: var(--sh-sm); user-select: none;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: 10px; }
.cal-title {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-weight: 800; font-size: 1.02rem; color: var(--ink); padding: .45rem .7rem; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: .45rem; transition: background .15s;
}
.cal-title:hover { background: var(--soft); }
.cal-title .caret { transition: transform .2s; }
.cal-title.open .caret { transform: rotate(180deg); }
.cal-navs { display: flex; gap: .3rem; }
.cal-nav {
  width: 38px; height: 38px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; display: grid; place-items: center; transition: all .15s;
}
.cal-nav:hover { border-color: #0a0a0a; background: var(--soft); }
.cal-nav:disabled { opacity: .3; pointer-events: none; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow {
  text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: .04em;
  color: var(--muted-2); text-transform: uppercase; padding: 6px 0 8px;
}
.cal-cell { aspect-ratio: 1 / 1; }
.cal-day {
  width: 100%; height: 100%; border: none; background: none; cursor: pointer;
  border-radius: 999px; font-family: var(--sans); font-size: .94rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; display: grid; place-items: center; transition: background .14s, color .14s;
}
.cal-day:hover { background: var(--soft-2); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--line-str); }
.cal-day.sel { background: #0a0a0a; color: #fff; font-weight: 800; box-shadow: none; }
.cal-day.disabled { color: #cfcfcf; pointer-events: none; }
.cal-empty { }

/* year / month picker panes */
.cal-pane { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 248px; overflow-y: auto; padding: 2px; }
.cal-pane.months { grid-template-columns: repeat(3, 1fr); }
.cal-opt {
  border: 1.5px solid transparent; background: none; cursor: pointer; padding: .7rem .2rem; border-radius: var(--r-sm);
  font-family: var(--sans); font-weight: 700; font-size: .92rem; color: var(--ink); transition: all .14s;
}
.cal-opt:hover { background: var(--soft-2); }
.cal-opt.sel { background: #0a0a0a; color: #fff; }
.cal-opt:disabled { color: #cfcfcf; pointer-events: none; }

.cal-selected {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .6rem;
  font-size: .95rem; color: var(--ink); font-weight: 700;
}
.cal-selected svg { color: #0a0a0a; }
.cal-selected .muted { color: var(--muted); font-weight: 600; }

/* =====================================================================
   8 · PHOTO UPLOADER  (up to 5)
   ===================================================================== */
.uploader {
  border: 2px dashed var(--line-str); border-radius: var(--r-lg); padding: 2.4rem 1.4rem;
  text-align: center; cursor: pointer; background: var(--soft); transition: border-color .18s, background .18s;
}
.uploader:hover, .uploader.drag { border-color: #0a0a0a; background: var(--soft-2); }
.uploader .u-ic { color: #0a0a0a; margin-bottom: .7rem; display: inline-flex; }
.uploader .u-main { font-weight: 800; font-size: 1.02rem; }
.uploader .u-sub { color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.uploader.full { opacity: .55; pointer-events: none; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; margin-top: 1.1rem; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; border: 1.5px solid var(--line); background: var(--soft-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 999px;
  background: rgba(10,10,10,.78); color: #fff; border: none; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(2px); transition: background .15s;
}
.thumb .rm:hover { background: #0a0a0a; }
.photo-count { margin-top: .8rem; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }

/* ---- Front / Left / Right photo slots (each: upload box + example below) ---- */
.photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; width: 100%; max-width: 540px; margin: 0 auto; }
.photo-slot { display: flex; flex-direction: column; gap: .55rem; }
.slot-label { font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); text-align: center; white-space: nowrap; }
.slot-box {
  position: relative; aspect-ratio: 3 / 4; border: 2px dashed var(--line-str); border-radius: var(--r-md);
  background: var(--soft); cursor: pointer; overflow: hidden; display: grid; place-items: center;
  transition: border-color .16s, background .16s;
}
.slot-box:hover, .slot-box.drag { border-color: #0a0a0a; background: var(--soft-2); }
.slot-box.filled { border-style: solid; border-color: var(--line); cursor: default; background: var(--soft-2); }
.slot-box > img { width: 100%; height: 100%; object-fit: cover; }
.slot-box .ph { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: .5rem; width: 100%; padding: .55rem; }
.ph-act {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-family: var(--sans); font-weight: 700; font-size: .82rem; padding: .6rem .4rem;
  border-radius: var(--r-sm); cursor: pointer; transition: border-color .15s, background .15s;
}
.ph-act:hover { border-color: #0a0a0a; background: var(--soft); }
.ph-act svg { color: #0a0a0a; flex: 0 0 auto; }
.slot-box .rm {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 999px;
  background: rgba(10,10,10,.78); color: #fff; border: none; cursor: pointer; display: grid; place-items: center;
  transition: background .15s;
}
.slot-box .rm:hover { background: #0a0a0a; }
.slot-example { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.slot-example img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; }
.slot-example .cap { font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }

/* ---- Live camera capture modal ---- */
.cam-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,10,.82);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
  animation: camIn .2s ease both;
}
@keyframes camIn { from { opacity: 0; } to { opacity: 1; } }
.cam-card {
  width: 100%; max-width: 440px; max-height: calc(100dvh - 32px);
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.cam-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-2); }
.cam-title { font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
.cam-x { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .15s; }
.cam-x:hover { border-color: #0a0a0a; }
.cam-stage { flex: 1 1 auto; min-height: 240px; background: #0a0a0a; position: relative; overflow: hidden; display: grid; place-items: center; }
.cam-video, .cam-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-err { color: #fff; text-align: center; padding: 1.6rem 1.4rem; font-size: .96rem; line-height: 1.55; max-width: 32ch; }
.cam-foot { flex: 0 0 auto; display: flex; gap: .7rem; padding: .9rem 1.1rem; }
.cam-foot .btn { flex: 1; }

/* =====================================================================
   9 · REVIEW + CONSENT
   ===================================================================== */
.summary { border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-align: left; }
.sum-row { display: flex; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.sum-row:last-child { border-bottom: none; }
.sum-k { flex: 0 0 36%; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.sum-v { flex: 1; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.sum-v.empty { color: var(--muted-2); font-style: italic; }
.sum-edit { background: none; border: none; color: var(--ink); font-weight: 800; font-size: .78rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; flex: 0 0 auto; }
.sum-photos { display: flex; gap: .4rem; flex-wrap: wrap; }
.sum-photos img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.consent {
  display: flex; gap: .85rem; align-items: flex-start; margin-top: 1.6rem; text-align: left;
  padding: 1.2rem; background: var(--soft); border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer;
}
.consent .cbox {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-str);
  background: #fff; display: grid; place-items: center; color: #fff; transition: all .16s; margin-top: 1px;
}
.consent.on .cbox { background: #0a0a0a; border-color: #0a0a0a; }
.consent label { font-size: .92rem; color: var(--muted); line-height: 1.55; cursor: pointer; }

/* =====================================================================
   10 · CONFIRMATION
   ===================================================================== */
.done { text-align: center; max-width: 540px; margin: 0 auto; padding-top: 3vh; }
.done .seal {
  width: 88px; height: 88px; border-radius: 999px; background: #0a0a0a; color: #fff;
  display: grid; place-items: center; margin: 0 auto 1.7rem;
  animation: pop .55s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.05; margin: 0 0 .7rem; }
.done p { color: var(--muted); font-size: 1.04rem; line-height: 1.6; margin: 0 auto 1.6rem; max-width: 46ch; }
.done-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; text-align: left; margin-top: 1.6rem; }
.done-card .dc-row { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; color: var(--ink); font-weight: 600; }
.done-card .dc-row svg { color: #0a0a0a; flex: 0 0 auto; }
.done-card .dc-row a { color: inherit; text-decoration: none; }
.done-card .dc-row a:hover { text-decoration: underline; }
.done-restart { margin-top: 1.6rem; }

/* =====================================================================
   11 · RESPONSIVE
   ===================================================================== */
@media (min-width: 720px) {
  .npp-brand small { display: block; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --footer-h: 72px; }
  .opt-grid { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .row-2.keep, .row-3.keep { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .step-hint { font-size: .98rem; margin-bottom: 1.6rem; }
  .cal { max-width: 100%; }
  .photo-slots { gap: .5rem; }
  .slot-box .ph { gap: .4rem; padding: .35rem; }
  .ph-act { font-size: .7rem; padding: .5rem .25rem; gap: .3rem; }
  .btn { padding: 1rem 1.4rem; }
  .btn-lg { padding: 1.05rem 1.4rem; }
  /* Footer: Back stays compact on the left, the primary button fills the rest
     of the row so a long label like "Submit paperwork" can never overflow. */
  .npp-footer { gap: .6rem; }
  .npp-footer .foot-spacer { display: none; }
  .npp-footer .btn { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
}
@media (max-width: 360px) {
  .seg button { padding: .55rem .9rem; font-size: .86rem; }
}

/* Larger screens — let the calendar + key steps breathe a little wider */
@media (min-width: 900px) {
  .cal { max-width: 420px; }
}
