/* Newsletter Subscription Styles */

/* ==================== Hero Newsletter Section ==================== */
.hero-newsletter {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 12px;
    padding: 32px;
    margin: 40px 0;
    text-align: center;
}

.hero-newsletter h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 8px;
}

.hero-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.hero-newsletter .newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.hero-newsletter input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
}

.hero-newsletter input[type="email"]:focus {
    outline: none;
    border-color: #4A90E2;
    background: rgba(255, 255, 255, 0.15);
}

.hero-newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-newsletter button {
    padding: 14px 32px;
    background: #4A90E2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-newsletter button:hover:not(:disabled) {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.hero-newsletter button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== Footer Newsletter Column ==================== */
.footer-newsletter-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-newsletter-form input[type="email"] {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #4A90E2;
    background: rgba(255, 255, 255, 0.1);
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-form button {
    padding: 10px 20px;
    background: #4A90E2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter-form button:hover:not(:disabled) {
    background: #357ABD;
    transform: translateY(-1px);
}

.footer-newsletter-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== Success/Error Messages ==================== */
.newsletter-success,
.newsletter-error {
    display: none;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.newsletter-success {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid #4CAF50;
    color: #2E7D32;
}

/* Better visibility on dark backgrounds (footer and hero) */
footer .newsletter-success,
.hero-newsletter .newsletter-success {
    background: rgba(76, 175, 80, 0.25);
    color: #81C784;
    border-color: #66BB6A;
}

.newsletter-error {
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid #F44336;
    color: #C62828;
}

/* Better visibility on dark backgrounds (footer and hero) */
footer .newsletter-error,
.hero-newsletter .newsletter-error {
    background: rgba(244, 67, 54, 0.25);
    color: #EF5350;
    border-color: #E57373;
}

/* ==================== Mobile Responsiveness ==================== */
@media (max-width: 768px) {
    .hero-newsletter {
        padding: 24px;
    }

    .hero-newsletter h3 {
        font-size: 20px;
    }

    .hero-newsletter .newsletter-form {
        flex-direction: column;
    }

    .hero-newsletter button {
        width: 100%;
    }
}
