/* ── EMAIL CAPTURE POPUP ─────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  background: #1C1A16;
  border: 1px solid rgba(201, 164, 78, 0.35);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 164, 78, 0.08);
}

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

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 78, 0.2);
  background: transparent;
  color: rgba(250, 247, 240, 0.4);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.popup-close:hover {
  color: var(--gold, #C9A44E);
  border-color: rgba(201, 164, 78, 0.5);
}

.popup-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A44E;
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.popup-icon {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  display: block;
  line-height: 1;
}

.popup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 500;
  color: #FAF7F0;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.popup-subtitle {
  font-size: 0.82rem;
  color: rgba(250, 247, 240, 0.5);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popup-input {
  background: #242018;
  border: 1px solid rgba(201, 164, 78, 0.2);
  border-radius: 10px;
  color: #FAF7F0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  text-align: center;
  transition: border-color 0.2s;
  width: 100%;
}

.popup-input::placeholder { color: rgba(250, 247, 240, 0.28); }
.popup-input:focus {
  outline: none;
  border-color: #C9A44E;
}

.popup-submit {
  background: #C9A44E;
  color: #1A1A1A;
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.popup-submit:hover { background: #E8D5A0; }
.popup-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.popup-dismiss {
  font-size: 0.72rem;
  color: rgba(250, 247, 240, 0.3);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-top: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.popup-dismiss:hover { color: rgba(250, 247, 240, 0.55); }

.popup-success {
  display: none;
}

.popup-success.show {
  display: block;
}

.popup-success-msg {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #FAF7F0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.popup-success-sub {
  font-size: 0.8rem;
  color: rgba(250, 247, 240, 0.5);
  line-height: 1.6;
}

/* ── FIELD ERRORS ── */
.popup-input.error {
  border-color: rgba(255, 80, 80, 0.5);
}

.popup-error-msg {
  font-size: 0.72rem;
  color: rgba(255, 100, 100, 0.85);
  text-align: left;
  display: none;
  margin-top: -0.4rem;
}

.popup-input.error + .popup-error-msg {
  display: block;
}