﻿/****  floating-Lable style start ****/
.floating-label-container {
    position: relative;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.floating-input, .floating-select {
    font-size: 14px;
    padding: 4px 4px;
    display: block;
    width: 100%;
    height: 30px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #757575;
}
.floating-input::-ms-clear {
    display: none;
}
    .floating-input:focus, .floating-select:focus {
        outline: none;
        border-bottom: 2px solid #5264AE;
    }

.floating-label {
    color: #999;
    font-size: 14px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 5px;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.floating-input:focus ~ .floating-label {
    top: -18px;
    font-size: 14px;
    color: #5264AE;
}

.floating-input.ng-invalid ~ .floating-label {
    color: red;
}

.floating-input:not(:placeholder-shown) ~ .floating-label {
    top: -18px;
    font-size: 14px;
    color: #5264AE;
}

.floating-input.ng-invalid:not(:placeholder-shown) ~ .floating-label {
    color: red;
}

/* - Chrome ≤56,
   - Safari 5-10.0
   - iOS Safari 4.2-10.2
   - Opera 15-43
   - Opera Mobile 12-12.1
   - Android Browser 2.1-4.4.4
   - Samsung Internet ≤6.2
   - QQ Browser */
.floating-input:not(::-webkit-input-placeholder) ~ .floating-label {
    top: -18px;
    font-size: 14px;
    color: #5264AE;
}

.floating-input.ng-invalid:not(::-webkit-input-placeholder) ~ .floating-label {
    color: red;
}

/* Firefox 4-18 */
/*.floating-input:not(:-moz-placeholder) ~ .floating-label {
    top: -18px;
    font-size: 14px;
    color: #5264AE;
}

.floating-input.ng-invalid:not(:-moz-placeholder) ~ .floating-label {
    color: red;
}*/

/* Firefox 19-50 */
/*.floating-input:not(::-moz-placeholder) ~ .floating-label {
    top: -18px;
    font-size: 14px;
    color: #5264AE;
}

.floating-input.ng-invalid:not(::-moz-placeholder) ~ .floating-label {
    color: red;
}*/

/* - Internet Explorer 10–11
   - Internet Explorer Mobile 10-11 */
.floating-input:not(:-ms-input-placeholder) ~ .floating-label {
    top: -18px;
    font-size: 14px;
    color: #5264AE;
}

.floating-input.ng-invalid:not(:-ms-input-placeholder) ~ .floating-label {
    color: red;
}

/* Edge (also supports ::-webkit-input-placeholder) */
.floating-input:not(::-ms-input-placeholder) ~ .floating-label {
    top: -18px;
    font-size: 14px;
    color: #5264AE;
}

.floating-input.ng-invalid:not(::-ms-input-placeholder) ~ .floating-label {
    color: red;
}

.floating-select:focus ~ label, .floating-select:not([value=""]):valid ~ .floating-label {
    top: -18px;
    font-size: 14px;
    color: brown;
}

.floating-select.ng-invalid:focus ~ label, .floating-select.ng-invalid:not([value=""]):valid ~ .floating-label {
    color: red;
}

/* active state */
.floating-input:focus ~ .bar:before, .floating-input:focus ~ .bar:after, .floating-select:focus ~ .bar:before, .floating-select:focus ~ .bar:after {
    width: 50%;
}

.floating-label-container *, .floating-label-container *:before, .floating-label-container *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.floating-textarea {
    min-height: 30px;
    max-height: 260px;
    overflow: hidden;
    overflow-x: hidden;
}

/* highlighter */
.floating-label-container .highlight {
    position: absolute;
    height: 50%;
    width: 100%;
    top: 15%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* active state */
.floating-input:focus ~ .highlight, .floating-select:focus ~ .highlight {
    -webkit-animation: floatingInputHighlighter 0.3s ease;
    -moz-animation: floatingInputHighlighter 0.3s ease;
    animation: floatingInputHighlighter 0.3s ease;
}

/* animation */
@-webkit-keyframes floatingInputHighlighter {
    from {
        background: #5264AE;
    }

    to {
        width: 0;
        background: transparent;
    }
}

@-moz-keyframes floatingInputHighlighter {
    from {
        background: #5264AE;
    }

    to {
        width: 0;
        background: transparent;
    }
}

@keyframes floatingInputHighlighter {
    from {
        background: #5264AE;
    }

    to {
        width: 0;
        background: transparent;
    }
}

/****  floating-Lable style end ****/
