/* =============================================
   Newsletter Growth — CSS
   Exit intent, sticky bar, popup pagini, banner carduri
   Stil vibrant — potrivit cu cerere oferta banner
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&family=Open+Sans:wght@400;600&display=swap');

/* ─── OVERLAY COMUN ──────────────────────── */
.nl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nlFadeIn .3s ease;
}
@keyframes nlFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes nlSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes nlPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,26,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(255,107,26,0); }
}
@keyframes nlShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ─── POPUP (exit intent + pagini vizitate) ─ */
.nl-popup {
    background: linear-gradient(160deg, #03377A 0%, #065ABF 45%, #1a7aff 100%);
    border-radius: 20px;
    max-width: 520px;
    width: 92%;
    padding: 40px 32px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(3,55,122,0.5);
    animation: nlSlideUp .4s cubic-bezier(0.34,1.4,0.64,1);
    text-align: center;
    color: #fff;
}
.nl-popup::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.nl-popup::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,184,0,0.08);
    pointer-events: none;
}
.nl-popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255,255,255,0.15);
    border: none;
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 50%;
    transition: background .2s;
    z-index: 2;
}
.nl-popup-close:hover { background: rgba(255,255,255,0.25); color: #fff; }
.nl-popup-icon {
    font-size: 52px;
    margin-bottom: 8px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.nl-popup h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}
.nl-popup .nl-popup-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    margin: 0 0 6px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
.nl-popup .nl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.nl-popup .nl-chip {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
    padding: 4px 10px;
}
.nl-popup .nl-form { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.nl-popup .nl-form input {
    padding: 13px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    outline: none;
    transition: border-color .2s, background .2s;
}
.nl-popup .nl-form input::placeholder { color: rgba(255,255,255,0.5); }
.nl-popup .nl-form input:focus {
    border-color: rgba(255,184,0,0.6);
    background: rgba(255,255,255,0.15);
}
.nl-popup .nl-form-row { display: flex; gap: 10px; }
.nl-popup .nl-form-row input { flex: 1; min-width: 0; }
.nl-popup .nl-form button.nl-g-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #FF6B1A, #FF9A00);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255,107,26,0.4);
    transition: transform .15s, box-shadow .15s;
    animation: nlPulse 2s infinite;
}
.nl-popup .nl-form button.nl-g-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255,107,26,0.6);
}
.nl-popup .nl-form button.nl-g-btn:disabled { opacity: 0.6; cursor: not-allowed; animation: none; }
.nl-popup .nl-msg {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}
.nl-popup .nl-msg.success { color: #7dffb3; }
.nl-popup .nl-msg.error { color: #ffb3b3; }
.nl-popup .nl-no-thanks {
    display: inline-block;
    margin-top: 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    z-index: 1;
    transition: color .2s;
}
.nl-popup .nl-no-thanks:hover { color: rgba(255,255,255,0.8); text-decoration: underline; }

/* ─── STICKY BAR (mobil bottom) ──────────── */
.nl-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #03377A 0%, #065ABF 100%);
    color: #fff;
    z-index: 9999;
    padding: 14px 16px;
    box-shadow: 0 -6px 30px rgba(3,55,122,0.4);
    animation: nlSlideUp .3s ease;
    display: none;
}
.nl-sticky-bar-inner {
    max-width: 600px;
    margin: 0 auto;
}
.nl-sticky-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.nl-sticky-bar-text {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    flex: 1;
    margin-right: 10px;
}
.nl-sticky-bar-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 50%;
    transition: background .2s;
}
.nl-sticky-bar-close:hover { background: rgba(255,255,255,0.25); color: #fff; }
.nl-sticky-bar .nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-sticky-bar .nl-form-row { display: flex; gap: 8px; }
.nl-sticky-bar .nl-form-row input { flex: 1; min-width: 0; }
.nl-sticky-bar .nl-form input {
    padding: 10px 12px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    outline: none;
}
.nl-sticky-bar .nl-form input::placeholder { color: rgba(255,255,255,0.5); }
.nl-sticky-bar .nl-form input:focus { border-color: rgba(255,184,0,0.5); background: rgba(255,255,255,0.15); }
.nl-sticky-bar .nl-form button.nl-g-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #FF6B1A, #FF9A00);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255,107,26,0.35);
    white-space: nowrap;
    transition: transform .15s;
}
.nl-sticky-bar .nl-form button.nl-g-btn:hover { transform: translateY(-1px); }
.nl-sticky-bar .nl-msg {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}
.nl-sticky-bar .nl-msg.success { color: #7dffb3; }
.nl-sticky-bar .nl-msg.error { color: #ffb3b3; }

/* ─── BANNER ÎNTRE CARDURI (zona) ────────── */
.nl-card-banner {
    background: linear-gradient(135deg, #03377A 0%, #065ABF 50%, #1a7aff 100%);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(6,90,191,0.2);
    animation: nlCardIn 0.6s cubic-bezier(0.34,1.4,0.64,1) both;
    color: #fff;
}
@keyframes nlCardIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.nl-card-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.nl-card-banner .nl-card-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.nl-card-banner .nl-card-body {
    flex: 1;
    min-width: 0;
    z-index: 1;
}
.nl-card-banner h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.08rem;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.25;
}
.nl-card-banner h4 em {
    color: #FFB800;
    font-style: normal;
}
.nl-card-banner .nl-card-sub {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.79rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 12px;
    line-height: 1.4;
}
.nl-card-banner .nl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}
.nl-card-banner .nl-chip {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50px;
    padding: 3px 9px;
}
.nl-card-banner .nl-form { display: flex; flex-direction: column; gap: 8px; z-index: 1; }
.nl-card-banner .nl-form-row { display: flex; gap: 8px; }
.nl-card-banner .nl-form-row input { flex: 1; min-width: 0; }
.nl-card-banner .nl-form input {
    padding: 10px 14px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    outline: none;
}
.nl-card-banner .nl-form input::placeholder { color: rgba(255,255,255,0.5); }
.nl-card-banner .nl-form input:focus { border-color: rgba(255,184,0,0.5); background: rgba(255,255,255,0.15); }
.nl-card-banner .nl-form button.nl-g-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, #FF6B1A, #FF9A00);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 0.92rem;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255,107,26,0.4);
    transition: transform .15s, box-shadow .15s;
}
.nl-card-banner .nl-form button.nl-g-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255,107,26,0.6);
}
.nl-card-banner .nl-card-stats {
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
}
.nl-card-banner .nl-stat {
    border-radius: 11px;
    padding: 9px 13px;
    text-align: center;
    min-width: 84px;
}
.nl-card-banner .nl-stat.orange {
    background: rgba(255,184,0,0.15);
    border: 1px solid rgba(255,184,0,0.3);
}
.nl-card-banner .nl-stat.green {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
}
.nl-card-banner .nl-stat-num {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 1.45rem;
    line-height: 1;
}
.nl-card-banner .nl-stat.orange .nl-stat-num { color: #FFB800; }
.nl-card-banner .nl-stat.green .nl-stat-num { color: #22C55E; }
.nl-card-banner .nl-stat-label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.62rem;
    color: rgba(255,255,255,0.62);
    margin-top: 3px;
    line-height: 1.3;
}
.nl-card-banner .nl-msg {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
}
.nl-card-banner .nl-msg.success { color: #7dffb3; }
.nl-card-banner .nl-msg.error { color: #ffb3b3; }

/* ─── CONSENT CHECKBOX ────────────────────── */
.nl-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    line-height: 1.4;
    text-align: left;
}
.nl-consent-label input[type="checkbox"] {
    margin-top: 1px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #FF6B1A;
}
.nl-consent-label a {
    color: #FFB800 !important;
    text-decoration: underline;
}
.nl-consent-label a:hover { text-decoration: none; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 640px) {
    .nl-popup { padding: 30px 18px 24px; max-width: 96%; }
    .nl-popup h3 { font-size: 20px; }
    .nl-popup .nl-popup-sub { font-size: 13px; }
    .nl-popup .nl-form-row { flex-direction: column; }
    .nl-popup .nl-chips { gap: 4px; }
    .nl-popup .nl-chip { font-size: 10px; }

    .nl-card-banner { flex-direction: column; text-align: center; padding: 18px 16px; }
    .nl-card-banner .nl-card-stats { display: none; }
    .nl-card-banner .nl-chips { justify-content: center; }
    .nl-card-banner .nl-form-row { flex-direction: column; }
    .nl-card-banner .nl-form button.nl-g-btn { width: 100%; justify-content: center; }

    .nl-sticky-bar .nl-form-row { flex-direction: column; }
}
