/* Car financing: payment estimator (/financing/) and pre-qualification form (modal and /pre-qualify/).
   Loaded after styles.css and theme.css, only on those pages. Motion runs under html.fx (visitor allows motion). */

/* Page hero */
.fin-hero { position: relative; background: var(--grad-night); color: #fff; overflow: hidden; isolation: isolate; }
.fin-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(47, 111, 228, .45) 0%, rgba(47, 111, 228, 0) 60%),
    radial-gradient(70% 80% at 0% 110%, rgba(242, 179, 61, .30) 0%, rgba(242, 179, 61, 0) 55%);
}
.fin-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 35%, var(--blue-bright) 100%);
}
.fin-hero-inner { padding-top: 56px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.fin-hero .crumbs, .fin-hero .crumbs a { color: #AFC0DD; }
.fin-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin-top: 14px; text-wrap: balance; }
.fin-hero h1 em { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fin-hero-copy p { font-size: 18px; line-height: 1.55; color: #D9E3F5; max-width: 50ch; margin-top: 14px; }
.fin-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.fin-hero-actions .btn { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-glass { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .6); }
.fin-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fin-perks li {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px);
}
.fin-perks svg { width: 22px; height: 22px; flex: none; fill: var(--gold-2); margin-top: 1px; }
.fin-perks strong { display: block; font-size: 16px; }
.fin-perks span { font-size: 14px; color: #C3D0E6; line-height: 1.45; }

/* Estimator */
.fin-wrap { margin-top: -88px; position: relative; z-index: 2; padding-bottom: 24px; }
.fin-sim { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.fin-controls { padding: 28px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow-lg); border: 0; border-radius: 20px; }
.fin-h2 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); }
.fin-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fin-set { border: 0; margin: 0; padding: 0; }
.fin-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fin-label { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 8px; }
.fin-label-row .fin-label { margin-bottom: 0; }
.fin-hint { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.fin-money, .pq-money {
  display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 14px; background: #fff;
  border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.fin-money:hover, .pq-money:hover { border-color: var(--blue-soft); }
.fin-money:focus-within, .pq-money:focus-within { border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(47, 111, 228, .16); }
.fin-money span, .pq-money > span { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.fin-input, .pq-money input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%;
  font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
}
.fin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fin-quick { display: flex; gap: 6px; }
.fin-quick-btn {
  flex: 1; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s var(--ease);
}
.fin-quick-btn:hover { border-color: var(--blue); color: var(--blue); }
.fin-quick-btn.active { background: var(--sky); border-color: var(--blue); color: var(--blue-dark); }

/* Price slider with a filled track */
.fin-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 4px 0 0; cursor: pointer;
  --pct: 30%;
}
.fin-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--blue-bright) 0, var(--blue) var(--pct), var(--line) var(--pct), var(--line) 100%);
}
.fin-range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.fin-range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue); }
.fin-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff;
  border: 6px solid var(--blue); box-shadow: 0 2px 8px rgba(11, 31, 68, .3); transition: transform .2s var(--spring);
}
.fin-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); box-shadow: 0 2px 8px rgba(11, 31, 68, .3); }
.fin-range:active::-webkit-slider-thumb, .fin-range:focus-visible::-webkit-slider-thumb { transform: scale(1.18); }
.fin-range:focus-visible { outline: none; }
.fin-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-top: -4px; }

/* Option cards (credit score, term) */
.fin-opts { display: grid; gap: 8px; }
.fin-opts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fin-opts-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fin-opt { position: relative; cursor: pointer; }
.fin-opt input, .pq-opt input, .fin-freq input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fin-opt span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 6px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; text-align: center;
  transition: border-color .2s, background .2s, box-shadow .25s var(--ease), transform .2s var(--ease);
}
.fin-opt-sm span { min-height: 56px; }
.fin-opt strong { font-size: 16px; font-weight: 800; color: var(--ink); }
.fin-opt small { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.fin-opt:hover span { border-color: var(--blue-soft); background: #FAFCFF; }
.fin-opt input:checked + span { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue), 0 6px 16px -10px rgba(20, 89, 184, .8); }
.fin-opt input:checked + span strong { color: var(--blue-dark); }
.fin-opt input:focus-visible + span, .pq-opt input:focus-visible + span { outline: 3px solid rgba(47, 111, 228, .55); outline-offset: 2px; }
.fin-opt:active span { transform: scale(.97); }

/* Taxes switch */
.fin-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px 16px; border-radius: 12px; background: var(--bg); position: relative; }
.fin-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fin-switch-ui { width: 46px; height: 28px; flex: none; border-radius: 999px; background: var(--line-2); position: relative; transition: background .25s; }
.fin-switch-ui::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(11, 31, 68, .3); transition: transform .3s var(--spring);
}
.fin-switch input:checked + .fin-switch-ui { background: var(--blue); }
.fin-switch input:checked + .fin-switch-ui::after { transform: translateX(18px); }
.fin-switch input:focus-visible + .fin-switch-ui { outline: 3px solid rgba(47, 111, 228, .55); outline-offset: 2px; }
.fin-switch-copy { display: flex; flex-direction: column; gap: 2px; }
.fin-switch-copy strong { font-size: 15px; color: var(--ink); }
.fin-switch-copy small { font-size: 13px; color: var(--ink-2); }

/* Result card */
.fin-result {
  position: sticky; top: 88px; border-radius: 20px; padding: 26px; color: #fff; text-align: center;
  background: var(--grad-night); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 6px; overflow: hidden; isolation: isolate;
}
.fin-result::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 60% at 50% 0%, rgba(47, 111, 228, .35) 0%, rgba(47, 111, 228, 0) 70%);
}
.fin-freq { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); width: 100%; max-width: 280px; margin-bottom: 14px; }
.fin-freq label { position: relative; z-index: 1; cursor: pointer; }
.fin-freq span { display: block; padding: 8px 10px; font-size: 14px; font-weight: 700; color: #C3D0E6; border-radius: 999px; transition: color .25s; }
.fin-freq input:checked + span { color: var(--navy); }
.fin-freq input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.fin-freq-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--grad-gold); transition: transform .35s var(--spring); }
.fin-freq:has(input[value="biweekly"]:checked) .fin-freq-pill { transform: translateX(100%); }
.fin-kicker { font-size: 15px; color: #C3D0E6; }
.fin-amount { display: flex; align-items: flex-start; justify-content: center; gap: 4px; line-height: 1; }
.fin-amount span { font-size: clamp(54px, 6vw, 72px); font-weight: 800; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.fin-amount small { font-size: 18px; font-weight: 700; color: var(--gold-2); align-self: flex-end; margin-bottom: 10px; }
.fin-apr { font-size: 15px; color: #C3D0E6; }
.fin-apr strong { color: #fff; }
.fin-bar { display: flex; width: 100%; height: 10px; border-radius: 10px; overflow: hidden; background: var(--gold); margin-top: 18px; }
.fin-bar-p { background: linear-gradient(90deg, #5B8FF0, var(--blue-bright)); transition: width .5s var(--ease); }
.fin-bar-i { flex: 1; }
.fin-legend { display: flex; gap: 16px; font-size: 12.5px; color: #C3D0E6; align-self: flex-start; margin-top: 4px; }
.fin-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-p { background: var(--blue-bright); }
.dot-i { background: var(--gold); }
.fin-break { width: 100%; margin: 12px 0 14px; display: flex; flex-direction: column; text-align: left; }
.fin-break div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.fin-break dt { color: #C3D0E6; }
.fin-break dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.fin-break .fin-break-strong dt, .fin-break .fin-break-strong dd { color: #fff; font-weight: 800; }
.fin-cta { width: 100%; height: 54px; font-size: 17px; font-weight: 800; border-radius: 999px; }
.fin-cta-note { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #C3D0E6; margin-top: 4px; }
.fin-cta-note svg { width: 14px; height: 14px; fill: var(--gold-2); }
.fin-cta-note strong { color: #fff; }
.fin-shop { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--gold-2); }
.fin-shop:hover { color: #fff; text-decoration: none; }
.fin-shop svg { width: 14px; height: 14px; fill: currentColor; transition: transform .25s var(--ease); }
.fin-shop:hover svg { transform: translateX(3px); }
.fin-disclaimer { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin-top: 14px; max-width: 900px; }
html.fx .fin-opt.is-bump span { animation: fin-bump .35s var(--spring); }
@keyframes fin-bump { 40% { transform: scale(1.05); } }

/* How it works, FAQ */
.fin-section { padding-top: 48px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 22px; }
.fin-section h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.6px; color: var(--ink); }
.fin-section-lead { font-size: 16px; color: var(--ink-2); max-width: 62ch; margin-top: -10px; line-height: 1.55; }
.fin-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: fs; }
.fin-steps li { counter-increment: fs; padding: 24px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.fin-steps li::before {
  content: counter(fs); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--navy); color: var(--gold-2); font-weight: 800; font-size: 18px;
}
.fin-steps strong { font-size: 17px; color: var(--ink); }
.fin-steps span { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.fin-faq { padding: 8px 28px; max-width: 900px; }
.fin-faq details { border-bottom: 1px solid var(--line); }
.fin-faq details:last-child { border-bottom: 0; }
.fin-faq summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; font-size: 16px; font-weight: 700; color: var(--ink); position: relative; }
.fin-faq summary::-webkit-details-marker { display: none; }
.fin-faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.fin-faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.fin-faq p { font-size: 15px; line-height: 1.65; color: var(--ink-2); padding-bottom: 18px; }
html.fx .fin-faq details[open] p { animation: fx-drop .3s var(--ease); }
.fin-band {
  margin: 40px 0 56px; padding: 28px 32px; border-radius: 20px; background: var(--grad-night); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.fin-band strong { font-size: 22px; display: block; letter-spacing: -.3px; }
.fin-band span { font-size: 15px; color: #C3D0E6; }
.fin-band .btn { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 999px; }

/* Pre-qualification form */
html.pq-open { overflow: hidden; }
dialog.pq-dlg { padding: 0; border: 0; background: transparent; width: calc(100% - 32px); max-width: 620px; max-height: calc(100% - 32px); margin: auto; overflow: visible; }
dialog.pq-dlg::backdrop { background: rgba(8, 23, 51, .6); backdrop-filter: blur(4px); }
html.fx dialog.pq-dlg[open] { animation: pq-in .38s var(--spring); }
html.fx dialog.pq-dlg[open]::backdrop { animation: fx-fade-in .3s ease; }
@keyframes pq-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pq-dlg .pq { max-height: calc(100dvh - 32px); }

.pq { display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(8, 23, 51, .55); overflow: hidden; }
.pq-head { padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FAFCFF 0%, #fff 100%); }
.pq-head-top { display: flex; gap: 12px; align-items: flex-start; }
.pq-titles { flex: 1; min-width: 0; }
.pq-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--gold-ink); }
.pq-title { font-size: 23px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); margin-top: 4px; outline: none; line-height: 1.2; }
.pq-sub { font-size: 14.5px; color: var(--ink-2); margin-top: 3px; }
.pq-icon-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.pq-icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.pq-icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.pq-icon-btn:active { transform: scale(.92); }
.pq-icon-btn[hidden] { display: none; }
.pq-progress { height: 6px; border-radius: 6px; background: var(--line); margin-top: 16px; overflow: hidden; }
.pq-progress span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-2) 40%, var(--blue-bright)); transition: width .5s var(--ease); }
.pq-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.pq-steps li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: color .3s; }
.pq-steps span {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800;
  border: 1.5px solid currentColor; transition: background .3s, color .3s, border-color .3s;
}
.pq-steps em { font-style: normal; }
.pq-steps li.on { color: var(--ink); }
.pq-steps li.on span { border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(242, 179, 61, .22); }
.pq-steps li.done { color: var(--green); }
.pq-steps li.done span { background: var(--green); border-color: var(--green); color: #fff; }

.pq-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 8px; position: relative; }
.pq-step { display: none; flex-direction: column; gap: 22px; }
.pq-step.is-active { display: flex; }
html.fx .pq-step.in-fwd { animation: pq-step-fwd .42s var(--ease); }
html.fx .pq-step.in-back { animation: pq-step-back .42s var(--ease); }
@keyframes pq-step-fwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes pq-step-back { from { opacity: 0; transform: translateX(-28px); } }

.pq-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.pq-q legend, .pq-field label { font-size: 15px; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 10px; display: block; }
.pq-q legend em, .pq-field label em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--muted); margin-left: 4px; }
.pq-q[hidden], .pq-field[hidden] { display: none; }
.pq-opts { display: grid; gap: 8px; }
.pq-opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pq-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pq-opts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pq-opt { position: relative; cursor: pointer; display: block; }
.pq-opt span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 10px 34px 10px 14px; height: 100%;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff;
  transition: border-color .2s, background .2s, box-shadow .25s var(--ease), transform .2s var(--ease);
}
.pq-opt strong { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.pq-opt small { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.pq-tick {
  position: absolute; right: 10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .25s var(--spring); background: #fff;
}
.pq-tick svg { width: 12px; height: 12px; fill: #fff; transform: scale(0); transition: transform .25s var(--spring); }
.pq-opt:hover span { border-color: var(--blue-soft); background: #FAFCFF; }
.pq-opt input:checked + span { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue); }
.pq-opt input:checked ~ .pq-tick { background: var(--blue); border-color: var(--blue); }
.pq-opt input:checked ~ .pq-tick svg { transform: scale(1); }
.pq-opt:active span { transform: scale(.98); }
html.fx .pq-opt.is-pop span { animation: fin-bump .32s var(--spring); }
.pq-opts-4 .pq-opt span, .pq-opts-3 .pq-opt span { padding: 10px 8px; align-items: center; text-align: center; }
.pq-opts-4 .pq-tick, .pq-opts-3 .pq-tick { display: none; }

.pq-field { display: flex; flex-direction: column; min-width: 0; }
.pq-input {
  height: 52px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; width: 100%;
  font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.pq-input:hover { border-color: var(--blue-soft); }
.pq-input:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 4px rgba(47, 111, 228, .16); }
.pq-money .pq-input { border: 0; box-shadow: none; height: 100%; padding: 0; font-weight: 700; font-size: 18px; }
.pq-suffix { font-size: 14px !important; font-weight: 600 !important; color: var(--muted) !important; }
.pq-hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.pq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pq-err { font-size: 13.5px; font-weight: 600; color: #B42318; margin-top: 6px; min-height: 0; }
.pq-err:empty { display: none; }
.has-err .pq-input, .has-err.pq-money, .has-err .pq-money { border-color: #D92D20; }
.has-err .pq-opt span { border-color: #F3B5AE; }
html.fx .is-shake { animation: pq-shake .4s ease; }
@keyframes pq-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.pq-vehicle { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.pq-vehicle[hidden] { display: none; }
.pq-vehicle img { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; }
.pq-vehicle div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pq-vehicle small { font-size: 12px; font-weight: 700; color: var(--gold-ink); text-transform: uppercase; letter-spacing: .5px; }
.pq-vehicle strong { font-size: 16px; color: var(--ink); }
.pq-vehicle span { font-size: 14px; color: var(--ink-2); }
.pq-assure { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); padding: 14px 16px; border-radius: 12px; background: var(--green-soft); }
.pq-assure svg { width: 16px; height: 16px; flex: none; fill: var(--green); margin-top: 2px; }
.pq-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); cursor: pointer; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); transition: border-color .2s; }
.pq-consent input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--blue); }
.pq-consent.has-err { border-color: #F3B5AE; background: #FFF6F5; }
.pq-consent a { font-weight: 700; }
.pq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pq-foot { padding: 14px 24px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: stretch; gap: 8px; background: #fff; }
.pq-next-btn { height: 54px; font-size: 17px; font-weight: 800; border-radius: 999px; gap: 8px; }
.pq-next-btn svg { width: 16px; height: 16px; fill: currentColor; transition: transform .25s var(--ease); }
.pq-next-btn:hover svg { transform: translateX(3px); }
.pq-next-btn[hidden] { display: none; }
.pq-next-btn.is-loading { opacity: .85; cursor: progress; }
.pq-next-btn.is-loading::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: pq-spin .8s linear infinite; margin-right: 4px;
}
@keyframes pq-spin { to { transform: rotate(360deg); } }
.pq-secure { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.pq-secure svg { width: 13px; height: 13px; fill: var(--green); }
.pq-secure[hidden] { display: none; }
.pq-form-err { font-size: 14px; font-weight: 600; color: #B42318; text-align: center; }
.pq-form-err:empty { display: none; }

/* Done */
.pq.is-done .pq-steps, .pq.is-done .pq-foot { display: none; }
.pq-done { align-items: center; text-align: center; padding: 8px 0 18px; outline: none; }
.pq-done-mark { width: 76px; height: 76px; }
.pq-done-mark circle { fill: var(--green-soft); stroke: var(--green); stroke-width: 2.5; }
.pq-done-mark path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; }
html.fx .pq-done.is-active .pq-done-mark circle { animation: pq-pop .5s var(--spring); transform-origin: center; }
html.fx .pq-done.is-active .pq-done-mark path { stroke-dashoffset: 40; animation: pq-draw .5s .25s var(--ease) forwards; }
@keyframes pq-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes pq-draw { to { stroke-dashoffset: 0; } }
.pq-done-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); }
.pq-done-sub { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; max-width: 44ch; }
.pq-done-sub strong { color: var(--ink); background: #FFF7E6; border: 1px dashed var(--gold); padding: 1px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pq-next { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; counter-reset: pn; }
.pq-next li { counter-increment: pn; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.pq-next li::before { content: counter(pn); width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-size: 13px; font-weight: 800; }
.pq-next strong { color: var(--ink); }
.pq-done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.pq-done-actions .btn { height: 48px; padding: 0 22px; border-radius: 999px; }

/* /pre-qualify/ page */
.pq-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 72px; }
.pq-page-copy { color: #fff; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.pq-page-copy h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
.pq-page-copy h1 em { font-style: normal; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pq-page-copy > p { font-size: 17px; color: #D9E3F5; line-height: 1.55; max-width: 46ch; }
.pq-page-bg { background: var(--grad-night); position: relative; isolation: isolate; }
.pq-page-bg::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 100% 0%, rgba(47, 111, 228, .4), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(242, 179, 61, .25), transparent 60%);
}
.pq-page .pq { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.pq-page .pq-body { overflow: visible; }

/* Hero motion */
html.fx .fin-hero-copy > *, html.fx .fin-perks li, html.fx .pq-page-copy > * { animation: fx-rise .7s var(--ease) both; }
html.fx .fin-hero-copy > :nth-child(2), html.fx .pq-page-copy > :nth-child(2) { animation-delay: .06s; }
html.fx .fin-hero-copy > :nth-child(3), html.fx .pq-page-copy > :nth-child(3) { animation-delay: .12s; }
html.fx .fin-hero-copy > :nth-child(4), html.fx .pq-page-copy > :nth-child(4) { animation-delay: .18s; }
html.fx .fin-perks li:nth-child(1) { animation-delay: .15s; }
html.fx .fin-perks li:nth-child(2) { animation-delay: .25s; }
html.fx .fin-perks li:nth-child(3) { animation-delay: .35s; }
html.fx .fin-sim { animation: fx-rise .8s .2s var(--ease) both; }

@media (max-width: 960px) {
  .fin-hero-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 104px; }
  .fin-perks { display: none; }
  .fin-sim { grid-template-columns: 1fr; }
  .fin-result { position: static; }
  .fin-steps { grid-template-columns: 1fr; }
  .pq-page { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .pq-page-copy { position: static; }
  .pq-page-copy .fin-perks { display: none; }
}
@media (max-width: 720px) {
  .fin-hero-inner { padding-top: 28px; }
  .fin-hero-copy p { font-size: 16px; }
  .fin-hero-actions .btn { flex: 1 1 100%; }
  .fin-wrap { margin-top: -80px; }
  .fin-controls { padding: 20px 16px; gap: 20px; border-radius: 18px; }
  .fin-two { grid-template-columns: 1fr; }
  .fin-opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-opts-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .fin-opt-sm strong { font-size: 15px; }
  .fin-opt-sm small { font-size: 11px; }
  .fin-result { padding: 22px 18px; border-radius: 18px; }
  .fin-faq { padding: 4px 18px; }
  .fin-band { padding: 22px 20px; }
  .fin-band .btn { width: 100%; }

  dialog.pq-dlg { width: 100%; max-width: none; max-height: 100%; height: 100%; margin: 0; }
  .pq-dlg .pq { height: 100dvh; max-height: none; border-radius: 0; }
  html.fx dialog.pq-dlg[open] { animation: pq-sheet .42s var(--ease); }
  @keyframes pq-sheet { from { transform: translateY(40px); opacity: 0; } }
  .pq-head { padding: 16px 16px 12px; }
  .pq-title { font-size: 20px; }
  .pq-body { padding: 18px 16px 8px; }
  .pq-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .pq-opts-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pq-opts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pq-steps em { display: none; }
  .pq-steps { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .pq-page { padding-left: 0; padding-right: 0; padding-bottom: 0; }
  .pq-page-copy { padding: 0 16px; }
  .pq-page .pq { border-radius: 22px 22px 0 0; }
  .pq-page .pq-foot { position: sticky; bottom: 0; box-shadow: 0 -8px 20px -12px rgba(11, 31, 68, .25); }
}
@media (max-width: 380px) {
  .fin-opts-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pq-row { grid-template-columns: 1fr; }
}

/* Phones: slim payment bar while the result card is out of view */
.fin-mini { display: none; }
@media (max-width: 960px) {
  .fin-mini {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px;
    background: var(--grad-night); color: #fff; box-shadow: 0 16px 40px -12px rgba(8, 23, 51, .7);
    transform: translateY(140%); opacity: 0; transition: transform .4s var(--ease), opacity .3s; pointer-events: none;
  }
  .fin-mini.is-on { transform: none; opacity: 1; pointer-events: auto; }
  .fin-mini span { display: flex; flex-direction: column; line-height: 1.15; }
  .fin-mini small { font-size: 12px; color: #C3D0E6; }
  .fin-mini strong { font-size: 22px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
  .fin-mini .btn { height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 800; }
}

.pq-page-copy .crumbs, .pq-page-copy .crumbs a { color: #AFC0DD; }
.pq-page-copy .crumbs a:hover { color: #fff; }
