/* email-popup.css — BrightNeighbors exit-intent / timed email capture popup */

#bn-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
#bn-popup-overlay.bn-visible {
  display: flex;
  animation: bnFadeIn .22s ease;
}
@keyframes bnFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#bn-popup {
  background: #0b1a2e;
  border: 1px solid rgba(240,168,48,.25);
  border-radius: 16px;
  padding: 36px 32px 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  animation: bnSlideUp .25s ease;
  box-sizing: border-box;
}
@keyframes bnSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#bn-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color .15s;
}
#bn-popup-close:hover { color: #e2e8f0; }

#bn-popup-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

#bn-popup-headline {
  font-size: 20px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 6px;
  line-height: 1.3;
}

#bn-popup-subtext {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 20px;
  line-height: 1.5;
}

#bn-popup-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#bn-popup-email {
  flex: 1 1 180px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 11px 14px;
  color: #f1f5f9;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
#bn-popup-email::placeholder { color: #64748b; }
#bn-popup-email:focus { border-color: #f0a830; }

#bn-popup-submit {
  background: #f0a830;
  color: #0b1a2e;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, opacity .15s;
}
#bn-popup-submit:hover { background: #e8722a; }
#bn-popup-submit:disabled { opacity: .6; cursor: default; }

#bn-popup-error {
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
  display: none;
  width: 100%;
}

#bn-popup-success {
  text-align: center;
  padding: 12px 0 4px;
}
#bn-popup-success p {
  color: #86efac;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}
#bn-popup-success small {
  color: #64748b;
  font-size: 13px;
}

#bn-popup-social-proof {
  margin-top: 16px;
  font-size: 12px;
  color: #475569;
  text-align: center;
}

@media (max-width: 400px) {
  #bn-popup { padding: 28px 20px 24px; }
  #bn-popup-headline { font-size: 17px; }
  #bn-popup-form { flex-direction: column; }
  #bn-popup-submit { width: 100%; }
}
