/* Floating Button */
#newsletter-float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073aa;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transition: all 0.3s ease;
    font-size: 14px;
}

#newsletter-float-button:hover {
    background-color: #005177;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Modal */
.newsletter-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

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

.newsletter-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.newsletter-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.newsletter-close:hover,
.newsletter-close:focus {
    color: #000;
}

.newsletter-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Form Styles */
#newsletter-signup-form {
    display: flex;
    flex-direction: column;
}

.newsletter-field {
    margin-bottom: 15px;
}

.newsletter-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.newsletter-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.newsletter-field input:focus {
    outline: none;
    border-color: #0073aa;
}

.newsletter-submit {
    background-color: #0073aa;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.newsletter-submit:hover {
    background-color: #005177;
}

.newsletter-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.newsletter-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: none;
    font-size: 14px;
}

.newsletter-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.newsletter-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .newsletter-modal-content {
        margin: 20% auto;
        padding: 20px;
        width: 95%;
    }
    
    #newsletter-float-button {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 13px;
    }
}
