﻿/*====================================
    COMMON FORM VALIDATION
====================================*/
.field-error {
    display: block;
    margin-top: 6px;
    margin-bottom: 12px;
    color: #dc3545;
    font-size: 13px;
    line-height: 1.4;
}
/* Error Label */
.ErrorControl,
.validation-message {
    display: inline;
    margin-left: 10px;
    margin-top: 6px;
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Required Field */
.required::after {
    content: " *";
    color: #dc3545;
}

/* Normal Controls */
input,
select,
textarea {
    transition: all .25s ease;
}

/* Error Control */
.inputError,
.error-field {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(220,53,69,.12);
}

/* Remove Error */
.inputNormal {
    border: 1px solid #ced4da;
    background: #fff;
}

    /* Focus */
    .inputNormal:focus,
    .inputError:focus,
    .error-field:focus {
        outline: none;
        border-color: #1e9be0 !important;
        box-shadow: 0 0 0 4px rgba(30,155,224,.15);
    }

/*====================================
    VALIDATION SUMMARY
====================================*/

.validation-summary {
    display: none;
    background: #fff5f5;
    border: 1px solid #f5c2c7;
    border-left: 5px solid #dc3545;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
}

    .validation-summary h5 {
        margin: 0 0 10px;
        color: #721c24;
        font-size: 17px;
        font-weight: 600;
    }

    .validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }

    .validation-summary li {
        color: #721c24;
        margin-bottom: 6px;
    }

/*====================================
    ALERT MESSAGES
====================================*/

.alert-message {
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}
.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}


.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}
