/* Loan Qualifier. Everything is scoped under .lq-root so it does not affect the rest of the theme. */
.lq-root {
  --lq-bg: #0A0A09;
  --lq-surface: #141311;
  --lq-ink: #F4EFE1;
  --lq-muted: #A8A08B;
  --lq-line: #322D20;
  --lq-accent: #C9A227;
  --lq-accent-soft: #2A230D;
  --lq-on-accent: #0A0A09;
  --lq-mark: #EBCB6B;
  --lq-bad: #F08A76;
  --lq-display: Baskerville, "Libre Baskerville", "Baskerville Old Face", Georgia, serif;
  --lq-body: "Pontano Sans", "Segoe UI", system-ui, sans-serif;

  color-scheme: dark;
  background: var(--lq-bg);
  color: var(--lq-ink);
  font-family: var(--lq-body);
  font-size: 16px;
  line-height: 1.5;
  padding: 32px 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 1120px;
  margin-inline: auto;
  text-align: left;
}
.lq-root *, .lq-root *::before, .lq-root *::after { box-sizing: border-box; }
.lq-root [hidden] { display: none !important; }
.lq-root p, .lq-root dl, .lq-root dd, .lq-root ul { margin: 0; }
.lq-root label { color: inherit; }

.lq-root .lq-intro { display: flex; flex-direction: column; gap: 10px; max-width: 42em; }
.lq-root .lq-heading { font-family: var(--lq-display); font-weight: 700; font-size: clamp(26px, 4.5vw, 40px); line-height: 1.1; margin: 0; color: var(--lq-ink); text-wrap: balance; }
.lq-root .lq-intro p { color: var(--lq-muted); font-size: 17px; }
.lq-root .lq-assure { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--lq-muted); padding: 0; list-style: none; }
.lq-root .lq-assure li { margin: 0; padding: 0; list-style: none; }
.lq-root .lq-assure li::before { content: "\2713\00a0"; color: var(--lq-accent); font-weight: 600; }

.lq-root .lq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.lq-root .lq-card { background: var(--lq-surface); border: 1px solid var(--lq-line); border-radius: 14px; padding: 26px; min-width: 0; }

.lq-root .lq-progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.lq-root .lq-progress-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lq-muted); }
.lq-root .lq-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.lq-root .lq-bar span { height: 5px; border-radius: 3px; background: var(--lq-line); }
.lq-root .lq-bar span.lq-is-done { background: var(--lq-accent); }
.lq-root .lq-bar span.lq-is-now { background: var(--lq-mark); }

.lq-root fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lq-root legend { font-family: var(--lq-display); font-weight: 700; font-size: 24px; line-height: 1.2; padding: 0; margin: 0 0 4px; color: var(--lq-ink); text-wrap: balance; float: none; width: auto; }
.lq-root .lq-hint { color: var(--lq-muted); font-size: 15px; }

.lq-root .lq-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lq-root .lq-tiles.lq-stack { grid-template-columns: minmax(0, 1fr); }
.lq-root .lq-tiles.lq-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lq-root .lq-tiles.lq-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lq-root .lq-tile { position: relative; display: block; margin: 0; }
.lq-root .lq-tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.lq-root .lq-tile span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 13px 14px; border: 1.5px solid var(--lq-line); border-radius: 10px; font-weight: 600; background: var(--lq-surface); color: var(--lq-ink); }
.lq-root .lq-tile small { font-weight: 400; color: var(--lq-muted); font-size: 13.5px; }
.lq-root .lq-tile input:hover + span { border-color: var(--lq-muted); }
.lq-root .lq-tile input:checked + span { border-color: var(--lq-accent); background: var(--lq-accent-soft); }
.lq-root .lq-tile input:focus-visible + span { outline: 3px solid var(--lq-mark); outline-offset: 2px; }

.lq-root .lq-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lq-root .lq-field > label, .lq-root .lq-lab { font-weight: 600; font-size: 15px; }
.lq-root .lq-opt { font-weight: 400; color: var(--lq-muted); }
.lq-root .lq-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lq-root .lq-input { width: 100%; font: inherit; color: var(--lq-ink); background: var(--lq-bg); border: 1.5px solid var(--lq-line); border-radius: 9px; padding: 11px 12px; height: auto; box-shadow: none; }
.lq-root .lq-input::placeholder { color: var(--lq-muted); opacity: .7; }
.lq-root .lq-input:focus-visible { outline: 3px solid var(--lq-mark); outline-offset: 1px; border-color: var(--lq-accent); }
.lq-root .lq-input.lq-invalid { border-color: var(--lq-bad); }
.lq-root .lq-money { position: relative; }
.lq-root .lq-money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--lq-muted); }
.lq-root .lq-money .lq-input { padding-left: 26px; font-variant-numeric: tabular-nums; }
.lq-root .lq-err { color: var(--lq-bad); font-size: 14px; }
.lq-root .lq-err:empty { display: none; }

.lq-root .lq-amount-read { font-weight: 700; font-size: 34px; color: var(--lq-accent); font-variant-numeric: tabular-nums; display: block; }
.lq-root input[type="range"] { width: 100%; accent-color: var(--lq-accent); height: 28px; padding: 0; margin: 0; }
.lq-root .lq-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--lq-muted); }

.lq-root .lq-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--lq-muted); }
.lq-root .lq-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--lq-accent); flex: none; }
.lq-root .lq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lq-root .lq-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.lq-root .lq-btn { font: inherit; font-weight: 700; border-radius: 10px; padding: 12px 20px; cursor: pointer; border: 1.5px solid transparent; line-height: 1.3; text-transform: none; letter-spacing: 0; box-shadow: none; }
.lq-root .lq-btn-main { background: var(--lq-accent); color: var(--lq-on-accent); margin-left: auto; }
.lq-root .lq-btn-main:hover { filter: brightness(1.08); background: var(--lq-accent); color: var(--lq-on-accent); }
.lq-root .lq-btn-main[disabled] { opacity: .6; cursor: default; }
.lq-root .lq-btn-ghost { background: transparent; color: var(--lq-ink); border-color: var(--lq-line); }
.lq-root .lq-btn-ghost:hover { border-color: var(--lq-muted); background: transparent; color: var(--lq-ink); }
.lq-root .lq-btn:focus-visible { outline: 3px solid var(--lq-mark); outline-offset: 2px; }

.lq-root .lq-est { position: sticky; top: 48px; display: flex; flex-direction: column; gap: 16px; }
.lq-root .lq-est-title { font-family: var(--lq-body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lq-muted); margin: 0; font-weight: 600; }
.lq-root .lq-pay { display: flex; flex-direction: column; gap: 2px; }
.lq-root .lq-pay-num { font-family: var(--lq-display); font-weight: 700; font-size: 46px; line-height: 1; color: var(--lq-accent); font-variant-numeric: tabular-nums; }
.lq-root .lq-pay-num small { font-family: var(--lq-body); font-size: 15px; font-weight: 500; color: var(--lq-muted); }
.lq-root .lq-pay-range { color: var(--lq-muted); font-size: 14px; }
.lq-root .lq-box { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--lq-accent); border-radius: 4px; }
.lq-root .lq-box div { padding: 10px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lq-root .lq-box div:nth-child(odd) { border-right: 1px solid var(--lq-accent); }
.lq-root .lq-box div:nth-child(-n+2) { border-bottom: 1px solid var(--lq-accent); }
.lq-root .lq-box dt { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.lq-root .lq-box dd { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lq-root .lq-box small { font-size: 11.5px; color: var(--lq-muted); line-height: 1.3; }
.lq-root .lq-fit { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--lq-line); }
.lq-root .lq-fit p { font-size: 13.5px; color: var(--lq-muted); }
.lq-root .lq-pill { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--lq-accent-soft); color: var(--lq-accent); border: 1.5px solid transparent; }
.lq-root .lq-pill.lq-warn { background: transparent; border-color: var(--lq-mark); color: var(--lq-mark); }
.lq-root .lq-pill.lq-no { background: transparent; border-color: var(--lq-bad); color: var(--lq-bad); }

.lq-root .lq-done { display: flex; flex-direction: column; gap: 18px; outline: none; }
.lq-root .lq-done h3 { font-family: var(--lq-display); font-size: 26px; line-height: 1.2; margin: 0 0 6px; color: var(--lq-ink); text-wrap: balance; }
.lq-root .lq-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); border-top: 1px solid var(--lq-line); }
.lq-root .lq-sum dt, .lq-root .lq-sum dd { padding: 9px 0; border-bottom: 1px solid var(--lq-line); margin: 0; }
.lq-root .lq-sum dt { color: var(--lq-muted); font-size: 14.5px; font-weight: 400; }
.lq-root .lq-sum dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.lq-root .lq-legal { font-size: 12.5px; color: var(--lq-muted); max-width: 70em; }

@media (max-width: 860px) {
  .lq-root .lq-grid { grid-template-columns: minmax(0, 1fr); }
  .lq-root .lq-est { position: static; }
}
@media (max-width: 520px) {
  .lq-root { padding: 22px 16px; border-radius: 12px; }
  .lq-root .lq-card { padding: 18px; }
  .lq-root .lq-row2, .lq-root .lq-tiles.lq-two { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .lq-root .lq-bar span, .lq-root .lq-tile span, .lq-root .lq-btn { transition: background-color .15s, border-color .15s, filter .15s; }
}
