.newsletter-popup {
    .newsletter-dialog {
        background: #fff;
        border-radius: 8px;
        padding: 20px;
        max-width: 80%;
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        text-align: center;

        &::backdrop { background-color: rgb(0 0 0 / 25%); }
        &:open { animation: modalFadeIn 0.5s ease-in-out; }
        &:open::backdrop { animation: fadeIn 0.5s ease-in-out; }

        @media (min-width: 48em) {
            max-width: 600px;
        }

        .image-container {
            display: flex;
            margin: 0 auto;
            justify-content: center;
            align-items: center;
        }

        .content-container {
            text-align: center;
        }
    
        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 10px;

            @media (min-width: 48em) {
                flex-direction: row;
            }
    
            input[type="email"] {
                flex: 3;
                padding: 10px;
                border: 1px solid #ccc;
                border-radius: 4px;
                font-size: 1em;
            }

            input[type="email"]::placeholder {
                opacity: 0.5;
            }
    
            button {
                flex: 1;
                padding: 10px;
                background: var(--blue-18);
                color: #fff;
                border: none;
                border-radius: 4px;
                font-weight: bold;
                cursor: pointer;
                transition: background 0.3s;
            }
        }
    
        .close-button {
            position: absolute;
            top: 10px;
            right: 10px;
            background: transparent;
            border: none;
            cursor: pointer;
        }
    }

}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}