/* Newsletter Modal Styles */
.newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.newsletter-modal.active {
    display: block;
}

.newsletter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.newsletter-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: newsletterModalSlideIn 0.3s ease-out;
}

@keyframes newsletterModalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.newsletter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 0;
    border-bottom: 1px solid #eee;
}

.newsletter-modal-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.newsletter-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s;
}

.newsletter-modal-close:hover {
    color: #333;
}

.newsletter-modal-body {
    padding: 25px;
    text-align: center;
}

.newsletter-modal-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.newsletter-modal-footer {
    padding: 0 25px 25px;
    text-align: center;
}

.newsletter-modal-btn {
    background: #2271b1;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s;
}

.newsletter-modal-btn:hover {
    background: #135e96;
}

/* Modal type styles */
.newsletter-modal.success .newsletter-modal-title {
    color: #46b450;
}

.newsletter-modal.error .newsletter-modal-title {
    color: #dc3232;
}

/* Responsive design */
@media (max-width: 480px) {
    .newsletter-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .newsletter-modal-header,
    .newsletter-modal-body,
    .newsletter-modal-footer {
        padding: 15px 20px;
    }
}