/**
 * exit_intent.css — Exit-intent modal styles.
 * Uses Jobeezy brand tokens only.
 * No rounded corners (sharp buttons per brand).
 * Dark bg: #2F2A28, accent: #D6FF3E
 */

/* ── Overlay ─────────────────────────────────────────────────────────────── */
#jb-exit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.75);
  z-index: 9990;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#jb-exit-overlay.active {
  display: flex;
}

/* ── Modal card ───────────────────────────────────────────────────────────── */
#jb-exit-modal {
  background: #131620;
  border: 1px solid rgba(214, 255, 62, 0.15);
  border-top: 3px solid #D6FF3E;
  padding: 2.5rem 2rem 2rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: jb-exit-slide-up 0.22s ease-out both;
  font-family: Inter, system-ui, sans-serif;
}

@keyframes jb-exit-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Close button ─────────────────────────────────────────────────────────── */
#jb-exit-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s;
}
#jb-exit-close:hover { color: #fff; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.jb-exit-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D6FF3E;
  margin-bottom: 0.5rem;
}

#jb-exit-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.75rem;
}

.jb-exit-subtext {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.25rem;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */
#jb-exit-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

#jb-exit-email {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
#jb-exit-email::placeholder { color: rgba(255, 255, 255, 0.35); }
#jb-exit-email:focus { border-color: #D6FF3E; }

#jb-exit-submit {
  width: 100%;
  padding: 0.8125rem 1rem;
  background: #D6FF3E;
  color: #2F2A28;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  letter-spacing: 0.01em;
}
#jb-exit-submit:hover  { background: #c4ec30; }
#jb-exit-submit:active { background: #b0d425; }
#jb-exit-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── States ───────────────────────────────────────────────────────────────── */
.jb-exit-error {
  font-size: 0.8125rem;
  color: #ff6b6b;
  margin: 0;
}

.jb-exit-success {
  font-size: 1rem;
  font-weight: 600;
  color: #D6FF3E;
  padding: 0.75rem 0;
  margin: 0;
  text-align: center;
}

/* ── Privacy line ─────────────────────────────────────────────────────────── */
.jb-exit-privacy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0.75rem 0 0;
  text-align: center;
}

/* ── Screen reader only ───────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Mobile adjustments ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #jb-exit-modal {
    padding: 2rem 1.25rem 1.5rem;
  }
  #jb-exit-title {
    font-size: 1.25rem;
  }
}
