/* /addons/email-subscribers/assets/css/newsletter.css */
/* Fixed: Newsletter section styling corrected for proper layout and spacing */

.newsletter-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 50px 20px;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-container {
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 30px;
}

.newsletter-text {
    color: white;
    max-width: 600px;
}

.newsletter-text h3 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
    letter-spacing: -0.5px;
}

.newsletter-text p {
    font-size: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.newsletter-form-wrapper {
    width: 100%;
    max-width: 500px;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    width: 100%;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background-color: white;
    color: #333;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
    background-color: #fff;
}

.newsletter-btn {
    padding: 14px 32px;
    background-color: white;
    color: #28a745;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newsletter-btn:hover {
    background-color: #ffc107;
    color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.newsletter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Alert Messages */
.newsletter-alert {
    padding: 16px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    position: relative;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-success {
    background-color: rgba(255, 255, 255, 0.95);
    color: #155724;
    border: 2px solid #28a745;
}

.newsletter-error {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.alert-icon {
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: inherit;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.alert-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 15px;
        margin: 30px 0;
    }
    
    .newsletter-content {
        gap: 25px;
    }
    
    .newsletter-text h3 {
        font-size: 28px;
    }
    
    .newsletter-text p {
        font-size: 16px;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .newsletter-btn {
        padding: 12px 28px;
        font-size: 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 30px 12px;
        margin: 20px 0;
    }
    
    .newsletter-text h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .newsletter-text p {
        font-size: 14px;
    }
    
    .newsletter-input {
        padding: 11px 14px;
        font-size: 14px;
    }
    
    .newsletter-btn {
        padding: 11px 24px;
        font-size: 14px;
    }
    
    .newsletter-alert {
        font-size: 13px;
        padding: 12px 14px;
    }
}