body.modal-open {
  overflow: hidden;
}

.footer-credit img {
  width: auto !important;
  height: 11px !important;
  max-width: none !important;
}

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

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s linear 0s;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 18, 20, .72);
  backdrop-filter: blur(4px);
}

.lead-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(35, 18, 20, .32);
  padding: 34px;
  transform: translateY(16px) scale(.985);
  transition: transform .3s ease;
}

.lead-modal.is-open .lead-dialog {
  transform: translateY(0) scale(1);
}

.lead-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.lead-dialog-head {
  padding-right: 42px;
  margin-bottom: 24px;
}

.lead-dialog-head .eyebrow {
  margin-bottom: 9px;
}

.lead-dialog-head h2 {
  font-size: clamp(27px, 4vw, 36px);
}

.lead-dialog-head p:last-child {
  margin-top: 10px;
  font-size: 13px;
}

.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.lead-form-field {
  margin-top: 17px;
}

.lead-form-grid .lead-form-field {
  margin-top: 0;
}

.lead-form label:not(.form-consent),
.contact-form .lead-form-field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
}

.lead-form textarea {
  min-height: 122px;
}

.form-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0 18px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.65;
  color: var(--muted);
}

.form-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 2px 0 0;
}

.form-consent a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recaptcha-slot {
  min-height: 78px;
  margin-bottom: 18px;
}

.recaptcha-slot[hidden] {
  display: none;
  min-height: 0;
}

.lead-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lead-submit .ico-wa {
  display: block;
  width: 19px !important;
  height: 19px !important;
  min-width: 19px;
  color: currentColor;
  fill: currentColor !important;
}

.lead-submit .ico-wa path {
  fill: currentColor !important;
}

.lead-form-status {
  min-height: 24px;
  margin-top: 13px;
  font-size: 12px;
  line-height: 1.6;
}

.lead-form-status[data-state="error"] {
  color: #a11625;
}

.lead-form-status[data-state="success"] {
  color: #14723f;
}

.lead-form-status:empty {
  display: none;
}

.lead-form button[disabled] {
  cursor: wait;
  opacity: .68;
}

.contact-form .lead-form-field {
  margin-top: 18px;
}

.contact-form .lead-form-grid .lead-form-field {
  margin-top: 0;
}

@media (min-width: 681px) {
  .lead-dialog {
    width: min(540px, calc(100vw - 48px));
    padding: 24px 28px;
  }

  .lead-dialog-head {
    margin-bottom: 16px;
  }

  .lead-dialog-head h2 {
    font-size: 31px;
  }

  .lead-dialog-head p:last-child {
    margin-top: 6px;
    font-size: 12px;
  }

  .lead-modal .lead-form-grid {
    gap: 12px;
  }

  .lead-modal .lead-form-field {
    margin-top: 12px;
  }

  .lead-modal .lead-form input,
  .lead-modal .lead-form select,
  .lead-modal .lead-form textarea {
    padding: 9px;
  }

  .lead-modal .lead-form textarea {
    min-height: 88px;
  }

  .lead-modal .form-consent {
    margin: 10px 0 12px !important;
  }

  .lead-modal .recaptcha-slot {
    margin-bottom: 12px;
  }

  .lead-modal .lead-submit {
    padding-block: 12px;
  }
}

@media (max-width: 680px) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }

  .lead-modal {
    display: block;
    padding: 10px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .lead-modal::-webkit-scrollbar,
  .lead-dialog::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
  }

  .lead-dialog {
    width: 100%;
    max-height: none;
    margin: 0 auto;
    padding: 27px 20px 22px;
    border-radius: 12px 12px 8px 8px;
    overflow: visible;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .lead-form input:not([type="checkbox"]):not([type="hidden"]),
  .lead-form select,
  .lead-form textarea {
    padding: 6px;
  }

  .lead-form-grid {
    grid-template-columns: 1fr;
  }

  .lead-dialog-head {
    margin-bottom: 20px;
  }

  .recaptcha-slot {
    overflow: hidden;
  }
}
