/* Newsletter Subscription Styles */
footer .footer-newsletter {
    width: 100%;
    margin: 0 0 0.05rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: left;
    padding-right: 2rem;
}

footer .footer-newsletter h4 {
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: none;
    text-align: right;
}

.newsletter-form {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.newsletter-label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 300;
    white-space: nowrap;
}

footer .newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-end;
    max-width: 420px;
    width: auto;
    margin: 0;
}

footer #newsletter-email {
    flex: 1;
    min-width: 200px;
    padding: 0.35rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

footer #newsletter-email:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

footer #newsletter-email::placeholder {
    color: #999;
}

footer .newsletter-btn {
    padding: 0.35rem 0.9rem;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer .newsletter-btn:hover:not(:disabled) {
    background-color: #0052a3;
}

footer .newsletter-btn:active:not(:disabled) {
    background-color: #003d7a;
}

footer .newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Newsletter Popup Modal Styles */
.newsletter-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 10000 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.newsletter-popup {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
    margin: auto;
}

.newsletter-popup-overlay.show {
    opacity: 1;
}

.newsletter-popup-overlay.show .newsletter-popup {
    transform: scale(1);
}

.newsletter-popup-content {
    text-align: center;
}

.newsletter-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.newsletter-popup.success .newsletter-popup-icon {
    background-color: #d4edda;
    color: #155724;
}

.newsletter-popup.error .newsletter-popup-icon {
    background-color: #f8d7da;
    color: #721c24;
}

.newsletter-popup-message {
    font-size: 1.1rem;
    color: #333;
    margin: 1rem 0 1.5rem 0;
    line-height: 1.5;
}

.newsletter-popup-close {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-popup-close:hover {
    background-color: #0052a3;
}

.newsletter-popup-close:active {
    background-color: #003d7a;
}

footer .newsletter-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    footer .footer-newsletter h4 {
        font-size: 1rem;
    }

    footer .newsletter-input-group {
        flex-direction: column;
        gap: 0.5rem;
        max-width: 100%;
    }

    footer #newsletter-email {
        width: 100%;
        min-width: auto;
    }

    footer .newsletter-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    footer .footer-newsletter {
        margin-bottom: 1rem;
    }

    footer .footer-newsletter h4 {
        font-size: 0.95rem;
    }

    footer #newsletter-email {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }

    footer .newsletter-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    footer .newsletter-message {
        font-size: 0.85rem;
        padding: 0.65rem;
    }
}
