/* Mass Email Forwarder Frontend Styles */

.mef-subscribe-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mef-subscribe-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.mef-subscribe-description {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.6;
}

.mef-subscribe-form-inner {
    margin: 0;
}

.mef-form-group {
    margin-bottom: 20px;
}

.mef-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.mef-required {
    color: #d63638;
}

.mef-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.mef-form-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.mef-form-submit-group {
    margin-top: 25px;
}

.mef-form-submit {
    width: 100%;
    padding: 14px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mef-form-submit:hover {
    background: #135e96;
}

.mef-form-submit:active {
    background: #0a4b78;
}

.mef-form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mef-form-messages {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 4px;
    display: none;
}

.mef-form-messages.mef-success {
    display: block;
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.mef-form-messages.mef-error {
    display: block;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.mef-form-messages p {
    margin: 0;
}

/* Loading state */
.mef-form-loading .mef-form-submit {
    position: relative;
    color: transparent;
}

.mef-form-loading .mef-form-submit::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: mef-spin 0.6s linear infinite;
}

@keyframes mef-spin {
    to { transform: rotate(360deg); }
}

/* Alternative styles */
.mef-style-minimal {
    border: none;
    box-shadow: none;
    padding: 20px 0;
}

.mef-style-minimal .mef-subscribe-title {
    font-size: 20px;
}

.mef-style-compact {
    max-width: 400px;
    padding: 20px;
}

.mef-style-compact .mef-form-group {
    margin-bottom: 15px;
}

.mef-style-compact .mef-form-input {
    padding: 10px 12px;
    font-size: 14px;
}

.mef-style-compact .mef-form-submit {
    padding: 12px 18px;
    font-size: 14px;
}

/* Groups checkboxes styling */
.mef-groups-checkboxes {
    background: #f9f9f9;
}

.mef-groups-checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
    transition: background-color 0.2s ease;
}

.mef-groups-checkboxes label:hover {
    background-color: #f0f0f0;
    border-radius: 3px;
    padding-left: 5px;
    padding-right: 5px;
}

.mef-groups-checkboxes input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.mef-form-input-group-text {
    margin-top: 8px;
    margin-bottom: 5px;
}

.mef-apply-groups-text-button {
    padding: 8px 15px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.mef-apply-groups-text-button:hover {
    background: #135e96;
}

.mef-form-group .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .mef-subscribe-form {
        margin: 20px 15px;
        padding: 20px;
    }
    
    .mef-subscribe-title {
        font-size: 20px;
    }
    
    .mef-apply-groups-text-button {
        width: 100%;
        margin-top: 8px;
        margin-left: 0;
    }
}

