
/** FORM CSS STYLE */
.form-custom {
    position: relative;
    width: 100%;
}
.form-custom .form-label {
    position: absolute;
    top: 7px;
    left: 12px;
    font-size: 1rem;
    color: #757575;
    transition: all 0.2s ease-in-out;
    padding: 0 0.5rem;
    background-color: white;
    transform-origin: 0 0;
}
.form-custom .form-control~.form-label {
    position: absolute !important;
    max-width: 90% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
    transform-origin: 0 0 !important;
    transition: all .2s ease-out !important;
    margin-bottom: 0 !important;
}
.form-custom .form-control {
    font-weight: 100 !important;
    min-height: auto !important;
    display: block !important;
    width: 100% !important;
    padding-top: 0.32rem !important;
    padding-bottom: 0.32rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    background: rgba(0,0,0,0) !important;
    transition: all .2s linear !important;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
}
.select2-container .select2-selection--single {
    height: 36px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 36px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 10px !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 0px !important;
    float: left;
}
.select2-container--default {
    width:100% !important;
}

/** CUSTOM FOCUS */
.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe !important;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}
.form-custom select:focus ~ label, .select2-container--open + .form-label,.form-custom select:valid ~ label {
    top: -11px !important;
    left: 16px !important;
    font-size: 14px !important;
    color: #3b71ca !important;
    background-color: #fff !important;
}
.form-custom input:focus ~ .form-label,
.form-custom input:not(:placeholder-shown) ~ .form-label,
.form-custom input:valid ~ .form-label {
    top: -0.7rem;
    left: 1.0rem;
    font-size: 14px !important;
    color: #3b71ca;
}
.form-custom input:focus ~ .form-label, .form-custom input:valid ~ .form-label {
    top: -11px !important;
    left: 16px !important;
    font-size: 14px !important;
    color: #3b71ca !important;
    background-color: #fff !important;
}
.form-custom textarea:focus ~ .form-label,
.form-custom textarea:not(:placeholder-shown) ~ .form-label,
.form-custom textarea:valid ~ .form-label {
    top: -0.7rem;
    left: 1.0rem;
    font-size: 14px !important;
    color: #3b71ca;
}
.form-custom textarea:focus ~ .form-label, .form-custom textarea:valid ~ .form-label {
    top: -11px !important;
    left: 16px !important;
    font-size: 14px !important;
    color: #3b71ca !important;
    background-color: #fff !important;
}
.form-custom .form-control:focus {
    box-shadow: none !important;
}
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border: 1px solid #3b71ca;
}

/** FORM VALIDATION */
.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: #dc4c64 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}
.was-validated .form-control:invalid, .form-control.is-invalid {
    margin-bottom: 1rem;
    background-image: none;
    border-color: #dc4c64;
}
.was-validated .form-custom .form-control:invalid~.form-label, .form-custom .form-control.is-invalid~.form-label {
    color: #dc4c64 !important;
}
.was-validated :invalid~.invalid-feedback, .was-validated :invalid~.invalid-tooltip, .is-invalid~.invalid-feedback, .is-invalid~.invalid-tooltip {
    display: block;
}
.invalid-feedback {
    position: absolute;
    display: none;
    width: auto;
    margin-top: 0.25rem;
    font-size: .875rem;
    color: #dc4c64;
    margin-top: -0.75rem;
}
.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus {
    border-color: #dc4c64;
    box-shadow: 0 0 0 0.25rem rgba(220,76,100,.25);
}
.was-validated textarea.form-control:invalid, textarea.form-control.is-invalid {
    padding-right: calc(1.6em + 0.75rem);
    background-position: top calc(0.4em + 0.1875rem) right calc(0.4em + 0.1875rem);
}
.was-validated .select2:invalid, .select2-selection.select2-selection--single.is-invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.875em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}
.was-validated .form-control:invalid, .select2-selection.select2-selection--single.is-invalid {
    margin-bottom: 1rem;
    border-color: #dc4c64 !important;
}
.was-validated .select2:invalid~.invalid-feedback, .select2.is-invalid~.invalid-feedback {
    margin-top: -0.75rem;
}
.form-control.is-valid, .was-validated .form-control:valid {
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}
.was-validated .form-control:valid, .form-control.is-valid {
    /* margin-bottom: 1rem; */
    background-image: none;
    border-color: #14a44d !important;
}
.was-validated .form-custom .form-control:valid~.form-label, .form-custom .form-control.is-valid~.form-label {
    color: #14a44d !important;
}
.was-validated textarea.form-control:valid, textarea.form-control.is-valid {
    padding-right: calc(1.6em + 0.75rem);
    background-position: top calc(0.4em + 0.1875rem) right calc(0.4em + 0.1875rem);
}
.was-validated .select2:valid, .select2-selection.select2-selection--single.is-valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    padding-right: 2.125rem !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center,center right 2.25rem !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}
.was-validated .form-control:valid, .select2-selection.select2-selection--single.is-valid {
    border-color: #14a44d !important;
}