.newsletter {
    position: relative;
    background: var(--color-light-purple);
    overflow: hidden;
    padding-block: 2rem 4rem;
}

.newsletter__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
}

.newsletter__left,
.newsletter__right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    max-width: 100%;
    z-index: 1;
}

.newsletter__left {
    left: -27rem;
    width: clamp(220px, 30vw, 400px);
}

.newsletter__right {
    right: -22rem;
    width: clamp(160px, 20vw, 320px);
}

.newsletter__note {
    font-size: 3.5rem;
    color: var(--color-dark-purple);
    margin-bottom: .5rem;
}

.newsletter__title {
    font-size: var(--h2);
    color: var(--color-blue);
    margin-bottom: .5rem;
}

.newsletter__text {
    color: var(--color-grey);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.newsletter__form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter__form input {
    appearance: none;
    width: 100%;
    height: 45px;
    border: 1px solid rgba(2,18,74,.15);
    border-radius: 4px;
    background: var(--color-white);
    color: var(--color-grey);
    padding: 0 14px;
    font-size: var(--body);
}

.newsletter__form input::placeholder {
    color: var(--color-grey);
}

@media (min-width: 1311px) and (max-width: 1505px) {
    .newsletter__right {
        right: -5rem;
        width: clamp(160px, 14vw, 320px);
    }

    .newsletter__left, .newsletter__right {
        transform: translateY(-70%);
    }

    .newsletter__left {
        left: -8rem;
        width: clamp(160px, 18vw, 320px);
    }
}


@media (min-width: 1151px) and (max-width: 1310px) {
    .newsletter__right {
        right: -3rem;
        width: clamp(160px, 14vw, 320px);
    }

    .newsletter__left, .newsletter__right {
        transform: translateY(-70%);
    }

    .newsletter__left {
        left: -6rem;
        width: clamp(160px, 18vw, 320px);
    }
}

@media (min-width: 841px) and (max-width: 1150px) {
    .newsletter__right {
        right: -1rem;
        width: clamp(160px, 12vw, 320px);
    }

    .newsletter__left, .newsletter__right {
        transform: translateY(-70%);
    }

    .newsletter__left {
        left: -2rem;
        width: clamp(160px, 16vw, 320px);
    }
}

@media (max-width: 840px) {

    .newsletter__left, .newsletter__right {
        display: none;
    }
}

@media (max-width: 740px) {

    .newsletter__form {
        display: grid;
        grid-template-columns: 1fr ;
    }
}



/*
@media (max-width: 1024px) {
    .newsletter__left { left: -120px; width: clamp(200px, 28vw, 380px); opacity: .9; }
    .newsletter__right { right: -100px; width: clamp(140px, 18vw, 260px); }
}

@media (max-width: 820px) {
    .newsletter__left { left: -100px; width: clamp(180px, 26vw, 320px); opacity: .75; }
    .newsletter__right { right: -80px; width: clamp(120px, 16vw, 220px); }
}

@media (max-width: 720px) {
    .newsletter__form { grid-template-columns: 1fr; }
    .newsletter__form .button { width: 100%; }
}

@media (max-width: 640px) {
    .newsletter__left { display: none; }
    .newsletter__right { right: -60px; width: clamp(110px, 28vw, 200px); opacity: .7; }
}
*/

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
