/* GAC Test Drive Plugin Styles */

/* Wrapper */
#testdrive-wrapper {
  display: flex;
  font-family: "Montserrat", sans-serif !important;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  padding-top: 86px;
  max-width: 2000px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1024px) {
  #testdrive-wrapper {
    flex-direction: column;
    padding-bottom: 20px;
  }
}

/* Vehicles Container */

.testdrive-vehicles-section {
  display: flex;
  flex-direction: column;
  height: -webkit-fill-available;
  background: var(--BackgroundLayer, #1d1d1d);
}

@media (max-width: 1024px) {
  .testdrive-vehicles-section {
    width: 100%;
    height: auto;
  }
}

.testdrive-vehicles-container-title-wrapper {
  display: none;
}

@media (max-width: 1024px) {
  .testdrive-vehicles-container-title-wrapper {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    margin-top: 25px;
    margin-bottom: 5px;
    text-align: center;
  }
}

.testdrive-vehicles-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 15vw;
  height: calc(100vh - 86px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  gap: 0;
}
.testdrive-vehicles-container::-webkit-scrollbar {
  display: none;
}
.testdrive-vehicles-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testdrive-vehicle-item {
  cursor: pointer;
  margin: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-sizing: border-box;

  scroll-snap-align: center;
  flex: 0 0 auto;
  opacity: 0.4;
  filter: blur(2px);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.testdrive-vehicle-item:first-child {
  margin-top: calc(50vh - 100px);
}
.testdrive-vehicle-item:last-child {
  margin-bottom: calc(50vh - 100px);
}

.testdrive-vehicle-image {
  width: 150px;
  height: auto;
  transition: all 0.3s ease;
}

.testdrive-vehicle-item.selected {
  opacity: 1;
  filter: blur(0px);
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .testdrive-vehicles-container {
    flex-direction: row;
    max-width: 100%;
    height: auto;
    overflow-y: hidden;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0;
  }

  .testdrive-vehicle-item:first-child {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: calc(50vw - 85px);
  }
  .testdrive-vehicle-item:last-child {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: calc(50vw - 85px);
  }
}

/* Selected vehicle */

.testdrive-selected-vehicle-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40vw;
  max-width: 35vw;
  height: 100%;
  gap: 100px;
}

h2.testdrive-selected-vehicle-title {
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.selected-vehicle-image-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  max-height: 720px;
}

#selected-vehicle-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.selected-vehicle-logo-container {
  display: flex;
  justify-content: center;
  max-height: 150px;
  max-width: 230px;
  width: 100%;
}

.selected-vehicle-logo-container svg {
  height: 100%;
  width: auto;
}

@media (max-width: 1024px) {
  .testdrive-selected-vehicle-container {
    flex-direction: column;
    max-width: 100vw;
    width: 100vw;
    padding: 50px 0px;
    gap: 50px;
  }

  h2.testdrive-selected-vehicle-title {
    font-size: 22px;
  }

  .selected-vehicle-image-container {
    max-height: 55vw;
  }

  #selected-vehicle-image {
    max-height: 400px;
  }

  .selected-vehicle-logo-container,
  .selected-vehicle-logo-container svg {
    max-height: 100px;
    max-width: 150px;
  }
}

@media (max-width: 767px) {
  .selected-vehicle-image-container {
    max-height: 520px;
  }

  #selected-vehicle-image {
    max-height: 350px;
  }

  .selected-vehicle-logo-container {
    max-height: 130px;
    max-width: 250px;
  }
}

/* Form Section */
.testdrive-form-container {
  display: flex;
  width: 30vw;
  height: min-content;
  padding: 50px 70px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-radius: 15px;
  background: linear-gradient(339deg, #a6a4a4 0%, #dfd9d9 86.35%);
  box-sizing: border-box;
}

.testdrive-form-container h1 {
  color: #000;
  font-size: 24px;
  font-style: normal;
  margin: 0px;
}

#cotizador-form {
  width: 100%;
}

.cotizador-form-fields,
.cotizador-fields-col,
.cotizador-form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  box-sizing: border-box;
}

.cotizador-form-group label {
  color: #474647;
  font-size: 18px;
  font-weight: 400;
}

input.cotizador-input-field,
select.cotizador-input-field {
  display: block;
  height: 60px;
  width: 100%;
  padding: 19px 20px;
  align-items: center;
  flex-shrink: 0;
  align-self: stretch;
  box-sizing: border-box;
  border-radius: 15px;
  border: 1px solid #cecece;
  background: #fff;
}

#testdrive-submit-btn {
  border-color: #000;
  color: #000;
  cursor: pointer;
}

#testdrive-submit-btn:hover {
  background: #000;
  color: #fff;
}

#testdrive-submit-btn:disabled {
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .testdrive-form-container {
    width: 90%;
    padding: 50px 45px;
  }
}
