/* ============================================================
   HÍRLEVÉL POPUP – VÉGLEGES MODERN VERZIÓ
   ============================================================ */

/* --- Sötét háttér (overlay) --- */
#newsletter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.55);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity .25s ease;
}

/* --- Popup központban --- */
#newsletter-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.96);
    width: 95%;
    max-width: 560px;
    background: #fff;
    padding: 32px 38px;
    border-radius: 22px;
    box-shadow: 0 18px 65px rgba(0,0,0,.28);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all .30s ease;
}

/* --- Aktivált állapot (JS hozzáadja az .active-t) --- */
#newsletter-overlay.active {
    display: block;
    opacity: 1;
}

#newsletter-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Cím --- */
#newsletter-popup h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
    text-align: left;
}

/* --- Kiegészítő szöveg --- */
#newsletter-popup p {
    color: #444;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.55;
    text-align: left;
}

/* --- Input mezők --- */
#newsletter-popup input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    outline: none;
    transition: .2s;
    background: #f7faff;
}

#newsletter-popup input:focus {
    border-color: #f39200;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(243,146,0,.25);
}

/* --- Gomb --- */
#newsletter-popup button {
    width: 100%;
    padding: 15px;
    background: #f39200;
    color: #fff;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background .2s ease, transform .1s ease;
}

#newsletter-popup button:hover {
    background: #c77900;
    transform: translateY(-1px);
}

#newsletter-popup button:active {
    transform: translateY(1px);
}

/* --- Bezáró gomb (X) --- */
.nl-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e2e2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
    color: #333;
    user-select: none;
    transition: .2s;
}

.nl-close:hover {
    background: #f0f0f0;
}

/* --- Üzenetek (siker / hiba) --- */
#nl-msg {
    margin-top: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

#nl-msg.success {
    color: #2ecc71;
}

#nl-msg.error {
    color: #e74c3c;
}

/* --- Mobil optimalizáció --- */
@media (max-width: 480px) {
    #newsletter-popup {
        padding: 26px 28px;
        border-radius: 16px;
    }

    #newsletter-popup h2 {
        font-size: 24px;
    }

    #newsletter-popup button {
        font-size: 16px;
    }
}
