.form-field {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
}

.error-message {
    display: none;
    color: #f44336;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    position: absolute;
    bottom: -20px;
    left: 0;
}

input.error,
textarea.error {
    border-color: #f44336 !important;
}

/* Animation for error messages */
.error-message {
    animation: slideIn 0.2s ease-out;
}

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