.test-drive-page-shell {
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 0 18px 32px;
  margin-top:20px;
}

.test-drive {
  width: 100%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: #111;
}

.test-drive__title {
  margin: 0 0 14px;
  color: #333;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.test-drive__description {
  max-width: 520px;
  margin: -4px auto 34px;
  text-align: center;
  color: #5f6368;
  font-size: 14px;
  line-height: 1.45;
}

.test-drive .form-row--2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-info-title,
.choose-a-model,
.test-drive-location {
  margin: 0 0 16px;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.test-drive-location,
.test-drive .privacy-consent-container {
  margin-top: 26px;
}

.test-drive .floating-field {
  position: relative;
  margin-bottom: 12px;
}

.test-drive .floating-field > .field-label {
  position: absolute;
  top: 8px !important;
  left: 14px !important;
  z-index: 1;
  margin: 0;
  color: #555;
  font-size: 10px !important;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
}

.test-drive .req {
  color: #1464f4;
}

.test-drive input[type="text"],
.test-drive input[type="tel"],
.test-drive input[type="email"],
.test-drive input[type="number"],
.test-drive input[type="date"],
.test-drive select {
  box-sizing: border-box;
  width: 100% !important;
  height: 54px;
  margin: 0 !important;
  padding: 22px 14px 8px !important;
  border: 1px solid #d9dde3 !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  box-shadow: none !important;
  color: #222 !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.2;
  text-transform: none !important;
}

.test-drive select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  cursor: pointer;
}

.test-drive input:focus,
.test-drive select:focus {
  outline: none !important;
  border-color: #1464f4 !important;
  box-shadow: 0 0 0 2px rgba(20, 100, 244, 0.12) !important;
}

.phone-control {
  position: relative;
}

.test-drive .phone-field > .field-label {
  top: 8px;
  left: 14px;
  z-index: 2;
  color: #555;
  font-size: 10px;
  line-height: 1;
  transform: none !important;
}

.test-drive .phone-field:focus-within > .field-label,
.test-drive .phone-field:has(input[type="tel"]:not(:placeholder-shown)) > .field-label {
  display: block !important;
}

.phone-prefix {
  position: absolute;
  left: 14px;
  top: 34px !important;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #222;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.phone-prefix::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  margin-left: 6px;
  background: #d9dde3;
}

.phone-field input[type="tel"] {
  padding: 22px 14px 8px 102px !important;
}

.ph-flag {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
  overflow: hidden;
  border: 1px solid #d7d7d7;
  background: linear-gradient(to bottom, #0b4ea2 0 50%, #d71920 50% 100%);
}

.ph-flag::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #fff;
}

.vehicle-selection-container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 30px 0 8px;
}

.vehicle-selection-container .choose-a-model {
  margin: 0;
}

.vehicle-selection-container .form-item {
  margin: 0;
}

.test-drive select.car-select,
.test-drive select.modern-select {
  min-width: 120px;
  height: 42px;
  padding: 4px 32px 4px 8px !important;
  border: 0 !important;
  color: #1464f4 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  text-align: right;
  background-color: transparent !important;
  background-position: right center !important;
}

.test-drive select.car-select:focus,
.test-drive select.modern-select:focus {
  box-shadow: none !important;
}

.car-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 230px;
  margin: 0 0 22px;
}

.car-preview__img {
  width: 100%;
  text-align: center;
}

.car-preview__img img {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: 0 auto;
}

.visually-hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.privacy-consent-container .customer-info-title {
  margin-top: 0;
}

.privacy-notice-text {
  color: #333;
  font-size: 12px;
  line-height: 1.45;
}

.privacy-notice-text p {
  margin: 0 0 18px;
}

.privacy-notice-text a {
  color: #1464f4;
  text-decoration: none;
}

.consent-checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  color: #333;
  font-size: 12px;
  font-weight: 400 !important;
  line-height: 1.45;
  cursor: pointer;
}

.consent-checkbox-label input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: #1464f4;
}

.test-drive .test-drive__submit,
.test-drive input.test-drive__submit {
  display: block !important;
  width: 100% !important;
  height: 52px;
  margin: 30px 0 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #1464f4 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 52px;
  text-align: center;
  text-transform: none !important;
  cursor: pointer !important;
}

.test-drive .test-drive__submit:disabled {
  /*background: #cfcfcf !important;*/
  color: #666 !important;
  cursor: not-allowed !important;
  opacity: 0.65 !important;
}

.test-drive .test-drive__submit:not(:disabled):hover {
  background: #0f55d8 !important;
}

@media (max-width: 768px) {
  .test-drive-page-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .test-drive .form-row--2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .vehicle-selection-container {
    grid-template-columns: 1fr auto;
  }

  .test-drive select.car-select,
  .test-drive select.modern-select {
    min-width: 104px;
    font-size: 22px !important;
  }

  .car-preview {
    min-height: 180px;
  }

  .car-preview__img img {
    width: min(100%, 340px);
  }
}
