/* Car detail styles */

.car-detail-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-height: 450px;
  background: var(--color-bg-gray);
  padding: 10px;
}

.car-detail-text_preview {
  padding-top: 24px;
}

.car-detail-text_preview > h2 {
  margin-bottom: 20px;
}

.car-detail-service__container {
  padding-left: 24px;
  margin-bottom: 20px;
}

.car-detail-service__container > li {
  list-style: disc;
  margin-bottom: 10px;
}

.car-detail-image__preview,
.car-detail-image__preview > img {
  width: 100%;
  height: 100%;
  max-height: 450px;
}

.car-detail-image__preview > img {
  object-fit: contain;
}

.car-detail-diagnos__container {
  position: relative;
  width: 100%;
  background: var(--color-bg-gray);
  margin-bottom: 40px;
  padding: 0 20px;
  overflow: hidden;
}

.car-detail-diagnos__nested {
  display: grid;
  grid-template-columns: 4fr 1fr;
  width: 100%;
  padding: 20px;
  margin: 0 auto;
  max-width: var(--content-width);
}

.sds-circle {
  position: absolute;
  border-radius: 50%;
  width: 250px;
  height: 250px;
  background: #cf0707;
}

.sds-circle__first {
  bottom: -50px;
  left: -120px;
}

.car-detail-diagnos__form {
  padding: 20px 0;
}

.car-detail-diagnos__form > h2 {
  margin-bottom: 20px;
}

.diagnos__container {
  gap: 20px;
}

.car-detail-diagnos {
  gap: 14px;
}

.car-detail-diagnos__submitter {
  width: 100%;
  max-width: 300px;
}

.input__fake-diagnos {
  background: white;
  border-radius: 10px;
  padding: 16px 32px;
  max-width: 300px;
}

.car-detail-diagnos__image > img {
  object-fit: cover;
}

.reasons_container {
  display: none;
}

.reasons__list {
  list-style: disc;
  padding-top: 10px;
  padding-left: 24px;
}

.reasons__list > li {
  margin-bottom: 10px;
}

/* Custom select */
.select-container {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.custom-select {
  background: white;
  border-radius: 10px;
  padding: 16px 32px;
  max-width: 300px;
  width: 100%;
  border: 2px solid #e1e5ee;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.custom-select:hover {
  border-color: var(--color-border-gray);
}

.custom-select.open {
  border-color: var(--color-border-gray);
  box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
  overflow: hidden;
  display: none;
  margin-top: 5px;
}

.search-box {
  padding: 12px 16px;
  border-bottom: 1px solid #e1e5ee;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e1e5ee;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--color-border-gray);
  box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.1);
}

.options {
  max-height: 200px;
  overflow-y: auto;
}

.option {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
}

.option:hover {
  background-color: #f0f4ff;
}

.option.selected {
  background-color: #e6f0ff;
  font-weight: 500;
}

.no-results {
  padding: 15px;
  text-align: center;
  color: #888;
  font-style: italic;
}

.arrow {
  transition: transform 0.3s ease;
}

.open .arrow {
  transform: rotate(180deg);
}

/* Car list styles */
.car-card {
  display: grid;
  grid-template-rows: calc(159px - 48px) 48px;

  height: 159px;

  background: white;
  border-radius: 5px;

  -webkit-box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
  -moz-box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
  box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
}

.car-card > div {
  padding: 5px 15px;
}

.car-card > div > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.car-card > p {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 10px;
}

.sds-info__section {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding-right: 10px;
}

.sds-info__image {
  position: absolute;
}

.sds-ads-info__container {
  width: 100%;
  max-width: var(--content-width);
  padding-left: 400px;
  margin: 0 auto 20px auto;
}

.sds-ads-info__container > h2,
.sds-ads-info__container > p {
  margin-bottom: 20px;
}

.sds-info__ads {
  background-image: url(../images/wheel.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 200px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  color: white;
  gap: 20px;
}

@media (max-width: 1500px) {
  .sds-ads-info__container {
    padding-left: 600px;
  }

  .sds-circle {
    display: none;
  }
}

@media (max-width: 1000px) {
  .sds-ads-info__container {
    padding-left: 0px;
  }
  .sds-info__image {
    display: none;
  }

  .sds-info__section {
    padding: 0 10px;
  }
}

@media (max-width: 635px) {
  .car-detail-diagnos__image {
    display: none;
  }

  .car-detail-diagnos__nested {
    grid-template-columns: 1fr;
  }

  .diagnos__container {
    flex-flow: column nowrap;
    justify-content: center;
  }

  .car-detail-diagnos__container {
    overflow: visible;
  }

  .car-detail-diagnos__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .car-detail-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: none;
  }
}
