/* ============================================================
   3-D INSURANCE QUOTE REQUEST — design system.
   Built on the Ascension quoting app v2.8.1 stylesheet (same class names).

   Brand (3-D Insurance spec sheet): red #991E00, green #339971,
   gold #CDA349, gray #676869; Gotham (Montserrat stands in on the web).
   Proportions follow the logo: a white field first; brand gray for about a
   third of everything drawn (text, lines, controls); red, gold and green in
   equal shares for the rest. The tri-colour rule (red | gold | green in equal
   thirds) is the signature element, and single-colour accents rotate through
   the three so no one colour takes over a screen.
   Text-safe shades come from the logo's own ribbon shadows (AA on white).
   ============================================================ */

:root {
  --red: #991E00;
  --red-dark: #7f1900;
  --red-soft: #f8ece8;
  --gold: #CDA349;
  --gold-dark: #8c6a1f;          /* gold for text and icons: 5.0:1 on white */
  --gold-soft: #faf4e6;
  --green: #339971;
  --green-dark: #237455;         /* green for buttons and links: 5.7:1 with white */
  --green-deeper: #1d5f46;
  --green-soft: #ebf5f0;
  --gray: #676869;               /* the wordmark gray: secondary text, 5.6:1 */
  --ink: #3f4041;                /* headings */
  --charcoal: #2e2f30;           /* body text */
  --line: #e4e2dd;
  --line-strong: #d3d0c9;
  --surface: #f8f7f4;
  --white: #ffffff;
  --grey-mid: var(--gray);
  --danger: #991E00;
  --warn: #7a5c1a;
  --success: #237455;
  --tri: linear-gradient(90deg, var(--red) 0 33.34%, var(--gold) 33.34% 66.67%, var(--green) 66.67% 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(46, 47, 48, 0.14);
  --shadow-sm: 0 6px 18px rgba(46, 47, 48, 0.07);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body { background: var(--white); }
body.mode-light:not(.is-open) { background: var(--surface); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
img { max-width: 100%; }

/* The signature: red | gold | green in equal thirds along the top edge */
.tri-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 50;
  background: var(--tri); pointer-events: none;
}

/* ------------------------------------------------------------
   App shell
   ------------------------------------------------------------ */
#app { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.shell {
  width: 100%; max-width: 1060px; margin: 0 auto;
  padding: 0 22px; flex: 1; display: flex; flex-direction: column;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0 12px; gap: 14px;
}
.topbar .logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.topbar img { height: 50px; width: auto; display: block; }
@media (max-width: 560px) { .topbar img { height: 38px; } }

.top-actions { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------
   Buttons — the logo's charcoal with the red | gold | green rule along the bottom,
   so the biggest block on any screen is the brand gray (about a third of the logo's
   ink) and the three colours stay in equal thirds. Green marks links and focus.
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border: none; border-radius: 8px; padding: 14px 26px; cursor: pointer;
  transition: background .18s, transform .18s var(--ease), box-shadow .18s, border-color .18s, color .18s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tri); pointer-events: none; }
.btn-primary:hover { background: var(--charcoal); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(46, 47, 48, .24); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-18deg); transition: left .55s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 135%; }

.btn-ghost {
  background: #fff; color: var(--charcoal);
  border: 1.5px solid var(--line-strong); padding: 12.5px 22px;
}
.btn-ghost:hover { border-color: var(--gray); }

.btn-glass {
  color: var(--charcoal); border: 1.5px solid var(--line-strong); background: #fff;
  padding: 10px 18px; font-size: 14px; border-radius: 8px;
}
.btn-glass:hover { border-color: var(--gray); transform: translateY(-1px); }

.btn-link {
  background: none; border: none; color: var(--green-dark); font-weight: 600;
  cursor: pointer; font-size: 14px; padding: 6px 8px; font-family: var(--font-display);
}
.btn-link:hover { color: var(--green-deeper); text-decoration: underline; }
.inline-link { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Opening screens
   ------------------------------------------------------------ */
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 34px 0 56px; position: relative; }
.hero h1 {
  color: var(--ink); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
}
.hero .sub {
  color: var(--gray); font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65;
  max-width: 560px; margin: 16px 0 30px;
}
.btn-hero { padding: 17px 38px; font-size: 16px; }

.hero-trust {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 26px;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); }
.hero-trust svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-trust .ht-red svg { color: var(--red); }
.hero-trust .ht-gold svg { color: var(--gold-dark); }
.hero-trust .ht-green svg { color: var(--green-dark); }

/* The opening screen: the knot turning inside three arcs (red | gold | green, equal lengths), the wordmark and
   tagline under it, a faint still knot behind everything. The arcs draw in first, then the words and the button
   rise in after them. Only the arcs keep moving. */
.hero-emblem { align-items: center; text-align: center; overflow: hidden; padding-top: clamp(12px, 4vh, 40px); padding-top: clamp(12px, 4svh, 40px); }
.hero-emblem > *:not(.he-watermark) { position: relative; }
.he-watermark {
  position: absolute; left: 50%; top: 50%; width: min(900px, 150vw); height: auto;
  transform: translate(-50%, -50%); opacity: .045; pointer-events: none;
}
.he-art { width: min(340px, 76vw, 30vh); width: min(340px, 76vw, 30svh); aspect-ratio: 1 / 1; margin: 0 auto 14px; }   /* shrinks on short screens so Start My Quote stays in view */
.he-word { width: min(420px, 84vw); height: auto; display: block; margin: 0 auto clamp(16px, 3vh, 30px); margin-bottom: clamp(16px, 3svh, 30px); animation: rise .8s var(--ease) .9s backwards; }
/* fill "backwards": held hidden until each delay ends, then released, so the button's hover lift and press still work */
.hero-emblem h1 { animation: rise .8s var(--ease) 1.05s backwards; }
.hero-emblem .sub { margin-left: auto; margin-right: auto; animation: rise .8s var(--ease) 1.15s backwards; }
.hero-emblem .btn-hero { align-self: center; animation: rise .8s var(--ease) 1.25s backwards; }
.hero-emblem .hero-trust { justify-content: center; animation: rise .8s var(--ease) 1.35s backwards; }

.hs-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-rings .ring {
  fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 62 38;
  transform-box: fill-box; transform-origin: 50% 50%;   /* each circle turns about its own centre */
  animation: ringIn 1.6s var(--ease) both, ringTurn 70s linear 1.6s infinite;
}
.hs-rings .ring-red { stroke: var(--red); }
.hs-rings .ring-gold { stroke: var(--gold); animation-delay: .15s, 1.75s; animation-direction: normal, reverse; animation-duration: 1.6s, 90s; }
.hs-rings .ring-green { stroke: var(--green); animation-delay: .3s, 1.9s; animation-duration: 1.6s, 110s; }
@keyframes ringIn { from { stroke-dashoffset: 100; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes ringTurn { to { transform: rotate(360deg); } }
.hs-icon { position: absolute; left: 50%; top: 50%; width: 56%; height: auto; transform: translate(-50%, -50%); animation: iconIn .9s var(--ease) .2s both; }
@keyframes iconIn { from { opacity: 0; transform: translate(-50%, -44%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%); } }   /* keeps the centring translate */

/* Success: the same mark, its three arcs closing into full circles (the request is complete) */
.success-emblem { position: relative; width: 124px; aspect-ratio: 1 / 1; margin: 0 auto 18px; }
.success-emblem .hs-rings .ring { stroke-width: 7; stroke-dasharray: 100 0; animation: ringClose 1.5s var(--ease) .2s both; }
.success-emblem .hs-rings .ring-gold { animation-delay: .35s; }
.success-emblem .hs-rings .ring-green { animation-delay: .5s; }
@keyframes ringClose { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 100 0; } }

/* Choice screen (Personal or Commercial) */
.choice-screen {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 34px 0 60px; text-align: center;
}
.eyebrow {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; font-size: .72rem;
  color: var(--gray);
}
.choice-screen h1 {
  color: var(--ink); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  margin: 14px 0 10px;
}
.choice-screen .sub {
  color: var(--gray); font-size: clamp(1rem, 1.6vw, 1.1rem);
  max-width: 560px; margin: 0 auto 38px; line-height: 1.6;
}
.choice-grid {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; width: 100%;
}
.choice-card {
  flex: 1 1 260px; max-width: 360px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 26px 26px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
  color: var(--ink); font-family: inherit; position: relative; overflow: hidden;
  --accent: var(--green-dark); --accent-soft: var(--green-soft); --accent-bar: var(--green);
}
.choice-card.lob-personal { --accent: var(--red); --accent-soft: var(--red-soft); --accent-bar: var(--red); }
.choice-card.lob-commercial { --accent: var(--gold-dark); --accent-soft: var(--gold-soft); --accent-bar: var(--gold); }
.choice-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--accent-bar);
}
.choice-card:hover, .choice-card:focus-visible {
  transform: translateY(-5px); border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(46, 47, 48, .12); outline: none;
}
.choice-card:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }
.choice-card .chip {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.choice-card .chip svg { width: 24px; height: 24px; }
.choice-card .kicker {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.choice-card h3 { font-size: 1.18rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.choice-card p { font-size: .9rem; line-height: 1.55; color: var(--gray); }
.choice-card .go {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--green-dark);
}
.choice-card .go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.choice-card:hover .go svg { transform: translateX(4px); }

.choice-back { margin-top: 34px; }

/* ------------------------------------------------------------
   Wizard chrome — light surface
   ------------------------------------------------------------ */
.wizard { flex: 1; display: flex; flex-direction: column; padding-bottom: 70px; }
.wizard-head { padding: 8px 0 22px; }
.step-eyebrow {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .68rem; color: var(--gray);
  display: flex; align-items: center; gap: 10px;
}
.step-eyebrow .accent-bar { width: 36px; height: 4px; background: var(--tri); border-radius: 2px; }

/* Progress: the tri-colour rule fills in as the client moves through the steps */
.ascent-progress { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.tri-track {
  flex: 1; position: relative; height: 8px; border-radius: 99px; overflow: hidden;
  background: var(--tri);
}
.tri-track .tri-rest {
  position: absolute; top: 0; right: 0; bottom: 0; background: #e8e5e0;
  transition: width .7s var(--ease);
}
.ascent-count {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  color: var(--ink); white-space: nowrap;
}

/* Step panel */
.panel { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.panel > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.panel > .lede { color: var(--gray); font-size: .98rem; line-height: 1.6; margin-bottom: 26px; max-width: 640px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px; margin-bottom: 18px;
}
.card h3 {
  font-size: 1rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 9px; margin-bottom: 4px;
}
.card h3 svg { width: 18px; height: 18px; color: var(--green-dark); flex: none; }
/* card icons take turns: red, gold, green */
.card:nth-of-type(3n+1) h3 svg { color: var(--red); }
.card:nth-of-type(3n+2) h3 svg { color: var(--gold-dark); }
.card:nth-of-type(3n) h3 svg { color: var(--green-dark); }
.card .card-sub { font-size: .85rem; color: var(--gray); margin-bottom: 18px; line-height: 1.5; }

/* Selectable big cards (coverage type, home type) — gold marks a choice */
.select-grid { display: grid; gap: 14px; }
.select-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.select-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .select-grid.cols-3, .select-grid.cols-2 { grid-template-columns: 1fr; } }
.select-card {
  position: relative; text-align: left; cursor: pointer; font-family: inherit;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 20px 18px;
  transition: transform .28s var(--ease), border-color .2s, box-shadow .28s, background .2s;
  overflow: hidden;
}
.select-card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 4px; width: 0;
  background: var(--tri); transition: width .45s var(--ease);
}
.select-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 14px 34px rgba(46, 47, 48, .09); }
.select-card:hover::before { width: 100%; }
.select-card:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.select-card.selected { border-color: var(--gold-dark); background: var(--gold-soft); box-shadow: 0 8px 24px rgba(205, 163, 73, .2); }
.select-card.selected::before { width: 100%; }
.select-card .chip {
  width: 42px; height: 42px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
  background: var(--green-soft); color: var(--green-dark);
}
.select-card:nth-child(3n+1) .chip { background: var(--red-soft); color: var(--red); }
.select-card:nth-child(3n+2) .chip { background: var(--gold-soft); color: var(--gold-dark); }
.select-card .chip svg { width: 22px; height: 22px; }
.select-card h4 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.select-card p { font-size: .82rem; color: var(--gray); line-height: 1.5; }
.select-card .badge,
.choice-card .badge {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--green-dark); color: #fff; border-radius: 99px; padding: 3px 9px;
}

/* ------------------------------------------------------------
   Form fields
   ------------------------------------------------------------ */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; color: var(--ink); margin-bottom: 7px;
}
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  /* 16px minimum stops iOS Safari from auto-zooming on focus */
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 16px;
  border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--charcoal);
  transition: border-color .15s, box-shadow .15s;
}
/* Autofill pre-filled highlight: sits ABOVE the :focus and .has-error rules, which share its specificity
   (see the main app's stylesheet, review items 28, 37 and 40). */
.field input.af-pre, .field select.af-pre, .field textarea.af-pre { background: var(--gold-soft); border-color: #e3cf9f; }
.pill-row.af-pre .pill.selected { background: var(--gold-soft); border-color: var(--gold-dark); color: var(--gold-dark); box-shadow: inset 0 0 0 1px var(--gold-dark); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(35, 116, 85, .16);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(153, 30, 0, .1);
}
.field .err-msg { color: var(--danger); font-size: .75rem; margin-top: 5px; font-weight: 600; }
.field .hint { color: var(--gray); font-size: .78rem; margin-top: 5px; line-height: 1.45; }
.field .warn-msg { color: var(--warn); font-size: .75rem; margin-top: 5px; font-weight: 600; line-height: 1.45; }
.field .warn-msg:empty { display: none; }
.field textarea { resize: vertical; min-height: 90px; }

/* Checkbox / toggle rows */
.check-row {
  display: flex; align-items: flex-start; gap: 11px; cursor: pointer;
  font-size: .92rem; color: var(--charcoal); line-height: 1.5;
  -webkit-user-select: none; user-select: none;
}
.check-row input {
  width: 19px; height: 19px; margin-top: 1px; accent-color: var(--green-dark); cursor: pointer; flex: none;
}
.check-row .check-title { font-weight: 600; color: var(--ink); display: block; }
.check-row .check-sub { font-size: .82rem; color: var(--gray); display: block; margin-top: 2px; }

/* Pill toggles (yes/no, contact method) — gold marks a choice */
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  padding: 10px 20px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink);
  transition: all .18s var(--ease); text-transform: capitalize;
}
.pill:hover { border-color: var(--gold); }
.pill:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.pill.selected { border: 2px solid var(--gold-dark); padding: 9.5px 19.5px; background: var(--gold); color: var(--charcoal); box-shadow: 0 6px 16px rgba(140, 106, 31, .28); }

/* Repeating items (drivers, vehicles, losses) — numbers take turns red, gold, green */
.repeat-item {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 20px;
  margin-bottom: 14px; position: relative; background: #fcfbf9;
}
.repeat-item .repeat-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.repeat-item .repeat-title {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.repeat-item .repeat-title .num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--green-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; letter-spacing: 0;
}
.repeat-item:nth-of-type(3n+1) .repeat-title .num { background: var(--red); }
.repeat-item:nth-of-type(3n+2) .repeat-title .num { background: var(--gold); color: var(--charcoal); }
.btn-remove {
  background: none; border: none; color: var(--gray); font-size: .8rem;
  font-family: var(--font-display); font-weight: 600; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: color .15s, background .15s;
}
.btn-remove:hover { color: var(--danger); background: rgba(153, 30, 0, .07); }
.btn-add {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green-dark);
  border: 1.5px dashed rgba(35, 116, 85, .45); border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  padding: 12px 20px; cursor: pointer; width: 100%; justify-content: center;
  transition: background .18s, border-color .18s;
}
.btn-add:hover { background: #dcefe6; border-color: var(--green-dark); }
.btn-add svg { width: 16px; height: 16px; }

/* Upload zones */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .upload-grid { grid-template-columns: 1fr; } }
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 20px 16px;
  text-align: center; cursor: pointer; background: #fcfbf9;
  transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); background: var(--gold-soft); }
.dropzone:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.dropzone .dz-icon { color: var(--gold-dark); margin-bottom: 8px; }
.dropzone .dz-icon svg { width: 22px; height: 22px; }
.dropzone .dz-label { font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--ink); }
.dropzone .dz-sub { font-size: .74rem; color: var(--gray); margin-top: 3px; }
.dropzone.has-file { border-style: solid; border-color: var(--success); background: var(--green-soft); }
.dropzone.has-file .dz-icon { color: var(--success); }
.dropzone .dz-file { font-size: .8rem; color: var(--ink); font-weight: 600; word-break: break-all; margin-top: 4px; }
.dropzone .dz-clear { color: var(--danger); font-size: .74rem; font-weight: 600; margin-top: 6px; display: inline-block; }

.file-row {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); background: #fcfbf9; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 10px; font-size: .88rem;
}
.file-row svg { width: 16px; height: 16px; color: var(--green-dark); flex: none; }
.file-row .fr-name { font-weight: 600; color: var(--ink); word-break: break-all; flex: 1; }
.file-row .fr-size { color: var(--gray); font-size: .78rem; white-space: nowrap; }

/* Wizard footer nav */
.wizard-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 30px;
}
.wizard-nav .spacer { flex: 1; }

/* Banners */
.banner {
  border-radius: 12px; padding: 14px 18px; margin-bottom: 18px;
  font-size: .9rem; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start;
}
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner-error { background: var(--red-soft); border: 1.5px solid rgba(153, 30, 0, .28); color: var(--red-dark); }
.banner-info { background: var(--green-soft); border: 1.5px solid rgba(35, 116, 85, .25); color: var(--green-deeper); }

/* Resume-draft banner */
.draft-bar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 13px 18px; box-shadow: var(--shadow); font-size: .88rem;
  width: max-content; max-width: min(calc(100vw - 28px), 560px);
  animation: barRise .5s var(--ease) both;   /* its own keyframes keep the centring translateX(-50%) */
}
@keyframes barRise { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.draft-bar::before {
  content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--tri);
}
.draft-bar > div { flex: 1 1 200px; line-height: 1.5; }
.draft-bar .btn { padding: 8px 16px; font-size: .82rem; }
.draft-bar .btn-primary { background: #fff; color: var(--ink); }
.draft-bar .btn-primary:hover { background: #f1efeb; }
.draft-bar .btn:focus-visible, .draft-bar .btn-link:focus-visible { outline-color: #fff; }
.draft-bar .btn-link { color: #e9d6a8; }

/* ------------------------------------------------------------
   Success screen
   ------------------------------------------------------------ */
.success-screen {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px 0 80px;
}
.success-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 46px 40px 40px; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 560px; width: 100%; animation: rise .6s var(--ease) both;
}
.success-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--tri); }
.success-card h1 { font-size: 1.7rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.success-card .ref {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  background: var(--ink); color: #fff; border-radius: 10px;
  padding: 10px 22px; letter-spacing: .06em; margin: 14px 0 6px; font-size: 1.02rem;
}
.success-card .sub { color: var(--gray); font-size: .93rem; line-height: 1.6; }
.success-card .ref-note { font-size: .8rem; }
.next-steps { text-align: left; margin: 26px 0 8px; display: grid; gap: 12px; }
.next-steps .ns {
  display: flex; gap: 13px; align-items: flex-start; font-size: .89rem; color: var(--charcoal); line-height: 1.5;
}
.next-steps .ns .n {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--green-dark); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center;
}
.next-steps .ns:nth-child(1) .n { background: var(--red); }
.next-steps .ns:nth-child(2) .n { background: var(--gold); color: var(--charcoal); }
.next-steps .ns b { color: var(--ink); }

/* ------------------------------------------------------------
   Footer — agency first, "Powered by Ascension" on its own line
   ------------------------------------------------------------ */
.site-footer {
  text-align: center; padding: 22px 22px 28px; font-size: .78rem;
  color: var(--gray); position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.site-footer a { color: var(--green-dark); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-line { display: block; line-height: 1.6; max-width: 620px; }
.site-footer .foot-privacy { font-size: .74rem; }
.site-footer .powered { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; }
.site-footer .powered img { display: inline-block; opacity: .65; }
.site-footer .asc-i { height: 13px; width: auto; }
.site-footer .asc-w { height: 9px; width: auto; }
.site-footer .ver { opacity: .7; font-variant-numeric: tabular-nums; font-size: .7rem; }

/* Reveal-on-scroll for long commercial page */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Submitting spinner */
.spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Crash fallback */
.fallback {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.fallback .card { max-width: 460px; padding: 40px 32px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .success-card, .draft-bar { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .choice-card, .select-card, .btn { transition: none; }
  .btn-primary::after { display: none; }
  .hs-rings .ring, .success-emblem .hs-rings .ring { animation: none; }
  .hs-icon { animation: none; }
  .he-word, .hero-emblem h1, .hero-emblem .sub, .hero-emblem .btn-hero, .hero-emblem .hero-trust { animation: none; }
  .tri-track .tri-rest { transition: none; }
}

/* ==== Autofill (Beta; off in this build, styled in case it is switched on) ==== */
.af-card { border: 1px dashed var(--gold); background: #fffdf8; }
.af-dropzone {
  margin-top: 10px; border: 2px dashed #e3cf9f; border-radius: 10px; padding: 22px;
  text-align: center; cursor: pointer; background: #fff; transition: border-color .15s;
}
.af-dropzone:hover { border-color: var(--gold-dark); }
.af-files { margin: 10px 0; }
.af-error { color: var(--danger); margin-top: 10px; font-size: 14px; }
.af-card .dz-file { font-size: .8rem; color: var(--ink); font-weight: 600; word-break: break-all; margin-top: 4px; }
.af-card .dz-clear { color: var(--danger); font-size: .74rem; font-weight: 600; margin-top: 6px; display: inline-block; cursor: pointer; }
.af-card .dz-label { font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--ink); }
.af-card .dz-sub { font-size: .74rem; color: var(--gray); margin-top: 3px; }
.af-notice { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--gold-soft); border: 1px solid #e3cf9f; font-size: 14px; }
#af-run { margin-top: 10px; }
.af-done { border-style: solid; border-color: #bfdccf; background: var(--green-soft); }
.af-beta { display:inline-block; margin-left:8px; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; vertical-align:middle; background:#fff3cd; color:#7a5a00; border:1px solid #f0d27a; }
