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

/* FORM */
.style_form form{
    /*padding: 2.5em;*/
    margin-top: 2.5em;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.8);
}

.style_form form.style-custom {
    border: 1px solid rgba(0,0,0,0.05);
    padding: 30px 15px 15px 15px;
    margin-top: 0px;
    border-radius: 5px;
}

.style_form form.style-custom fieldset legend{
    margin-bottom: 2.5em;
}

.style_form form.style-custom fieldset legend::before{
    color: var(--themeColorBlueNavy);
}

.style_form form.style-custom fieldset legend > strong{
    color: var(--themeColorGreen);
}

.style_form .label50{
    display: flex;
    width: 100%;
}

.style_form .label50 .label{
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

.style_form .label50 .label:nth-of-type(2n+0){
    margin-left: 4%;
}

.style_form label{
    top: 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 0px;
    display: block;
    outline: none;
    border: none;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #ccc;
    background: transparent;
}

/* 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: #5580AB;
    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;
    font-size: 0.9em;
    color: #5580AB;
    font-weight: bold;
    text-transform: uppercase;
}

.style_form input.used  ~ label,
.style_form textarea.used  ~ label{
    top: -20px;
    font-size: 0.9em;
    color: #5580AB;
    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%;
}

.style_form form .captcha {
    border: none;
    max-width: 340px;
    min-height: 76px !important;
    height: 100% !important;
    text-align: center;
    /*margin-top: 1em;*/
    /*margin-bottom: 1em;*/
    position: relative;
    overflow: hidden;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

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

    .bar{
        width: 100%;
    }
}