/**
 * Modern Mailer - Front CSS
 */

/* Newsletter Subscription Widget */
.modernmailer-subscribe-widget {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.modernmailer-subscribe-widget h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.modernmailer-subscribe-widget .form-group {
    margin-bottom: 10px;
}

.modernmailer-subscribe-widget input[type="email"],
.modernmailer-subscribe-widget input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modernmailer-subscribe-widget input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modernmailer-subscribe-widget button {
    width: 100%;
    padding: 12px 20px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modernmailer-subscribe-widget button:hover {
    background: #2980b9;
}

.modernmailer-subscribe-widget .privacy-notice {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
}

/* Unsubscribe Pages */
.modernmailer-unsubscribe {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.modernmailer-unsubscribe h2 {
    margin: 0 0 20px 0;
    color: #333;
}

.modernmailer-unsubscribe p {
    color: #666;
    line-height: 1.6;
}

.modernmailer-unsubscribe .email-display {
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 4px;
    display: inline-block;
    margin: 15px 0;
    font-weight: 600;
}

.modernmailer-unsubscribe .btn-unsubscribe {
    display: inline-block;
    padding: 12px 30px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.2s;
}

.modernmailer-unsubscribe .btn-unsubscribe:hover {
    background: #c0392b;
    color: #fff;
}

.modernmailer-unsubscribe .btn-cancel {
    display: inline-block;
    padding: 12px 30px;
    background: #95a5a6;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin: 20px 10px 0;
    transition: background 0.2s;
}

.modernmailer-unsubscribe .btn-cancel:hover {
    background: #7f8c8d;
    color: #fff;
}

/* Success/Error Messages */
.modernmailer-message {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

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

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

.modernmailer-message i {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 576px) {
    .modernmailer-unsubscribe {
        margin: 20px;
        padding: 20px;
    }
    
    .modernmailer-subscribe-widget {
        padding: 15px;
    }
}
