/* Newsletter Popup – Frontend Styles */

/* ── Overlay ─────────────────────────────────────────────── */
.np-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    animation: npFadeIn .25s ease;
}
.np-overlay.np-visible {
    display: flex;
}

/* ── Popup Box ───────────────────────────────────────────── */
.np-popup {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 18px;
    padding: 40px 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    text-align: center;
    animation: npSlideUp .35s cubic-bezier(.22,.68,0,1.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Close Button ────────────────────────────────────────── */
.np-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.np-close:hover {
    background: #f1f5f9;
    color: #475569;
}

/* ── Icon ───────────────────────────────────────────────── */
.np-popup-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    animation: npBounce .6s ease .3s both;
}

/* ── Text ────────────────────────────────────────────────── */
.np-popup-title {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}
.np-popup-subtitle {
    margin: 0 0 20px;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.5;
}

/* ── Form ────────────────────────────────────────────────── */
#np-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#np-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
#np-form input[type="email"]:focus {
    border-color: #2563eb;
}
#np-form button[type="submit"] {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s, transform .1s;
}
#np-form button[type="submit"]:hover {
    filter: brightness(1.12);
}
#np-form button[type="submit"]:active {
    transform: scale(.98);
}
#np-form button[type="submit"]:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ── Message ─────────────────────────────────────────────── */
.np-msg {
    margin-top: 12px;
    font-size: .9rem;
    min-height: 20px;
    font-weight: 600;
    transition: opacity .2s;
}
.np-msg.np-success { color: #15803d; }
.np-msg.np-error   { color: #dc2626; }

/* ── Privacy ─────────────────────────────────────────────── */
.np-privacy {
    margin: 14px 0 0;
    color: #94a3b8;
    font-size: .78rem;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes npFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes npSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes npBounce {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .np-popup {
        padding: 32px 22px 24px;
    }
}

