/* ========================================
   NEWSLETTER — V2 THEME
======================================== */


/* ========================================
   NEWSLETTER SECTION
======================================== */

.newsletter {

    max-width: 1000px;

    margin: 90px auto;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #69B8FF
        );

    color: #ffffff;

    padding: 60px;

    border-radius: var(--radius-card);

    text-align: center;

    box-shadow: var(--shadow-card);

    transition:
        background var(--transition),
        box-shadow var(--transition);
}


/* ========================================
   HEADING
======================================== */

.newsletter h2 {

    font-size: 40px;

    margin-bottom: 15px;

    color: #ffffff;

    line-height: 1.25;
}


/* ========================================
   DESCRIPTION
======================================== */

.newsletter p {

    margin-bottom: 35px;

    color: rgba(255, 255, 255, 0.92);

    line-height: 1.6;
}


/* ========================================
   NEWSLETTER FORM
======================================== */

.newsletter-box {

    display: flex;

    justify-content: center;

    gap: 15px;
}


/* ========================================
   INPUT
======================================== */

.newsletter input {

    width: 450px;

    padding: 18px 24px;

    border: 2px solid transparent;

    border-radius: var(--radius-pill);

    background: #ffffff;

    color: #2E3A59;

    font-size: 18px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


.newsletter input:focus {

    border-color: var(--yellow);

    box-shadow:
        0 0 0 4px rgba(255, 214, 90, 0.25);
}


.newsletter input::placeholder {

    color: #8A94A6;
}


/* ========================================
   BUTTON
======================================== */

.newsletter button {

    padding: 18px 35px;

    border: none;

    border-radius: var(--radius-pill);

    background: var(--yellow);

    color: #2E3A59;

    font-weight: 700;

    cursor: pointer;

    font-size: 16px;

    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}


.newsletter button:hover {

    background: #FFE27A;

    transform: translateY(-2px);

    box-shadow: var(--shadow-small);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .newsletter {

        width: calc(100% - 30px);

        margin: 55px auto;

        padding: 45px 25px;

        border-radius: var(--radius-card);
    }


    .newsletter h2 {

        font-size: 32px;

        line-height: 1.25;
    }


    .newsletter p {

        font-size: 16px;

        margin-bottom: 28px;
    }


    .newsletter-box {

        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }


    .newsletter input {

        width: 100%;

        padding: 16px 20px;

        font-size: 16px;

        box-sizing: border-box;
    }


    .newsletter button {

        width: 100%;

        padding: 16px 25px;
    }

}


/* ========================================
   SMALL MOBILE
======================================== */

@media (max-width: 480px) {

    .newsletter {

        width: calc(100% - 24px);

        padding: 38px 20px;
    }


    .newsletter h2 {

        font-size: 30px;
    }

}