/* =========================================================================
   Priority Moving – Quote flow page styles
   Builds on styles.css tokens + .field/.ctrl/.seg/.addon/.calc-result.
   ========================================================================= */

body.quote-page { background: var(--bg-soft); }

/* Header */
.q-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.q-nav { display: flex; align-items: center; gap: 20px; height: 76px; }
.q-back { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); padding: 9px 14px; border-radius: var(--r-sm); transition: color 0.2s, background 0.2s; }
.q-back:hover { color: var(--accent-text); background: var(--accent-tint); }
.q-back svg { width: 17px; height: 17px; }

/* Layout */
.q-main { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 110px); }
.q-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.q-head .eyebrow { margin-bottom: 18px; }
.q-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--ink); letter-spacing: -0.03em; text-wrap: balance; }
.q-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; line-height: 1.6; max-width: 560px; }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.stepper .st { display: inline-flex; align-items: center; gap: 11px; }
.stepper .st .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.92rem; background: var(--bg); border: 2px solid var(--line); color: var(--muted); transition: all 0.25s var(--ease); flex: none; }
.stepper .st .lb { font-weight: 700; font-size: 0.95rem; color: var(--muted); transition: color 0.25s; }
.stepper .st.active .n { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--sh-accent); }
.stepper .st.active .lb { color: var(--ink); }
.stepper .st.done .n { background: var(--accent-tint); border-color: var(--accent-tint-2); color: var(--accent-text); }
.stepper .st.done .lb { color: var(--ink-2); }
.stepper .bar { flex: 1; min-width: 18px; height: 2px; background: var(--line); border-radius: 2px; }

/* Grid */
.q-grid { display: grid; grid-template-columns: 1.45fr 0.9fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
.q-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); padding: clamp(28px, 4vw, 46px); }

/* Steps */
.q-step { display: none; }
.q-step.active { display: block; }
.q-step h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.q-step .step-sub { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
.q-fields { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.q-fields .field.full { grid-column: 1 / -1; }
.q-fields .field > label { font-weight: 700; font-size: 0.9rem; color: var(--ink-2); }

/* Actions */
.q-actions { margin-top: 34px; display: flex; gap: 14px; align-items: center; }
.q-actions .btn-back { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }
.q-actions .btn-back:hover { border-color: var(--accent); color: var(--accent-text); }
.q-actions .spacer { flex: 1; }
.q-actions .btn svg { width: 18px; height: 18px; }

/* Summary (reuses .calc-result visuals) */
.q-summary { position: sticky; top: 100px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); }
.q-summary .calc-result { border-radius: 0; }
.summary-route { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); }
.summary-route .sr { display: flex; align-items: center; gap: 11px; font-size: 0.92rem; }
.summary-route .sr svg { width: 16px; height: 16px; opacity: 0.8; flex: none; }
.summary-route .sr b { font-weight: 700; }
.summary-route .sr .muted { color: rgba(255,255,255,0.6); }

/* Review list */
.review-list { margin-top: 24px; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.review-list .rl { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; background: var(--bg); font-size: 0.95rem; }
.review-list .rl span { color: var(--muted); }
.review-list .rl b { font-weight: 700; color: var(--ink); text-align: right; }

/* Success */
.q-success { display: none; text-align: center; padding: clamp(32px, 5vw, 60px) 20px; }
.q-success.show { display: block; }
.q-success .check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin: 0 auto 26px; }
.q-success .check svg { width: 42px; height: 42px; }
.q-success h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.q-success p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 460px; margin-inline: auto; }
.q-success .ref { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-pill); background: var(--bg-soft-2); font-weight: 700; color: var(--ink); }

@media (max-width: 920px) {
  .q-grid { grid-template-columns: 1fr; }
  .q-summary { position: static; order: -1; }
  .q-summary .calc-result { border-radius: var(--r-xl); }
}
@media (max-width: 620px) {
  .q-fields { grid-template-columns: 1fr; }
  .stepper .st .lb { display: none; }
  .stepper .st.active .lb { display: inline; }
  .q-actions { flex-wrap: wrap; }
  .q-actions .btn { flex: 1; }
}
