.lead-success {
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
  padding: 16px;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 12px;
}

form.lead-captured > *:not(.lead-success) {
  display: none !important;
}

.central-lead-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  display: grid;
  gap: 8px;
  width: min(220px, calc(100vw - 36px));
}

.central-lead-floating a,
.central-lead-floating button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #005481;
  color: #fff;
  padding: 11px 14px;
  text-align: center;
  font: 700 14px/1.3 Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

body.popup-open {
  overflow: hidden;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.popup-overlay.is-open {
  display: flex;
}

.central-lead-popup {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  color: #222;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.central-lead-popup h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.central-lead-popup input,
.central-lead-popup select {
  width: 100%;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
}

.central-lead-popup .lead-submit {
  width: 100%;
  color: #fff;
  background: #005481;
  border: 0;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 576px) {
  .central-lead-floating {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }

  .central-lead-popup {
    padding: 24px;
  }
}
