.rz-consult {
  padding-top: 40px;
  font-family: Avenirnextcyr-regular, sans-serif;
  color: #563916;
}

.rz-consult__progress {
  border: 0;
  margin-bottom: 40px;
  height: 18px;
}

.rz-consult__progress-inner {
  background-color: #ffffff;
  box-shadow: 0 0 10px 0 #CFA769 inset;
  border-radius: 30px;
  padding: 4px;
  height: 100%;
  box-sizing: border-box;
}

.rz-consult__progress-bar {
  background-color: #CFA769;
  background-image: linear-gradient(
    146.13deg,
    rgba(255, 255, 255, 0.198) -15.9%,
    rgba(255, 255, 255, 0.6) 0.41%,
    rgba(255, 255, 255, 0.06) 23.37%,
    rgba(255, 255, 255, 0.36) 48.75%,
    rgba(255, 255, 255, 0.06) 72.92%,
    rgba(255, 255, 255, 0.6) 100.11%
  );
  border-radius: 40px;
  height: 100%;
  width: 20%;
  transition: width 0.35s ease;
}

.rz-consult__step {
  display: none;
}

.rz-consult__step.is-active {
  display: block;
}

.rz-consult__label {
  font-size: 24px;
  line-height: normal;
  color: #563916;
  text-align: center;
  font-family: Avenirnextcyr-bold, sans-serif;
  padding: 0 0 50px;
  margin: 0;
}

.rz-consult__heading {
  font-size: 30px;
  color: #563916;
  font-weight: 400;
  text-align: center;
  margin: 0 0 30px;
  font-family: Avenirnextcyr-regular, sans-serif;
}

.rz-consult__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
  margin-bottom: 20px;
}

.rz-consult__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #563916;
  font-size: 18px;
  line-height: normal;
  font-weight: 400;
  padding: 0 10px 20px 0;
  cursor: pointer;
  margin: 0;
}

.rz-consult__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rz-consult__check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid #ffffff;
  border-radius: 5px;
  background: transparent;
  position: relative;
  box-sizing: border-box;
}

.rz-consult__item input:checked + .rz-consult__check::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #ffffff;
  border-radius: 3px;
}

.rz-consult__field {
  margin-bottom: 30px;
}

.box-form .rz-consult__input,
.rz-consult input.rz-consult__input[type="text"] {
  width: 100%;
  height: 80px;
  min-height: 80px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 40px;
  font-size: 22px !important;
  line-height: 1.25 !important;
  color: #563916 !important;
  font-family: Avenirnextcyr-regular, sans-serif !important;
  box-sizing: border-box;
}

.box-form .rz-consult__input::placeholder,
.rz-consult input.rz-consult__input[type="text"]::placeholder {
  color: #9a8770 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  opacity: 1;
}

.rz-consult__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 20px;
}

.rz-consult__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 30px;
}

.rz-consult__btn {
  appearance: none;
  border: 2px solid #000000;
  border-radius: 10px;
  background: #ffffff;
  color: #563916;
  font-size: 18px;
  line-height: 80px;
  height: 80px;
  padding: 0 40px;
  font-family: Avenirnextcyr-demi, sans-serif;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  min-width: 140px;
}

.rz-consult__btn:hover {
  opacity: 0.9;
}

.rz-consult__btn--prev {
  background: transparent;
}

.rz-consult__btn--submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.rz-consult__policy {
  display: flex;
  justify-content: center;
  margin: 10px 0 20px;
}

.rz-consult__policy label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.rz-consult__policy input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.rz-consult__policy .rz-consult__check {
  width: 16px;
  height: 16px;
  margin-top: 0;
  flex: 0 0 16px;
}

.rz-consult__policy input[type="checkbox"]:checked + .rz-consult__check::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #ffffff;
  border-radius: 3px;
}

.rz-consult__policy a {
  color: #ffffff;
  text-decoration: underline;
}

.rz-consult__policy a:hover {
  text-decoration: none;
}

.rz-consult__error {
  display: none;
  color: #f2322b;
  margin: 10px auto 20px;
  width: 100%;
  text-align: center;
  font-family: Avenirnextcyr-demi, sans-serif;
  font-size: 16px;
  line-height: normal;
}

.rz-consult__error.is-visible {
  display: block;
}

.rz-consult__success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.rz-consult__success.is-visible {
  display: block;
}

.rz-consult__success h3 {
  font-size: 28px;
  color: #563916;
  margin: 0 0 12px;
}

.rz-consult__success p {
  font-size: 18px;
  color: #563916;
  margin: 0;
}

.rz-consult.is-loading .rz-consult__btn--submit {
  opacity: 0.7;
  pointer-events: none;
}

@media (min-width: 1921px) {
  .rz-consult {
    padding-top: 60px;
  }

  .rz-consult__progress {
    margin-bottom: 60px;
  }

  .rz-consult__label {
    font-size: 30px;
  }

  .rz-consult__item {
    font-size: 22px;
  }

  .rz-consult__btn {
    line-height: 80px;
    padding: 0 80px;
  }
}

@media (max-width: 991px) {
  .rz-consult {
    padding-top: 20px;
  }

  .rz-consult__progress {
    margin-bottom: 30px;
    height: 14px;
  }

  .rz-consult__label {
    font-size: 16px;
    padding-bottom: 30px;
  }

  .rz-consult__grid {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .rz-consult__item {
    font-size: 16px;
    padding-bottom: 0;
  }

  .rz-consult__btn {
    font-size: 16px;
    line-height: 64px;
    height: 64px;
    padding: 0 24px;
  }

  .box-form .rz-consult__input,
  .rz-consult input.rz-consult__input[type="text"] {
    height: 64px;
    min-height: 64px;
    padding: 0 20px;
    font-size: 18px !important;
  }

  .box-form .rz-consult__input::placeholder,
  .rz-consult input.rz-consult__input[type="text"]::placeholder {
    font-size: 18px !important;
  }

  .rz-consult__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rz-consult__heading {
    font-size: 22px;
  }
}

@media (max-width: 575px) {
  .rz-consult__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rz-consult__btn {
    width: 100%;
  }
}
