/* -- Input styles ---------------------------------- */

.form-group {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
}

.form-control {
    display: block;
    height: 36px;
    width: 100%;
    border: none;
    border-radius: 0 !important;
    font-size: 16px;
    font-weight: 300;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    border-bottom: 1px solid #757575;
}

.input-group .form-control {
    position: relative;
    z-index: inherit;
    float: inherit;
    width: 100%;
    margin-bottom: 0;
}

.form-control:focus {
    border-color: #757575;
    outline: none;
    box-shadow: none;
    background: transparent;
}


/* -- label styles ---------------------------------- */

label {
    position: absolute;
    top: -18px;
    color: #999;
    font-size: 12px;
    font-weight: 400;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
    font-family: 'Ubuntu', sans-serif;
}

.form-horizontal .control-label {
    position: relative;
    top: 0;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .form-horizontal .control-label {
        font-size: 16px;
    }
}

.float-label {
    left: 0;
    top: 7px;
    font-size: 15px;
    pointer-events: none;
}


/* active state */

.form-control:focus ~ .float-label,
.form-control:valid ~ .float-label {
    top: -18px;
    font-size: 12px;
}


/* input colors ---- */

.form-control:focus ~ label {
    color: #f2435c;
}

.form-control:focus ~ .form-bar:before,
.form-control:focus ~ .form-bar:after {
    background: #f2435c;
}


/* help-block */

.form-group .help-block {
    position: absolute;
}

.help-block {
    color: #bdbdbd;
    font-size: 12px;
    font-weight: 300;
}


/* input addon ---*/

.input-group-addon {
    border: none;
    background: transparent;
}


/* ------  inline ----*/

.input-group-addon,
.form-inline .input-group {
    display: table-cell;
}

.input-group-addon,
.input-group-btn {
    width: inherit;
}

.input-group {
    width: 100%;
}

@media (min-width: 768px) {
    .form-inline .form-group {
        margin-top: 16px;
    }
    .input-group-btn,
    .input-group .form-control,
    .input-group-addon,
    .form-inline .input-group {
        display: inline-block;
    }
    .input-group {
        width: auto;
    }
}


/* -- bar styles -------------------------------------- */

.form-bar {
    position: relative;
    display: block;
    width: 100%;
}

.form-bar:before,
.form-bar:after {
    content: '';
    height: 1px;
    width: 0;
    bottom: 0;
    position: absolute;
    transition: 0.3s ease all;
    -moz-transition: 0.3s ease all;
    -webkit-transition: 0.3s ease all;
}

.form-bar:before {
    left: 50%;
}

.form-bar:after {
    right: 50%;
}


/* active state */

.form-control:focus ~ .form-bar:before,
.form-control:focus ~ .form-bar:after {
    width: 50%;
}


/* -- highlighter styles ------------------------------ */

.form-highlight {
    position: absolute;
    height: 60%;
    width: 60px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.4;
}


/* active state */

.form-control:focus ~ .form-highlight {
    -webkit-animation: inputHighlighter 0.3s ease;
    -moz-animation: inputHighlighter 0.3s ease;
    animation: inputHighlighter 0.3s ease;
}


/* -- highlighter 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;
    }
}


select.form-control:not([size]):not([multiple]) {
    height: 2.4rem;
}