/* ══════════════════════════════════════════
   Quick Quote page (quick-quote.html). Uses the brand tokens from
   theme.css; field styling mirrors the project inquiry form on
   contact.html. Everything is under .qq- to stay out of the way of
   shared styles.
══════════════════════════════════════════ */

.qq-section { padding: 0 0 72px; background: var(--grad-hero); position: relative; }
.qq-wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.qq-card {
  position: relative;
  margin-top: -24px;
  background: var(--bg-0, #fff);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-xl, 28px);
  box-shadow: var(--shadow-pop);
  /* Trims the gradient strip to the rounded corners. clip where supported:
     it does the same without making the card a scroll container. */
  overflow: hidden;
  overflow: clip;
  min-height: 320px;
}
.qq-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-brand);
}

.qq-head { padding: 36px 40px 4px; }
.qq-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.qq-head p { font-size: .98rem; line-height: 1.6; color: var(--ink-3); max-width: 64ch; }

/* ── Layout: fields left, sticky estimate right ── */
.qq-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px; padding: 24px 40px 28px;
  align-items: start;
}
.qq-main { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; min-width: 0; }
.qq-field { display: flex; flex-direction: column; min-width: 0; border: 0; padding: 0; margin: 0; }
.qq-wide { grid-column: 1 / -1; }
/* The display rules above would otherwise override the hidden attribute. */
.qq-field[hidden] { display: none; }

.qq-field > label,
.qq-field > legend {
  font-size: 13.5px; font-weight: 600; color: var(--ink-1);
  margin-bottom: 8px; padding: 0;
}
.qq-req { color: var(--c-danger); margin-left: 3px; }
.qq-opt { color: var(--ink-4); font-weight: 500; font-size: 12px; margin-left: 6px; }

.qq-field input[type="text"],
.qq-field input[type="email"],
.qq-field input[type="number"],
.qq-field select,
.qq-field textarea {
  width: 100%;
  font: inherit; font-size: 15px; color: var(--ink-1);
  background: var(--bg-1);
  border: 1.5px solid var(--stroke-2);
  border-radius: var(--r-md, 14px);
  padding: 13px 15px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.qq-field textarea { min-height: 120px; line-height: 1.6; resize: vertical; }
.qq-field input::placeholder, .qq-field textarea::placeholder { color: var(--ink-4); }
.qq-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6086' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px;
}
.qq-field select.is-placeholder { color: var(--ink-4); }
.qq-field input:hover, .qq-field select:hover, .qq-field textarea:hover { border-color: var(--stroke-brand); }
.qq-field input:focus, .qq-field select:focus, .qq-field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(45,107,255,.14);
}

.qq-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; line-height: 1.5; }
.qq-hint:empty { display: none; }
.qq-adjust {
  display: flex; gap: 6px; margin-top: 7px; padding: 7px 10px;
  font-size: 12.5px; line-height: 1.45; color: #1F4FC4;
  background: rgba(45,107,255,.07); border: 1px solid rgba(45,107,255,.2);
  border-radius: var(--r-sm, 10px);
}
.qq-adjust[hidden] { display: none; }
.qq-err { display: none; font-size: 12.5px; color: var(--c-danger); margin-top: 7px; }
.qq-field.invalid .qq-err { display: block; }
.qq-field.invalid input, .qq-field.invalid select, .qq-field.invalid textarea,
.qq-field.invalid .qq-stepper { border-color: var(--c-danger); background: rgba(239,68,68,.03); }
.qq-field.invalid input:focus, .qq-field.invalid select:focus, .qq-field.invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,.14);
}

.qq-email-wrap { position: relative; }
.qq-email-wrap input { padding-right: 42px !important; }
.qq-ok-icon {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%) scale(.6);
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-success); color: #fff; opacity: 0;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.qq-ok-icon svg { width: 12px; height: 12px; }
.qq-field.valid .qq-ok-icon { opacity: 1; transform: translateY(-50%) scale(1); }
.qq-field.valid input[type="email"] { border-color: rgba(16,185,129,.55); }

.qq-count { align-self: flex-end; font-size: 11.5px; color: var(--ink-4); margin-top: 6px; font-family: var(--font-mono); }

/* ── Pages / screens stepper ── */
.qq-stepper {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--stroke-2);
  border-radius: var(--r-md, 14px);
  background: var(--bg-1);
  overflow: hidden;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.qq-stepper:focus-within { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(45,107,255,.14); background: #fff; }
.qq-field .qq-stepper input[type="number"] {
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  text-align: center; font-weight: 600; font-size: 16px;
  -moz-appearance: textfield;
}
.qq-stepper input::-webkit-outer-spin-button,
.qq-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qq-step {
  flex: 0 0 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink-2);
  cursor: pointer; font: inherit;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.qq-step:hover:not(:disabled) { background: rgba(45,107,255,.08); color: var(--c-blue); }
.qq-step:disabled { opacity: .35; cursor: not-allowed; }
.qq-step svg { width: 16px; height: 16px; }

/* ── Add-on services ── */
.qq-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qq-addon {
  position: relative;
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px;
  border: 1.5px solid var(--stroke-2);
  border-radius: var(--r-md, 14px);
  background: var(--bg-1);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.qq-addon:hover { border-color: var(--stroke-brand); }
.qq-addon input { position: absolute; opacity: 0; pointer-events: none; }
.qq-addon .qq-check {
  flex: 0 0 18px; height: 18px; margin-top: 2px;
  border-radius: 6px; border: 1.5px solid var(--ink-4);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; background: #fff;
  transition: all var(--dur-fast);
}
.qq-addon .qq-check svg { width: 12px; height: 12px; }
.qq-addon input:checked ~ .qq-check { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.qq-addon input:focus-visible ~ .qq-check { box-shadow: 0 0 0 3px rgba(45,107,255,.25); }
.qq-addon:has(input:checked) { border-color: var(--c-blue); background: rgba(45,107,255,.05); }
.qq-addon-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qq-addon-name { font-size: 13.5px; font-weight: 600; color: var(--ink-1); line-height: 1.35; }
.qq-addon-meta { font-size: 12px; color: var(--ink-3); line-height: 1.4; }

/* ── Estimate panel ── */
/* Not sticky: theme.css sets overflow-x: hidden on html and body, which
   disables sticky positioning site-wide. Submit therefore lives in the
   footer under every field, not in this panel. */
.qq-summary {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px;
  border-radius: var(--r-lg, 20px);
  background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
  border: 1px solid var(--stroke-brand);
  box-shadow: var(--shadow-card);
}
.qq-summary h3 {
  font-size: 12px; font-family: var(--font-mono); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--c-blue);
}
.qq-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.qq-lines li {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.45;
  padding: 8px 0; border-bottom: 1px dashed var(--stroke-2);
}
.qq-lines li span:last-child { white-space: nowrap; font-weight: 600; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.qq-lines .qq-empty { color: var(--ink-4); justify-content: flex-start; border-bottom: 0; }
.qq-lines .qq-sub { padding: 4px 0 4px 12px; border-bottom: 0; font-size: 12.5px; color: var(--ink-3); position: relative; }
.qq-lines .qq-sub::before { content: ''; position: absolute; left: 2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--c-blue); }
.qq-lines .qq-sub span:last-child { font-weight: 500; color: var(--ink-3); }
  font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.qq-disclaimer { font-size: 12px; line-height: 1.55; color: var(--ink-3); }

.qq-status {
  display: none; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: var(--r-md, 14px);
  font-size: 13px; line-height: 1.5;
}
.qq-status.show { display: flex; }
.qq-status svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.qq-status.bad { background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.26); color: #B02A2A; }
.qq-status.ok { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.28); color: #0B7A5B; }
.qq-status a { color: inherit; text-decoration: underline; }

.qq-verify-help, .qq-help { font-size: 12.5px; color: var(--ink-4); max-width: 40ch; }

.qq-submit { justify-content: center; padding: 15px 28px; font-size: 15px; cursor: pointer; border: 0; min-width: 260px; flex-shrink: 0; }

/* Form footer: status, privacy note and Submit, after all the fields. */
.qq-foot { padding: 22px 40px 36px; border-top: 1px dashed var(--stroke-2); display: flex; flex-direction: column; gap: 14px; }
.qq-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.qq-foot .qq-note { max-width: 52ch; }
.qq-submit svg { width: 17px; height: 17px; }
.qq-submit[disabled] { opacity: .75; cursor: progress; transform: none; }
.qq-spinner {
  display: none; width: 17px; height: 17px; border-radius: 50%;
  border: 2.2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: qq-spin .7s linear infinite;
}
.qq-submit.is-loading .qq-spinner { display: inline-block; }
.qq-submit.is-loading .qq-send-icon { display: none; }
@keyframes qq-spin { to { transform: rotate(360deg); } }
.qq-note { display: flex; gap: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.qq-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--c-success); }

.qq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Loading / error / success panes ── */
.qq-pane { padding: 56px 40px 64px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qq-pane h3 { font-size: 1.5rem; }
.qq-pane p { max-width: 52ch; line-height: 1.6; }
.qq-pane .qq-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.qq-pane .btn { cursor: pointer; border: 0; }
.qq-pane .btn-outline { border: 1.5px solid var(--ink-1); }
.qq-big-spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(45,107,255,.18); border-top-color: var(--c-blue);
  animation: qq-spin .8s linear infinite;
}
.qq-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,.1); color: var(--c-success);
  box-shadow: 0 0 0 8px rgba(16,185,129,.06);
}
.qq-success-icon svg { width: 30px; height: 30px; }
.qq-receipt {
  width: min(420px, 100%);
  margin-top: 6px; padding: 16px 20px;
  border-radius: var(--r-lg, 20px);
  background: var(--bg-2); border: 1px solid var(--stroke-1);
  display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; text-align: left;
  font-size: 14px;
}
.qq-receipt dt { color: var(--ink-3); }
.qq-receipt dd { margin: 0; color: var(--ink-1); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* ── Hero visual ──────────────────────────────────────────────
   Same card, header and step rail as the pillar-page visuals built by
   tools/blocks.mjs (.strat-viz and friends). One shared 14s loop; every
   step is a % of that cycle so the total, page count and rail stay locked:
     0-22%  Website, 5 pages, Draft        step 1 bar fills
    22-32%  meter grows to 12 pages, Pricing step 2 starts
    38-46%  SEO ticks on, Ready           step 2 completes
    56-92%  quote emailed                 step 3 fills
   It shows no prices on purpose: pricing only ever happens on the server. */
.qv-viz { display: flex; justify-content: center; align-items: center; min-height: 420px; padding: 8px 0; }
.qv-card { position: relative; width: 100%; max-width: 392px; padding: 20px 20px 18px; background: #fff; border: 1px solid var(--stroke-1); border-radius: var(--r-xl); box-shadow: var(--shadow-card); }
.qv-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad-brand-135); opacity: .2; pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }

.qv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.qv-live { width: 7px; height: 7px; border-radius: 50%; background: var(--c-blue); animation: qvLive 2.4s ease-out infinite; }
.qv-head-t { font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink-1); }
.qv-head-r { margin-left: auto; display: inline-grid; justify-items: end; align-items: center; }
.qv-head-r > * { grid-area: 1 / 1; }
.qv-head-n { animation: qvUsd 14s ease-in-out infinite; font-family: var(--font-mono); font-size: .66rem; color: var(--ink-4); }
@keyframes qvLive { 0% { box-shadow: 0 0 0 0 rgba(45,107,255,.45); } 70% { box-shadow: 0 0 0 7px rgba(45,107,255,0); } 100% { box-shadow: 0 0 0 0 rgba(45,107,255,0); } }

.qv-panel { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--bg-1); border: 1px solid var(--stroke-1); overflow: hidden; }
.qv-row { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.qv-k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.qv-row > .qv-k { flex: 1; }
.qv-chip { font-family: var(--font-display); font-size: .8rem; font-weight: 600; color: var(--c-blue); padding: 4px 10px; border-radius: var(--r-pill); background: rgba(45,107,255,.08); border: 1px solid rgba(45,107,255,.18); }

/* Values that change are stacked in one grid cell, one visible at a time. */
.qv-swap { display: inline-grid; justify-items: end; }
.qv-swap > span { grid-area: 1 / 1; opacity: 0; animation: 14s ease-in-out infinite; }
.qv-pages > span { font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--ink-1); }
.qv-pages > span:nth-child(1) { animation-name: qvPg1; }
.qv-pages > span:nth-child(2) { animation-name: qvPg2; }
@keyframes qvPg1 { 0%, 26% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes qvPg2 { 0%, 26% { opacity: 0; transform: translateY(6px); } 30%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }

.qv-meter { height: 6px; margin-top: -4px; border-radius: var(--r-pill); background: var(--stroke-1); overflow: hidden; }
.qv-meter span { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand); transform-origin: left; transform: scaleX(.25); animation: qvMeter 14s ease-in-out infinite; }
@keyframes qvMeter { 0%, 22% { transform: scaleX(.25); } 30%, 92% { transform: scaleX(.6); } 100% { transform: scaleX(.25); } }

.qv-addon { padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--stroke-1); background: #fff; animation: qvAddon 14s ease-in-out infinite; }
.qv-box { flex: 0 0 16px; height: 16px; border-radius: 5px; border: 1.5px solid #C5C9DF; display: inline-flex; align-items: center; justify-content: center; color: transparent; animation: qvBox 14s ease-in-out infinite; }
.qv-box svg { width: 10px; height: 10px; }
.qv-addon-t { flex: 1; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.qv-addon-p { font-family: var(--font-mono); font-size: .68rem; color: var(--c-blue); opacity: 0; animation: qvAddP 14s ease-in-out infinite; }
@keyframes qvAddP { 0%, 40% { opacity: 0; } 44%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes qvAddon { 0%, 38% { border-color: var(--stroke-1); box-shadow: none; } 43%, 92% { border-color: rgba(45,107,255,.45); box-shadow: 0 4px 14px rgba(45,107,255,.12); } 100% { border-color: var(--stroke-1); box-shadow: none; } }
@keyframes qvBox { 0%, 38% { background: transparent; border-color: #C5C9DF; color: transparent; transform: scale(1); } 41% { transform: scale(1.25); } 43%, 92% { background: var(--c-blue); border-color: var(--c-blue); color: #fff; transform: scale(1); } 100% { background: transparent; border-color: #C5C9DF; color: transparent; } }

.qv-total { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--stroke-2); }
.qv-sum > span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.qv-sum > span:nth-child(1) { animation-name: qvSum1; }
.qv-sum > span:nth-child(2) { animation-name: qvSum2; }
.qv-sum > span:nth-child(3) { animation-name: qvSum3; }
@keyframes qvSum1 { 0%, 28% { opacity: 1; transform: none; } 32%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes qvSum2 { 0%, 28% { opacity: 0; transform: translateY(8px); } 32%, 39% { opacity: 1; transform: none; } 42%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes qvSum3 { 0%, 39% { opacity: 0; transform: translateY(8px); } 42%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }

.qv-sent { display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 600; color: #0B7A5B; background: #E9FBF4; border: 1px solid rgba(16,185,129,.3); box-shadow: 0 6px 16px rgba(16,185,129,.18); opacity: 0; animation: qvSent 14s ease-in-out infinite; }
.qv-sent svg { width: 12px; height: 12px; }
@keyframes qvUsd { 0%, 64% { opacity: 1; } 67%, 95% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes qvSent { 0%, 66% { opacity: 0; transform: translateY(-6px) scale(.9); } 70%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-6px) scale(.9); } }

.qv-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.qp { position: relative; padding: 9px 10px 11px; border-radius: var(--r-sm); background: var(--bg-1); border: 1px solid var(--stroke-1); overflow: hidden; animation: 14s ease-in-out infinite; }
.qp-n { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.qp-t { display: block; margin-top: 2px; font-family: var(--font-display); font-size: .78rem; font-weight: 600; color: var(--ink-1); }
.qp-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; animation: 14s ease-in-out infinite; }
/* Timing lives in the percentages, not animation-delay, so the last step
   cannot wrap past the end of the cycle and flicker. */
.qp:nth-child(1) { animation-name: qvP1; } .qp:nth-child(1) .qp-bar { animation-name: qvBar1; }
.qp:nth-child(2) { animation-name: qvP2; } .qp:nth-child(2) .qp-bar { animation-name: qvBar2; }
.qp:nth-child(3) { animation-name: qvP3; } .qp:nth-child(3) .qp-bar { animation-name: qvBar3; }
@keyframes qvP1 { 0%, 2% { border-color: var(--stroke-1); background: var(--bg-1); box-shadow: none; } 8%, 92% { border-color: rgba(91,61,255,.28); background: #fff; box-shadow: var(--shadow-2); } 100% { border-color: var(--stroke-1); background: var(--bg-1); box-shadow: none; } }
@keyframes qvP2 { 0%, 22% { border-color: var(--stroke-1); background: var(--bg-1); box-shadow: none; } 28%, 92% { border-color: rgba(91,61,255,.28); background: #fff; box-shadow: var(--shadow-2); } 100% { border-color: var(--stroke-1); background: var(--bg-1); box-shadow: none; } }
@keyframes qvP3 { 0%, 56% { border-color: var(--stroke-1); background: var(--bg-1); box-shadow: none; } 62%, 92% { border-color: rgba(91,61,255,.28); background: #fff; box-shadow: var(--shadow-2); } 100% { border-color: var(--stroke-1); background: var(--bg-1); box-shadow: none; } }
@keyframes qvBar1 { 0%, 2% { transform: scaleX(0); } 20%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes qvBar2 { 0%, 22% { transform: scaleX(0); } 46%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes qvBar3 { 0%, 56% { transform: scaleX(0); } 70%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

/* "Start your quote" lands the form just below the fixed nav. */
#quote-form { scroll-margin-top: calc(var(--nav-h, 84px) - 8px); }

/* ── Responsive ── */
@media (max-width: 720px) {
  .qv-viz { min-height: 360px; }
  .qv-card { max-width: 340px; }
}
@media (max-width: 960px) {
  .qq-grid { grid-template-columns: 1fr; gap: 24px; }
  /* Stacked, the recap would sit between the last field and Submit while
     only repeating the fields just above it, so phones skip it. */
  .qq-summary { display: none; }
  .qq-foot-row { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .qq-submit { width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
  .qq-section { padding-bottom: 64px; }
  .qq-wrap { padding: 0 16px; }
  .qq-card { border-radius: var(--r-lg, 20px); margin-top: -16px; }
  .qq-head { padding: 28px 20px 4px; }
  .qq-grid { padding: 18px 20px 22px; }
  .qq-foot { padding: 18px 20px 24px; }
  .qq-main { grid-template-columns: 1fr; }
  .qq-addons { grid-template-columns: 1fr; }
  .qq-summary { padding: 20px; }
  .qq-pane { padding: 44px 20px 48px; }
  /* 16px stops iOS zooming into focused fields. */
  .qq-field input[type="text"], .qq-field input[type="email"], .qq-field select, .qq-field textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .qq-spinner, .qq-big-spinner { animation-duration: 1.6s; }
  /* Settle the hero visual on its finished state rather than animating. */
  .qv-card, .qv-card * { animation: none !important; }
  .qv-swap > span { opacity: 0; }
  .qv-swap > span:last-child { opacity: 1; }
  .qv-meter span { transform: scaleX(.12); }
  .qv-addon { border-color: rgba(45,107,255,.45); }
  .qv-box { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
  .qv-sent { opacity: 1; }
  .qv-addon-p { opacity: 1; }
  .qv-head-n { opacity: 0; }
  .qp { border-color: rgba(91,61,255,.28); background: #fff; }
  .qp-bar { transform: scaleX(1); }
}
