/* Google reCAPTCHA block on lead forms */
.lead-recaptcha {
  margin: 0 0 14px;
  min-height: 78px;
}

.modal__form .lead-recaptcha {
  margin: 0 0 12px;
}

.mf-ajax-form .lead-recaptcha {
  margin: 12px 0;
}

/* Captcha popup for hero / dark forms */
.lead-captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lead-captcha-modal[hidden] {
  display: none !important;
}

.lead-captcha-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 40, 39, 0.55);
}

.lead-captcha-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(40, 40, 39, 0.28);
  padding: 28px 24px 22px;
}

.lead-captcha-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lead-captcha-modal__close::before,
.lead-captcha-modal__close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 2px;
  background: #282827;
}

.lead-captcha-modal__close::before {
  transform: rotate(45deg);
}

.lead-captcha-modal__close::after {
  transform: rotate(-45deg);
}

.lead-captcha-modal__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: #282827;
}

.lead-captcha-modal__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #5a5a57;
}

.lead-captcha-modal__widget {
  display: flex;
  justify-content: center;
  min-height: 78px;
  margin-bottom: 12px;
}

.lead-captcha-modal__error {
  margin: 0 0 12px;
  color: #b42318;
  font-size: 13px;
}

.lead-captcha-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.lead-captcha-modal__actions .btn-outline,
.lead-captcha-modal__actions .btn-orange {
  min-width: 140px;
}

body.lead-captcha-modal-open {
  overflow: hidden;
}
