/* Newsletter Popup Styles */
.newsletter-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #D2007290;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.newsletter-popup-container {
    position: relative;
    background-color: white;
    max-width: 1100px;
    width: 80%;
    height: 70vh;
    max-height: 65vh;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.newsletter-popup-overlay.show .newsletter-popup-container {
    transform: scale(1);
}

.newsletter-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--black);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.newsletter-popup-close:hover {
    color: var(--pink);
    transform: rotate(90deg);
}

.newsletter-popup-inner {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.newsletter-popup-content {
    flex: 0 0 75%;
    padding: 60px 40px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-popup-image {
    flex: 0 0 25%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-popup-header {
    /* margin-bottom: 30px; */
}

.newsletter-popup-form {
    width: 100%;
}

#newsletter-popup-form {
    width: 100%;
}

#newsletter-popup-message {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    line-height: 1.5;
}

#newsletter-popup-message:not(:empty) {
    display: block;
}

#newsletter-popup-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#newsletter-popup-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .newsletter-popup-container {
        width: 95%;
        height: 80vh;
        max-height: 80vh;
    }
    
    .newsletter-popup-inner {
        flex-direction: column;
    }
    
    .newsletter-popup-content {
        flex: 1;
        padding: 50px 25px 30px;
    }
    
    .newsletter-popup-image {
        flex: 0 0 200px;
        min-height: 200px;
    }
    
    .newsletter-popup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
