/* ============================================================
   ABF Newsletter Popup — Reusable across all marketing pages
   ============================================================ */

.nl-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,14,0.65);
  backdrop-filter: blur(10px);
  z-index: 9500;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: nlBd 0.3s;
}
@keyframes nlBd { from { opacity: 0; } to { opacity: 1; } }
.nl-overlay.visible { display: flex; }

.nl-card {
  background: white;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 80px -20px rgba(0,0,0,0.5);
  animation: nlPop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes nlPop { from { opacity: 0; transform: translateY(24px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.nl-hero {
  background: linear-gradient(135deg, var(--brand-red, #A42217), #8C1B12);
  color: white;
  padding: 32px 32px 24px;
  position: relative;
  overflow: hidden;
}
.nl-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  pointer-events: none;
}
.nl-hero .nl-eyebrow {
  position: relative; z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}
.nl-hero h2 {
  position: relative; z-index: 1;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nl-hero h2 em { font-style: italic; color: #FFE4DF; }
.nl-hero p {
  position: relative; z-index: 1;
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.96rem;
  line-height: 1.55;
}

.nl-body { padding: 24px 32px 28px; }
.nl-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.nl-benefits li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.94rem;
  color: var(--ink, #1B1B1A);
  line-height: 1.5;
}
.nl-benefits li::before {
  content: '';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-red, #A42217);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

.nl-field { margin-bottom: 14px; }
.nl-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(27,27,26,0.14);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: var(--warm-cream, #FAF6F0);
  color: var(--ink, #1B1B1A);
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s;
}
.nl-field input:focus {
  outline: none;
  border-color: var(--brand-red, #A42217);
  background: white;
  box-shadow: 0 0 0 3px rgba(164,34,23,0.08);
}

.nl-submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--ink, #1B1B1A);
  color: white;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
}
.nl-submit:hover:not(:disabled) {
  background: var(--brand-red, #A42217);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(164,34,23,0.4);
}
.nl-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.nl-submit svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5;
}

.nl-skip {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #8A8A86;
  font-size: 0.84rem;
  cursor: pointer;
  font-family: inherit;
  margin-top: 14px;
  padding: 8px;
  transition: color 0.2s;
}
.nl-skip:hover { color: var(--brand-red, #A42217); }

.nl-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
}
.nl-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.nl-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }

.nl-error {
  background: #FEF2F2;
  border-left: 3px solid #DC2626;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  color: #991B1B;
  margin-bottom: 14px;
  display: none;
}
.nl-error.visible { display: block; }

/* Success state */
.nl-success {
  text-align: center;
  padding: 40px 32px;
}
.nl-success .nl-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16A34A, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 12px 28px -6px rgba(22,163,74,0.4);
}
.nl-success .nl-check svg {
  width: 34px; height: 34px;
  stroke: white; fill: none;
  stroke-width: 2.5;
}
.nl-success h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.nl-success h2 em { font-style: italic; color: var(--brand-red, #A42217); }
.nl-success p {
  color: #4A4A47;
  line-height: 1.6;
  margin: 0 0 22px;
}
.nl-success .nl-done {
  padding: 13px 24px;
  border-radius: 100px;
  background: var(--ink, #1B1B1A);
  color: white;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.nl-success .nl-done:hover { background: var(--brand-red, #A42217); }
