/* Net-new styles for the shared quiz flows (sell + financing). Loaded alongside build.css,
   which already provides the topbar, options, tiles, buttons, card, inputs, modal and the
   dark photo canvas. Only the pieces build.css doesn't have live here. */

/* The flow runs as a single centred column (a focused "path", not a wide two-pane layout). */
.flow-card { max-width: 620px; margin: 0 auto; width: 100%; }
.pr-stage.solo > .flow-card { grid-column: 1 / -1; }

/* The eyebrow can wrap on narrow phones rather than overflow its card. */
.flow-card .pr-eyebrow { white-space: normal; }

/* ── Sell/Appraise entry fork — two co-equal "doors" (icon · copy · arrow) ── */
.pr-fork { display: grid; gap: var(--pr-gap-sm); }
@media (min-width: 680px) { .pr-fork { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.pr-fork-card { display: flex; align-items: flex-start; gap: 0.9rem;
  text-align: left; background: var(--pr-card-soft); border: 2px solid transparent;
  border-radius: var(--pr-radius); padding: 1.15rem 1.2rem; cursor: pointer; font: inherit;
  color: var(--pr-ink); transition: border-color 0.15s var(--pr-ease), background 0.15s, box-shadow 0.15s var(--pr-ease), transform 0.05s; }
.pr-fork-card:hover { border-color: var(--pr-forest); background: #fff; box-shadow: var(--pr-shadow-sm); }
.pr-fork-card:active { transform: translateY(1px); }
.pr-fork-ico { display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(31, 77, 58, 0.09); flex: none; margin-top: 1px; }
.pr-fork-ico .pr-ico { width: 23px; height: 23px; color: var(--pr-forest); }
.pr-fork-tx { flex: 1; min-width: 0; }
.pr-fork-h { font-weight: 700; font-size: 1.16rem; letter-spacing: -0.01em; line-height: 1.2; }
.pr-fork-d { display: block; margin-top: 0.3rem; font-size: var(--pr-small); color: var(--pr-slate); line-height: 1.45; }
.pr-fork-arr { align-self: center; color: var(--pr-slate); font-size: 1.3rem; font-weight: 700;
  transition: transform 0.15s var(--pr-ease), color 0.15s; flex: none; }
.pr-fork-card:hover .pr-fork-arr { color: var(--pr-forest); transform: translateX(3px); }

/* Thin progress bar under the header (replaces a bare X/N feeling with momentum). */
.flow-progress { max-width: 1400px; margin: -4px auto var(--pr-gap); height: 4px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.flow-progress span { display: block; height: 100%; background: var(--pr-forest);
  border-radius: 99px; transition: width 0.35s var(--pr-ease); }

/* Multi-select chips: a check tick appears when selected. */
.pr-option.flow-multi { justify-content: space-between; }
.flow-tick { margin-left: auto; opacity: 0; transition: opacity 0.12s; flex: none; }
.flow-tick .pr-ico { width: 22px; height: 22px; color: var(--pr-forest); }
.pr-option.flow-multi.selected .flow-tick { opacity: 1; }

/* ── Financing payment calculator ── */
.fin-readout { display: flex; gap: var(--pr-gap-lg); align-items: baseline; flex-wrap: wrap;
  justify-content: center; padding: var(--pr-gap) 0 0.4rem; }
.fin-big { font-family: var(--pr-font-head); font-weight: 300; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 7vw, 3rem); color: var(--pr-ink); line-height: 1; }
.fin-big small { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--pr-track-label); color: var(--pr-slate); margin-top: 0.3rem; }
.fin-controls { display: grid; gap: var(--pr-gap); margin: var(--pr-gap) 0; }
.fin-row { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: var(--pr-gap-sm); }
.fin-row label { font-weight: 700; font-size: 0.9rem; }
.fin-row input[type="range"] { width: 100%; accent-color: var(--pr-forest); height: 26px; }
.fin-val { font-weight: 800; font-size: 1rem; min-width: 5.5ch; text-align: right; }
@media (max-width: 480px) {
  .fin-row { grid-template-columns: 1fr auto; }
  .fin-row input[type="range"] { grid-column: 1 / -1; order: 3; }
}

/* ── Instant ballpark (sell flow): a centred payoff beat, no progress meter ── */
.est-wrap { text-align: center; padding: var(--pr-gap) 0 0.2rem; min-height: 6.5rem; }
.est-loading { color: var(--pr-slate); padding: var(--pr-gap-lg) 0; }
.est-lead { color: var(--pr-slate); margin: 0 0 0.6rem; }
/* The number lands as a reveal: a soft forest-tinted panel with a quiet label above it. */
.est-reveal { background: linear-gradient(160deg, rgba(31,77,58,0.07), rgba(31,77,58,0.12));
  border: 1px solid rgba(31,77,58,0.16); border-radius: var(--pr-radius); padding: 1.05rem 1rem 1.2rem;
  margin: 0 auto 0.2rem; max-width: 30rem; }
.est-reveal-label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--pr-track-label); color: var(--pr-forest); margin-bottom: 0.35rem; }
.est-range { font-family: var(--pr-font-head); font-weight: 300; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 7.5vw, 3rem); color: var(--pr-forest-700); line-height: 1.05; }
.est-fine { font-size: var(--pr-small); color: var(--pr-slate); margin: 0.7rem auto 0;
  max-width: 42ch; line-height: 1.5; }
.est-fine b { color: var(--pr-ink); }

/* ── Result screen (flow version): padded body, no inventory hero ── */
/* Cap + centre it so it reads as a focused card (the bare .pr-result is the wide buyer-deck
   hero, which has no max-width). The flow's own copy wants a comfortable measure, not full bleed. */
.flow-result { padding: var(--pr-gap-lg); max-width: 640px; margin: 0 auto; }
.flow-result .flow-big-check { text-align: center; }
.flow-result .flow-big-check .pr-ico { width: 54px; height: 54px; color: var(--pr-pine); margin: 0 auto; }
.flow-result h2 { font-family: var(--pr-font-head); letter-spacing: -0.02em; font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 0.4rem 0 0.3rem; }
.flow-result > p { color: var(--pr-slate); margin: 0 0 var(--pr-gap-lg); }

/* Adjacent-service / cross-sell cards at the result (or the financing triage doors). */
.flow-adj { display: grid; gap: var(--pr-gap-sm); grid-template-columns: 1fr; margin-top: var(--pr-gap); }
.flow-adj.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .flow-adj.cols-2 { grid-template-columns: 1fr; } }
.flow-adj-card { display: flex; gap: 0.85rem; align-items: center; text-align: left;
  background: var(--pr-card-soft); border: 2px solid transparent; border-radius: var(--pr-radius);
  padding: 1rem 1.15rem; cursor: pointer; font: inherit; color: var(--pr-ink); text-decoration: none;
  transition: border-color 0.15s var(--pr-ease), background 0.15s; }
.flow-adj-card:hover { border-color: var(--pr-ink); background: #fff; }
.flow-adj-card .ico { flex: none; display: flex; }
.flow-adj-card .ico .pr-ico { width: 26px; height: 26px; color: var(--pr-forest); }
.flow-adj-tx { display: flex; flex-direction: column; }
.flow-adj-tx b { font-size: 1rem; }
.flow-adj-tx span { font-size: var(--pr-small); color: var(--pr-slate); }
.flow-adj-card .flow-adj-chev { margin-left: auto; color: var(--pr-slate); font-size: 1.2rem; flex: none; }

/* Triage doors (financing "what do you need?") — slightly larger tap targets. */
.flow-doors { display: grid; gap: var(--pr-gap-sm); }
.flow-doors .flow-adj-card { padding: 1.15rem 1.2rem; }

/* ── FAQ accordion (financing questions door) ── */
.flow-faq { display: grid; gap: 0.5rem; margin-top: var(--pr-gap-sm); }
.flow-faq details { background: var(--pr-card-soft); border-radius: var(--pr-radius-sm); padding: 0 1.1rem; }
.flow-faq summary { cursor: pointer; font-weight: 700; padding: 0.95rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flow-faq summary::-webkit-details-marker { display: none; }
.flow-faq summary::after { content: "+"; color: var(--pr-forest); font-weight: 800; font-size: 1.3rem; }
.flow-faq details[open] summary::after { content: "−"; }
.flow-faq-a { color: var(--pr-slate); font-size: 0.95rem; padding: 0 0 1rem; margin: 0; line-height: 1.5; }

/* A quiet helper line under a question (e.g. "no credit check"). */
.flow-note { font-size: var(--pr-small); color: var(--pr-slate); margin: 0.6rem 0 0; text-align: center; }
.flow-note .pr-ico { width: 15px; height: 15px; vertical-align: -2px; color: var(--pr-pine); }

/* Reassurance callouts at the result (owe-money / appraise note) — soft forest-tinted cards
   with a check, so they read as warm guidance rather than stacked fine print. */
.flow-reassure { display: flex; gap: 0.7rem; align-items: flex-start; text-align: left;
  background: rgba(31, 77, 58, 0.06); border: 1px solid rgba(31, 77, 58, 0.13);
  border-radius: var(--pr-radius-sm); padding: 0.85rem 1rem; margin-top: 0.7rem;
  font-size: 0.92rem; line-height: 1.45; color: var(--pr-ink); }
.flow-reassure .pr-ico { width: 19px; height: 19px; flex: none; color: var(--pr-forest); margin-top: 1px; }
.flow-reassure b { font-weight: 700; }

/* ---- Smart RV-identifier box (shared/catalog-picker.js — /sell appraise + /list) ----
   One search resolves any term (brand / model / floorplan code) to a catalog model,
   then the seller picks a year. A free-type fallback keeps a lead alive. */
.pr-cat-wrap { position: relative; }
.pr-cat-hint { font-size: var(--pr-small); color: var(--pr-slate); margin: 0.4rem 0 0; line-height: 1.4; }
.pr-cat-hint b { color: var(--pr-ink); font-weight: 600; }

.pr-cat-results { margin-top: 0.5rem; border: 1px solid var(--pr-line); border-radius: var(--pr-radius-sm);
  overflow: hidden; background: #fff; box-shadow: var(--pr-shadow-sm); }
.pr-cat-opt { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem;
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--pr-line);
  padding: 0.8rem 0.95rem; cursor: pointer; font: inherit; color: var(--pr-ink);
  transition: background 0.12s var(--pr-ease); }
.pr-cat-opt:last-child { border-bottom: 0; }
.pr-cat-opt:hover, .pr-cat-opt:focus-visible { background: rgba(31, 77, 58, 0.07); outline: none; }
.pr-cat-opt-label { font-weight: 600; }
.pr-cat-opt-meta { font-size: var(--pr-small); color: var(--pr-slate); flex: none; }
.pr-cat-empty { padding: 0.85rem 0.95rem; font-size: 0.92rem; color: var(--pr-slate); line-height: 1.45; }

.pr-cat-link { background: none; border: 0; padding: 0.55rem 0 0; cursor: pointer; font: inherit;
  font-size: 0.92rem; font-weight: 600; color: var(--pr-forest); text-decoration: underline;
  text-underline-offset: 2px; }
.pr-cat-link:hover { color: var(--pr-forest-700); }

.pr-cat-picked-row { display: flex; align-items: center; gap: 0.6rem;
  background: rgba(31, 77, 58, 0.06); border: 1px solid rgba(31, 77, 58, 0.16);
  border-radius: var(--pr-radius-sm); padding: 0.75rem 0.9rem; margin-bottom: 0.5rem; }
.pr-cat-check { flex: none; display: inline-flex; }
.pr-cat-check .pr-ico { width: 20px; height: 20px; color: var(--pr-forest); }
.pr-cat-picked-tx { display: flex; flex-direction: column; line-height: 1.25; flex: 1 1 auto; min-width: 0; }
.pr-cat-picked-tx b { font-weight: 700; color: var(--pr-ink); }
.pr-cat-picked-type { font-size: var(--pr-small); color: var(--pr-slate); }
.pr-cat-picked-row .pr-cat-link { padding: 0; flex: none; }

.pr-cat-manual-head { font-weight: 700; color: var(--pr-ink); margin-bottom: 0.3rem; }
