.floating-labels  ::-webkit-input-placeholder { 
    color:    #fff;
}
.floating-labels  :-moz-placeholder {
   color:    #fff;
   opacity:  1;
}
.floating-labels  ::-moz-placeholder {
   color:    #fff;
   opacity:  1;
}
.floating-labels  :-ms-input-placeholder {
   color:    #fff;
}

.floating-labels input:focus::-webkit-input-placeholder { color:transparent; }
.floating-labels input:focus:-moz-placeholder { color:transparent; } /* FF 4-18 */
.floating-labels input:focus::-moz-placeholder { color:transparent; } /* FF 19+ */
.floating-labels input:focus:-ms-input-placeholder { color:transparent; } /* IE 10+ */

.floating-labels .control-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index:3;
    display: inline-block;
    max-width: 100%;
    height: 32px;
    margin: 0;
    padding: 8px;
    color: rgba(0, 0, 0, 0.87);    
    font-size: 1rem;
    /*line-height: 0.8;*/
    line-height: 32px;
    font-weight: 400;
    cursor: text;
    white-space: nowrap;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: color, -webkit-transform;
    transition-property: color, -webkit-transform;
    transition-property: color, transform;
    transition-property: color, transform, -webkit-transform;
    -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-labels .form-label-group [class*="col-"] .control-label {
    left: 16px;
}

.floating-labels .form-label-group.control-focus:not(.file-group) .control-label, 
.floating-labels .form-label-group.control-highlight:not(.file-group) .control-label {
    -webkit-transform: scale(0.9, 0.86) translateY(-27px);
    transform: scale(0.9, 0.86) translateY(-14px);
}

.floating-labels .form-label-group.control-focus .control-label {
    /*color: #4285f4;*/
}

.floating-labels .form-label-group {
    margin-bottom: 6px;
    padding: 8px;
    position: relative;
    border: 1px solid #ced4da;
    border-radius: .5rem;
    background-color: #fff;
}

.floating-labels .form-label-group.control-focus:not(.file-group) .form-control, 
.floating-labels .form-label-group.control-highlight:not(.file-group) .form-control {
    -webkit-transform: scale(1, 1) translateY(5px);
    transform: scale(1, 1) translateY(5px);
}

.floating-labels .form-label-group .form-control {
    z-index: 1;
}

.floating-labels .form-label-group textarea.form-control {
    padding-top: 4px;
}

.floating-labels .form-label-group .form-control::-webkit-input-placeholder,
.floating-labels .form-label-group .form-control::-moz-placeholder,
.floating-labels .form-label-group .form-control:-ms-input-placeholder,
.floating-labels .form-label-group .form-control::placeholder {
    opacity: 0;
    color: transparent;
}

.floating-labels legend + .form-label-group {
    margin-top: 12px;
}

.floating-labels .form-control{
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0;
    padding-bottom: -10px;
    color: rgba(0, 0, 0, 0.87);
    background-color: #fff;
    border: 0;
    -webkit-box-shadow: 0;
    box-shadow: 0;
    -webkit-transition: 0;
    -o-transition: 0;
    transition: 0;
}

.floating-labels textarea.form-control {
    height: auto;
    min-height: 32px;
}


.floating-labels .form-control:-webkit-autofill,
.floating-labels .form-control:-webkit-autofill:hover,
.floating-labels .form-control:-webkit-autofill:focus,
.floating-labels .form-control:-webkit-autofill:focus .form-control:-webkit-autofill {
    background-color: #fff !important;
    background-image: none;
    color: #4285f4;
    -webkit-text-fill-color: #4285f4;
    -webkit-box-shadow: 0;
    transition: background-color 5000s ease-in-out 0s;
}

.floating-labels .form-control, 
.floating-labels .form-control:focus {
    box-shadow: 0 0 0px transparent !important;
}

.floating-labels .form-control:focus {
    border-color: #4285f4;
    border-bottom-width: 2px;
    outline: 0;
    box-shadow: 0 0 0 !important;
    -webkit-box-shadow: 0 0 0 !important;
}

.floating-labels .form-control:focus:invalid {
    border-color: #4285f4;
    border-bottom-width: 2px;
}

.floating-labels .form-control::-webkit-input-placeholder,
.floating-labels .form-control::-moz-placeholder,
.floating-labels .form-control:-ms-input-placeholder,
.floating-labels .form-control::placeholder {
    color: transparent !important;
}

.floating-labels .form-control[disabled], 
.floating-labels .form-control[readonly], 
.floating-labels fieldset[disabled] .form-control {
    border-style: double;
    background-color: transparent;
    color: rgba(0, 0, 0, 0.38);
    cursor: not-allowed;
    opacity: 1;
}