/* =========================================================
   PropFirmVerify — Email Capture Popup Styles
   Design: Dark glassmorphic, brand-matched
   ========================================================= */

/* ── Overlay ── */
#pfv-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

#pfv-popup-overlay.pfv-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Popup Card ── */
#pfv-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  z-index: 9999;
  width: min(480px, 92vw);
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 160, 0.18);
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow:
    0 0 0 1px rgba(0, 229, 160, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(0, 229, 160, 0.05);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-sizing: border-box;
}

#pfv-popup.pfv-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* ── Close Button ── */
#pfv-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  font-family: inherit;
}

#pfv-popup-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Badge ── */
#pfv-popup .pfv-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00e5a0;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

/* ── Headline ── */
#pfv-popup h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ── Subtext ── */
#pfv-popup p {
  margin: 0 0 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ── Form ── */
#pfv-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#pfv-popup-form input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

#pfv-popup-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

#pfv-popup-form input[type="email"]:focus {
  border-color: #00e5a0;
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.15);
}

/* ── CTA Button ── */
#pfv-popup-form button[type="submit"] {
  width: 100%;
  padding: 14px 20px;
  background: #ff8a1a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255, 138, 26, 0.35);
}

#pfv-popup-form button[type="submit"]:hover {
  background: #ff9c3a;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255, 138, 26, 0.45);
}

#pfv-popup-form button[type="submit"]:active {
  transform: translateY(0);
}

/* ── Success State ── */
#pfv-popup-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  color: #00e5a0;
  font-size: 15px;
  font-weight: 600;
}

#pfv-popup-success.pfv-show {
  display: flex;
}

/* ── No Thanks Link ── */
#pfv-popup-nothanks {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.2s;
  padding: 0;
}

#pfv-popup-nothanks:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Mobile ── */
@media (max-width: 520px) {
  #pfv-popup {
    width: 90vw;
    padding: 32px 22px 26px;
  }

  #pfv-popup h2 {
    font-size: 19px;
  }
}
