/* ==========================================
   BRIGHTPATH CREDIT - SHARED LEAD POPUP STYLES
   Responsive, Mobile-First, Accessible & Animated
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

.bpc-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 16, 38, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bpc-popup-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.bpc-popup-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, #131A3A 0%, #0B1026 100%);
  border: 1.5px solid rgba(198, 255, 78, 0.3);
  border-radius: 24px;
  padding: 36px 32px;
  color: #FFFFFF;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(198, 255, 78, 0.12);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
}

.bpc-popup-backdrop.active .bpc-popup-card {
  transform: translateY(0) scale(1);
}

/* Close Button */
.bpc-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #B9C0DE;
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bpc-popup-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* Header & Eyebrow */
.bpc-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(198, 255, 78, 0.12);
  border: 1px solid rgba(198, 255, 78, 0.35);
  color: #C6FF4E;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.bpc-popup-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C6FF4E;
  box-shadow: 0 0 0 0 rgba(198, 255, 78, 0.7);
  animation: bpcPulse 1.8s infinite;
}

@keyframes bpcPulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 255, 78, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(198, 255, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 78, 0); }
}

.bpc-popup-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.bpc-popup-title .hl {
  background: linear-gradient(90deg, #C6FF4E, #FFC94D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bpc-popup-subtitle {
  font-size: 0.94rem;
  color: #A7AFD4;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Form Controls */
.bpc-popup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bpc-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bpc-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #DDE2FF;
  letter-spacing: 0.02em;
}

.bpc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bpc-input-icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0.75;
}

.bpc-input {
  width: 100%;
  height: 50px;
  padding: 0 0 0 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 0.98rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.bpc-input::placeholder {
  color: #6B7394;
}

.bpc-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #C6FF4E;
  box-shadow: 0 0 0 4px rgba(198, 255, 78, 0.18);
}

.bpc-input.error {
  border-color: #FF5F57;
  box-shadow: 0 0 0 4px rgba(255, 95, 87, 0.2);
}

.bpc-error-msg {
  font-size: 0.76rem;
  color: #FF7B73;
  display: none;
  margin-top: 2px;
}

.bpc-error-msg.active {
  display: block;
}

/* Submit Button */
.bpc-btn-submit {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  background: #C6FF4E;
  color: #0B1026;
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(198, 255, 78, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bpc-btn-submit:hover {
  background: #9BE212;
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(198, 255, 78, 0.45);
}

.bpc-btn-submit:active {
  transform: translateY(0);
}

/* Micro-Trust Footer */
.bpc-popup-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.78rem;
  color: #8F97BF;
}

.bpc-popup-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bpc-popup-footer b {
  color: #C6FF4E;
}

/* Responsive adjustments */
@media (max-width: 520px) {
  .bpc-popup-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .bpc-popup-title {
    font-size: 1.4rem;
  }
  .bpc-popup-footer {
    flex-direction: column;
    gap: 6px;
  }
}
