﻿

/****  floating-Lable style start ****/


.RFLGroup {
    position: relative;
}

.RFLGroupOther {
    position: relative;
}

.RFLGroup-input, .RFLGroup-select {
    font-size: 14px;
    padding: 4px 4px;
    display: block;
    width: 100%;
    background-color: transparent;
    padding-left: 0.70em;
}

.RFLGroup label {
    color: #999;
    font-size: 14px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 7px;
    top: 8px;
    transition: 0.4s ease all;
    -moz-transition: 0.4s ease all;
    -webkit-transition: 0.4s ease all;
}

.RFLGroupOther label {
    color: #874fa9;
    font-size: 14px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 7px;
    top: -11px;
    background-color: white;
    padding: 0px 3px 0px 3px;
    transition: 0.4s ease all;
    -moz-transition: 0.4s ease all;
    -webkit-transition: 0.4s ease all;
}

.RFLGroup-input:focus ~ label, .RFLGroup-input:not(:placeholder-shown) ~ label {
    top: -11px;
    font-size: 14px;
    color: #874fa9;
    background-color: white;
    padding: 0px 3px 0px 3px;
}

.RFLGroup-select:focus ~ label, .RFLGroup-select:valid ~ label {
    top: -11px;
    font-size: 14px;
    color: #874fa9;
    background-color: white;
    padding: 0px 3px 0px 3px;
}


/*.RFLGroup-select:focus ~ label, .RFLGroup-select:not([value=""]):valid ~ label {
    top: -12px;
    font-size: 14px;
    color: #5264AE;
    background-color: white;
    padding: 0px 3px 0px 3px;
}*/

/* active state */
.RFLGroup-input:focus ~ .bar:before, .RFLGroup-input:focus ~ .bar:after, .RFLGroup-select:focus ~ .bar:before, .RFLGroup-select:focus ~ .bar:after {
    width: 50%;
}

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


/* highlighter */
.highlight {
    position: absolute;
    height: 50%;
    width: 100%;
    top: 15%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* active state */
.RFLGroup-input:focus ~ .highlight, .RFLGroup-select:focus ~ .highlight {
    -webkit-animation: inputHighlighter 0.3s ease;
    -moz-animation: inputHighlighter 0.3s ease;
    animation: inputHighlighter 0.3s ease;
}

/* animation */
@-webkit-keyframes inputHighlighter {
    from {
        background: #5264AE;
    }

    to {
        width: 0;
        background: transparent;
    }
}

@-moz-keyframes inputHighlighter {
    from {
        background: #5264AE;
    }

    to {
        width: 0;
        background: transparent;
    }
}

@keyframes inputHighlighter {
    from {
        background: #5264AE;
    }

    to {
        width: 0;
        background: transparent;
    }
}

/****  floating-Lable style end ****/


