/* Test-drive page. Loaded after showroom.css. Mobile first. */
.td-hero {
  display: block;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
  padding: clamp(2.5rem, 8vh, 5rem) var(--g) clamp(2rem, 6vh, 3.5rem);
}
.td-hero:hover,
.td-hero:focus-visible { color: #fff; }
.td-hero:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }
.page-test-drive .ftr a[aria-label="China Wheels home"] { display: inline-block; text-decoration: none; }
.td-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.td-hero h1 {
  max-width: 12ch;
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.td-hero p { max-width: 38rem; margin-top: 1rem; color: var(--on-dark-2); }
.td-wrap { padding: clamp(1.5rem, 4vh, 3rem) var(--g) clamp(4rem, 10vh, 6rem); background: var(--surface); }
.td-form, .td-panel {
  max-width: 40rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1rem 1.5rem;
}
.td-form { display: grid; gap: 1rem; }
.td-row { display: grid; gap: 1rem; }
.td-field { display: grid; gap: 0.35rem; min-width: 0; }
.td-field label, .td-check span { font-weight: 700; color: var(--navy); }
.td-field .hint { font-weight: 400; color: var(--ink-soft); }
.td-field input, .td-field select, .td-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--din);
}
.td-field textarea { min-height: 7rem; resize: vertical; }
.td-field input:focus, .td-field select:focus, .td-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.td-check {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--ink);
}
.td-check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--navy); }
.td-error {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: #fff4f0;
  border: 1px solid var(--orange);
  border-radius: var(--r-btn);
  color: var(--navy);
}
.td-actions { display: grid; gap: 0.8rem; }
.btn--drive {
  width: 100%;
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}
.btn--drive:hover { background: #ff8a4c; }
.btn--drive:disabled { opacity: 0.65; }
.td-alt { color: var(--ink-soft); }
.td-alt a { color: var(--blue); font-weight: 700; }
.td-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.td-panel { display: grid; gap: 0.9rem; }
.td-form[hidden], .td-panel[hidden], .td-error[hidden] { display: none !important; }
.td-panel h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 400; color: var(--navy); line-height: 1.1; }
.td-panel p { color: var(--ink-soft); }
.td-panel .btn { width: 100%; }
.td-panel:focus { outline: none; }
@media (min-width: 768px) {
  .td-form, .td-panel { padding: 1.75rem 1.75rem 2rem; }
  .td-row { grid-template-columns: 1fr 1fr; }
  .btn--drive, .td-panel .btn { width: auto; }
}
/* After submit: the two test-drive vehicles. */
.td-next { max-width: 40rem; margin: 1.5rem auto 0; }
.td-next[hidden] { display: none !important; }
.td-next h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 400; color: var(--navy); line-height: 1.15; margin-bottom: 1rem; }
.td-cars { display: grid; gap: 1rem; }
.td-car { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.td-car img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); }
.td-car__body { padding: 1rem; display: grid; gap: 0.5rem; }
.td-car h3 { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.td-car p { color: var(--ink-soft); margin: 0; }
.td-car__links { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.td-car__links .btn { width: 100%; }
.td-car__video { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; color: var(--blue); font-weight: 700; }
@media (min-width: 768px) {
  .td-next { max-width: 56rem; }
  .td-cars { grid-template-columns: 1fr 1fr; }
}
