.service-page {
  margin: 52px 0;
}

.service-page__h1 {
  text-align: center;
  margin-bottom: 30px;
}

.service-page__h2 {
  color: #000000;
  font-size: 25px;
  margin: 40px 0 30px 0;
}

.service-page__tabs {
  display: flex;
  width: 100%;
  max-width: 1282px;
  margin: 0 auto 40px auto;
  padding: 0 10px;
  font-size: 16px;
}

.service-page__tabs span {
  padding: 12px 0;
  border-bottom: 2px solid #dee2e6;
  width: 50%;
  text-align: center;
}

.service-page__tabs .active {
  border-color: #000;
}

.service-page label {
  display: block;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 400;
  color: #0a0a0a;
}

.service-page input[type="text"],
.service-page select {
  width: 100%;
  padding: 0 10px;
  border: 1px solid #dee2e6;
  background: none;
  font-size: 16px;
  height: 52px;
}

.service-page select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("/_assets/img/service-page/arrow.svg") no-repeat right 10px center;
  background-size: 12px 12px;
  padding-right: 30px;
  
}

.service-page textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #dee2e6;
  font-size: 16px;
  background: none;
  height: 155px;
  resize: none;
}

.service-page button {
  background-color: #d3d3d3;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 14px;
  margin-top: 40px;
  cursor: not-allowed;
}

.service-page button.active {
  background-color: #d30000;
  cursor: pointer;
}

.service-page__service-option {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 301px;
}

.service-page__service-option input {
  margin-right: 10px;
}

.service-page__service-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border: 1px solid #b2b2b2;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
}

.service-page__service-option input[type="radio"]:checked {
  border: 6px solid #d30000;
}

.service-page .service-page__services label {
  margin-bottom: 0;
  cursor: pointer;
}

.service-page__services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 45px;
}

.service-page__image-section {
  width: 100%;
  max-width: 605px;
  max-height: 500px;
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
}

.service-page__image-section img {
  max-width: 100%;
  height: auto;
}

.service-page__summary-value {
  font-size: 16px;
}

#step-1 {
  display: flex;
  gap: 35px;
  max-width: 1282px;
  margin: 0 auto;
  padding: 0 10px;
}

.service-page__form-section {
  width: 100%;
  max-width: 622px;
  flex: 1;
}

#step-1 .service-page__inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

#step-1 .service-page__input {
  width: 100%;
  max-width: 301px;
}

#step-2 {
  display: flex;
  justify-content: space-between;
  max-width: 1282px;
  padding: 0 10px;
  margin: 0 auto;
}

#step-2 #edit-block-car-data {
  display: none;
}

#step-2 #edit-block-service-data {
  display: none;
  margin-bottom: 0;
}

.service-page__data-section {
  width: 100%;
  max-width: 622px;
}

.service-page__summary-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: 605px;
}

.service-page__summary-data-car,
.service-page__summary-data-service {
  width: 100%;
  border: 1px solid #dadada;
  padding: 25px 15px 20px 15px;
  margin-bottom: 20px;
  font-size: 15px;
  position: relative;
}

.service-page__summary-edit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.service-page__edit,
.service-page__save-edit,
.service-page__cansel-edit {
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
}

.service-page__edit {
  display: flex;
}

.service-page__edit::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("/_assets/img/service-page/edit.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.service-page__save-edit::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("/_assets/img/service-page/save.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.service-page__cansel-edit::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("/_assets/img/service-page/cancel.svg");
  background-size: contain;
  background-repeat: no-repeat;
}

.service-page h3 {
  font-size: 25px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-page__summary p {
  margin: 6px 0;
  font-size: 15px;
}

#step-2 .service-page__inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#step-2 .service-page__input {
  width: 100%;
  max-width: 260px;
}

#step-2 .service-page__service-option {
  max-width: 205px;
}

#step-2 label {
  display: flex;
  align-items: center;
  font-size: 14px;
}

#step-2 label input[type="checkbox"] {
  margin-right: 10px;
}

#step-2 .service-page__summary-car-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#step-2 .service-page__summary-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  max-width: 205px;
}

.service-page__summary-label {
  color: #0000004d;
  font-size: 14px;
}

#step-2 button[type="submit"] {
  background-color: #d3d3d3;
  color: #fff;
  border: none;
  padding: 12px 25px;
  font-size: 14px;
  margin-top: 20px;
  cursor: not-allowed;
  transition: background 0.2s ease;
}

#step-2 button[type="submit"]:enabled {
  background-color: #d30000;
  cursor: pointer;
}

.contact-form {
  margin-top: 30px;
}

.service-page #contact-form input[type="date"],
.service-page #contact-form input[type="time"],
.service-page #contact-form input[type="tel"] {
  height: 52px;
  width: 100%;
  padding: 0 15px;
  border: 1px solid #dee2e6;
  color: black;
}

.service-page #contact-form input[type="date"] {
  position: relative;
  background: url("/_assets/img/service-page/calendar.svg") no-repeat right 10px
    center;
  background-size: 20px 20px;
  padding-right: 40px;
}

.service-page
  #contact-form
  input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 40px;
  height: 100%;
  cursor: pointer;
}

.service-page #contact-form input[type="time"] {
  position: relative;
  background: url("/_assets/img/service-page/clock.svg") no-repeat right 10px
    center;
  background-size: 20px 20px;
  padding-right: 40px;
}

.service-page
  #contact-form
  input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 40px;
  height: 100%;
  cursor: pointer;
}

#contact-form .service-page__input {
  width: 100%;
  max-width: 301px;
}

.service-page__description {
  font-size: 16px;
}

.service-page__agreements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}

.service-page__agreements span {
  display: flex;
  gap: 10px;
  font-weight: 400;
  color: #0a0a0a;
  font-size: 12px;
}

.service-page__agreements input {
    margin-bottom: 10px;
}



@media (max-width: 990px) {
  .service-page button {
    width: 100%;
  }
  .service-page__tabs {
    display: none;
  }
  .service-page__image-section {
    display: none;
  }
  .service-page__form-section,
  .service-page__data-section,
  .service-page__summary-container,
  #step-1 .service-page__input,
  #step-2 .service-page__input,
  #contact-form .service-page__input {
    max-width: none;
  }
  #step-2 {
    flex-direction: column;
  }
}

@media (max-width: 490px) {
  .service-page__summary-data-car,
  .service-page__summary-data-service {
    padding: 25px 15px 50px 15px;
  }
  .service-page__edit,
  .service-page__save-edit,
  .service-page__cansel-edit {
    position: absolute;
    bottom: 15px;
  }
  .service-page__cansel-edit {
    left: 60%;
  }
}
