/* Form Validation Styles */
.mf-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 500;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background-color: #10b981 !important;
    border: 1px solid #059669;
}

.notification-error {
    background-color: #ef4444 !important;
    border: 1px solid #dc2626;
}

.notification-info {
    background-color: #3b82f6 !important;
    border: 1px solid #2563eb;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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

/* Form button disabled state */
.metform-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Required field indicator styling */
.mf-input-required-indicator {
    color: #ef4444;
    margin-left: 2px;
}

/* Focus states for better accessibility */
.mf-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Select dropdown styling */
.mf-input select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
        top: 10px;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}