@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

:root {
  --nav-bg: #010E14;
  --nav-fg: #ffffff;
  --nav-height: 4.25rem;
  --nav-pad-x: clamp(1rem, 4vw, 3rem);
  --models-surface: #ebebec;
  --models-text: #0a0a0a;
  --models-segment-active: #2d8646;
  --models-segment-idle: #d5d5d3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.testdrive-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(30rem, 52vw, 46rem);
  overflow: hidden;
}

.testdrive-hero__bg {
  position: absolute;
  inset: 0;
}

.testdrive-hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: testdriveHeroImageIn 1000ms ease forwards;
}

.testdrive-hero__overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  background: linear-gradient(90deg, rgba(5, 12, 22, 0.68) 0%, rgba(5, 12, 22, 0.34) 46%, rgba(5, 12, 22, 0.64) 100%);
}

.testdrive-hero__content {
  width: min(112.5rem, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 4.2vw, 3rem) clamp(1rem, 4.5vw, 3rem);
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(20rem, 0.88fr);
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.6rem);
}

.testdrive-hero__copy {
  color: #ffffff;
  max-width: 34rem;
  opacity: 0;
  transform: translateY(1.2rem);
  animation: testdriveHeroContentIn 700ms ease 180ms forwards;
}

.testdrive-hero__copy h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  line-height: 1.07;
  font-weight: 700;
}

.testdrive-hero__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.92rem, 1.15vw, 1.33rem);
  line-height: 1.45;
}

.testdrive-hero__form-card {
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(1px);
  border-radius: 2rem;
  color: #ffffff;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  opacity: 0;
  transform: translateY(1.35rem);
  animation: testdriveHeroContentIn 760ms ease 320ms forwards;
}

.testdrive-hero__form-card h2 {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: clamp(1.05rem, 1.4vw, 1.5rem);
  line-height: 1.2;
  font-weight: 600;
}

.testdrive-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 0.7rem;
}

.testdrive-form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
}

.testdrive-form input,
.testdrive-form select {
  width: 100%;
  border: 0;
  border-radius: 0.8rem;
  background: #f0f0f0;
  color: #222222;
  font-size: 0.85rem;
  line-height: 1.2;
  font-family: inherit;
  padding: 0.8rem 0.8rem;
}

.testdrive-form input:focus,
.testdrive-form select:focus {
  outline: 2px solid #4ec06d;
  outline-offset: 1px;
}

.testdrive-form__full {
  grid-column: 1 / -1;
}

.testdrive-form button {
  grid-column: 1 / -1;
  width: fit-content;
  justify-self: center;
  margin-top: 0.35rem;
  background: #3fbe63;
  color: #ffffff;
  border-radius: 999px;
  padding: 1rem 2.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  line-height: 1;
}

@keyframes testdriveHeroImageIn {
  from {
    opacity: 0.65;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes testdriveHeroContentIn {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .testdrive-hero {
    min-height: 39rem;
  }

  .testdrive-hero__content {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 3rem;
    padding: 5rem clamp(1rem, 4vw, 2rem) 5rem;
  }

  .testdrive-hero__copy {
    max-width: 100%;
  }

  .testdrive-hero__copy h1 {
    font-size: clamp(1.85rem, 5.3vw, 2.8rem);
    max-width: 23rem;
  }

  .testdrive-hero__copy p {
    font-size: clamp(0.92rem, 2vw, 1.02rem);
    max-width: 30rem;
  }

  .testdrive-hero__form-card {
    max-width: 35rem;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .testdrive-hero {
    min-height: 42rem;
  }

  .testdrive-hero__bg img {
    object-position: 58% center;
  }

  .testdrive-hero__overlay {
    background: linear-gradient(180deg, rgba(5, 12, 22, 0.72) 0%, rgba(5, 12, 22, 0.66) 55%, rgba(5, 12, 22, 0.78) 100%);
  }

  .testdrive-hero__content {
    gap: 2rem;
    padding: 3rem 0.9rem 1.2rem;
  }

  .testdrive-hero__copy h1 {
    font-size: 1.9rem;
    line-height: 1.1;
    margin-bottom: 0.55rem;
  }

  .testdrive-hero__copy p {
    font-size: 0.88rem;
    line-height: 1.4;
    max-width: 19rem;
  }

  .testdrive-hero__form-card {
    border-radius: 1.25rem;
    padding: 2rem;
  }

  .testdrive-hero__form-card h2 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
  }

  .testdrive-form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testdrive-form__full {
    grid-column: 1;
  }

  .testdrive-form label {
    font-size: 0.74rem;
  }

  .testdrive-form input,
  .testdrive-form select {
    border-radius: 0.7rem;
    font-size: 0.82rem;
    padding: 0.56rem 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testdrive-hero__bg img,
  .testdrive-hero__copy,
  .testdrive-hero__form-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}