html body .modal.modal--autoload,
html body .modal.modal--autoload * {
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

html body .modal.modal--autoload {
  --exit-blue: #0035c9;
  --exit-ink: #1D1D23;
  --exit-muted: #4a5160;
  --exit-soft: #5b6b82;
  --exit-line: rgba(0, 53, 201, 0.22);
}

html body .modal.modal--autoload .modal__overlay-autoload {
  background: rgba(16, 24, 40, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

html body .modal.modal--autoload .modal__dialog {
  position: relative;
  top: 50%;
  width: calc(100% - 40px);
  max-width: 660px;
  max-height: 92vh;
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  transform: translateY(-50%);
}

html body .modal.modal--autoload .modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 36px 40px 32px;
  overflow: hidden;
  background: #fff;
  background-clip: padding-box;
}

html body .modal.modal--autoload .modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  margin: 0;
  opacity: 1;
}

html body .modal.modal--autoload .modal__icon--close,
html body .modal.modal--autoload .modal__icon--close .modal__svg {
  display: block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 7px auto 0;
  stroke: var(--exit-ink);
}

html body .modal.modal--autoload .modal__path {
  stroke: var(--exit-ink);
}

html body .modal.modal--autoload .exit_head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 36px 16px 0;
}

html body .modal.modal--autoload .exit_icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

html body .modal.modal--autoload .exit_icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

html body .modal.modal--autoload .exit_kicker {
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--exit-blue);
}

html body .modal.modal--autoload h2,
html body .modal.modal--autoload h2.modal__content__sale-title {
  max-width: 520px;
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--exit-ink);
}

html body .modal.modal--autoload p,
html body .modal.modal--autoload p.modal__content__sale-text {
  max-width: 520px;
  margin: 0 0 28px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--exit-muted);
}

html body .modal.modal--autoload .modal__form {
  display: flex;
  flex-direction: column;
  row-gap: 14px;
}

html body .modal.modal--autoload .modal__wrapper-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 14px;
  width: 100%;
}

html body .modal.modal--autoload .modal__wrapper-input {
  position: relative;
  min-width: 0;
}

html body .modal.modal--autoload .modal__wrapper-input:after {
  display: none;
}

html body .modal.modal--autoload .modal__wrapper-input .wrapper-input__input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--exit-line);
  border-radius: 0;
  outline: none;
  background: transparent;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  color: var(--exit-ink);
}

html body .modal.modal--autoload .modal__wrapper-input .wrapper-input__input::placeholder {
  color: var(--exit-soft);
  font-weight: 400;
}

html body .modal.modal--autoload .modal__wrapper-input .wrapper-input__input:focus {
  border-bottom-color: var(--exit-blue);
}

html body .modal.modal--autoload .modal__wrapper-input .wrapper-input__input.has-error {
  background-color: rgba(192, 57, 43, 0.06);
  border-bottom-color: #c0392b;
}

html body .modal.modal--autoload .modal__wrapper-submit {
  grid-column: 1 / -1;
}

html body .modal.modal--autoload .modal__wrapper-submit .btn,
html body .modal.modal--autoload .modal__wrapper-submit .btn.btn--darkblue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  min-height: 54px;
  max-height: none;
  margin: 4px 0 0;
  padding: 8px 16px;
  border: 2px solid #7c98ff;
  background: #0035c9;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

html body .modal.modal--autoload .modal__wrapper-submit .btn:hover,
html body .modal.modal--autoload .modal__wrapper-submit .btn.btn--darkblue:hover {
  background: transparent;
  border-color: #0035c9;
  color: #1D1D23;
}

html body .modal.modal--autoload .modal__wrapper-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

html body .modal.modal--autoload .modal__wrapper-checkbox label,
html body .modal.modal--autoload .consult_form_checkbox label {
  display: block;
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.45;
  color: var(--exit-muted);
  cursor: pointer;
}

html body .modal.modal--autoload .modal__wrapper-checkbox input[type="checkbox"],
html body .modal.modal--autoload .consult_form_checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border: 1px solid rgba(0, 53, 201, 0.35);
  border-radius: 3px;
  background: #fff;
  outline: none;
  cursor: pointer;
  position: relative;
}

html body .modal.modal--autoload .consult_form_checkbox input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: url("https://modules.crazyads.ru/modules/soap59/images/mark.svg") no-repeat center / contain;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

html body .modal.modal--autoload .consult_form_checkbox input[type="checkbox"]:checked {
  background: #0035c9;
  border-color: #0035c9;
}

html body .modal.modal--autoload .consult_form_checkbox input[type="checkbox"]:checked::before {
  opacity: 1;
}

html body .modal.modal--autoload .consult_form_checkbox input[type="checkbox"].has-error {
  background: #ffabab;
  border-color: #c0392b;
}

@media (max-width: 767px) {
  html body .modal.modal--autoload .modal__dialog {
    width: calc(100% - 32px);
    max-width: none;
  }

  html body .modal.modal--autoload .modal__content {
    padding: 28px 20px 24px;
  }

  html body .modal.modal--autoload h2,
  html body .modal.modal--autoload h2.modal__content__sale-title {
    font-size: 22px;
  }

  html body .modal.modal--autoload p,
  html body .modal.modal--autoload p.modal__content__sale-text {
    margin-bottom: 22px;
    font-size: 14px;
  }

  html body .modal.modal--autoload .modal__wrapper-control {
    grid-template-columns: 1fr;
  }
}
