@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: "Poppins", sans-serif;
    scroll-behavior: smooth;
    background-color: #000000;
    color: #ffffff;
    padding-top: 88px;
  }

  h1 {
    text-transform: uppercase;
  }

  .span1 {
    font-weight: 400;
  }

  main {
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    margin: 0 auto;
    width: 100%;
  }

  /* Demo Drive Section */
  .demo-drive {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
    overflow: hidden;
  }

  .demo-drive__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/testdrive/testbg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }

  .demo-drive__background.is-visible {
    opacity: 1;
    transform: scale(1);
  }

  .demo-drive__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.342);
    z-index: 2;
  }

  .demo-drive__container {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    width: 100%;
    display: flex;
    gap: 60px;
    align-items: center;
  }

  .demo-drive__content {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .demo-drive__title {
    font-size: clamp(26px, 3vw, 50px);
  font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .demo-drive__title.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .demo-drive__description {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
  }

  .demo-drive__description.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .demo-drive__form-container {
    background: #00000065;
    border-radius: 16px;
    padding: 30px;
    max-width: 900px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  .demo-drive__form-container.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .demo-drive__form-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 30px 0;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .demo-drive__form-container.is-visible .demo-drive__form-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }

  .demo-drive__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    
  }

  .demo-drive__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .demo-drive__form-row--three {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .demo-drive__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .demo-drive__field.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Field animations are handled by JavaScript with individual is-visible classes */

  .demo-drive__label {
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
  }

  .demo-drive__input,
  .demo-drive__select {
    width: 100%;
    padding: 9px 10px;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    font-family: "Poppins", sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
  }

  .demo-drive__input:focus,
  .demo-drive__select:focus {
    border-color: #0066ff;
  }

  .demo-drive__input::placeholder {
    color: #999999;
  }

  /* Date and Time input specific styles */
  .demo-drive__input[type="date"],
  .demo-drive__input[type="time"] {
    position: relative;
    color-scheme: light;
  }

  .demo-drive__input[type="date"]::-webkit-calendar-picker-indicator,
  .demo-drive__input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    filter: invert(0);
  }

  .demo-drive__input[type="date"]::-webkit-calendar-picker-indicator:hover,
  .demo-drive__input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
  }

  .demo-drive__select-wrapper {
    position: relative;
  }

  .demo-drive__select {
    appearance: none;
    padding-right: 45px;
    cursor: pointer;
  }

  .demo-drive__select-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #000000;
    font-size: 14px;
  }

  .demo-drive__submit {
    width: 100%;
    padding: 10px 32px;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
    font-family: "Poppins", sans-serif;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
  }

  .demo-drive__submit.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .demo-drive__submit:hover {
    background-color: #ffffff;
    color: #000000;
  }

  .demo-drive__submit:active {
    transform: scale(0.98);
  }

  .demo-drive__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .demo-drive__message {
    display: none;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
  }

  .demo-drive__message--success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
  }

  .demo-drive__message--error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .demo-drive__image-wrapper {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .demo-drive__image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  }

  /* Tablet Responsive Styles */
  @media screen and (max-width: 1024px) and (min-width: 768px) {
    .demo-drive {
      padding: 80px 35px;
      min-height: auto;
    }

    .demo-drive__container {
      flex-direction: column;
      gap: 50px;
    }

    .demo-drive__content {
      flex: 1;
      width: 100%;
    }

    .demo-drive__title {
      font-size: clamp(32px, 6vw, 48px);
      text-align: center;
    }

    .demo-drive__description {
      text-align: center;
      max-width: 100%;
    }

    .demo-drive__form-container {
      padding: 35px;
    }

    .demo-drive__form-title {
      font-size: 22px;
    }

    .demo-drive__form-row {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .demo-drive__form-row--three {
      grid-template-columns: 1fr;
    }

    .demo-drive__image-wrapper {
      flex: 1;
      width: 100%;
    }

    .demo-drive__image {
      max-width: 500px;
    }
  }

  /* Mobile Responsive Styles */
  @media screen and (max-width: 767px) {
    .demo-drive {
      padding: 60px 25px;
      min-height: auto;
    }

    .demo-drive__container {
      flex-direction: column;
      gap: 40px;
    }

    .demo-drive__content {
      flex: 1;
      width: 100%;
      gap: 25px;
    }

    .demo-drive__title {
      font-size: clamp(28px, 7vw, 40px);
      text-align: center;
    }

    .demo-drive__description {
      font-size: 15px;
      text-align: center;
      max-width: 100%;
    }

    .demo-drive__form-container {
      padding: 30px 25px;
    }

    .demo-drive__form-title {
      font-size: 20px;
      margin-bottom: 25px;
    }

    .demo-drive__form {
      gap: 18px;
    }

    .demo-drive__form-row {
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .demo-drive__form-row--three {
      grid-template-columns: 1fr;
    }

    .demo-drive__field {
      gap: 6px;
    }

    .demo-drive__label {
      font-size: 13px;
    }

    .demo-drive__input,
    .demo-drive__select {
      padding: 12px 16px;
      font-size: 15px;
    }

    .demo-drive__submit {
      padding: 12px 28px;
      font-size: 15px;
    }

    .demo-drive__image-wrapper {
      flex: 1;
      width: 100%;
    }

    .demo-drive__image {
      max-width: 100%;
    }
  }

  /* Small Mobile Devices */
  @media screen and (max-width: 480px) {
    .demo-drive {
      padding: 50px 25px;
    }

    .demo-drive__container {
      gap: 35px;
    }

    .demo-drive__content {
      gap: 20px;
    }

    .demo-drive__title {
      font-size: clamp(24px, 6vw, 36px);
    }

    .demo-drive__description {
      font-size: 14px;
    }

    .demo-drive__form-container {
      padding: 25px 20px;
    }

    .demo-drive__form-title {
      font-size: 18px;
      margin-bottom: 20px;
    }

    .demo-drive__form {
      gap: 16px;
    }

    .demo-drive__form-row {
      gap: 16px;
    }

    .demo-drive__form-row--three {
      grid-template-columns: 1fr;
    }

    .demo-drive__label {
      font-size: 12px;
    }

    .demo-drive__input,
    .demo-drive__select {
      padding: 11px 14px;
      font-size: 14px;
    }

    .demo-drive__submit {
      padding: 11px 24px;
      font-size: 14px;
    }
  }