/* Valuation wizard — a single crafted card */
.val-page { padding: 56px 0 110px; }
.val-wrap { max-width: 860px; }

.val-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.val-lead {
  font-size: 1.03rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 36px;
}
.val-intro.compact .val-lead { display: none; }
.val-intro.compact .val-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 6px; }
.val-intro.compact { margin-bottom: 8px; }

/* the single card that holds the whole flow */
.val-card-shell {
  background: var(--card);
  border-radius: 28px;
  padding: clamp(26px, 4.5vw, 46px);
  box-shadow:
    0 2px 6px rgba(34, 48, 42, 0.05),
    0 42px 80px -32px rgba(34, 48, 42, 0.3);
}

/* progress */
.val-progress { margin-bottom: 34px; }
.val-progress-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--terra);
  margin-bottom: 9px;
}
.val-progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}
.val-progress-bar {
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
  transition: width 0.5s var(--ease);
}

/* step transitions */
.val-step:not([hidden]) { animation: step-in 0.45s var(--ease); }
@keyframes step-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .val-step:not([hidden]) { animation: none; }
}

.val-step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.val-step-hint {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  max-width: 52ch;
}

/* step 1: class cards */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.class-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  padding: 20px 18px;
  border: 1.5px solid transparent;
  border-radius: 18px;
  background: var(--paper-2);
  transition: border-color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.class-card:hover {
  border-color: var(--terra);
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -18px rgba(185, 90, 44, 0.35);
}
.class-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.class-card strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.class-card small { color: var(--text-muted); font-size: 0.85rem; }

/* step 2: year chips */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.year-chip {
  font-family: var(--font-numeric);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 13px 0;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: var(--paper-2);
  transition: border-color 0.15s ease, transform 0.2s var(--ease), background 0.15s ease;
}
.year-chip:hover {
  border-color: var(--terra);
  background: var(--card);
  transform: translateY(-2px);
}

/* step 3: model list */
.model-search {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 14px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--text);
  margin-bottom: 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.model-search:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(185, 90, 44, 0.12);
}
.model-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; max-height: 430px; overflow-y: auto; }
.model-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--paper-2);
  transition: border-color 0.15s ease, transform 0.2s var(--ease);
}
.model-row:hover { border-color: var(--terra); transform: translateX(3px); }
.model-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold);
  font-size: 0.95rem;
}
.model-row-text { display: flex; flex-direction: column; gap: 1px; }
.model-row-text strong { font-size: 0.95rem; font-weight: 600; }
.model-row-text small { color: var(--text-muted); font-size: 0.8rem; }
.model-row-other { background: transparent; border: 1.5px dashed var(--line); margin-top: 6px; }
.model-row-other:hover { border-style: solid; }

.msrp-entry { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.msrp-entry label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.msrp-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  margin-bottom: 12px;
}
.msrp-prefix, .msrp-suffix { font-family: var(--font-numeric); font-weight: 700; color: var(--text-muted); }
.msrp-input-row input {
  width: 100%;
  font-family: var(--font-numeric);
  font-size: 1.05rem;
  padding: 13px 17px;
  border: 1.5px solid transparent;
  border-radius: 13px;
  background: var(--paper-2);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.msrp-input-row input:focus {
  outline: none;
  border-color: var(--terra);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(185, 90, 44, 0.12);
  transform: translateY(-1px);
}

/* step 4: condition */
.cond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0 30px;
}
.cond-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 16px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--paper-2);
  transition: border-color 0.15s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.cond-card:hover { border-color: var(--terra); transform: translateY(-2px); }
.cond-card.active {
  border-color: var(--terra);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(185, 90, 44, 0.1), 0 14px 26px -16px rgba(185, 90, 44, 0.35);
}
.cond-card strong { font-size: 0.98rem; }
.cond-card small { color: var(--text-muted); font-size: 0.82rem; }
.mileage-block { margin-bottom: 30px; }

/* result */
.val-result-card { max-width: 520px; margin-bottom: 22px; }
.val-disclaimer {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 60ch;
  margin-bottom: 26px;
}
.val-result-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.val-back {
  margin-top: 30px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
  transition: color 0.15s ease, transform 0.2s var(--ease);
}
.val-back:hover { color: var(--terra); transform: translateX(-2px); }

@media (max-width: 640px) {
  .val-page { padding: 36px 0 80px; }
  .val-card-shell { border-radius: 20px; }
  .year-grid { grid-template-columns: repeat(4, 1fr); }
  .val-result-actions .btn { width: 100%; justify-content: center; }
}
