/* Newsletter Modal Styles */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #c0392b;
    --accent-color: #1e3a8a;
    --accent-light: #3b82f6;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --success-color: #27ae60;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

.newsletter-modal {
    display: none;
    visibility: hidden;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease-out;
    padding: 20px;
    box-sizing: border-box;
}

.newsletter-modal.show {
    display: flex;
    visibility: visible;
    align-items: center;
    justify-content: center;
}

.newsletter-modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 800px;
    position: relative;
    box-shadow: var(--box-shadow);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 500px;
}

.newsletter-modal-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    padding: 40px 30px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.newsletter-modal-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 30%);
    animation: rotate 30s linear infinite;
}

.newsletter-modal-image-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.newsletter-modal-badge {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-light));
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.newsletter-modal-image h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.newsletter-benefits {
    margin-top: auto;
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
    padding: 8px 0;
}

.benefit-item:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.benefit-item i {
    color: var(--accent-light);
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.benefit-item span {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.newsletter-modal-form {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    height: 100%;
    overflow-y: auto;
    overflow: visible !important;
}

.newsletter-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.15rem !important;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

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

.newsletter-modal-close svg, .newsletter-modal-close i, .newsletter-modal-close span {
    font-size: 1.15rem !important;
    width: 1em !important;
    height: 1em !important;
    line-height: 1em !important;
}

.newsletter-modal-form h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}

.newsletter-modal-form p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.required {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.newsletter-modal-submit, .btn-subscribe {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border: none;
    border-radius: 24px !important;
    min-height: 52px;
    height: 52px;
    padding: 0 30px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 28px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.newsletter-modal-submit i, .btn-subscribe i {
    display: none !important;
}

.newsletter-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
}

.newsletter-modal-form .newsletter-modal-submit, .newsletter-modal-form .btn-subscribe {
    margin-top: 18px;
    border-radius: var(--border-radius) !important;
}

.dont-show-again {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    cursor: pointer;
    user-select: none;
}

.dont-show-again input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.dont-show-again label {
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}

/* Loading and Success States */
.newsletter-loading {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.newsletter-loading.show {
    display: block;
}

.newsletter-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.newsletter-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.newsletter-success.show {
    display: block;
}

.newsletter-success i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: checkmark 0.6s ease-out;
}

.newsletter-success h3 {
    color: var(--success-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter-success p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-error {
    display: none;
    background: #fee;
    color: var(--primary-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    text-align: center;
    border: 1px solid #fcc;
}

.newsletter-error.show {
    display: block;
}

/* CTA Button */
.newsletter-cta-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.newsletter-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.5);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
}

.newsletter-cta-button i {
    font-size: 1.2rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-modal-content {
        grid-template-columns: 1fr;
        max-width: 95%;
        min-height: auto;
    }
    
    .newsletter-modal-image {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .newsletter-modal-image h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-modal-form {
        padding: 30px 20px;
    }
    
    .newsletter-cta-button {
        bottom: 20px;
        right: 20px;
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .newsletter-modal {
        padding: 10px;
    }
    
    .newsletter-modal-image {
        padding: 20px 15px;
    }
    
    .newsletter-modal-form {
        padding: 20px 15px;
    }
    
    .newsletter-cta-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
} 