/*

All form related CSS specification

*/

input, textarea, select {
    border-top-style: hidden;
    border-right-style: hidden;
    border-left-style: hidden;
    border-bottom-style: hidden;
    outline: none;
    background: transparent;
    color: black;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

input.full-width, select.full-width {
    width: calc(100% - 35px);
}

.btn.full-width {
    width: 100%;
    margin: 8px 3px; 
}

input.custom-width {
    width: calc(100% - 130px);
}

textarea {
    width: 100%;
    padding: 8px 10px 0px 8px;
}

.selectBox {
    display: inline;
}

.border {
    border: 1px solid #ccc !important;
    border-radius: 5px;
    transition: 0.5s;
}

.border:hover, .border:focus, .border:active, .select, .border.selected, .border.selected-box {
    border-color: #5680E9 !important;
    transition: 0.5s;
    box-shadow: 0 0 10px #84CEEB;
}

.border.readonly:hover, .border.readonly:focus, .border.readonly:active, .border.selected.readonly {
    border-color: #949494 !important;
    box-shadow: 0 0 10px #ccc;
}

.form-group {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 300px;
    min-height: 45px;
    padding: 8px 10px;
    margin-top: 10px;
    margin-bottom: 25px;
    color: #ccc;
}

.form-group.textarea {
    max-width: 100%;
    padding: 0px 0px;
}

.form-group label {
    margin: 5px;
}

.form-group input::placeholder, .form-group textarea::placeholder, .form-group select option:disabled {
    color: #ccc;
}


.form-group .indicator {
    display: none;
}

.form-group.selected .indicator, .form-group.error .indicator {
    display: block;
    position: absolute;
    top: -9px;
    left: 13px;
    color: white;
    background-color: #5680E9;
    font-size: x-small;
    font-weight: 100;
    padding-left: 10px;
    padding-right: 10px;
    border: 1px solid #5680E9 !important;
    border-radius: 3px;
}

.form-group.selected label i {
    color: #5680E9;
}

.form-group.selected.error label i {
    color: red!important;
}

.form-group.readonly {
    background-color: #e5e5e5;
}

.form-group.selected.readonly .indicator {
    background-color: black;
    border: 1px solid black !important;
}

.form-group.selected.readonly label i {
    color: black;
}

.form-group.error {
    border-color: red !important;
    transition: 0.5s;
    box-shadow: 0 0 10px #FF8484;
}

.form-group.error .indicator {
    background-color: red !important;
    border: 1px solid red !important;
}

.form-group.readonly, .form-group.readonly > input {
    background-color: #ccc !important;
}

.form-group.readonly, .form-group.readonly label, .form-group.readonly > input::placeholder {
    color: black;
}

.fa-eye {
    margin-left: 5px;
    margin-right: 5px;
    transition: 0.5s;
}

.fa-eye:hover, .fa-eye:focus, .fa-eye.selected {
    color: #5680E9;
}

.fa-eye:after {
    transition: 0.5s;
}


.form-inline-text {
    color: #5680E9;
    font-size: 13px;
    padding: 5px;
    padding-left: 10px;
    border-left: 1px solid #ccc;
    font-weight: 600;
}

.form-inline-text > div {
    display: contents;
}

.form-group.other {
    padding-left: 0px;
    padding-right: 0px;
    margin-top: 5px;
    color: grey;
}

.btn-primary {
    background-color: #5680E9;
    border-color: #5680E9;
    transition: 0.5s;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #8860D0;
    border-color: #8860D0;
    transition: 0.5s;
}

/* Assume icon always on the left of description */
.btn i {
    margin-right: 20px;
}

/* Added for using selectize */
.selectize-control {
    display: inline;
    text-align: left;
}

.selectize-input {
    border: none!important;
    box-shadow: none!important;
    width: calc(100% - 35px)!important;
    min-height: auto!important;
    padding: 0px!important;
    overflow: initial!important;
}

@media screen and (min-width: 768px) {
    .align-right .form-group {
        margin-right: 15px;
    }

    .align-left .form-group {
        margin-left: 15px;
    }
}
