/* Pre-qualification flow — /financing
   Kept out of site.css because it is a self-contained feature and, unlike the
   rest of the site, it is a demo that may well be deleted or replaced wholesale
   when a real lender integration is chosen. */

.fin-demo-flag { background: #fffbeb; border: 1px solid #fcd34d; border-left: 5px solid #f59e0b;
  color: #7c4a03; padding: 14px 18px; border-radius: 8px; font-size: 14px; line-height: 1.55; }
.fin-demo-flag strong { color: #92400e; }
.fin-demo-flag span { display: block; margin-top: 4px; font-weight: 700; }

.fin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 34px 30px; box-shadow: 0 18px 44px rgba(16,18,22,.07); }
@media (max-width: 640px) { .fin-card { padding: 24px 20px; } }

.fin-progress { margin-bottom: 26px; }
.fin-track { height: 6px; background: #e8edf5; border-radius: 99px; overflow: hidden; }
.fin-bar { height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #b3151c, #e01b24); transition: width .45s ease; }
.fin-dots { display: flex; justify-content: space-between; margin-top: 10px; gap: 6px; }
.fin-dot { font-size: 11.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: #a6b0c3; flex: 1; text-align: center; }
.fin-dot.active { color: var(--red); }
.fin-dot.done { color: #22c55e; }
.fin-dot.done::before { content: "\2713 "; }

.fin-step-h { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.fin-step-p { color: var(--mut); font-size: 15px; margin-bottom: 22px; }

.fin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .fin-grid { grid-template-columns: 1fr; } }
.fin-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px;
  font-weight: 800; color: #47536b; letter-spacing: .4px; text-transform: uppercase; }
.fin-grid .fin-wide { grid-column: 1 / -1; }
.fin-grid input, .fin-grid select { padding: 12px 14px; border: 1px solid #cbd5e1;
  border-radius: 9px; font: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink);
  text-transform: none; letter-spacing: 0; background: #fff; }
.fin-grid input:focus, .fin-grid select:focus { outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(179,21,28,.12); }
.fin-grid input.fin-bad, .fin-grid select.fin-bad { border-color: #e01b24; background: #fff5f5; }
.fin-err { color: #c1121f; font-size: 12px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.fin-hint { color: var(--mut); font-size: 12px; font-weight: 500; text-transform: none;
  letter-spacing: 0; line-height: 1.5; }

.fin-prefix { display: flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: 9px;
  overflow: hidden; background: #fff; }
.fin-prefix:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(179,21,28,.12); }
.fin-prefix > span:first-child { display: flex; align-items: center; padding: 0 12px;
  background: #f1f5f9; color: #64748b; font-weight: 800; font-size: 15px; }
.fin-prefix input { border: 0 !important; box-shadow: none !important; flex: 1; }

.fin-ssn-field { position: relative; }
.fin-ssn-wrap { border-color: rgba(179,21,28,.35); background: #fffdf7; }
.fin-lock { font-size: 14px; }
.fin-eye { border: 0; background: transparent; color: var(--red); font-weight: 800;
  font-size: 12px; letter-spacing: .6px; text-transform: uppercase; padding: 0 14px; cursor: pointer; }
.fin-eye:hover { color: var(--red-hot); }

.fin-est { margin-top: 14px; color: var(--mut); font-size: 14px; font-weight: 600; }
.fin-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.fin-consent { border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; background: var(--bg); }
.fin-consent.fin-bad { border-color: #e01b24; background: #fff5f5; }
.fin-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.fin-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: #b3151c; flex: 0 0 auto; }
.fin-check span { font-size: 13.5px; color: #47536b; line-height: 1.6; }
.fin-legal { margin-top: 16px; font-size: 13px; color: var(--mut); }

/* ---- checking ---- */
.fin-check-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.fin-check-head h2 { font-size: 22px; font-weight: 900; }
.fin-check-head p { color: var(--mut); font-size: 14px; }
.fin-check-pct { margin-left: auto; font-size: 30px; font-weight: 900; color: var(--red); }
.fin-check-spin, .fin-spin { border-radius: 50%; border: 3px solid #e8edf5;
  border-top-color: var(--red); animation: finSpin .8s linear infinite; }
.fin-check-spin { width: 40px; height: 40px; flex: 0 0 auto; }
.fin-spin { width: 13px; height: 13px; border-width: 2px; display: inline-block; }
@keyframes finSpin { to { transform: rotate(360deg); } }
.fin-check-list { list-style: none; margin: 22px 0 0; }
.fin-check-item { display: flex; align-items: center; gap: 12px; padding: 11px 0;
  font-size: 15px; color: #94a3b8; border-bottom: 1px dashed #e8edf5; }
.fin-check-item.running { color: var(--ink); font-weight: 700; }
.fin-check-item.done { color: #1e7d3d; }
.fin-check-mark { width: 22px; display: flex; justify-content: center; font-weight: 900; }
.fin-check-foot { margin-top: 20px; font-size: 13px; color: var(--mut); display: flex;
  align-items: center; gap: 8px; }

/* ---- result ---- */
.fin-result-top { display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.fin-kicker { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.fin-result-top h2 { font-size: 28px; font-weight: 900; margin: 4px 0 2px; }
.fin-ssn-line { color: var(--mut); font-size: 13px; letter-spacing: .5px; }
.fin-gauge { position: relative; flex: 0 0 auto; }
.fin-gauge svg { display: block; }
.fin-gauge-val { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; }
.fin-gauge-val b { font-size: 38px; font-weight: 900; line-height: 1; color: var(--ink); }
.fin-gauge-val span { font-size: 12px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--mut); margin-top: 3px; }

.fin-approved-banner { display: flex; gap: 16px; align-items: center; margin: 24px 0 8px;
  background: linear-gradient(120deg, #f0fdf4, #dcfce7); border: 1px solid #86efac;
  border-radius: 12px; padding: 20px 22px; }
.fin-tick { width: 42px; height: 42px; border-radius: 50%; background: #22c55e; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 900; flex: 0 0 auto; }
.fin-approved-banner strong { display: block; font-size: 19px; color: #14532d; }
.fin-approved-banner p { color: #166534; font-size: 15px; margin-top: 2px; }
.fin-approved-banner b { font-weight: 900; }

.fin-declined-banner { margin: 24px 0 18px; background: #fff7ed; border: 1px solid #fed7aa;
  border-left: 5px solid #f59e0b; border-radius: 12px; padding: 20px 22px; }
.fin-declined-banner strong { display: block; font-size: 18px; color: #7c2d12; margin-bottom: 6px; }
.fin-declined-banner p { color: #9a3412; font-size: 14.5px; line-height: 1.6; }

.fin-offers-h, .fin-next h3 { font-size: 18px; font-weight: 900; margin: 26px 0 14px; }
.fin-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.fin-offer { border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px;
  text-align: center; position: relative; background: #fff; }
.fin-offer.best { border: 2px solid var(--red); box-shadow: 0 12px 30px rgba(179,21,28,.13); }
.fin-offer-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.fin-offer-term { font-size: 12.5px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: var(--mut); }
.fin-offer-pay { font-size: 32px; font-weight: 900; color: var(--ink); line-height: 1.1; margin: 6px 0 2px; }
.fin-offer-pay small { font-size: 14px; font-weight: 700; color: var(--mut); }
.fin-offer-apr { font-size: 15px; font-weight: 800; color: var(--red); }
.fin-offer-total { font-size: 11.5px; color: var(--mut); margin-top: 8px; }

.fin-next ol { margin: 0 0 18px 18px; color: #47536b; font-size: 14.5px; line-height: 1.75; }
.fin-next-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fin-disclaimer { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  color: #8a94a8; font-size: 12px; line-height: 1.65; }
.fin-disclaimer p + p { margin-top: 8px; }

/* owner-facing line inside the demo notice — quieter than the visitor warning */
.fin-demo-owner { margin-top: 10px; padding-top: 9px; border-top: 1px solid #fcd34d;
  font-size: 12.5px; font-weight: 600; opacity: .85; }
