/* ============================================================
   GARDEN CITY INSURANCE AGENCY QUOTE REQUEST: design system.
   Built on the Ascension quoting app (client-only white label).
   Palette follows the logo's own proportions: cream is the field
   (about 89% of the logo), forest green and petal pink share the
   rest about equally (about 5% each), a deep rose outlines.
   Cormorant Garamond display serif (echoes "GARDEN CITY"),
   Montserrat for labels and buttons (echoes "INSURANCE AGENCY"),
   Inter for body copy and form fields.
   ============================================================ */

:root {
  /* the field */
  --cream: #f4ecdf;
  --cream-deep: #e8dbc7;
  --paper: #fbf6ee;
  --card: #fffdf8;
  /* forest green (the wordmark and leaves) */
  --brand: #334f35;
  --brand-dark: #263d28;
  --brand-darker: #1b2d1d;
  --brand-light: #5f7d60;
  /* petal pink (the bloom) and its outline */
  --rose: #d99e97;
  --rose-deep: #9a5550;
  --blush: #f6e3de;
  /* neutrals, warmed to sit on cream */
  --ink: #263d28;
  --charcoal: #2b2a26;
  --grey-mid: #6b6358;
  --line: #e6dccb;
  --line-strong: #d8cbb5;
  --danger: #b03a2e;
  --warn: #8a5a00;
  --success: #3f6b43;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(58, 44, 28, 0.14);
  --shadow-sm: 0 6px 18px rgba(58, 44, 28, 0.07);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --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);
  -webkit-font-smoothing: antialiased;
}
/* The canvas color sits on html only: a body background would paint over the fixed paper layers below. */
html { background: var(--cream); }
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 page surface: warm cream paper, a little warmer at the
   edges, like the logo's card. Forms sit on a lighter paper.
   ------------------------------------------------------------ */
.garden-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 38%, #fbf6ee 0%, rgba(251, 246, 238, 0) 62%),
    linear-gradient(180deg, #f6efe4 0%, #efe4d2 100%);
  transition: opacity .6s var(--ease);
}
.garden-veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease);
  background: linear-gradient(180deg, #f6efe4 0%, var(--paper) 260px, var(--paper) 100%);
}
body.mode-light .garden-veil { opacity: 1; }

/* ------------------------------------------------------------
   App shell
   ------------------------------------------------------------ */
/* overflow-x: clip keeps hero A's corner art from scrolling the page sideways (clip makes no scroll container) */
#app { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip; }
.shell {
  width: 100%; max-width: 1060px; margin: 0 auto;
  padding: 0 22px; flex: 1; display: flex; flex-direction: column;
}

/* Top bar: the horizontal lockup on every screen (light surfaces only) */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 10px; 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: 40px; } }
.topbar.is-bare .logo-link { visibility: hidden; }

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

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.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: 999px; padding: 14px 28px; 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 svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(51, 79, 53, .28); }
.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%; }
/* A solid ring that clears 3:1 against cream (a translucent pink one did not) */
.btn:focus-visible, .btn-link:focus-visible, .pill:focus-visible, .select-card:focus-visible, .choice-card:focus-visible,
.logo-link:focus-visible, .btn-add:focus-visible, .btn-remove:focus-visible,
.dropzone:focus-visible, .check-row input:focus-visible, .af-dropzone:focus-visible {
  outline: 3px solid var(--rose-deep); outline-offset: 2px;
}

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

/* Cancel in the top bar (the class name is the upstream app's) */
.btn-glass {
  color: var(--brand); border: 1.5px solid var(--line-strong);
  background: rgba(255, 253, 248, .75);
  padding: 9px 18px; font-size: 14px;
}
.btn-glass:hover { border-color: var(--brand); transform: translateY(-1px); }

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

/* ------------------------------------------------------------
   Choice screens (home, line of business, success): cream
   ------------------------------------------------------------ */
.choice-screen {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 30px 0 56px; text-align: center; position: relative;
}
.eyebrow {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; font-size: .7rem;
  color: var(--rose-deep);
}
.eyebrow .accent { color: var(--rose); }
.choice-screen h1 {
  font-family: var(--font-serif); color: var(--brand); font-weight: 600;
  letter-spacing: -0.005em; line-height: 1.05;
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  margin: 14px 0 12px;
}
.choice-screen .sub {
  color: var(--grey-mid); font-size: clamp(1rem, 1.6vw, 1.1rem);
  max-width: 560px; margin: 0 auto 36px; line-height: 1.65;
}
.choice-grid {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; width: 100%;
}
.choice-card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  flex: 1 1 260px; max-width: 340px; text-align: left; cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 24px 24px;
  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;
}
.choice-card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--rose); transition: width .45s var(--ease);
}
.choice-card:hover, .choice-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(217, 158, 151, .7);
  box-shadow: var(--shadow);
}
.choice-card:hover::before, .choice-card:focus-visible::before { width: 100%; }
.choice-card .chip {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blush); color: var(--rose-deep);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.choice-card .chip svg { width: 23px; height: 23px; }
.choice-card h3 { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 600; color: var(--brand); margin-bottom: 6px; letter-spacing: 0; }
.choice-card p { font-size: .9rem; line-height: 1.55; color: var(--grey-mid); }
.choice-card .go {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--brand);
}
.choice-card .go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.choice-card:hover .go svg { transform: translateX(4px); }
.choice-card .badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--brand); color: #fff; border-radius: 99px; padding: 4px 10px;
}

/* Back link on choice screens */
.choice-back { margin-top: 34px; }
.choice-back .btn-link { color: var(--grey-mid); min-height: 40px; padding: 10px 12px; }
.choice-back .btn-link:hover { color: var(--brand); }

/* ------------------------------------------------------------
   Home hero (three designs; CFG.HERO_VARIANT or ?hero=a|b|c)
   Shared pieces first.
   ------------------------------------------------------------ */
.hero { position: relative; width: 100%; }
.hero .cta-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero .btn-primary { padding: 16px 34px; font-size: 16px; }
.hero .micro { font-size: .82rem; color: var(--grey-mid); }
.handy {
  margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
  max-width: 640px;
}
.handy-label {
  width: 100%; font-family: var(--font-display); font-weight: 600; font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--grey-mid); margin-bottom: 4px;
}
.handy span.item {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 253, 248, .8); border: 1px solid var(--line);
  border-radius: 99px; padding: 7px 14px; font-size: .84rem; color: var(--charcoal);
}
.handy span.item::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); flex: none;
}
.hero-rule { display: inline-flex; align-items: center; gap: 14px; }
.hero-rule::before, .hero-rule::after { content: ''; width: 38px; height: 1.5px; background: var(--rose); border-radius: 2px; flex: none; }
@media (max-width: 560px) { .hero-rule::before, .hero-rule::after { display: none; } }

/* Botanical line drawings: faint leaves (green) and petals (pink) in the corners */
.botanic { position: absolute; pointer-events: none; z-index: -1; }
.botanic path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.botanic .leaf { stroke: var(--brand); stroke-width: 1.6; opacity: .22; }
.botanic .leaf-fill { fill: var(--brand); opacity: .07; stroke: none; }
.botanic .petal { stroke: var(--rose-deep); stroke-width: 1.5; opacity: .28; }
.botanic .petal-fill { fill: var(--rose); opacity: .16; stroke: none; }

/* --- A: Centered bloom. The stacked logo is the hero. --- */
.hero-a { display: flex; flex-direction: column; align-items: center; }
.hero-a .hero-lockup { width: min(330px, 70vw); height: auto; margin: 0 auto 26px; animation: bloomIn 1s var(--ease) both; }
.hero-a h1 { margin-top: 18px; }
@media (max-width: 700px) { .hero-a h1 .br-wide { display: none; } }
.hero-a .botanic.tl { top: -40px; left: -150px; width: 360px; }
.hero-a .botanic.br { bottom: -10px; right: -150px; width: 360px; transform: rotate(180deg); }
@media (max-width: 900px) { .hero-a .botanic { display: none; } }
@keyframes bloomIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* --- B: Split. Words on the left, the bloom in a blush arch on the right. --- */
.hero-b { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; text-align: left; }
.hero-b .eyebrow { display: block; }
.hero-b h1 { margin: 16px 0 14px; }
.hero-b .sub { margin: 0 0 30px; }
.hero-b .cta-row { align-items: flex-start; }
.hero-b .handy { justify-content: flex-start; }
.hero-b .handy-label { text-align: left; }
.arch {
  position: relative; width: 100%; max-width: 400px; aspect-ratio: 4 / 5; margin-left: auto;
  border-radius: 200px 200px 22px 22px;
  background: linear-gradient(180deg, var(--blush) 0%, #f9ede7 55%, var(--paper) 100%);
  border: 1px solid rgba(217, 158, 151, .45);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.arch::before {
  content: ''; position: absolute; inset: 14px; border-radius: 186px 186px 14px 14px;
  border: 1px solid rgba(154, 85, 80, .22);
}
.arch img { width: 70%; height: auto; position: relative; animation: sway 7s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.arch .arch-caption {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brand);
}
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
@media (max-width: 820px) {
  .hero-b { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-b .cta-row { align-items: center; }
  .hero-b .handy { justify-content: center; }
  .hero-b .handy-label { text-align: center; }
  .hero-b .sub { margin: 0 auto 30px; }
  .arch { order: -1; max-width: 170px; margin: 0 auto; }
  .arch .arch-caption { display: none; }
}

/* --- C: Petal drift. Pink petals fall slowly across the cream. --- */
.hero-c { display: flex; flex-direction: column; align-items: center; }
.hero-c .hero-mark { width: 92px; height: auto; margin-bottom: 8px; }
.hero-c h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
.petals { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.petals i {
  position: absolute; top: -40px; display: block; width: 16px; height: 22px;
  background: radial-gradient(ellipse at 40% 35%, #f0c7c1 0%, var(--rose) 60%, #c98680 100%);
  border-radius: 80% 10% 80% 10%;
  opacity: 0; animation: petalFall linear infinite;
}
.petals i.lf { background: radial-gradient(ellipse at 40% 35%, #7f9c80 0%, var(--brand-light) 55%, var(--brand) 100%); width: 12px; height: 20px; }
@keyframes petalFall {
  0%   { opacity: 0; transform: translate3d(0, -40px, 0) rotate(0deg); }
  10%  { opacity: .75; }
  90%  { opacity: .6; }
  100% { opacity: 0; transform: translate3d(var(--drift, 60px), 105vh, 0) rotate(var(--spin, 300deg)); }
}

/* ------------------------------------------------------------
   Wizard chrome: light paper 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(--grey-mid);
  display: flex; align-items: center; gap: 10px;
}
.step-eyebrow .accent-bar { width: 34px; height: 2px; background: var(--rose); border-radius: 2px; }

/* Progress: a growing stem with a bud that opens on the last step */
.ascent-progress { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ascent-track { flex: 1; position: relative; height: 34px; }
.ascent-track svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ascent-track .track-ghost { stroke: rgba(51, 79, 53, .14); stroke-width: 2.5; fill: none; }
.ascent-track .track-fill {
  stroke: var(--brand); stroke-width: 3; fill: none;
  stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease);
}
/* The dot and the bud are HTML laid over the stretched SVG, so they keep their shape at any width */
.ascent-track .track-dot-h {
  position: absolute; left: 0; top: 22px; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(58, 44, 28, .18);
  transition: left .7s var(--ease), top .7s var(--ease);
}
.ascent-track .track-bud-h {
  position: absolute; left: 99.33%; top: 14px; width: 14px; height: 20px; margin: -19px 0 0 -7px;
  opacity: 0; transition: opacity .4s ease .3s; pointer-events: none;
}
.ascent-track .track-bud-h svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ascent-track.summit .track-bud-h { opacity: 1; }
.ascent-track.summit .track-dot-h { opacity: 0; }
.ascent-count {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  color: var(--brand); 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-family: var(--font-serif); font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 600; color: var(--brand); margin-bottom: 8px; letter-spacing: 0; }
.panel > .lede { color: var(--grey-mid); font-size: .98rem; line-height: 1.6; margin-bottom: 26px; max-width: 640px; }

.card {
  background: var(--card); 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: 700; color: var(--ink); line-height: 1.4; margin-bottom: 4px;
}
.card h3 svg { width: 18px; height: 18px; color: var(--rose-deep); display: inline-block; vertical-align: -3px; margin-right: 9px; }
.card .card-sub { font-size: .85rem; color: var(--grey-mid); margin-bottom: 18px; line-height: 1.5; }

/* Selectable big cards (coverage type, home type) */
.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 {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  position: relative; text-align: left; cursor: pointer; font-family: inherit;
  background: var(--card); 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: 3px; width: 0;
  background: var(--rose); transition: width .45s var(--ease);
}
.select-card:hover { transform: translateY(-3px); border-color: rgba(217, 158, 151, .7); box-shadow: 0 14px 34px rgba(58, 44, 28, .1); }
.select-card:hover::before { width: 100%; }
.select-card.selected { border-color: var(--brand); background: #f7f3ea; box-shadow: 0 8px 24px rgba(51, 79, 53, .12); }
.select-card.selected::before { width: 100%; background: var(--brand); }
.select-card .chip {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blush); color: var(--rose-deep);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.select-card .chip svg { width: 21px; height: 21px; }
.select-card h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.select-card p { font-size: .82rem; color: var(--grey-mid); line-height: 1.5; }
.select-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(--blush); color: #86443f; border: 1px solid rgba(154, 85, 80, .25);
  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: #3d4a3e; margin-bottom: 7px;
}
.field label .req { color: var(--rose-deep); }
.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 #9c8a6e; border-radius: 8px; background: #fff; color: var(--charcoal);
  transition: border-color .15s, box-shadow .15s;
}
/* Autofill pre-filled highlight (kept from the upstream app; the feature is off in this build).
   These sit ABOVE the :focus and .has-error rules, which share their specificity, on purpose. */
.field input.af-pre, .field select.af-pre, .field textarea.af-pre { background: #fbf0ec; border-color: #e7c4bd; }
.pill-row.af-pre .pill.selected { background: #fbf0ec; border-color: #e7c4bd; color: var(--brand-dark); box-shadow: inset 0 0 0 1px #e7c4bd; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51, 79, 53, .13);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(176, 58, 46, .1);
}
.field .err-msg { color: var(--danger); font-size: .75rem; margin-top: 5px; font-weight: 600; }
.field .hint { color: var(--grey-mid); 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; min-height: 40px; padding: 4px 0;
  font-size: .92rem; color: #34302a; line-height: 1.5;
  -webkit-user-select: none; user-select: none;
}
.check-row input {
  width: 19px; height: 19px; margin-top: 1px; accent-color: var(--brand); 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(--grey-mid); display: block; margin-top: 2px; }

/* Pill toggles (yes/no, contact method) */
.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 #9c8a6e; background: #fff; color: #5a5249;
  transition: all .18s var(--ease); text-transform: capitalize;
}
.pill:hover { border-color: var(--rose); }
.pill.selected { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(51, 79, 53, .24); }

/* Repeating items (drivers, vehicles, losses) */
.repeat-item {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 20px;
  margin-bottom: 14px; position: relative; background: #fdf9f2;
}
.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(--brand);
  display: flex; align-items: center; gap: 8px;
}
.repeat-item .repeat-title .num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--rose); color: var(--brand-darker);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; letter-spacing: 0;
}
.btn-remove {
  background: none; border: none; color: var(--grey-mid); font-size: .8rem;
  font-family: var(--font-display); font-weight: 600; cursor: pointer; padding: 10px 12px; min-height: 40px;
  border-radius: 6px; transition: color .15s, background .15s;
}
.btn-remove:hover { color: var(--danger); background: rgba(176, 58, 46, .07); }
.btn-add {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(246, 227, 222, .45); color: var(--brand);
  border: 1.5px dashed rgba(154, 85, 80, .4); 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: var(--blush); border-color: var(--rose-deep); }
.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: #fdf9f2;
  transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--rose-deep); background: rgba(246, 227, 222, .45); }
.dropzone .dz-icon { color: var(--rose-deep); 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(--grey-mid); margin-top: 3px; }
.dropzone.has-file { border-style: solid; border-color: var(--success); background: rgba(63, 107, 67, .06); }
.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; }

/* Uploaded-file rows for the open-ended "Anything else" zone */
.file-row {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); background: #fdf9f2; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 10px; font-size: .88rem;
}
.file-row svg { width: 16px; height: 16px; color: var(--rose-deep); flex: none; }
.file-row .fr-name { font-weight: 600; color: var(--ink); word-break: break-all; flex: 1; }
.file-row .fr-size { color: var(--grey-mid); 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; }

/* Error banner */
.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: rgba(176, 58, 46, .07); border: 1.5px solid rgba(176, 58, 46, .3); color: #8e2b20; }
.banner-info { background: rgba(51, 79, 53, .06); border: 1.5px solid rgba(51, 79, 53, .22); color: var(--brand-darker); }

/* 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(--brand); 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);
  /* Its own keyframes: the shared "rise" sets transform and would drop the translateX(-50%) centring
     (the bar then sat right of centre, half off a phone screen; same bug in the Ascension app 2.8.1). */
  animation: barRise .5s var(--ease) both;
}
@keyframes barRise { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.draft-bar > div { flex: 1 1 200px; line-height: 1.5; }
.draft-bar .btn { padding: 8px 16px; font-size: .82rem; min-height: 40px; }
.draft-bar .btn-link { min-height: 40px; }
.draft-bar .btn-primary { background: var(--cream); color: var(--brand-dark); }
.draft-bar .btn-primary:hover { background: #fff; }
.draft-bar .btn-link { color: #f3d2cb; }

/* ------------------------------------------------------------
   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: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px; padding: 46px 40px;
  box-shadow: var(--shadow);
  max-width: 560px; width: 100%; animation: rise .6s var(--ease) both;
}
.summit-glyph { margin: 0 auto 18px; width: 92px; height: 92px; }
.summit-glyph .draw { stroke-dasharray: 450; stroke-dashoffset: 450; animation: drawIn 1.4s var(--ease) .3s forwards; }
.summit-glyph .dot { opacity: 0; animation: fadeIn .5s ease 1.5s forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.success-card h1 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; color: var(--brand); margin-bottom: 8px; letter-spacing: 0; }
.success-card .ref {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  background: var(--brand); color: #fff; border-radius: 10px;
  padding: 10px 22px; letter-spacing: .06em; margin: 14px 0 6px; font-size: 1.02rem;
}
.success-card .sub { color: #34302a; font-size: .93rem; line-height: 1.6; }
.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: #34302a; line-height: 1.5;
}
.next-steps .ns .n {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--blush); color: #86443f; font-family: var(--font-display);
  font-weight: 700; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center;
}
.next-steps .ns b { color: var(--ink); }

/* ------------------------------------------------------------
   Footer: the practice line, an optional privacy line, then
   "Powered by Ascension" on its own line and the version.
   ------------------------------------------------------------ */
.site-footer {
  text-align: center; padding: 22px 22px 26px; font-size: .78rem;
  color: var(--grey-mid); position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.site-footer a { color: var(--brand); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-line { max-width: 620px; line-height: 1.55; }
.site-footer .foot-line.disclosure { font-size: .74rem; }
.site-footer .powered { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .02em; }
.site-footer .powered img { display: block; opacity: .75; }
.site-footer .powered .asc-i { height: 14px; width: auto; }
.site-footer .powered .asc-w { height: 10px; width: auto; }
.site-footer .ver { font-variant-numeric: tabular-nums; font-size: .68rem; }
/* F4: the resume bar never hides the footer */
.has-draft .site-footer { padding-bottom: 110px; }
@media (max-width: 560px) { .has-draft .site-footer { padding-bottom: 160px; } }

/* Phones: a little more room for the words */
@media (max-width: 560px) {
  .success-card { padding: 32px 22px; }
  .card { padding: 20px 16px; }
  .repeat-item { padding: 14px; }
  .wizard-nav .btn { white-space: nowrap; padding: 14px 20px; }
}

/* 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, .hero-a .hero-lockup { animation: none; }
  .draft-bar { animation: none; transform: translateX(-50%); }
  .arch img { animation: none; }
  .petals { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .choice-card, .select-card, .btn { transition: none; }
  .btn-primary::after { display: none; }
  .summit-glyph .draw { animation: none; stroke-dashoffset: 0; }
  .summit-glyph .dot { animation: none; opacity: 1; }
  .ascent-track .track-fill, .ascent-track .track-dot { transition: none; }
}


/* ==== Autofill (upstream Beta; hidden in this build while AUTOFILL_URL is blank) ==== */
.af-card { border: 1px dashed var(--rose-deep); background: #fffaf5; }
.af-dropzone {
  margin-top: 10px; border: 2px dashed var(--line-strong); border-radius: 10px; padding: 22px;
  text-align: center; cursor: pointer; background: #fff; transition: border-color .15s;
}
.af-dropzone:hover { border-color: var(--rose-deep); }
.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(--grey-mid); margin-top: 3px; }
.af-notice { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #fbf0ec; border: 1px solid #e7c4bd; font-size: 14px; }
#af-run { margin-top: 10px; }

.af-done { border-style: solid; border-color: #c9dcc9; background: #f3f8f1; }

.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; }
