/* Form Validation Styles */

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.error-message::before {
    content: '⚠ ';
    margin-right: 3px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success state */
.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #28a745 !important;
    background-color: #f0fff4 !important;
}

/* Input focus states */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* Loading spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ri-loader-4-line {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* Disabled button state */
button:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}