/* Test-drive module */
.test-drive-page .test-drive-form-section {
  padding-top: clamp(18px, 3vw, 36px);
}

.test-drive-page .banner h1,
.test-drive-page .vf-page-hero .section-desc {
  max-width: min(760px, 100%);
  overflow-wrap: break-word;
  white-space: normal;
}

.test-drive-page .banner h1 {
  letter-spacing: 0;
}

.test-drive-page .test-drive-form-section .vf-form-card {
  margin-top: 0;
}

.vf-test-drive-shell {
  align-items: stretch;
}

.vf-test-drive-visual {
  min-height: 100%;
}

.vf-test-drive-visual img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.vf-test-drive-form {
  position: relative;
  min-height: 100%;
}

.vf-test-drive-fields[hidden],
.vf-test-drive-success[hidden] {
  display: none !important;
}

.vf-test-drive-success {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: clamp(12px, 2vw, 24px) 0;
}

.vf-test-drive-success-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e7f7ed;
  color: #128443;
  font-size: 24px;
}

.vf-test-drive-success h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.vf-test-drive-success p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.vf-test-drive-summary {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 4px;
}

.vf-test-drive-summary[hidden],
.vf-test-drive-summary:empty {
  display: none;
}

.vf-test-drive-summary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faff;
}

.vf-test-drive-summary dt {
  color: #6f7f91;
  font-size: 12px;
  font-weight: 800;
}

.vf-test-drive-summary dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.vf-test-drive-form .form-message {
  min-height: 22px;
}

.vf-test-drive-form .form-message:empty {
  display: none;
}

.vf-test-drive-form .form-message.is-error {
  color: #c62828;
}

.vf-test-drive-form .btn.is-loading {
  cursor: progress;
  opacity: .72;
}

body.dark .vf-test-drive-success h2 {
  color: #f4f9ff;
}

body.dark .vf-test-drive-success p {
  color: #b8c9df;
}

body.dark .vf-test-drive-success-icon {
  background: rgba(18, 132, 67, .2);
  color: #73e3a0;
}

body.dark .vf-test-drive-summary div {
  background: rgba(7, 20, 38, .78);
  border-color: rgba(255, 255, 255, .14);
}

body.dark .vf-test-drive-summary dt {
  color: #9fb4cc;
}

body.dark .vf-test-drive-summary dd {
  color: #f4f9ff;
}

@media (min-width: 1025px) and (max-height: 760px) {
  .test-drive-page .vf-page-hero {
    min-height: 300px;
  }

  .test-drive-page .test-drive-form-section {
    padding-top: 18px;
    padding-bottom: 56px;
  }

  .test-drive-page .banner h1 {
    margin: 8px 0;
    font-size: clamp(34px, 4vw, 56px);
  }
}

@media (min-width: 1025px) and (max-height: 620px) {
  .test-drive-page .vf-page-hero {
    min-height: 250px;
  }

  .test-drive-page .vf-page-hero .eyebrow {
    margin-top: 8px;
  }
}

@media (max-width: 1024px) {
  .test-drive-page .test-drive-form-section {
    padding-top: 22px;
  }

  .test-drive-page .vf-form-panel {
    order: 1;
  }

  .test-drive-page .vf-form-visual {
    order: 2;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .test-drive-page .vf-page-hero {
    min-height: 260px;
  }

  .test-drive-page .banner h1 {
    margin: 8px 0;
    font-size: clamp(30px, 8vw, 34px);
    line-height: 1.08;
  }

  .test-drive-page .test-drive-form-section {
    padding: 16px 0 48px;
  }

  .test-drive-page .vf-form-panel,
  .test-drive-page .vf-form-visual {
    padding: 22px;
  }

  .test-drive-page .vf-form-visual img {
    max-height: 220px;
  }

  .vf-test-drive-success {
    min-height: 320px;
    justify-items: stretch;
  }

  .vf-test-drive-success .btn {
    width: 100%;
    justify-content: center;
  }

  .vf-test-drive-summary {
    grid-template-columns: 1fr;
  }
}
