/* --- NOWOCZESNY SYSTEM NEWSLETTERA NETIVLY V2 --- */

.new-newsletter-box {
    margin: 20px auto 80px; /* Zmniejszono górny margines do 20px, dół zostaje 80px */
    padding: 40px 30px;
     background: var(--bg-card);
    border-radius: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Subtelny gradient w rogu karty */
.new-newsletter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 60%);
    pointer-events: none;
}

.nl-text-side {
    position: relative;
    z-index: 1;
    text-align: center;
}

.nl-text-side h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.nl-text-side p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Prawa strona - Formularz w ciemniejszej sekcji (Visual contrast) */
.nl-form-side {
    position: relative;
    z-index: 1;
    background: rgba(37, 99, 235, 0.03);
    padding: 35px;
    border-radius: 30px;
    border: 1px solid var(--border);
    width: 100%;
}

.nl-form-side form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nl-form-side input {
    width: 100%;
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.nl-form-side input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.nl-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 18px;
    border-radius: 16px;
    border: none;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nl-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-light);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* --- WERSJA NA KOMPUTER (Powyżej 960px) --- */
@media (min-width: 960px) {
    .new-newsletter-box {
        margin: 40px auto 100px; /* Dla komputerów 40px od góry wystarczy */
        padding: 80px 70px;
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .nl-text-side {
        text-align: left;
        flex: 1.2;
    }

    .nl-text-side h2 {
        font-size: 3.2rem;
        margin-bottom: 20px;
    }

    .nl-text-side p {
        margin: 0;
        font-size: 1.2rem;
    }

    .nl-form-side {
        flex: 0.8;
        padding: 45px;
    }
}

/* --- FIX DLA MOBILE (Dopasowanie do małych ekranów) --- */
@media (max-width: 600px) {
    .new-newsletter-box {
        margin: 40px 15px;
        padding: 40px 20px;
    }
    .nl-form-side {
        padding: 25px 20px;
    }
    .nl-text-side h2 {
        font-size: 1.8rem;
    }
}