.has-float-label {
    display: block;
    position: relative;
}

.has-float-label label, .has-float-label > span {
position: absolute;
left: 10px;
top: -4px;
cursor: text;
font-size: 9px;
opacity: 1;
-webkit-transition: all .2s;
transition: all .2s;
}

.has-float-label select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.has-float-label textarea {
    width: 100%;
}

.has-float-label input, .has-float-label select, .has-float-label textarea {
    font-size: 9px;
    padding-top: 1em;
    margin-bottom: 2px;
    border: 0;
    border-radius: 0;
    /*border-bottom: 2px solid rgba(0, 0, 0, 0.1);*/
}

.has-float-label input::-webkit-input-placeholder, .has-float-label select::-webkit-input-placeholder, .has-float-label textarea::-webkit-input-placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.has-float-label input::-moz-placeholder, .has-float-label select::-moz-placeholder, .has-float-label textarea::-moz-placeholder {
    opacity: 1;
    transition: all .2s;
}

.has-float-label input:-ms-input-placeholder, .has-float-label select:-ms-input-placeholder, .has-float-label textarea:-ms-input-placeholder {
    opacity: 1;
    transition: all .2s;
}

.has-float-label input::placeholder, .has-float-label select::placeholder, .has-float-label textarea::placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.has-float-label input:placeholder-shown:not(:focus)::-webkit-input-placeholder, .has-float-label select:placeholder-shown:not(:focus)::-webkit-input-placeholder, .has-float-label textarea:placeholder-shown:not(:focus)::-webkit-input-placeholder {
    opacity: 0;
}

.has-float-label input:placeholder-shown:not(:focus)::-moz-placeholder, .has-float-label select:placeholder-shown:not(:focus)::-moz-placeholder, .has-float-label textarea:placeholder-shown:not(:focus)::-moz-placeholder {
    opacity: 0;
}

.has-float-label input:placeholder-shown:not(:focus):-ms-input-placeholder, .has-float-label select:placeholder-shown:not(:focus):-ms-input-placeholder, .has-float-label textarea:placeholder-shown:not(:focus):-ms-input-placeholder {
    opacity: 0;
}

.has-float-label input:placeholder-shown:not(:focus)::placeholder, .has-float-label select:placeholder-shown:not(:focus)::placeholder, .has-float-label textarea:placeholder-shown:not(:focus)::placeholder {
    opacity: 0;
}

.has-float-label input:placeholder-shown:not(:focus) + *, .has-float-label select:placeholder-shown:not(:focus) + *, .has-float-label textarea:placeholder-shown:not(:focus) + * {
    font-size: 14px;
    opacity: .5;
    top: .55em;
}

.has-float-label input:focus, .has-float-label select:focus, .has-float-label textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.5);
}

.has-float-label select {
    padding-right: 1em;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.5em bottom 0.25em;
    background-size: 8px 10px;
}


/**Part 2**/
.has-float-label2 {
    display: block;
    position: relative;
}

.has-float-label2 label, .has-float-label2 > span {
    position: absolute;
    left: 10px;
    top: -14px;
    cursor: text;
    font-size: 9px;
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.has-float-label2 select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
}

.has-float-label2 textarea {
    width: 100%;
}

.has-float-label2 input, .has-float-label2 select, .has-float-label2 textarea {
    font-size: 9px;
    padding-top: 1em;
    margin-bottom: 2px;
    border: 1px solid #ccc;
    border-radius: 6px;
    /*border-bottom: 2px solid rgba(0, 0, 0, 0.1);*/
}

.has-float-label2 input::-webkit-input-placeholder, .has-float-label2 select::-webkit-input-placeholder, .has-float-label2 textarea::-webkit-input-placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.has-float-label2 input::-moz-placeholder, .has-float-label2 select::-moz-placeholder, .has-float-label2 textarea::-moz-placeholder {
    opacity: 1;
    transition: all .2s;
}

.has-float-label2 input::-ms-input-placeholder, .has-float-label2 select::-ms-input-placeholder, .has-float-label2 textarea::-ms-input-placeholder {
    opacity: 1;
    transition: all .2s;
}

.has-float-label2 input::placeholder, .has-float-label2 select::placeholder, .has-float-label2 textarea::placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.has-float-label2 input:placeholder-shown:not(:focus)::-webkit-input-placeholder, .has-float-label2 select:placeholder-shown:not(:focus)::-webkit-input-placeholder, .has-float-label2 textarea:placeholder-shown:not(:focus)::-webkit-input-placeholder {
    opacity: 0;
}

.has-float-label2 input:placeholder-shown:not(:focus)::-moz-placeholder, .has-float-label2 select:placeholder-shown:not(:focus)::-moz-placeholder, .has-float-label2 textarea:placeholder-shown:not(:focus)::-moz-placeholder {
    opacity: 0;
}

.has-float-label2 input:placeholder-shown:not(:focus)::-ms-input-placeholder, .has-float-label2 select:placeholder-shown:not(:focus)::-ms-input-placeholder, .has-float-label2 textarea:placeholder-shown:not(:focus)::-ms-input-placeholder {
    opacity: 0;
}

.has-float-label2 input:placeholder-shown:not(:focus)::placeholder, .has-float-label2 select:placeholder-shown:not(:focus)::placeholder, .has-float-label2 textarea:placeholder-shown:not(:focus)::placeholder {
    opacity: 0;
}

.has-float-label2 input:placeholder-shown:not(:focus) + *, .has-float-label2 select:placeholder-shown:not(:focus) + *, .has-float-label2 textarea:placeholder-shown:not(:focus) + * {
    font-size: 14px;
    opacity: .5;
    top: .55em;
}

.has-float-label2 input:focus, .has-float-label2 select:focus, .has-float-label2 textarea:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.5);
}

.has-float-label2 select {
    padding: 10px;
    width: 100%;
    /*background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.5em bottom 0.25em;
    background-size: 8px 10px;*/
}

/**Part 3**/
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control-placeholder {
    position: absolute;
    top: 0;
    left:0;
    padding: 7px 0 0 13px;
    transition: all 200ms;
    opacity: 0.5;
}

.form-control:focus + .form-control-placeholder,
.form-control:valid + .form-control-placeholder {
    font-size: 75%;
    transform: translate3d(0, -100%, 0);
    opacity: 1;
}

.form-control-placeholder2 {
    position: absolute;
    top: 0;
    left:3px;
    padding: 7px 0 0 13px;
    transition: all 200ms;
    opacity: 0.5;
}

.form-control:focus + .form-control-placeholder2,
.form-control:valid + .form-control-placeholder2 {
    font-size: 75%;
    transform: translate3d(0, -100%, 0);
    opacity: 1;
}
