/* Form Validation Styles */
.validation-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 500;
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05);
}

/* RTL support for validation errors */
[dir="rtl"] .validation-error {
    text-align: right;
}

/* Shake animation for invalid fields on form submission */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}
