.fb-lead-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.fb-lead-popup.is-open {
  display: flex;
}

.fb-lead-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 8, 0.58);
}

.fb-lead-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px 18px 18px;
  border-radius: 14px;
  background: #ffffff;
  color: #172019;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.fb-lead-popup__dialog::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: linear-gradient(90deg, #0f4d2e, #f47b20);
}

.fb-lead-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff1f0;
  color: #d9342b;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.fb-lead-popup h2 {
  margin: 10px 38px 8px 0;
  color: #0f4d2e;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.14;
}

.fb-lead-popup p {
  margin: 0 0 16px;
  color: #4d5a52;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.fb-lead-popup__form {
  display: grid;
  gap: 12px;
}

.fb-lead-popup__field {
  display: grid;
  gap: 6px;
}

.fb-lead-popup__field label {
  color: #24332a;
  font-size: 14px;
  font-weight: 900;
}

.fb-lead-popup__field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #dce6df;
  border-radius: 10px;
  background: #f8faf9;
  color: #172019;
  font: inherit;
  font-size: 18px;
  outline: none;
}

.fb-lead-popup__field input:focus {
  border-color: #0f4d2e;
  box-shadow: 0 0 0 3px rgba(15, 77, 46, 0.12);
}

.fb-lead-popup__error {
  min-height: 16px;
  color: #d9342b;
  font-size: 13px;
  font-weight: 850;
}

.fb-lead-popup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fb-lead-popup__submit {
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #17643d, #0f4d2e);
  color: #ffffff;
  font: inherit;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 77, 46, 0.22);
}

.fb-lead-popup__submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

.fb-lead-popup__status {
  min-height: 20px;
  color: #0f4d2e;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

body.fb-lead-popup-open {
  overflow: hidden;
}

@media (max-width: 380px) {
  .fb-lead-popup {
    padding: 12px;
  }

  .fb-lead-popup__dialog {
    padding: 22px 14px 16px;
    border-radius: 12px;
  }

  .fb-lead-popup h2 {
    font-size: 20px;
  }
}
