/* ============================================================
   SureBond — lightweight design system (no framework, no build)
   ============================================================ */

:root {
  --navy:      #0c2f5a;    /* deep blue — hero / footer */
  --navy-700:  #12447e;
  --blue:      #1868c7;    /* primary blue */
  --blue-600:  #12539f;
  --orange:    #f97316;    /* accent orange — CTAs, search */
  --orange-600:#ea6a0c;
  --accent:    #f97316;    /* accent = orange */
  --accent-600:#ea6a0c;
  --ink:       #1a2233;
  --muted:     #5b6676;
  --line:      #e4e8ee;
  --bg:        #ffffff;
  --bg-soft:   #f4f8fd;
  --bg-tint:   #e9f1fb;    /* blue tint */
  --warn-bg:   #fff7ed;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 1px 2px rgba(16,42,74,.06), 0 8px 24px rgba(16,42,74,.08);
  --shadow-sm: 0 1px 2px rgba(16,42,74,.08);
  --maxw:      1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2.6rem; letter-spacing: -.02em; }
h2 { font-size: 2rem; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

/* --- Buttons --------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--navy); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* --- Header ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--blue); font-size: 1.1rem; }
.brand-name { font-weight: 500; color: var(--navy); }
.brand-name strong { font-weight: 800; }
.main-nav { display: flex; gap: 1.4rem; margin-left: 1rem; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.phone { color: var(--navy); font-weight: 700; font-size: .98rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* --- Alerts ---------------------------------------------------------- */
.messages { margin: 1rem 0 0; }
.alert {
  padding: .85rem 1.1rem; border-radius: var(--radius-sm);
  margin-bottom: .6rem; font-weight: 500; border: 1px solid transparent;
}
.alert-success { background: #ecfdf3; color: #12833c; border-color: #b6f0cd; }
.alert-error   { background: #fef2f2; color: #b42318; border-color: #fbd0cd; }
.alert-info    { background: var(--bg-tint); color: var(--navy-700); border-color: #cfe0f6; }

/* --- Hero ------------------------------------------------------------ */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(31,111,235,.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; padding: 4.5rem 0 3rem;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { font-size: 1.2rem; color: #cfe0f6; max-width: 46ch; margin-bottom: 1.6rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; color: #cfe0f6; font-size: .95rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges strong { color: #fff; }

/* Centered hero + big typeahead search */
.hero-centered { text-align: center; padding: 5rem 0 3.5rem; }
.hero-centered h1 { color: #fff; max-width: 20ch; margin-left: auto; margin-right: auto; font-size: 3rem; }
.hero-centered .lead { margin: 0 auto 0; color: #cfe0f6; }
.hero-centered .hero-badges { justify-content: center; }

.bond-search { position: relative; max-width: 920px; margin: 2rem auto 0; text-align: left; }
.bond-search-box {
  display: flex; align-items: center; gap: .3rem;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow);
  padding: .45rem .45rem .45rem 1.6rem; border: 2px solid transparent;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.bond-search-box:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,.18), var(--shadow); }
.bond-search-box input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink);
  font-size: 1.32rem; padding: 1rem .5rem; font-family: inherit;
}
.bond-search-box input::placeholder { color: #97a2b3; }
.bond-search-btn {
  flex-shrink: 0; border: 0; cursor: pointer; width: 68px; height: 68px;
  border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; transition: background .12s ease;
}
.bond-search-btn:hover { background: var(--orange-600); }
.bond-search-btn svg { width: 28px; height: 28px; }

.bond-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + .6rem);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: .4rem; z-index: 30;
  max-height: 400px; overflow-y: auto; border: 1px solid var(--line);
}
.bond-search-results li { margin: 0; }
.bond-search-results li a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem .9rem; border-radius: var(--radius-sm); color: var(--ink); font-size: 1rem;
}
.bond-search-results li a:hover,
.bond-search-results li a.active { background: var(--bg-tint); text-decoration: none; }
.bond-search-results .cat { color: var(--muted); font-size: .8rem; flex-shrink: 0; white-space: nowrap; }
.bond-search-results mark { background: transparent; color: var(--orange-600); font-weight: 700; padding: 0; }
.bond-search-empty { padding: .9rem 1rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }
/* Needs to outrank `.bond-search-results li a`, which styles result rows as flex. */
.bond-search-results li.bond-search-empty a {
  display: inline; padding: 0; font-weight: 700; color: var(--orange-600); white-space: nowrap;
}

@media (max-width: 680px) {
  .hero-centered h1 { font-size: 2.1rem; }
  .bond-search { max-width: 100%; }
  .bond-search-box { padding: .3rem .3rem .3rem 1.1rem; }
  .bond-search-box input { font-size: 1.06rem; padding: .8rem .3rem; }
  .bond-search-btn { width: 50px; height: 50px; }
  .bond-search-btn svg { width: 21px; height: 21px; }
}

/* Search card in hero */
.search-card {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem; margin-top: 2rem;
}
.search-card h3 { margin-bottom: 1rem; }
.search-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field select, .field input, .field textarea {
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.15);
}

/* --- Section shells -------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--blue); }

/* --- Category / bond cards ------------------------------------------ */
.grid { display: grid; gap: 1.2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { font-size: 1.9rem; margin-bottom: .6rem; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .card-link { font-weight: 600; margin-top: .8rem; }

.bond-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; margin-bottom: .7rem; transition: border-color .12s ease, box-shadow .12s ease;
}
.bond-row:hover { border-color: #c9d8ee; box-shadow: var(--shadow-sm); }
.bond-row .info h4 { margin: 0 0 .15rem; }
.bond-row .info p { margin: 0; color: var(--muted); font-size: .92rem; }
.bond-row .meta { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }

.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: .25rem .55rem; border-radius: 999px; text-transform: uppercase;
}
.badge-instant { background: #fff1e6; color: var(--orange-600); }
.badge-amount  { background: var(--bg-tint); color: var(--navy-700); }

/* --- Value props / steps -------------------------------------------- */
.value-item { text-align: center; padding: 1rem; }
.value-item .icon { font-size: 2rem; }
.value-item h3 { font-size: 1.05rem; }
.value-item p { color: var(--muted); font-size: .95rem; }

.steps { counter-reset: step; }
.step { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.step .num {
  counter-increment: step; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.step .num::before { content: counter(step); }

/* --- CTA band -------------------------------------------------------- */
.cta-band {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; text-align: center; padding: 3rem 0; border-radius: var(--radius);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0f6; max-width: 48ch; margin: 0 auto 1.4rem; }

/* --- Breadcrumb ------------------------------------------------------ */
.breadcrumb { font-size: .9rem; color: var(--muted); padding: 1.2rem 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* --- Page header ----------------------------------------------------- */
.page-head { padding: 2.4rem 0 1.2rem; }
.page-head .eyebrow { margin-bottom: .4rem; display: block; }

/* --- Detail / quote layout ------------------------------------------ */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.panel.sticky { position: sticky; top: 90px; }
.price { font-size: 2rem; font-weight: 800; color: var(--navy); }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.list-check { list-style: none; padding: 0; margin: 1rem 0; }
.list-check li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; color: var(--ink); }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* --- Forms (application) -------------------------------------------- */
.form-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.2rem; background: #fff; }
.form-section > h3 { display: flex; align-items: center; gap: .6rem; }
.form-section .step-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tint); color: var(--navy-700); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { background: var(--warn-bg); border: 1px solid #fed7aa; color: #9a3412; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }

/* --- Misc ------------------------------------------------------------ */
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--ink); }
.text-center { text-align: center; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .panel.sticky { position: static; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
}
@media (max-width: 680px) {
  .main-nav, .header-actions .phone { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 20px; gap: 1rem; margin: 0;
  }
  .search-row { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .bond-row { flex-direction: column; align-items: flex-start; }
  .bond-row .meta { width: 100%; justify-content: space-between; }
}

/* --- Footer ---------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b8c6da; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #91a3bd; font-size: .92rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.footer-col a { display: block; color: #b8c6da; font-size: .92rem; margin-bottom: .5rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #91a3bd; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: #91a3bd; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Vehicle Title Bond — dedicated guide page
   Classes namespaced with .tb- to avoid colliding with the rest
   of the design system. The homepage entry point is a normal
   category card (.card) linking to this page.
   ============================================================ */

/* Guide page */
.tb-hero { background: var(--navy); color: #fff; padding: 3rem 0 2.4rem; }
.tb-hero .eyebrow { color: #ffb877; }
.tb-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: .4rem 0 .6rem; }
.tb-hero p { color: #cfe0f6; max-width: 62ch; font-size: 1.08rem; }
.tb-hero .btn { margin-top: 1.3rem; }

.tb-overview {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: -2.2rem 0 0;
  position: relative; box-shadow: var(--shadow-sm);
}
.tb-overview .row { display: flex; flex-direction: column; gap: .15rem; }
.tb-overview dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); font-weight: 700; }
.tb-overview dd { margin: 0; color: var(--ink); font-size: .98rem; }

.tb-body { max-width: 760px; }
.tb-body h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.tb-body h2:first-child { margin-top: 0; }
.tb-body p { color: var(--ink); margin: 0 0 1rem; line-height: 1.7; }
.tb-body ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.tb-body li { margin: .35rem 0; color: var(--ink); line-height: 1.6; }
.tb-callout {
  background: var(--warn-bg); border: 1px solid #fed7aa; border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; margin: 1.2rem 0; color: #7c2d12; font-size: .96rem;
}

/* State grid */
.tb-states { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.4rem; }
.tb-state {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.1rem; padding: .5rem .55rem; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  font-weight: 700; font-size: .82rem; text-decoration: none;
}
.tb-state:hover { background: var(--bg-tint); border-color: var(--blue); color: var(--blue); text-decoration: none; }

@media (max-width: 820px) {
  .tb-placard { grid-template-columns: 1fr; padding: 1.8rem; }
  .tb-overview { grid-template-columns: 1fr; }
}

/* ============================================================
   Vehicle Title Bond — guided quote wizard
   ============================================================ */
.quote-wrap { max-width: 580px; margin: 0 auto; }

/* Step progress */
.quote-progress { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0 0 1.8rem; }
.quote-progress .dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; border: 2px solid var(--line); color: var(--muted); background: #fff;
}
.quote-progress .dot.active { border-color: var(--blue); color: var(--blue); }
.quote-progress .dot.done { border-color: var(--blue); background: var(--blue); color: #fff; }
.quote-progress .bar { width: 46px; height: 2px; background: var(--line); }
.quote-progress .bar.done { background: var(--blue); }

.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.8rem; }
.quote-card h2 { text-align: center; font-size: 1.4rem; margin-bottom: 1.4rem; }

.quote-bond-summary { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1.3rem; }
.quote-bond-summary h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.quote-bond-summary p { margin: 0; color: var(--muted); font-size: .92rem; }

.quote-fields { display: flex; flex-direction: column; gap: 1rem; }
.field-error { color: #dc2626; font-size: .82rem; font-style: italic; margin-top: .15rem; }
.field.has-error input, .field.has-error select { border-color: #dc2626; }

.quote-note-list { margin: .4rem 0 1.2rem; padding-left: 1.1rem; }
.quote-note-list li { margin: .4rem 0; color: var(--ink); font-size: .95rem; }

.quote-question { color: var(--navy-700); font-weight: 600; margin: 1rem 0 .7rem; }
.quote-question .req { color: #dc2626; }
.quote-yesno { display: flex; gap: .6rem; margin-bottom: 1rem; }
.quote-toggle {
  min-width: 72px; padding: .55rem 1.2rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.quote-toggle:hover { background: var(--bg-soft); }
.quote-toggle.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.quote-verify-required { border: 1px solid #fecaca; background: #fef2f2; border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.quote-verify-required h3 { color: #dc2626; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: .5rem; }
.quote-verify-required p { color: #7f1d1d; font-size: .92rem; margin: 0; }

.quote-ack { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 1.2rem; font-size: .88rem; color: var(--muted); font-style: italic; }
.quote-ack input { margin-top: .2rem; }

.quote-trust { text-align: center; color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 1rem; }

.quote-done { text-align: center; }
.quote-done .check { width: 54px; height: 54px; border-radius: 50%; background: #ecfdf3; color: #12833c; display: grid; place-items: center; font-size: 1.7rem; margin: 0 auto 1rem; }
.quote-summary { text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin: 1.2rem 0; }
.quote-summary .row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.quote-summary .row:last-child { border-bottom: 0; }
.quote-summary .row dt { color: var(--muted); margin: 0; }
.quote-summary .row dd { margin: 0; font-weight: 600; text-align: right; }

/* Bond application + purchase steps */
.quote-phase-title { text-align: center; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; font-size: .92rem; margin: 0 0 1.1rem; }
.quote-premium { text-align: center; color: #12833c; font-size: 1.7rem; font-weight: 800; margin: .1rem 0 .5rem; }
.req { color: #dc2626; }
.quote-help { font-size: .82rem; color: var(--muted); font-style: italic; margin: .1rem 0 .45rem; }
.quote-addr-row { display: grid; grid-template-columns: 1fr 1.4fr .95fr; gap: .6rem; margin-top: .8rem; }
.quote-vin-row { display: flex; gap: .5rem; align-items: stretch; }
.quote-vin-row input { flex: 1; }
.quote-vin-row .btn { white-space: nowrap; }
.quote-fieldset { display: flex; flex-direction: column; gap: 1rem; }

.purchase-lead { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.purchase-summary { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; margin: 1rem 0 1.4rem; }
.purchase-summary h3 { font-size: 1rem; margin-bottom: .8rem; }
.ps-block { margin-bottom: .9rem; font-size: .92rem; color: var(--ink); line-height: 1.5; }
.ps-block strong { display: block; color: var(--navy); margin-bottom: .15rem; }
.ps-line { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.ps-line.total { font-weight: 800; color: var(--navy); font-size: 1.08rem; }
.purchase-pay { border: 1px dashed #c9d3e0; border-radius: var(--radius-sm); padding: 1.3rem 1.2rem; text-align: center; color: var(--muted); background: var(--bg-soft); }
.purchase-pay strong { color: var(--navy); display: block; margin-bottom: .3rem; }

/* Payment panel (test mode) */
.pay-testmode { background: var(--warn-bg); border: 1px solid #fed7aa; color: #9a3412; border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .85rem; margin: .4rem 0 1rem; }
.pay-testmode strong { color: #7c2d12; }
.pay-card { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.pay-card-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }

/* Interactive US state tile map (title bond guide) */
.us-map-wrap { overflow-x: auto; padding: .5rem 0 1.2rem; }
.us-map {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px;
  max-width: 660px; min-width: 500px; margin: 1.2rem auto 0;
}
.us-tile {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
  border-radius: 6px; background: var(--bg-tint); border: 1px solid #cfe0f6;
  color: var(--navy); font-weight: 700; font-size: .7rem; letter-spacing: .01em;
  text-decoration: none; position: relative;
  transition: background .12s ease, color .12s ease, border-color .12s ease, transform .1s ease, box-shadow .12s ease;
}
.us-tile:hover, .us-tile:focus-visible {
  background: var(--orange); border-color: var(--orange-600); color: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none;
  z-index: 3; outline: none;
}
/* Full state name tooltip on hover / keyboard focus */
.us-tile::after {
  content: attr(data-name); position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .25rem .55rem; border-radius: 5px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease; z-index: 5;
}
.us-tile:hover::after, .us-tile:focus-visible::after { opacity: 1; }
