.lead-form {
  width: 100%;
  margin-top: 30px;
}

.lead-form__heading {
  margin-bottom: 22px;
}

.lead-form__heading h3,
.lead-form__heading p {
  margin: 0;
}

.lead-form__heading h3 {
  color: var(--ink, #0a0b0c);
  font-size: clamp(27px, 2vw, 34px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.lead-form__heading p {
  margin-top: 8px;
  color: var(--muted, #5c6166);
  font-size: 15px;
  line-height: 1.4;
}

.lead-form__field {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  color: var(--ink, #0a0b0c);
  font-size: 14px;
  line-height: 1.35;
}

.lead-form__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.lead-form__label-row em {
  color: #747b80;
  font-size: 12px;
  font-style: normal;
}

.lead-form__field input,
.lead-form__field textarea {
  width: 100%;
  color: var(--ink, #0a0b0c);
  background: #fff;
  border: 1px solid #cdd2d5;
  border-radius: 7px;
  outline: 0;
  font: inherit;
  font-size: 16px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.lead-form__field input {
  min-height: 54px;
  padding: 0 15px;
}

.lead-form__field textarea {
  min-height: 94px;
  padding: 14px 15px;
  line-height: 1.45;
  resize: vertical;
}

.lead-form__field input::placeholder,
.lead-form__field textarea::placeholder {
  color: #8b9195;
  opacity: 1;
}

.lead-form__field input:focus,
.lead-form__field textarea:focus {
  border-color: var(--blue, #168fc7);
  box-shadow: 0 0 0 3px rgba(22, 143, 199, 0.13);
}

.lead-form__field input[aria-invalid="true"],
.lead-form__field textarea[aria-invalid="true"] {
  border-color: #a94141;
}

.lead-form__field small,
.lead-form__consent-error {
  min-height: 16px;
  display: block;
  color: #9d3737;
  font-size: 12px;
  line-height: 1.3;
}

.lead-form__consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  color: #3f464b;
  font-size: 14px;
  line-height: 1.45;
  cursor: default;
}

.lead-form__consent label {
  cursor: pointer;
}

.lead-form__consent input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--blue, #168fc7);
}

.lead-form__consent input:focus-visible {
  outline: 3px solid rgba(22, 143, 199, 0.3);
  outline-offset: 3px;
}

.lead-form__consent a {
  color: var(--blue-deep, #0c7fb7);
  text-underline-offset: 3px;
}

.lead-form__consent-error {
  margin: 5px 0 0 34px;
}

.lead-form__actions {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  margin-top: 24px;
}

.lead-form__actions .button {
  min-width: 250px;
}

.lead-form__callback {
  min-height: 44px;
  padding: 8px 0;
  color: var(--blue-deep, #0c7fb7);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.lead-form__callback:hover,
.lead-form__callback:focus-visible {
  color: #086d9d;
  outline: 0;
}

.lead-form__status {
  min-height: 20px;
  margin: 15px 0 0;
  color: #4e565b;
  font-size: 13px;
  line-height: 1.4;
}

.lead-form__status[data-state="ready"],
.lead-form__status[data-state="success"] {
  color: #197044;
}

.lead-form[aria-busy="true"] {
  cursor: progress;
}

.lead-form [type="submit"]:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.lead-form__status[data-state="error"] {
  color: #9d3737;
}

.lead-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.lead-form__honeypot input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
}

@media (max-width: 560px) {
  .lead-form {
    margin-top: 24px;
  }

  .lead-form__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .lead-form__actions .button {
    width: 100%;
    min-width: 0;
  }

  .lead-form__callback {
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-form__field input,
  .lead-form__field textarea {
    transition: none;
  }
}

.lead-modal {
  width: min(620px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: visible;
  color: var(--ink, #0a0b0c);
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 25, 31, 0.22);
}

.lead-modal::backdrop {
  background: rgba(7, 14, 18, 0.56);
  backdrop-filter: blur(3px);
}

.lead-modal__panel {
  width: 100%;
  max-height: calc(100dvh - 32px);
  padding: clamp(26px, 4vw, 46px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lead-modal__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #2c3337;
  background: #f3f5f6;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lead-modal__close:hover,
.lead-modal__close:focus-visible {
  color: #fff;
  background: #086d9d;
  outline: 0;
}

.lead-modal__form {
  margin-top: 0;
}

.lead-modal__form .lead-form__heading {
  padding-right: 42px;
}

.lead-modal__form .lead-form__heading h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.06;
  overflow-wrap: break-word;
}

.lead-modal__form .lead-form__actions .button {
  width: 100%;
}

@media (max-width: 560px) {
  .lead-modal {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .lead-modal__panel {
    max-height: calc(100dvh - 20px);
    padding: 25px 20px 22px;
  }

  .lead-modal__form .lead-form__heading {
    padding-right: 0;
  }

  .lead-modal__form .lead-form__heading h2 {
    font-size: 26px;
    letter-spacing: -0.035em;
  }

  .lead-modal__close {
    top: 9px;
    right: 9px;
  }
}
