/* Garage claim forms – shared styles. RTL first, mobile first. */

@font-face { font-family: 'Plex'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plex-hebrew-400.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plex-hebrew-500.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plex-hebrew-600.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plex-hebrew-700.woff2') format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plex-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plex-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/plex-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plex-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* The ink on the form preview uses the same font the PDF is stamped with. */
@font-face { font-family: 'FormInk'; font-display: block; src: url('../fonts/Heebo-Regular.ttf') format('truetype'); }

:root {
  --paper: #ECEFF3;
  --sheet: #FFFFFF;
  --ink: #0D2478;
  --ink-strong: #091A5A;
  --ink-wash: #E8ECF8;
  --asphalt: #1A2230;
  --muted: #586374;
  --line: #D4DAE2;
  --line-strong: #A9B3C1;
  --plate: #FFCB05;
  --plate-strip: #1C3F9E;
  --ok: #1B7A4C;
  --err: #B42318;
  --warn: #7A5300;
  --warn-bg: #FFF4CC;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --shadow-paper: 0 1px 2px rgba(26, 34, 48, .08), 0 14px 34px -20px rgba(26, 34, 48, .45);
  --focus: 0 0 0 2px var(--sheet), 0 0 0 4px var(--ink), 0 0 0 8px rgba(255, 203, 5, .55);
  --bar-h: 72px;

  color-scheme: light;
  font-family: 'Plex', 'Heebo', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--asphalt);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100dvh; background: var(--paper); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-m);
  border: 1px solid transparent; background: none; cursor: pointer;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .08s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-strong); }
.btn-primary[disabled] { background: var(--line-strong); cursor: not-allowed; }
.btn-quiet { color: var(--ink); border-color: var(--line); background: var(--sheet); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-text { color: var(--ink); padding: 0 12px; }
.btn-text:hover { background: var(--ink-wash); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------ site header */
.site-header {
  background: var(--sheet); border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.garage-name { font-weight: 700; font-size: 18px; color: var(--asphalt); text-decoration: none; }
.garage-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; direction: ltr; }
.garage-phone svg { width: 18px; height: 18px; }

/* The demo link (/g/demo): a plate-yellow strip above the page, lined up with the header under it */
.demo-banner { background: var(--plate); color: var(--asphalt); font-size: 15px; line-height: 1.45; }
.demo-banner p { max-width: 1080px; margin: 0 auto; padding: 10px 20px; }
.demo-banner.for-form p { max-width: 1440px; padding: 8px 16px; }
.demo-banner strong { font-weight: 700; }

/* ------------------------------------------------------------ landing */
.landing { max-width: 1080px; margin: 0 auto; padding: 36px 20px 64px; }
.landing-intro { max-width: 640px; margin-bottom: 28px; }
.landing-intro h1 { font-size: clamp(30px, 6.5vw, 46px); margin-bottom: 12px; }
.landing-intro p { font-size: 18px; color: var(--muted); max-width: 34em; }

.insurers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .insurers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 960px) { .insurers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.insurer {
  display: flex; flex-direction: column; align-items: stretch; height: 100%;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-l);
  text-decoration: none; color: var(--asphalt); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.insurer:hover { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.insurer:active { transform: scale(.985); }
.insurer .logo { height: 96px; display: grid; place-items: center; padding: 16px 18px 8px; }
.insurer .logo img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
.insurer .logo .wordmark { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.insurer .name { padding: 4px 14px 14px; text-align: center; font-weight: 600; font-size: 15px; }

.more-forms { margin-top: 40px; }
.more-forms h2 { font-size: 20px; margin-bottom: 12px; }
.form-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 16px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m);
  text-decoration: none; color: var(--asphalt);
}
.form-row:hover { border-color: var(--ink); }
.form-row img { height: 40px; width: 96px; object-fit: contain; flex: none; }
.form-row strong { display: block; font-weight: 600; }
.form-row span { display: block; color: var(--muted); font-size: 14px; }
.form-row + .form-row { margin-top: 10px; }

.how { margin-top: 48px; display: grid; gap: 18px; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { display: flex; gap: 14px; align-items: flex-start; counter-increment: step; }
.how li::before {
  content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--ink); background: var(--plate);
}
.how strong { display: block; font-weight: 600; }
.how span { color: var(--muted); font-size: 15px; }

.site-footer { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer p + p { margin-top: 4px; }

.loading-note, .empty-note { color: var(--muted); padding: 24px 0; }
.page-loading { padding: 48px 20px; text-align: center; }

/* ------------------------------------------------------------ form page shell */
.form-top {
  position: sticky; top: 0; z-index: 20; background: var(--sheet); border-bottom: 1px solid var(--line);
}
.form-top .inner { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; max-width: 1440px; margin: 0 auto; }
.form-top .home { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--asphalt); flex: none; }
.form-top .home:hover { background: var(--ink-wash); }
.form-top .home svg { width: 22px; height: 22px; }
.form-top .brand { height: 30px; width: auto; max-width: 92px; object-fit: contain; flex: none; }
.form-top .brand-text { display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--ink); }
.form-top .titles { min-width: 0; flex: 1; }
.form-top .titles strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-top .titles span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); cursor: pointer; font-weight: 600; font-size: 14px; }
.steps-toggle:hover { border-color: var(--ink); }
.steps-toggle svg { width: 16px; height: 16px; }
.progress { height: 3px; background: var(--line); }
.progress > div { height: 100%; width: 0; background: var(--ink); transition: width .25s ease; }

.form-layout { max-width: 1440px; margin: 0 auto; }
@media (min-width: 1100px) {
  .form-layout { display: grid; grid-template-columns: minmax(440px, 560px) minmax(0, 1fr); gap: 32px; padding: 24px 24px 0; align-items: start; }
}

.wizard { padding: 24px 16px calc(var(--bar-h) + 40px); max-width: 640px; margin: 0 auto; }
@media (min-width: 1100px) { .wizard { padding: 8px 0 48px; margin: 0; } }

.step-head { margin-bottom: 20px; }
.step-count { font-size: 14px; color: var(--muted); font-weight: 500; }
.step-head h2 { font-size: 26px; margin-top: 2px; }
.step-head p { margin-top: 8px; color: var(--muted); }
.step-head h2:focus { outline: none; box-shadow: none; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.field { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 480px) { .field.half { grid-column: span 1; } }

.field > label:not(.check), .field > .label, .field legend {
  display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; padding: 0;
}
.req { color: var(--ink); margin-inline-start: 2px; }
.hint { display: block; font-size: 13px; color: var(--muted); margin: -2px 0 6px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--sheet); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: var(--asphalt); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 203, 5, .6); }
.input[dir="ltr"] { text-align: right; }
.input[dir="ltr"]::placeholder { text-align: right; }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.5; }
.input[aria-invalid="true"] { border-color: var(--err); }
.msg { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; margin-top: 6px; }
.msg.error { color: var(--err); font-weight: 500; }
.msg.warning { color: var(--warn); }
.counter { font-size: 12px; color: var(--muted); text-align: left; margin-top: 4px; }

/* Make / model suggestions under the input */
.suggest-wrap { position: relative; }
.suggest {
  position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  max-height: 288px; overflow-y: auto; background: var(--sheet); border: 1px solid var(--line-strong);
  border-radius: 10px; box-shadow: var(--shadow-paper);
}
.suggest li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 10px 12px; border-radius: 8px; cursor: pointer;
}
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--ink-wash); }
.suggest-main { font-weight: 500; }
.suggest-hint { color: var(--muted); font-size: 14px; }

/* License-plate input: yellow plate with the blue IL strip */
.plate { position: relative; display: flex; direction: ltr; max-width: 300px; border-radius: 10px; border: 2px solid var(--asphalt); overflow: hidden; background: var(--plate); }
.plate::before {
  content: 'IL'; display: grid; place-items: end center; width: 34px; flex: none; padding-bottom: 6px;
  background: var(--plate-strip); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.plate input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; text-align: center;
  font-size: 26px; font-weight: 700; letter-spacing: .08em; color: #000; font-variant-numeric: tabular-nums;
}
.plate input::placeholder { color: rgba(0, 0, 0, .28); }
.plate input:focus { outline: none; }
.plate:focus-within { box-shadow: var(--focus); }
.plate.invalid { border-color: var(--err); }

/* Choice pills (radio / multi) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--sheet);
  font-weight: 500; cursor: pointer; transition: background-color .12s, border-color .12s, color .12s;
}
.choice:hover span { border-color: var(--asphalt); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.choice.multi input:checked + span::before { content: ''; width: 14px; height: 8px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -2px); }
.choices.stacked { flex-direction: column; }
.choices.stacked .choice span { border-radius: var(--r-m); width: 100%; justify-content: flex-start; gap: 12px; padding: 10px 14px; }
.choices.stacked .choice span::before {
  content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--line-strong); background: var(--sheet); transform: none;
}
.choices.stacked .choice input:checked + span::before { border: 5px solid var(--sheet); background: var(--ink); }
.choices.stacked .choice.multi span::before { border-radius: 5px; }
.choices.stacked .choice.multi input:checked + span::before {
  content: '✓'; display: grid; place-items: center; width: 20px; height: 20px; transform: none;
  border: 2px solid var(--sheet); background: var(--sheet); color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1;
}

/* Single checkbox row */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px 12px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--sheet); }
.check:hover { border-color: var(--line-strong); }
.check input { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--sheet); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ''; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible { box-shadow: var(--focus); }
.check .text { padding-top: 1px; font-weight: 500; }

/* "Same as" switch */
.same-as { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-bottom: 22px; border-radius: var(--r-m); background: var(--ink-wash); cursor: pointer; font-weight: 600; }
.switch { appearance: none; flex: none; width: 52px; height: 30px; margin: 0; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background-color .15s; }
.switch::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .15s; }
.switch:checked { background: var(--ink); }
.switch:checked::after { inset-inline-start: 25px; }
.switch:focus-visible { box-shadow: var(--focus); }
.copied-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin-top: -8px; }

.note { grid-column: 1 / -1; padding: 12px 14px; border-inline-start: 3px solid var(--ink); background: var(--sheet); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: 15px; color: var(--asphalt); }

/* Drawing on a crop of the real form */
.draw-wrap { border: 1px solid var(--line-strong); border-radius: var(--r-m); overflow: hidden; background: var(--sheet); }
.draw-area { position: relative; width: 100%; background-repeat: no-repeat; touch-action: none; }
.draw-area canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.draw-tools { display: flex; gap: 4px; justify-content: flex-end; padding: 6px; border-top: 1px solid var(--line); background: #F7F8FA; }
.draw-tools .btn { min-height: 38px; padding: 0 12px; font-size: 14px; }

/* Signature */
.sign-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; }
.sign-card + .sign-card { margin-top: 16px; }
.sign-card h3 { font-size: 18px; margin-bottom: 4px; }
.sign-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.sign-pad { position: relative; height: 210px; border-radius: var(--r-m); background: #FBFCFE; border: 1px dashed var(--line-strong); touch-action: none; overflow: hidden; }
.sign-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sign-pad .baseline { position: absolute; inset-inline: 22px; bottom: 52px; border-bottom: 1.5px solid var(--line-strong); pointer-events: none; }
.sign-pad .baseline::before { content: '×'; position: absolute; inset-inline-start: -2px; bottom: 2px; font-size: 22px; line-height: 1; color: var(--muted); }
.sign-pad .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; font-size: 17px; }
.sign-pad.signed .placeholder { display: none; }
.sign-pad.invalid { border-color: var(--err); border-style: solid; }
.sign-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.sign-card .field { margin-bottom: 12px; }

/* Attachments */
.doc-required { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.doc-required li {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-m);
  background: var(--warn-bg); color: var(--warn); font-weight: 500;
}
.doc-required li svg { width: 18px; height: 18px; flex: none; }
.doc-required li .state { margin-inline-start: auto; font-size: 14px; }
.doc-required li.done { background: #E3F4EA; color: var(--ok); }
.doc-required.invalid li:not(.done) { background: #FDE8E6; color: var(--err); outline: 1px solid var(--err); }
.doc-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.doc-kinds .btn { min-height: 44px; padding: 0 16px; font-weight: 500; border-radius: 999px; }
.doc-kinds .btn svg { width: 18px; height: 18px; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-m); }
.file .thumb { width: 56px; height: 56px; border-radius: var(--r-s); object-fit: cover; background: var(--paper); flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.file .meta { flex: 1; min-width: 0; }
.file .meta strong { display: block; font-weight: 600; }
.file .meta span { display: block; font-size: 13px; color: var(--muted); }
.file .remove { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.file .remove:hover { background: var(--paper); color: var(--err); }
.file .remove svg { width: 20px; height: 20px; }
.budget { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Review */
.review-missing { padding: 14px 16px; border-radius: var(--r-m); background: #FDECEA; color: var(--err); margin-bottom: 16px; }
.review-missing ul { margin: 6px 0 0; padding-inline-start: 20px; }
.review-missing button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 600; }
.review-pages { display: grid; gap: 16px; margin-bottom: 20px; }
.confirm { margin: 20px 0 14px; }
.send-error { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-m); background: #FDECEA; color: var(--err); font-weight: 500; }

/* Step navigation bar */
.step-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 15; background: var(--sheet); border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.step-bar .inner { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; }
.step-bar .grow { flex: 1; }
.step-bar .btn-primary { min-width: 132px; }
.preview-btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 56px; min-height: 48px; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 600; border-radius: var(--r-m); }
.preview-btn svg { width: 22px; height: 22px; }
.preview-btn:hover { background: var(--ink-wash); }
@media (min-width: 1100px) {
  .step-bar { position: static; border: 0; padding: 24px 0 0; background: none; }
  .step-bar .inner { max-width: none; }
  .preview-btn { display: none; }
}

/* ------------------------------------------------------------ form preview (the real PDF pages) */
.preview-pane { display: none; }
@media (min-width: 1100px) {
  .preview-pane {
    display: block; position: sticky; top: 76px; height: calc(100dvh - 92px); overflow: auto;
    padding: 0 6px 24px; scroll-behavior: smooth; overscroll-behavior: contain;
  }
}
.pane-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; font-size: 14px; color: var(--muted); font-weight: 500; }
.sheet-page { position: relative; background: var(--sheet); box-shadow: var(--shadow-paper); border-radius: 3px; overflow: hidden; }
.sheet-page + .sheet-page { margin-top: 18px; }
.sheet-page img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.sheet-page svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet-page .ink-text { font-family: 'FormInk', 'Heebo', sans-serif; fill: var(--ink); unicode-bidi: bidi-override; direction: ltr; white-space: pre; }
.sheet-page .hl { fill: rgba(255, 203, 5, .38); stroke: var(--ink); stroke-width: .9; }
.sheet-page .hit { fill: transparent; cursor: pointer; }
.sheet-page .hit:hover { fill: rgba(13, 36, 120, .08); }
.page-label { position: absolute; top: 8px; inset-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(26, 34, 48, .72); color: #fff; font-size: 12px; }

/* Mobile full-screen preview sheet */
.viewer { position: fixed; inset: 0; z-index: 40; background: #2A3240; display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--sheet); }
.viewer-bar strong { flex: 1; font-size: 15px; }
.viewer-bar .icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--asphalt); }
.viewer-bar .icon-btn:hover { background: var(--ink-wash); }
.viewer-bar .icon-btn svg { width: 22px; height: 22px; }
.viewer-bar .zoom { min-width: 48px; text-align: center; font-size: 14px; color: var(--muted); }
.viewer-scroll { flex: 1; overflow: auto; padding: 14px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.viewer-pages { margin: 0 auto; }

/* Steps menu */
.menu-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(26, 34, 48, .45); }
.steps-menu {
  position: fixed; z-index: 31; inset-inline: 0; bottom: 0; max-height: 78dvh; overflow: auto;
  background: var(--sheet); border-radius: var(--r-l) var(--r-l) 0 0; padding: 8px 8px calc(16px + env(safe-area-inset-bottom));
}
@media (min-width: 720px) { .steps-menu { inset-inline: auto 24px; top: 70px; bottom: auto; width: 360px; border-radius: var(--r-l); box-shadow: var(--shadow-paper); } }
.steps-menu h2 { font-size: 16px; padding: 12px 12px 8px; }
.steps-menu ol { list-style: none; margin: 0; padding: 0; }
.steps-menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; background: none; border-radius: var(--r-m); cursor: pointer; text-align: start; font-weight: 500; }
.steps-menu button:hover { background: var(--ink-wash); }
.steps-menu .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1.5px solid var(--line-strong); color: var(--muted); }
.steps-menu .done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps-menu .current { background: var(--ink-wash); }
.steps-menu .current .dot { border-color: var(--ink); color: var(--ink); }

/* Done / errors */
.done-view { max-width: 560px; margin: 0 auto; padding: 56px 20px; text-align: center; }
.done-mark { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.done-mark svg { width: 44px; height: 44px; color: #fff; }
.done-view h1 { font-size: 30px; margin-bottom: 10px; }
.done-view p { color: var(--muted); font-size: 17px; }
.done-view .actions { display: grid; gap: 10px; margin-top: 28px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; z-index: 50; inset-inline: 16px; bottom: calc(var(--bar-h) + 20px); margin: 0 auto; max-width: 420px; padding: 12px 16px; border-radius: var(--r-m); background: var(--asphalt); color: #fff; font-weight: 500; box-shadow: var(--shadow-paper); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ the privacy line on the send step (for the garage) */
.privacy-note { margin: -4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.privacy-note a { color: var(--ink); font-weight: 500; text-underline-offset: 2px; }
