newsletter-popup {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: transparent;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: max(26px, 1.8vw);
    transition: opacity .2s ease;
    opacity: 0;
}

.newsletter-popup-container {
    position: relative;
    border: 1px solid var(--text-color);
    text-align: center;
    background-color: var(--background-color);
    padding: max(76px, calc(5.28vw * var(--scale))) max(64px, calc(4.44vw * var(--scale))) max(54px, calc(3.75vw * var(--scale))) max(64px, calc(4.44vw * var(--scale)));
}

.newsletter-popup-container-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.newsletter-popup-container-inner p {
    max-width: max(450px, calc(31.25vw * var(--scale)));
    margin-top: max(10px, calc(0.69vw * var(--scale)));
}

newsletter-popup .subscribe-form {
    width: 100%;
    margin-top: max(16px, calc(1.11vw * var(--scale)));
}

newsletter-popup h2 {
    max-width: max(520px, calc(36.11vw * var(--scale)));
}

.newsletter-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max(28px, calc(1.94vw * var(--scale)));
    height: max(28px, calc(1.94vw * var(--scale)));
    position: absolute;
    top: max(16px, calc(1.11vw * var(--scale)));
    right: max(16px, calc(1.11vw * var(--scale)));
}

.subscribe-form {
    max-width: max(342px, calc(23.75vw * var(--scale)));
}

.subscribe-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.subscribe-inner:before {
    content: '';
    position: absolute;
    border-radius: 999px;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: var(--background-color);
    opacity: 0.2;
}

.submit-button {
    position: absolute;
    right: max(7px, calc(0.49vw * var(--scale)));
    width: max(29px, calc(2.01vw * var(--scale)));
    height: max(29px, calc(2.01vw * var(--scale)));
    border-radius: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
    cursor: pointer;
}

.submit-button-inner {
    width: max(20px, calc(1.39vw * var(--scale)));
    height: max(20px, calc(1.39vw * var(--scale)));
}

newsletter-popup .subscribe-form input {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

newsletter-popup .subscribe-form input::placeholder {
    color: var(--text-color);
}

newsletter-popup .subscribe-form .submit-button {
    background-color: var(--text-color);
    color: var(--background-color);
}

.form-small-text {
    font-style: italic;
    opacity: 0.7;
    margin-top: max(10px, calc(0.69vw * var(--scale)));
}

/* Styles for mobile */
@media (max-width: 767px) {
    newsletter-popup {
        padding: 18px;
    }

    newsletter-popup h2 {
        max-width: 400px;
    }

    .newsletter-popup-container {
        padding: 58px 24px 48px 24px;
    }

    .newsletter-popup-container-inner p {
        margin-top: 5px;
    }

    newsletter-popup .subscribe-form {
        margin-top: 12px;
    }
} 