/* =============================================
   NEWSLETTER.CSS — Estilos do módulo newsletter
   JurisBrasil © 2026
   ============================================= */

/* ---- SEÇÃO NEWSLETTER PRINCIPAL (inline em index/blog) ---- */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a237e 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media(max-width:768px){ .newsletter-inner { grid-template-columns: 1fr; text-align: center; } }

.newsletter-text .nl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.newsletter-text h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
  line-height: 1.3;
}
.newsletter-text p { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.6; margin-bottom: 16px; }
.newsletter-benefits { list-style: none; padding: 0; margin: 0; }
.newsletter-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  margin-bottom: 8px;
}
.newsletter-benefits li i { color: #69f0ae; font-size: .85rem; }

.newsletter-form-wrap {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(8px);
}
.newsletter-form-wrap h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.newsletter-form-wrap p  { color: rgba(255,255,255,.8); font-size: .83rem; margin-bottom: 20px; }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-input-group { display: flex; flex-direction: column; gap: 6px; }
.nl-input-group label { color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 500; }
.nl-input-group input {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .92rem;
  color: #fff;
  outline: none;
  transition: border .2s;
}
.nl-input-group input::placeholder { color: rgba(255,255,255,.5); }
.nl-input-group input:focus { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.2); }

.nl-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.nl-area-check { display: none; }
.nl-area-label {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  padding: 4px 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}
.nl-area-check:checked + .nl-area-label {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 600;
}
.nl-area-label:hover { background: rgba(255,255,255,.22); }
.nl-areas-label { color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 500; margin-bottom: 4px; display: block; }

.btn-subscribe {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  margin-top: 4px;
}
.btn-subscribe:hover { background: #e8f0fe; transform: translateY(-1px); }
.btn-subscribe:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.nl-privacy { font-size: .74rem; color: rgba(255,255,255,.6); text-align: center; }
.nl-privacy a { color: rgba(255,255,255,.8); text-decoration: underline; }

/* ---- TOAST NEWSLETTER ---- */
.nl-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1b5e20;
  color: #fff;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: .92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 9999;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
}
.nl-toast.show { transform: translateX(-50%) translateY(0); }
.nl-toast i { font-size: 1.1rem; color: #69f0ae; }

/* ---- POPUP NEWSLETTER (exit-intent / tempo) ---- */
.nl-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nl-popup-overlay.visible { opacity: 1; pointer-events: all; }
.nl-popup {
  background: var(--card-bg);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 36px;
  position: relative;
  transform: scale(.9);
  transition: transform .3s;
  text-align: center;
}
.nl-popup-overlay.visible .nl-popup { transform: scale(1); }
.nl-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: .85rem;
  transition: all .2s;
}
.nl-popup-close:hover { background: var(--border); }
.nl-popup-icon { font-size: 3rem; margin-bottom: 16px; }
.nl-popup h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 10px; }
.nl-popup p { color: var(--text-muted); font-size: .9rem; line-height: 1.5; margin-bottom: 20px; }
.nl-popup-form { display: flex; gap: 8px; }
.nl-popup-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .88rem;
  background: var(--bg-main);
  color: var(--text);
  outline: none;
}
.nl-popup-form input:focus { border-color: var(--primary); }
.nl-popup-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-size: .88rem;
  transition: background .2s;
}
.nl-popup-form button:hover { background: var(--primary-dark); }
.nl-popup-skip { color: var(--text-muted); font-size: .8rem; margin-top: 12px; cursor: pointer; text-decoration: underline; }
