/* ==========================================================================
   Clear Auto Choice - Trade-In Value
   Covers: tools/trade-in-value.html

   2026-09-14: trade-in-value.html and instant-trade-in.html merged into one
   page (there was no reason for a landing page plus a separate tool page).
   This file now also carries the former instant-trade-in.css rules
   ("itl-" prefixed — VIN-lookup form/results layout). The old "tiv-"
   worksheet/card-grid/condition rules and the instant-lookup banner rule
   were dead weight from the pre-merge pages and were removed.
   ========================================================================== */

.itl-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .itl-layout { grid-template-columns: 1fr; }
}

.itl-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink);
  margin-top: 14px;
}
.itl-checkbox-row input { margin-top: 3px; }

.itl-results-col { display: flex; flex-direction: column; gap: 16px; }

.itl-placeholder-card {
  padding: 28px 20px;
  text-align: center;
  border-style: dashed;
}

.itl-status-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--slate);
}
.itl-status-error {
  color: var(--ink);
  background: rgba(220, 53, 69, 0.06);
  border-color: rgba(220, 53, 69, 0.35);
}

.itl-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  flex: none;
  animation: itl-spin 0.8s linear infinite;
}
@keyframes itl-spin {
  to { transform: rotate(360deg); }
}

.itl-result-card { padding: 20px 22px; border: 1px solid var(--accent); background: rgba(29, 78, 216, 0.05); }

/* ---------- Deep Appraisal Report upsell (added 2026-09-14) ---------- */
.itl-upsell-card { padding: 20px 22px; }
.itl-result-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.itl-result-value { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.itl-result-sub { font-size: 0.85rem; color: var(--slate); margin-top: 4px; }
.itl-result-note { font-size: 0.8rem; color: var(--slate); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); line-height: 1.45; }

/* ---------- Comparable listings (Premium tier, added 2026-09-14) ---------- */
.itl-comparables-stats { font-size: 0.85rem; color: var(--slate); margin-bottom: 14px; }
.itl-comparables-table-wrap { overflow-x: auto; }
.itl-comparables-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.itl-comparables-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--slate);
  font-weight: 700;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.itl-comparables-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}
.itl-comparables-table tr:last-child td { border-bottom: none; }
