/* 
    Created on : 10/05/2016, 15:18:40
    Author     : Jorge Valdez
*/

/* FORM */
.style_form form{
    /*padding: 2.5em;*/
    margin-top: 2.5em;
    padding: 0;
}

.style_form label{
    top: 10px;
    /*left: 10px;*/
    color: #999;
    font-size: 1em;
    position: absolute;
    font-weight: normal;
    font-family: Open Sans;
    pointer-events: none;
    transition: 0.2s ease all;
    /*text-transform: uppercase;*/
}

.style_form textarea{
    resize: none;
}

.style_form input, .style_form textarea{
    color: #909090;
    font-size: 1em;
    /*padding: 8px 10px;*/
    padding: 8px 0px;
    display: block;
    outline: none;
    border: none;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #CCC;
}

/* STYLE INPUT */
.inputStyle{
    position: relative;
    margin-bottom: 2.4em;
}

/* BARS - ANIMAÇÃO */
.bar{
    position: relative;
    display: block;
    width: 100%;
}

.bar:before, .bar:after{
    content: "";
    height: 2px;
    width: 0;
    bottom: -1px;
    position: absolute;
    background: #ec403d;
    transition: 0.2s ease all;
}

.bar:before{
    left: 50%;
}
.bar:after{
    right: 50%;
}

/* INPUTS - VALIDAÇÃO */
.style_form input:invalid, .style_form textarea:invalid{
    outline: none;
    border-color: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}

.style_form input:valid, .style_form textarea:valid{
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -o-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
    border-bottom: 1px solid #3FC35F;
}

.style_form input:valid ~ .bar:before,
.style_form input:valid ~ .bar:after,
.style_form textarea:valid ~ .bar:before,
.style_form textarea:valid ~ .bar:after{
    background-color: #3FC35F !important;
}

.style_form input:focus ~ label,
.style_form input.used  ~ label,
.style_form input:valid.used  ~ label,
.style_form textarea:focus ~ label,
.style_form textarea.used  ~ label,
.style_form textarea:valid.used ~ label{
    top: -20px;
    left: 0px;
    font-size: 0.9em;
    color: #ec403d;
    font-weight: bold;
    text-transform: uppercase;
}

.style_form input.used  ~ label,
.style_form textarea.used  ~ label{
    top: -20px;
    font-size: 0.9em;
    color: #ec403d;
    font-weight: bold;
    text-transform: uppercase;
}

.style_form input:valid ~ label,
.style_form input:valid.used ~ label,
.style_form textarea:valid ~ label,
.style_form textarea:valid.used ~ label{
    top: -20px;
    color: #3FC35F;
    font-weight: bold;
    text-transform: uppercase;
}

.style_form input:focus ~ .bar:before,
.style_form input:focus ~ .bar:after,
.style_form textarea:focus ~ .bar:before,
.style_form textarea:focus ~ .bar:after{
    width: 50%;
}

/*MAX-WIDTH: 1024px*/
@media (max-width: 64em){
    .style_form input, .style_form textarea{
        width: 100%;
    }

    .bar{
        width: 100%;
    }
}