.form {
    width: 100%;
    max-width: 420px;
    padding: 15px;
    margin: 0 auto;
}
.floating-label {
    position: relative;
    margin-bottom: 1rem;
}
.floating-label > label{
    padding: 11px 15px;
}
.floating-label .floating-input,
.floating-label .floating-select{
    font-size: 14px;
    font-weight: 600;
}
.floating-label .floating-input{
    padding: 18px 15px 4px 15px;
}
.floating-label .floating-select{
    padding: 22px 15px 4px 10px;
}
.floating-label .floating-input.form-control:disabled,
.floating-label .floating-input.form-control[readonly]{
    background-color: #fff;
}
.floating-label > .floating-select > option:first-child{
    height: 0px;
}
select.form-control:not([size]):not([multiple]){
    height: auto;
}
.floating-label > label {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 90%;
    margin-bottom: 0; /* Override default `<label>` margin */
    font-size: 14px;
    color: #999999;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: all .1s ease-in-out;
    border-right: transparent;
    border-bottom: transparent;
    background-color: #fff;
}
/*  .floating-label > label.select-label{
    width: fit-content;
  }*/
.floating-input:focus,
.floating-select:focus {
    outline: none;
}
.floating-input:focus~label,
.floating-input:not(:placeholder-shown)~label {
    top: 0;
    font-size: 12px;
    color: #666;
    padding: 2px 15px 2px;
    color: #0354a3;
    font-weight: 600;
}
.floating-select:focus~label,
.floating-select:not([value=""]):valid~label {
    top: 0;
    font-size: 12px;
    color: #666;
    padding: 2px 15px 2px;
    color: #0354a3;
    font-weight: 600;
}
/* active state */
.floating-input:focus~.bar:before,
.floating-input:focus~.bar:after,
.floating-select:focus~.bar:before,
.floating-select:focus~.bar:after {
    width: 50%;
}
*,
*:before,
*: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 */
.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: 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;
    }
}