/* Neighborhood Car Care -- Instant Quote. Mobile first.
   Palette from neighborhoodcar-care.com: orange #F7941D, red-orange #F15A29, blue #27AAE1 / #177EAB,
   softened with airy blue-white backgrounds and navy text so it feels calm and approachable. */
:root {
  --orange: #F7941D;
  --orange-hover: #f7a454;
  --red: #F15A29;
  --red-dark: #D8400E;
  --cta-a: #EE7420;             /* CTA gradient: brand orange -> red-orange, deep enough for white text */
  --cta-b: #D9481A;
  --blue: #27AAE1;
  --blue-dark: #177EAB;
  --blue-soft: #eaf5fc;
  --ink: #15223b;               /* navy text */
  --char: #3a4557;
  --gray: #5f6b7a;
  --line: #e3e9f0;
  --light: #f3f7fc;
  --white: #fff;
  --ok: #1f9d6b;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(21,34,59,.08);
  --font: "soleto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5rem; font-weight: 700; }
a { color: var(--blue-dark); }
[hidden] { display: none !important; }
.script { font-family: var(--script); font-weight: 700; color: var(--blue-dark); letter-spacing: .01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: inherit; font-weight: 700; border: 2px solid transparent; border-radius: 14px;
  padding: .75rem 1.25rem; min-height: 48px; cursor: pointer; text-decoration: none;
  transition: filter .15s, transform .1s, box-shadow .15s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--cta-a), var(--cta-b)); color: var(--white);
  box-shadow: 0 8px 22px rgba(217,72,26,.28); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary[disabled] { opacity: .6; cursor: default; }
.btn-blue { background: var(--blue-dark); color: var(--white); box-shadow: 0 6px 16px rgba(23,126,171,.25); }
.btn-blue:hover { filter: brightness(1.08); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.btn-link { background: none; color: var(--blue-dark); text-decoration: underline; border: 0; width: 100%; }
.btn-lg { font-size: 1.1rem; min-height: 56px; }
.btn-xl { font-size: 1.3rem; min-height: 64px; padding: .9rem 1rem .9rem 1.9rem; border-radius: 16px; }
.btn-xl .arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--white); }
.btn-xl .arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--cta-b); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-block { width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem 16px; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px);
  box-shadow: 0 1px 0 var(--line), 0 4px 18px rgba(21,34,59,.05);
}
.brand img { height: 42px; width: auto; }
.top-cta { min-height: 42px; padding: .5rem .9rem; font-size: .92rem; border-radius: 12px; }
.top-trust { display: none; list-style: none; margin: 0 0 0 auto; padding: 0 1.25rem; gap: 1.6rem;
  border-left: 1px solid var(--line); }
.top-trust li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; line-height: 1.2; color: var(--char); font-weight: 500; }
.tt-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--blue-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
@media (min-width: 960px) {
  .top-trust { display: flex; }
  .topbar { padding: .75rem 32px; }
  .brand img { height: 56px; }
  .top-cta { min-height: 50px; padding: .6rem 1.4rem; font-size: 1rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #ffffff 0%, #f3f8fd 55%, #e8f2fb 100%);
  padding: 2rem 16px 0; display: grid;
}
.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero h1 { font-size: clamp(2.1rem, 9.5vw, 3.6rem); letter-spacing: -.01em; margin-bottom: 0; }
.hero h1 .script { font-size: 1.22em; line-height: .9; display: inline-block; transform: rotate(-3deg); margin-right: .1em; }
.br-lg { display: none; }
.swash { display: block; width: 58%; max-width: 260px; height: 14px; margin: .15rem 0 1rem; }
.swash path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; }
.lede { font-size: 1.08rem; color: var(--char); margin: 0 0 1.5rem; max-width: 34ch; }
.lede strong { color: var(--ink); }
.micro { display: flex; align-items: center; gap: .45rem; color: var(--gray); font-size: .88rem; margin: .9rem 0 0; }
.micro svg { width: 16px; height: 16px; fill: none; stroke: var(--gray); stroke-width: 2; }
.hero-art { margin: 1.25rem -16px 0; }
.hero-art img { width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.35) 0, #000 9%); mask-image: linear-gradient(to right, rgba(0,0,0,.35) 0, #000 9%);
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(420px, 1fr) 1.15fr; align-items: center; padding: 3rem 0 0 48px; min-height: 560px; }
  .br-lg { display: inline; }
  .hero-art { margin: 0 0 0 -120px; align-self: end; }
  .hero-art img { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 25%); mask-image: linear-gradient(to right, transparent 0, #000 25%); }
}

/* ---------- trust strip ---------- */
.trust-strip { position: relative; z-index: 2; display: grid; gap: .1rem; margin: -1.25rem 16px 0; padding: .5rem 1rem;
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow); max-width: 1200px; }
.ts-item { display: flex; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.ts-item:last-child { border-bottom: 0; }
.ts-item strong { display: block; font-size: 1.05rem; }
.ts-item div span { display: block; color: var(--gray); font-size: .92rem; line-height: 1.35; }
.ts-ico { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; }
.ts-ico svg { width: 28px; height: 28px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ts-ico.blue { background: #e4f1fb; } .ts-ico.blue svg { stroke: #1d6fd1; }
.ts-ico.peach { background: #fdeee4; } .ts-ico.peach svg { stroke: var(--red); }
.ts-ico.green { background: #e3f5ec; } .ts-ico.green svg { stroke: var(--ok); }
.ts-ico.lilac { background: #efeafb; } .ts-ico.lilac svg { stroke: #7a4fd6; }
@media (min-width: 640px) { .trust-strip { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } .ts-item:nth-last-child(2) { border-bottom: 0; } }
@media (min-width: 1100px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); margin: -2rem auto 0; padding: 1.25rem 1.5rem; }
  .ts-item { border-bottom: 0; border-right: 1px solid var(--line); padding: .5rem 1.25rem .5rem 0; }
  .ts-item:last-child { border-right: 0; }
}
@media (min-width: 1232px) { .trust-strip { margin-left: auto; margin-right: auto; } }

/* ---------- Buffalo tagline ---------- */
.tagline { position: relative; display: flex; align-items: center; justify-content: center; gap: .6rem; overflow: hidden;
  margin: 1.25rem 16px 0; padding: 1.5rem 1rem; border-radius: 20px; min-height: 96px;
  background: linear-gradient(90deg, #dcecf9 0%, #eef5fc 45%, #f6f9fd 100%); max-width: 1200px; }
.tagline p { position: relative; z-index: 1; margin: 0; text-align: center; }
.tagline .script { color: var(--ink); font-size: clamp(1.55rem, 6.5vw, 2.5rem); line-height: 1.1;
  background: linear-gradient(transparent 82%, rgba(247,148,29,.55) 82%, rgba(247,148,29,.55) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; }
.skyline { position: absolute; left: 0; bottom: 0; height: 100%; width: auto; max-width: 45%; opacity: .5; }
.skyline path { fill: #9cc4e6; } .skyline .water { fill: #bcd9f0; }
.heart { position: relative; z-index: 1; flex: 0 0 34px; width: 34px; height: 34px; fill: none; stroke: #1d6fd1; stroke-width: 1.8; }
@media (min-width: 1232px) { .tagline { margin-left: auto; margin-right: auto; } }

/* ---------- values ---------- */
.values { padding: 2.75rem 16px 1rem; max-width: 1100px; margin: 0 auto; text-align: center; }
.values h2, .why h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.values-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
.values-grid li { display: flex; flex-direction: column; align-items: center; }
.values-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.values-grid img { width: 104px; height: auto; margin-bottom: .6rem; filter: drop-shadow(0 6px 10px rgba(21,34,59,.12)); }
.values-grid strong { font-size: 1.05rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; }
.values-grid span { display: flex; align-items: center; justify-content: center; gap: .45rem; color: var(--gray);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .35rem; line-height: 1.3; }
.values-grid span::before, .values-grid span::after { content: ""; flex: 0 0 14px; height: 2px; background: var(--red); }
@media (min-width: 760px) { .values-grid { grid-template-columns: repeat(5, 1fr); } .values-grid li:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- value grid ---------- */
.why { padding: 2rem 16px 2.5rem; max-width: 1000px; margin: 0 auto; }
.why h2 { text-align: center; }
.value-grid { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .75rem; }
.value-grid li { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(21,34,59,.04); }
.value-grid li.feature { background: linear-gradient(135deg, #fff5ea, #fdeee4); border-color: #f8d6bd; }
.value-grid li.feature span { color: var(--char); }
.value-grid li.feature svg { stroke: var(--red); }
.value-grid svg { flex: 0 0 30px; width: 30px; height: 30px; fill: none; stroke: var(--blue-dark);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.value-grid strong { display: block; font-size: 1.02rem; }
.value-grid span { display: block; font-size: .9rem; color: var(--gray); line-height: 1.35; }
@media (min-width: 640px) { .value-grid { grid-template-columns: 1fr 1fr; } .why .btn-block { max-width: 380px; margin: 0 auto; display: flex; } }

.owners { display: grid; gap: 1.25rem; padding: 0 16px 2.5rem; max-width: 1000px; margin: 0 auto; align-items: center; }
.owners img { border-radius: 20px; width: 100%; height: auto; box-shadow: var(--shadow); }
.owners h2 { font-size: 1.6rem; }
.owners h2 .script { font-size: 1.2em; }
.owners p { color: var(--char); margin: 0; }
@media (min-width: 760px) { .owners { grid-template-columns: 1fr 1fr; } }

.trust { display: flex; justify-content: center; align-items: center; gap: 1.75rem; padding: 1.5rem 16px 2rem; }
.trust img { height: 46px; width: auto; object-fit: contain; }

.footer { background: var(--ink); color: var(--white); padding: 2rem 16px calc(2rem + var(--safe-b)); text-align: center; }
.footer > img { margin: 0 auto 1.5rem; height: 48px; width: auto; }
.loc-grid { display: grid; gap: 1rem; max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
.loc { display: flex; flex-direction: column; gap: .15rem; padding: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.loc strong { color: var(--orange); font-size: 1.1rem; }
.loc span { color: #c9d1dc; font-size: .92rem; }
.loc .btn { margin-top: .6rem; }
.fine { font-size: .8rem; color: #93a0b2; margin: 1.5rem 0 0; }
.fine a { color: #93a0b2; }

/* ---------- quote sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(20,18,19,.55); display: flex; align-items: flex-end; }
.sheet-panel {
  background: var(--white); width: 100%; height: 100%; display: flex; flex-direction: column;
  animation: up .25s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) {
  .sheet { align-items: center; justify-content: center; padding: 24px; }
  .sheet-panel { max-width: 560px; height: auto; max-height: min(880px, 100%); border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
}
.sheet-head { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem;
  padding-top: calc(.6rem + env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); }
.icon-btn { width: 44px; height: 44px; flex: 0 0 44px; border: 0; background: var(--light); border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#back[hidden] + .progress { margin-left: 56px; }
.progress { flex: 1; height: 8px; background: var(--light); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--orange), var(--red)); border-radius: 99px; transition: width .3s; }

.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.step { padding: 1.25rem 16px calc(1.5rem + var(--safe-b)); }
.step h2 { font-size: 1.55rem; }
.step-count { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red-dark); margin: 0 0 .35rem; }
.step-count.ok { color: var(--blue-dark); }
.step-sub { color: var(--gray); margin: 0 0 1.25rem; }

.field { display: block; border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.field > span, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; padding: 0; }
.field small { font-weight: 400; color: var(--gray); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; /* >=16px stops iOS zoom */
  padding: .8rem .9rem; min-height: 52px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.5rem;
}
.field select:disabled { background-color: var(--light); color: var(--gray); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,170,225,.2); }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field input[name="model_text"] { margin-top: .5rem; }
.err { display: block; color: var(--red-dark); font-style: normal; font-size: .88rem; margin-top: .3rem; min-height: 0; }
.err:empty { display: none; }
.row { display: grid; grid-template-columns: 1fr 1.4fr; gap: .75rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 52px; border: 2px solid var(--line);
  border-radius: 12px; font-weight: 700; cursor: pointer; }
.seg input:checked + span { border-color: var(--orange); background: #fff6ea; }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.step-actions { margin-top: 1.5rem; }
.step-actions.sticky { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%);
  padding: 1rem 0 calc(.25rem + var(--safe-b)); margin: 0 -2px -1rem; }

/* service picker */
.search { position: relative; margin-bottom: 1rem; }
.search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px;
  fill: none; stroke: var(--gray); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; font: inherit; font-size: 17px; min-height: 52px; padding: .8rem .9rem .8rem 2.75rem;
  border: 2px solid var(--line); border-radius: 999px; background: var(--light); appearance: none; -webkit-appearance: none; }
.search input:focus { outline: 0; border-color: var(--blue); background: var(--white); }

/* loading */
.loading { text-align: center; padding-top: 4rem; color: var(--gray); }
.spinner { width: 54px; height: 54px; margin: 0 auto 1.25rem; border-radius: 50%; border: 5px solid var(--light);
  border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* result */
.r-items { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.r-items li { border: 2px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.r-line { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.r-line strong { font-size: 1.02rem; }
.r-price { font-weight: 700; font-size: 1.15rem; white-space: nowrap; color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 999px; }
.badge.lifetime { background: var(--ink); color: var(--orange); }
.badge.brakes, .badge.fluid, .badge.alignment { background: #e8f6fc; color: var(--blue-dark); }
.r-total { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--white);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .75rem; }
.r-total strong { font-size: 1.5rem; color: #ffb35c; }
.r-note { font-size: .85rem; color: var(--gray); margin: 0 0 1.25rem; }
.r-cta { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.r-value h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.r-value .value-grid { grid-template-columns: 1fr; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- step 3/4: friendly service cards ---------- */
.step-soft { background: linear-gradient(180deg, #f4f5f6 0%, #fafafa 60%, #fff 100%); min-height: 100%; }
.step-soft .step-actions.sticky { background: linear-gradient(180deg, rgba(250,250,250,0), #fafafa 35%); }
.cards-title { font-size: 1.15rem; margin: 1.25rem 0 .7rem; }
@media (min-width: 520px) {  }


.btn-primary[disabled] { background: #e3e5e7; color: #9aa0a6; box-shadow: none; opacity: 1; }

.notes-field textarea { background: var(--white); }

.r-callback { background: #fff8ef; border: 2px solid var(--orange); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.r-callback strong { font-size: 1.15rem; }
.r-callback p { margin: .35rem 0 0; color: var(--char); }

/* ---------- vehicle illustration ---------- */
.car-svg { display: block; width: 100%; height: auto; }
.car-preview { display: flex; align-items: center; gap: 1rem; margin: -.25rem 0 1rem; padding: .85rem 1rem;
  background: linear-gradient(135deg, #f3f9fe, #e8f3fb); border: 1px solid #d6e9f6; border-radius: 16px;
  animation: carIn .35s ease-out; }
.car-preview .car-svg { flex: 0 0 120px; width: 120px; }
.car-preview strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.car-preview span { display: block; color: var(--ok); font-size: .88rem; font-weight: 700; margin-top: .15rem; }
@keyframes carIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.for-car { display: flex; align-items: center; gap: .6rem; margin: -.1rem 0 .6rem; color: var(--char); font-size: .95rem; }
.for-car .car-svg { flex: 0 0 64px; width: 64px; }
.for-car:empty { display: none; }
.r-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.r-car { flex: 0 0 110px; width: 110px; }
.r-car:empty { display: none; }

/* ---------- step 3: predictive search ---------- */
.finder { position: relative; margin-bottom: .75rem; }
.search-lg input { min-height: 60px; font-size: 18px; border-radius: 16px; background: var(--white); border-color: #d6e3ef;
  box-shadow: 0 4px 16px rgba(21,34,59,.06); padding-left: 3rem; }
.search-lg svg { left: 1rem; width: 22px; height: 22px; stroke: var(--blue-dark); }
.search-lg input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(39,170,225,.18); }
.search-lg input::-webkit-search-cancel-button { -webkit-appearance: none; }
.suggest { list-style: none; margin: .5rem 0 0; padding: .35rem; background: var(--white); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(21,34,59,.12); border: 1px solid var(--line); }
.suggest li { display: flex; align-items: center; gap: .75rem; padding: .7rem .75rem; min-height: 56px; border-radius: 12px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.suggest li.active, .suggest li:hover { background: #f1f7fd; }
.sg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sg-name { font-weight: 700; font-size: 1.02rem; }
.sg-sub { color: var(--gray); font-size: .85rem; margin-top: .15rem; }
.suggest mark { background: none; color: var(--blue-dark); text-decoration: underline; text-decoration-color: rgba(247,148,29,.7);
  text-decoration-thickness: 3px; text-underline-offset: 2px; text-decoration-skip-ink: none; }
.sg-add { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff1e4; color: var(--cta-b); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.suggest li.on .sg-add { background: var(--ok); color: var(--white); font-size: 1rem; }
.suggest li.sg-adv { border-top: 1px dashed var(--line); border-radius: 0 0 12px 12px; margin-top: .2rem; }
.suggest li.sg-adv .sg-add { background: #e4f1fb; color: var(--blue-dark); }

.popular { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .25rem 0 1rem; }
.popular > span { color: var(--gray); font-size: .88rem; font-weight: 700; margin-right: .1rem; }
.pop-chip { font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink); background: var(--white); border: 1px solid #d6e3ef;
  border-radius: 999px; padding: .5rem .9rem; min-height: 40px; cursor: pointer; }
.pop-chip:hover { border-color: var(--blue); }
.pop-chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.picked-wrap { margin: .5rem 0 1rem; }
.picked { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.picked li { display: flex; align-items: center; gap: .75rem; background: var(--white); border: 2px solid var(--orange);
  border-radius: 14px; padding: .55rem .5rem .55rem 1rem; box-shadow: 0 2px 8px rgba(21,34,59,.05); animation: carIn .25s ease-out; }
.picked li.pk-adv { border-color: #b9dcf2; }
.pk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pk-main small { color: var(--gray); font-size: .85rem; }
.pk-x { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--light); color: var(--char);
  font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pk-x:hover { background: #e9eef4; }
.pk-x:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- finance tab on the quote ---------- */
.finance-tab { display: flex; align-items: center; gap: .85rem; margin: -.1rem 0 1rem; padding: .85rem 1rem; min-height: 64px;
  background: linear-gradient(135deg, #eaf6ef, #dff2e7); border: 2px solid #9fd8b8; border-radius: 16px;
  color: var(--ink); text-decoration: none; transition: transform .1s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.finance-tab:hover { box-shadow: 0 6px 18px rgba(31,157,107,.18); }
.finance-tab:active { transform: scale(.985); }
.finance-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fin-ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: var(--white); display: grid; place-items: center; }
.fin-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ok); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fin-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.fin-txt strong { font-size: 1.05rem; }
.fin-txt small { color: var(--char); font-size: .82rem; margin-top: .15rem; }
.fin-go { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.fin-go svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- brand logo tile (replaces the drawing when we have the make's logo) ---------- */
.make-logo { flex: 0 0 auto; display: grid; place-items: center; background: var(--white); border-radius: 16px;
  box-shadow: 0 2px 10px rgba(21,34,59,.08); border: 1px solid var(--line); }
.make-logo img { width: 100%; height: 100%; object-fit: contain; }
.car-preview .make-logo { width: 76px; height: 76px; padding: 8px; }
.for-car .make-logo { width: 40px; height: 40px; padding: 4px; border-radius: 10px; }
.r-car .make-logo { width: 84px; height: 84px; padding: 8px; margin-left: auto; }
.r-car { flex-basis: auto; width: auto; }

/* ---------- owner's thank-you video ---------- */
.thanks-video { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: .9rem; margin: 0 0 1rem;
  box-shadow: 0 4px 16px rgba(21,34,59,.06); }
.thanks-video h3 { font-size: 1rem; margin: 0 0 .7rem; line-height: 1.3; color: var(--char); font-weight: 500; }
.thanks-video h3 .script { display: block; font-size: 1.7rem; line-height: 1; color: var(--blue-dark); margin-bottom: .15rem; }
.video-frame { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #0f1a2e; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thanks-video.vertical .video-frame { max-width: 300px; margin: 0 auto; }
.human-check { margin: .25rem 0 .5rem; }

/* ---------- result screen: value first, price last ---------- */
.r-intro { margin: .25rem 0 1.25rem; padding: .85rem 1rem; background: #f3f8fd; border-left: 4px solid var(--blue); border-radius: 10px;
  color: var(--char); font-size: .95rem; line-height: 1.45; }
.r-intro strong { color: var(--ink); }
.r-value { margin-top: .25rem; }
.r-values { margin: 1.5rem 0 1.75rem; text-align: center; }
.r-values h3 { font-size: 1.2rem; margin-bottom: .9rem; text-align: left; }
.r-values .values-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem .5rem; }
.r-values .values-grid li { flex: 0 0 calc(33.33% - .5rem); }
.r-values .values-grid li:last-child:nth-child(odd) { grid-column: auto; }
.r-values .values-grid img { width: 64px; margin-bottom: .4rem; }
.r-values .values-grid strong { font-size: .78rem; }
.r-values .values-grid span { font-size: .62rem; letter-spacing: .05em; }
.r-values .values-grid span::before, .r-values .values-grid span::after { display: none; }
.r-pricebox { margin: .5rem 0 1rem; padding: 1.1rem 1rem 1rem; border-radius: 20px; background: var(--white);
  border: 2px solid var(--orange); box-shadow: 0 10px 30px rgba(217,72,26,.12); }
.r-price-head { margin-bottom: .9rem; }
.r-price-head .script { display: block; font-size: 2rem; line-height: 1; color: var(--cta-b); }
.r-price-head h3 { font-size: 1.05rem; color: var(--char); font-weight: 500; margin: .25rem 0 0; }
.r-pricebox .r-cta { margin: 1rem 0 0; }
.r-pricebox .finance-tab { margin: 0; }

/* ---------- real photos ---------- */
/* hero: a real photo is a rounded card on phones; on desktop it fades into the page like before */
.hero-art img { border-radius: 18px; -webkit-mask-image: none; mask-image: none; box-shadow: var(--shadow); }
@media (max-width: 899px) { .hero-art { margin: 1.25rem 0 1.5rem; } .hero { padding-bottom: 1.5rem; } .trust-strip { margin-top: 0; } }
@media (min-width: 900px) {
  .hero-art img { border-radius: 0; box-shadow: none; height: 560px; object-fit: cover; object-position: 60% 40%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
}

.people { padding: 2.5rem 16px .5rem; max-width: 1100px; margin: 0 auto; }
.people h2 { text-align: center; font-size: 1.75rem; margin-bottom: 1.25rem; }
.people h2 .script { font-size: 1.2em; }
.people-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
.people figure { margin: 0; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.people img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.people figcaption { padding: .85rem 1rem 1rem; }
.people figcaption strong { display: block; font-size: 1.05rem; }
.people figcaption span { display: block; color: var(--gray); font-size: .9rem; margin-top: .15rem; }

.helper { display: flex; align-items: center; gap: .75rem; margin: .1rem 0 .9rem; padding: .6rem .75rem; border-radius: 14px;
  background: #f3f8fd; border: 1px solid #dcebf7; }
.helper img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.helper p { margin: 0; font-size: .9rem; line-height: 1.35; color: var(--char); }
.step-soft .helper { background: #ffffff; }

.r-photo { margin: 0 0 1.25rem; border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: 0 4px 16px rgba(21,34,59,.08); }
.r-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 35%; }
.r-photo figcaption { padding: .7rem .9rem; font-size: .92rem; color: var(--char); }

/* ---------- shop photo ---------- */
.loc-photo { width: 100%; aspect-ratio: 768 / 450; object-fit: cover; border-radius: 10px; margin-bottom: .6rem; }
.loc-dir { color: #9fd3ef; font-size: .9rem; font-weight: 700; margin-top: .45rem; text-decoration: none; }
.loc-dir:hover { text-decoration: underline; }
.r-shop { margin: 0 0 1rem; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(21,34,59,.06); }
.r-shop:empty { display: none; }
.r-shop img { width: 100%; aspect-ratio: 768 / 450; object-fit: cover; }
.r-shop-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .1rem; }
.r-shop-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark); }
.r-shop-body strong { font-size: 1.1rem; }
.r-shop-body span { color: var(--char); font-size: .92rem; }
.r-shop-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.r-shop-links .btn { flex: 1 1 auto; min-height: 44px; font-size: .95rem; }
.btn-outline-dark { border-color: var(--line); color: var(--ink); background: var(--white); }

/* NCC logo with the animated shield (templates/_brand.html) */
.ncc-logo { display: inline-flex; align-items: center; gap: 2px; line-height: 0; vertical-align: middle; height: var(--logo-h, 42px); }
.ncc-logo img { display: block; height: 100%; width: auto; }
.brand .ncc-logo { height: 42px; }
@media (min-width: 760px) { .brand .ncc-logo { height: 56px; } }

/* The NCC shield, shadow-cast into the corner of each section (same faint watermark as the team portal) */
.values, .why, .step { background-image: url("../img/brand/shield-shadow-light.png"); background-repeat: no-repeat;
  background-position: right -40px bottom -50px; background-size: 170px auto; }
.step-soft { background-image: url("../img/brand/shield-shadow-light.png"), linear-gradient(180deg, #f4f5f6 0%, #fafafa 60%, #fff 100%);
  background-repeat: no-repeat, no-repeat; background-position: right -40px bottom -50px, 0 0; background-size: 170px auto, 100% 100%; }
.loc { background-image: url("../img/brand/shield-shadow-dark.png"); background-repeat: no-repeat;
  background-position: right -26px bottom -34px; background-size: 110px auto; }
@media (min-width: 760px) {
  .values, .why { background-size: 240px auto; background-position: right -50px bottom -60px; }
}
@media print { .values, .why, .step, .step-soft, .loc { background-image: none !important; } }

/* ---- the shop's logo and Jack's, side by side (Jack: made by Neighborhood Car Care, its own identity) */
.cobrand { display: inline-flex; align-items: center; gap: 12px; line-height: 0; vertical-align: middle; }
.cobrand-x { width: 1px; align-self: stretch; margin: 6px 0; background: rgba(255, 255, 255, .22); }
.logo-on-light .cobrand-x, .cobrand.logo-on-light .cobrand-x { background: rgba(32, 37, 39, .2); }
.jack-logo { display: inline-flex; align-items: center; height: var(--jack-h, 36px); line-height: 0; }
.jack-logo img { display: block; height: 100%; width: auto; }
.jack-logo .jack-mark { display: none; }
.shop-logo { display: inline-flex; align-items: center; height: var(--logo-h, 42px); }
.shop-logo img { display: block; height: 100%; width: auto; max-width: 220px; object-fit: contain; }
.brand .cobrand .jack-logo { height: 44px; }
@media (min-width: 760px) { .brand .cobrand .jack-logo { height: 58px; } .brand .shop-logo { height: 56px; } }
@media (max-width: 759px) {          /* phones and the Chrome side panel: Jack's symbol only */
  .brand .cobrand { gap: 8px; }
  .brand .jack-logo .jack-wide { display: none; }
  .brand .jack-logo .jack-mark { display: block; height: 62px; margin: -10px -12px; }
}
.shop-logo .shop-mark { display: none; }
@media (max-width: 759px) {          /* the shop's mark only, next to Jack's symbol: saves room on phones and in the side panel */
  .brand .cobrand .ncc-logo .ncc-word { display: none; }
  .brand .cobrand .shop-logo:has(.shop-mark) .shop-wide { display: none; }
  .brand .cobrand .shop-logo .shop-mark { display: block; }
}

/* Maintenance plans step (between "See My Price" and the estimate) */
.p-cards { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .85rem; }
@media (min-width: 900px) { .my-plans .p-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* the Instant Quote stacks them at every size */
.p-card { border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius); padding: 1rem; background: var(--white);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .35rem; }
.p-card.top { border-top-color: var(--orange); }
.p-name { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dark); }
.p-price { font-size: 1.9rem; font-weight: 800; line-height: 1.1; } .p-price small { font-size: .95rem; font-weight: 600; color: var(--gray); }
.p-price s { font-size: 1.1rem; font-weight: 600; color: var(--gray); }
.p-up { color: var(--ok); font-weight: 700; font-size: .9rem; }
.p-card p { margin: .2rem 0; color: var(--char); }
.p-card ul { margin: .1rem 0 .6rem; padding-left: 1.1rem; font-size: .92rem; color: var(--char); flex: 1; }
.p-fine { color: var(--gray); font-size: .82rem; margin: 0 0 1rem; }
.p-card li.p-credit { font-weight: 800; color: var(--ink); }
.s-actions { display: grid; gap: .6rem; margin-top: 1rem; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 33px; }
.p-bg { display: inline-flex; align-items: center; gap: .4rem; } .p-bg img { height: 33px; width: auto; }
.p-bg small { font-size: .72rem; font-weight: 700; color: var(--gray); line-height: 1.1; max-width: 5.5rem; }
.p-credit-tag { align-self: flex-start; font-size: .88rem; font-weight: 800; color: var(--blue-dark); background: var(--blue-soft); border-radius: 8px; padding: .3rem .6rem; }
.p-card ul.p-lines { list-style: none; padding: 0; display: grid; gap: .45rem; margin: .3rem 0 .7rem; }
.p-lines li { display: grid; grid-template-columns: 1.3rem 1fr; gap: .4rem; }
.p-lines li > span:first-child { color: var(--ok); font-weight: 800; }
.p-lines li small { display: block; font-size: .78rem; color: var(--gray); }
/* the plan's worth: its services at regular price + the repair credit, against what they pay (Henry: build value) */
.p-value { display: grid; gap: .25rem; margin: .15rem 0 .1rem; }
.p-value b { font-size: 1.02rem; color: #1d8a4e; }
.p-ico { display: block; width: 18px; height: 18px; margin-top: .05rem; }
.p-lines li.perk { color: var(--orange, #e5621f); }
.p-lines li.perk > span:first-child { color: var(--orange, #e5621f); }
/* Neighbor Plus, the best value: Miles peeks over the top of its card with a "Best value!" bubble */
.p-card.best { border-top-color: #1d8a4e; position: relative; margin-top: 2.6rem; }
@media (min-width: 900px) { .my-plans .p-cards { padding-top: 2.6rem; } .my-plans .p-card.best { margin-top: 0; } }
.p-best { position: absolute; top: -58px; right: 10px; gap: 4px; pointer-events: none; }
.p-best .miles-art { width: 64px; }
.p-best .miles-bubble { font-size: .82rem; font-weight: 800; color: #1d8a4e; padding: 4px 10px; white-space: nowrap; }
#p-cards .p-lines li { font-weight: 600; } #p-cards .p-lines li small { font-weight: 400; }
#p-cards .p-lines li.off { text-decoration: none; opacity: .45; font-weight: 400; } #p-cards .p-lines li.off > span:last-child { text-decoration: line-through; }
.p-day { font-size: .82rem; font-weight: 700; color: var(--gray); margin-top: -.2rem; }
/* the best-value card stands out: lifted, a soft green glow, and the only solid button (the others are outlined) */
.p-card.best { box-shadow: 0 0 0 2px rgba(29, 138, 78, .25), 0 14px 34px rgba(21, 34, 59, .18); }
@media (min-width: 900px) { .my-plans .p-card.best { transform: scale(1.05); z-index: 1; } .my-plans .p-cards { column-gap: 1.3rem; } }
.p-card:not(.best) [data-plan], .p-card:not(.best) .my-pay > summary { background: #fff; color: var(--orange, #e5621f); box-shadow: inset 0 0 0 2px var(--orange, #e5621f); }
.p-card:not(.best) [data-plan]:hover, .p-card:not(.best) .my-pay > summary:hover { background: #fff4ec; }
.p-bills { display: flex; gap: .25rem; min-height: 15px; }     /* one small $100 bill per $100 of repair credit (Henry: builds value) */
.p-bills img { width: 32px; height: 15px; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }
.p-bg-mini { display: inline-block; height: 1em; width: auto; vertical-align: -.12em; margin-left: .2rem; }   /* lines with a BG product */
.p-lines li.off { color: var(--gray); text-decoration: line-through; opacity: .65; }
.p-lines li.off > span:first-child { color: var(--gray); }

/* Build your plan: BG services by system, and the repair credit more of them unlock */
.b-coach { margin: 0 0 .8rem; } .b-coach .miles-art { width: 72px; } .b-coach .miles-bubble { font-weight: 700; }
.b-ladder { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.b-ladder li { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .5rem; font-size: .76rem; color: var(--gray); background: var(--white); line-height: 1.25; }
.b-ladder b { display: block; font-size: 1rem; color: var(--ink); }
.b-ladder li.on { border-color: var(--orange); background: #fff4e8; } .b-ladder li.on b { color: var(--red-dark); }
.b-systems { display: grid; gap: .7rem; margin: 0 0 1rem; }
.b-sys { border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem; background: var(--white); display: grid; gap: .5rem; }
.b-sys.some { border-color: var(--orange); } .b-sys.whole { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247, 148, 29, .18); }
.b-sys-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.b-sys h3 { margin: 0; font-size: 1.05rem; } .b-sys-head small { color: var(--gray); font-size: .82rem; }
.b-pill { flex: none; font-size: .72rem; font-weight: 800; border-radius: 99px; padding: .2rem .55rem; background: var(--light); color: var(--gray); }
.b-sys.some .b-pill { background: #fff4e8; color: var(--red-dark); } .b-sys.whole .b-pill { background: var(--cta-b); color: var(--white); }
.b-whole { font: inherit; font-weight: 800; font-size: .92rem; text-align: left; border: 1.5px solid var(--cta-b); color: var(--red-dark); background: var(--white);
  border-radius: 10px; padding: .6rem .75rem; cursor: pointer; }
.b-whole[aria-pressed="true"] { background: var(--cta-b); color: var(--white); }
.b-item { display: grid; grid-template-columns: 22px 1fr auto; gap: .6rem; align-items: start; border-top: 1px solid var(--line); padding-top: .5rem; cursor: pointer; font-size: .92rem; }
.b-item input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cta-b); }
.b-item small { display: block; color: var(--gray); font-size: .8rem; }
.b-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-total { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; margin: 0 0 .8rem; box-shadow: var(--shadow); }
.b-total small { display: block; font-size: .8rem; color: var(--ok); font-weight: 700; }
.b-total > b { font-size: 1.4rem; white-space: nowrap; } .b-total > b small { display: inline; color: var(--gray); font-size: .85rem; }
#b-back { margin-top: .6rem; }
.pay-lines em { display: block; font-style: normal; font-size: .82rem; color: var(--gray); }
@media (max-width: 420px) { .b-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Miles, the NCC husky (templates/_miles.html, static/css/miles.css) */
.hero-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-miles .miles-art { width: 84px; }
.loading-miles { display: flex; justify-content: center; margin: 0 0 1rem; }
.loading .spinner { width: 34px; height: 34px; border-width: 4px; margin-bottom: 0; }
.r-pricebox { position: relative; }
.r-price-miles { position: absolute; top: -34px; right: 6px; }
.r-price-miles .miles-art { width: 84px; }
@media (max-width: 420px) { .r-price-miles .miles-art { width: 68px; } .r-price-miles { top: -26px; } }
.sheet-miles { flex: none; margin: -6px 0; } .sheet-miles .miles-art { width: 46px; }   /* whole silhouette inside the bar */
/* Paying for a maintenance plan online */
.pay-opts { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.pay-opt { display: flex; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; background: var(--white); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(229, 98, 31, .18); }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.pay-opt b { font-size: 1.35rem; display: block; line-height: 1.1; } .pay-opt small { color: var(--gray); }
.pay-opt > span { flex: 1; }
.pay-save { flex: none; text-align: right; font-style: normal; font-weight: 800; font-size: .95rem; color: #fff; background: #1d8a4e;
  border-radius: 10px; padding: .35rem .65rem; line-height: 1.2; }
.pay-save small { display: block; font-weight: 600; font-size: .72rem; color: rgba(255, 255, 255, .9); max-width: 9.5rem; }
.pay-agree { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: var(--char); background: #f6f8fb;
  border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; margin: 0 0 1rem; }
.pay-agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.pay-agree span { flex: 1 1 80%; } .pay-agree a { flex-basis: 100%; padding-left: 28px; font-weight: 700; }
.pay-err { color: #b42318; font-weight: 700; margin: 0 0 .8rem; }
/* Stripe's embedded form: while it's open, only the heading, the form and "Change my plan" show */
.step.paying > :not(.pay-embed-wrap):not(h2):not(.step-count) { display: none; }
.pay-embed { min-height: 360px; margin: 0 0 1rem; border-radius: 14px; overflow: hidden; background: #fff; }
#pay-later { margin-top: .6rem; }
.pay-opts legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pay-second { border: 1px dashed var(--line); border-radius: 12px; padding: .8rem .9rem; margin: 0 0 1rem; display: grid; gap: .6rem; }
.pay-second-q { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.pay-second-q input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange); flex: none; }
.pay-second .field { margin: 0; }
.pay-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .92rem; }
.pay-lines li { display: flex; justify-content: space-between; gap: .8rem; border-top: 1px solid var(--line); padding-top: .35rem; }
.pay-lines small { color: var(--ok); font-weight: 700; margin-left: .3rem; }

/* ---------- returning customers: code, their cars, last visit's recommendations ---------- */
.returning { margin: -.25rem 0 1rem; padding: .9rem 1rem; border: 1px solid #d6e9f6; border-radius: 16px;
  background: linear-gradient(135deg, #f3f9fe, #e8f3fb); }
.rt-hi { margin: 0 0 .6rem; line-height: 1.45; }
.rt-row { display: flex; gap: .5rem; }
.rt-row input { flex: 1; min-width: 0; font-size: 1.15rem; letter-spacing: .25em; text-align: center; padding: .7rem; border: 2px solid var(--line);
  border-radius: 12px; }
.rt-row .btn { white-space: nowrap; }
.rt-small { margin: .5rem 0 0; font-size: .85rem; color: var(--char); }
.rt-link { background: none; border: 0; padding: 0; color: #177EAB; font: inherit; text-decoration: underline; cursor: pointer; }
.rt-list { display: grid; gap: .5rem; }
.rt-car { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; background: var(--white); border: 2px solid var(--line);
  border-radius: 14px; padding: .6rem .8rem; font: inherit; color: var(--ink); cursor: pointer; }
.rt-car:hover, .rt-car.on { border-color: var(--orange); }
.rt-car .car-svg, .rt-car .make-logo { flex: 0 0 64px; width: 64px; }
.rt-car strong { display: block; }
.rt-car small { color: var(--char); }
.deferred { margin: 0 0 1rem; padding: .9rem 1rem; border: 2px solid var(--orange); border-radius: 16px; background: #fff8ef; }
.deferred .step-sub { margin: .1rem 0 .6rem; }
.deferred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.deferred-list label { display: flex; align-items: center; gap: .6rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: .55rem .7rem; cursor: pointer; }
.deferred-list input { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.deferred-list span { flex: 1; }
.deferred-list small { display: block; color: var(--char); font-size: .82rem; }
.r-items li.r-deferred .r-price { font-size: .95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the second vehicle's own BG builder (compact) */
.b-mini { display: grid; gap: .5rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.b-mini-head { margin: 0; display: grid; } .b-mini-head small { color: var(--ok); font-weight: 700; font-size: .82rem; }
.b-mini-sys { display: grid; gap: .25rem; font-size: .9rem; }
.b-mini-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 800; }
.b-mini-whole { font: inherit; font-size: .78rem; font-weight: 800; border: 1.5px solid var(--cta-b); color: var(--red-dark); background: var(--white); border-radius: 99px; padding: .15rem .6rem; cursor: pointer; }
.b-mini-whole[aria-pressed="true"] { background: var(--cta-b); color: var(--white); }
.b-mini label { display: grid; grid-template-columns: 20px 1fr auto; gap: .45rem; align-items: center; cursor: pointer; }
.b-mini input { width: 18px; height: 18px; margin: 0; accent-color: var(--cta-b); }
.b-mini label small { color: var(--gray); font-weight: 700; white-space: nowrap; }
#s-build { margin-top: .8rem; }
/* Instant Quote: the Sandbox test shop (admins only) and booking right from the estimate */
.seg-test span { border-style: dashed !important; }
.seg-test-note { display: block; margin-top: .35rem; font-size: .78rem; color: var(--gray); }
.r-book { display: grid; gap: .6rem; border: 1.5px solid var(--cta-b); border-radius: var(--radius); padding: .9rem; background: var(--white); text-align: left; }
.r-book > strong { font-size: 1.15rem; } .r-book > small { color: var(--gray); margin-top: -.4rem; }
.rb-mode { display: flex; gap: .5rem; flex-wrap: wrap; }
.rb-mode label { display: flex; gap: .4rem; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; padding: .35rem .8rem; cursor: pointer; font-weight: 700; }
.rb-mode label:has(input:checked) { border-color: var(--cta-b); background: #fff4e8; } .rb-mode input { accent-color: var(--cta-b); }
.r-book .bk-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(60px, 1fr); gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.r-book .bk-day { font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); padding: 6px 0; cursor: pointer; display: grid; font-size: .76rem; color: var(--gray); }
.r-book .bk-day b { font-size: 1.1rem; color: var(--ink); } .r-book .bk-day[aria-pressed="true"] { border-color: var(--cta-b); background: #fff4e8; }
.r-book .bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.r-book .bk-slot { font: inherit; font-weight: 700; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); padding: 8px 0; cursor: pointer; }
.r-book .bk-slot[aria-pressed="true"] { background: var(--cta-b); border-color: var(--cta-b); color: #fff; }
.r-book .bk-slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.r-book .bk-hint { grid-column: 1 / -1; color: var(--gray); margin: 0; }
.rb-done { margin: 0; font-weight: 800; color: var(--ok); }

/* a picture of their own car (vehicle_art.py, /api/vehicle-art) in place of the brand logo. The pictures are square with
   the car in the middle 60%, so a 3:2 box cropped to fill (cover) shows every car whole and as big as it can be */
.car-art { display: contents; }
.car-art.car-pic { display: block; position: relative; flex: 0 0 auto; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 64%, #fff 0%, #f1f4f7 55%, #e3e8ee 100%); }
.car-pic-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: car-pic-in .35s ease both; }
@keyframes car-pic-in { from { opacity: 0; transform: translateX(-8px); } }
@media (prefers-reduced-motion: reduce) { .car-pic-img { animation: none; } }
.car-preview .car-art.car-pic { width: 150px; height: 100px; }
.for-car .car-art.car-pic { width: 66px; height: 44px; border-radius: 10px; }
.r-car .car-art.car-pic { width: 165px; height: 110px; margin-left: auto; }
.rt-car .car-art.car-pic { width: 96px; height: 64px; flex: 0 0 96px; }
@media (max-width: 420px) { .car-preview .car-art.car-pic { width: 117px; height: 78px; } .r-car .car-art.car-pic { width: 120px; height: 80px; } }

/* Inside My Garage's booking pop-up (?embed=1, app.js): just the quote form, filling the pop-up */
.iq-embed body > *:not(.sheet):not(script) { display: none !important; }
.iq-embed body { background: #fff; }
.iq-embed .sheet { background: none; padding: 0; align-items: stretch; justify-content: stretch; }
.iq-embed .sheet-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; box-shadow: none; }

/* booking: pickup & delivery address check */
.rb-pickup { display: grid; gap: .5rem; margin: .5rem 0; }
.rb-addr-msg { margin: 0; font-weight: 700; font-size: .9rem; } .rb-addr-msg.ok { color: #1d8a4e; } .rb-addr-msg.no { color: #b42318; }
.rb-visit { margin: 6px 0 2px; padding: 10px 12px; border-radius: 12px; background: #fff5ea; color: #8a4200; font-size: .92rem; font-weight: 600; }
.rb-visit[hidden] { display: none; }
.rb-mode label[hidden], .rb-pickup[hidden] { display: none; }
