/* Newsletter Modal Styles */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.newsletter-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.newsletter-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.newsletter-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.newsletter-modal-content {
    padding: 40px 30px 30px;
}

.newsletter-header {
    text-align: center;
    margin-bottom: 30px;
}

.newsletter-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.newsletter-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.newsletter-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.newsletter-email-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.newsletter-email-input:focus {
    outline: none;
    border-color: #952ad5;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.newsletter-subscribe-btn {
    flex: 1;
    background: linear-gradient(135deg, #952ad5, #591581);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-subscribe-btn:hover {
    background: linear-gradient(135deg, #a732eb, #731ca5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 30, 233, 0.3);
}

.newsletter-subscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-decline-btn {
    background: transparent;
    color: #666;
    border: 2px solid #e1e1e1;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-decline-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.newsletter-disclaimer {
    text-align: center;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

.newsletter-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 15px;
}

.newsletter-success h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px 0;
}

.newsletter-success p {
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.newsletter-error {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}

.newsletter-error p {
    color: #c62828;
    margin: 0;
    font-size: 14px;
}

/* Loading state */
.newsletter-subscribe-btn.loading {
    position: relative;
    color: transparent;
}

.newsletter-subscribe-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-modal {
        width: 95%;
        margin: 20px;
    }
    
    .newsletter-modal-content {
        padding: 30px 20px 20px;
    }
    
    .newsletter-header h2 {
        font-size: 24px;
    }
    
    .newsletter-header p {
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .newsletter-decline-btn {
        order: 2;
    }
    
    .newsletter-subscribe-btn {
        order: 1;
    }
}

@media (max-width: 480px) {
    .newsletter-modal-content {
        padding: 25px 15px 15px;
    }
    
    .newsletter-header h2 {
        font-size: 22px;
    }
    
    .newsletter-email-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .newsletter-subscribe-btn,
    .newsletter-decline-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
} 