/*
 * ASTA Test Drive Form
 * Visual style based on the clean white form card mockup.
 */
.asta-tdf,
.asta-tdf * {
  box-sizing: border-box;
}

.asta-tdf {
  width: 100%;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0D0D0E;
}

.asta-tdf-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #D9D9D9;
  border-radius: 11px;
  padding: 36px 38px 32px;
  box-shadow: 0 18px 40px rgba(13, 13, 14, 0.08);
}

.asta-tdf-title {
  margin: 0 0 26px;
  color: #0D0D0E;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.asta-tdf-grid {
  display: grid;
  gap: 0 28px;
}

.asta-tdf-grid-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.asta-tdf-field {
  margin: 0 0 22px;
}

.asta-tdf-field label {
  display: block;
  margin: 0 0 9px;
  color: #0D0D0E;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.asta-tdf-field label span {
  color: #D1291A;
}

.asta-tdf-field input,
.asta-tdf-field select,
.asta-tdf-field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #D6D6D6;
  border-radius: 7px;
  background-color: #FFFFFF;
  color: #0D0D0E;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  padding: 13px 16px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.asta-tdf-field input::placeholder,
.asta-tdf-field textarea::placeholder {
  color: #8E8E8E;
  opacity: 1;
}

.asta-tdf-field select {
  color: #8E8E8E;
  padding-right: 44px;
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #5F6368 50%),
    linear-gradient(135deg, #5F6368 50%, transparent 50%);
  background-position:
    calc(100% - 23px) 50%,
    calc(100% - 16px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.asta-tdf-field select:valid {
  color: #0D0D0E;
}

.asta-tdf-field textarea {
  min-height: 112px;
  resize: vertical;
}

.asta-tdf-field input:focus,
.asta-tdf-field select:focus,
.asta-tdf-field textarea:focus {
  border-color: #D1291A;
  box-shadow: 0 0 0 3px rgba(209, 41, 26, 0.10);
}

.asta-tdf-date-wrap {
  position: relative;
}

.asta-tdf-date-wrap::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.65;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 2V4.5M12.5 2V4.5M3.25 7H14.75M4.25 3.75H13.75C14.3023 3.75 14.75 4.19772 14.75 4.75V14.25C14.75 14.8023 14.3023 15.25 13.75 15.25H4.25C3.69772 15.25 3.25 14.8023 3.25 14.25V4.75C3.25 4.19772 3.69772 3.75 4.25 3.75Z' stroke='%235F6368' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.asta-tdf-date-wrap input {
  padding-left: 44px;
}

.asta-tdf-consent {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 13px;
  align-items: flex-start;
  margin: 0 0 22px;
  color: #1F1F1F;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  cursor: pointer;
}

.asta-tdf-consent input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid #BDBDBD;
  border-radius: 4px;
  accent-color: #D1291A;
  cursor: pointer;
  flex: 0 0 auto;
}

.asta-tdf-consent span {
  display: block;
}

.asta-tdf-consent a {
  color: #D1291A;
  text-decoration: none;
  font-weight: 600;
}

.asta-tdf-consent a:hover {
  color: #B91F13;
  text-decoration: underline;
}

.asta-tdf-submit {
  display: inline-flex;
  width: 100%;
  min-height: 58px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: 1px solid #D1291A;
  border-radius: 7px;
  background: linear-gradient(180deg, #DE2C20 0%, #D1291A 100%);
  color: #FFFFFF;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(209, 41, 26, 0.18);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.asta-tdf-submit span {
  display: inline-block;
  font-size: 32px;
  line-height: 0.55;
  font-weight: 700;
  transform: translateY(-1px);
}

.asta-tdf-submit:hover,
.asta-tdf-submit:focus {
  background: linear-gradient(180deg, #C9271D 0%, #B91F13 100%);
  border-color: #B91F13;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(185, 31, 19, 0.24);
}

.asta-tdf-note {
  margin: 16px 0 0;
  color: #777777;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.asta-tdf-message {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.asta-tdf-success {
  background: #E9F8EF;
  color: #176B35;
  border: 1px solid #BDE8CA;
}

.asta-tdf-error {
  background: #FFF0EF;
  color: #9F1E15;
  border: 1px solid #F0C5C0;
}

.asta-tdf-hp {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .asta-tdf-card {
    padding: 28px 22px 24px;
    border-radius: 10px;
  }

  .asta-tdf-title {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .asta-tdf-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .asta-tdf-field {
    margin-bottom: 18px;
  }

  .asta-tdf-field input,
  .asta-tdf-field select,
  .asta-tdf-field textarea {
    min-height: 50px;
    font-size: 15px;
  }

  .asta-tdf-submit {
    min-height: 56px;
    font-size: 16px;
  }
}
