.lead-modal__dialog {
  width: 64rem;
  max-width: 100%;
  padding: 3rem 6rem 6rem;
  font-size: max(1rem, 8px);
}

.lead-modal__title {
  margin-top: 1rem;
}

.lead-modal__text {
  margin-top: 1.6rem;
  font-size: max(2rem, 15px);
  font-weight: 300;
  line-height: 1.2;
}

.lead-form {
  display: grid;
  gap: 1.6rem;
  margin-top: 4rem;
}

.lead-form[hidden] {
  display: none;
}

.lead-form__submit {
  width: 100%;
  margin-top: 0.8rem;
}

.lead-form__consent {
  font-size: max(1.2rem, 11px);
  line-height: 1.25;
  color: rgba(35, 37, 42, 0.6);
}

.lead-form__consent a {
  text-decoration: underline;
}

.lead-form__error {
  font-size: max(1.4rem, 12px);
  color: var(--color-sold);
}

.lead-modal__success {
  margin-top: 4rem;
  font-size: max(2rem, 15px);
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .lead-modal {
    padding: 1.6rem;
  }

  .lead-modal__dialog {
    padding: 2rem 2rem 3.2rem;
  }

  .lead-modal__text {
    font-size: 1.5rem;
  }
}
