.form-group {position:relative; width:100%;  vertical-align:middle; margin:16px 0;}

.form-group-inline{display:flex; display:-webkit-flex; display:-ms-flex; display:-moz-flex; display:-o-flex; position:relative; 
justify-content:space-between; -moz-justify-content:space-between; -ms-justify-content:space-between; -o-justify-content:space-between; -webkit-justify-content:space-between;
}
.form-group-inline.wrap {-webkit-flex-wrap: wrap; flex-wrap: wrap;}
.form-group-inline .form-group.form-group2 {width:48%;}
.form-group-inline .form-group.form-group3 {width:32%;}
.form-group-inline .form-group.form-group4 {width:24%;}
.form-group-inline .form-group.form-group75 {width:74%;}
.form-group-inline .form-group.form-group25 {width:24%;}

.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="date"], .form-group input[type="file"], .form-group select, .form-group textarea{
    background:transparent; border:none;
    width:100%;
    color:#000;
    font-size: 12px; padding: .6rem 0;
    outline: 0
}
.form-group input[type="date"], .form-group input[type="file"]{
  appearance:none;
    -moz-appearance:none;
        -webkit-appearance:none;
}

.form-group label.control-label {
  color:#000; opacity:.5; 
  font-size:.9rem;
  font-weight:normal;
  position:absolute;
  pointer-events:none;
  left:.31rem;
  top:0;
  transition:0.2s ease all; 
  -moz-transition:0.2s ease all; 
  -webkit-transition:0.2s ease all;
}
label.control-label.required { font-weight:bold }
label span {color:red;}

.bar{ position:relative; display:block; width:100%; }
.bar:before, .bar:after {
  content:'';
  height:2px; 
  width:0;
  bottom:1px; 
  position:absolute;
  background:#3e5379; 
  transition:0.5s ease all; -moz-transition:0.5s ease all; -webkit-transition:0.5s ease all;
}
.bar:after {width:100%; background:rgba(0, 0, 0, 0.5);}

.form-group input[type="email"]:focus ~ label.control-label, .form-group input[type="email"].has_value ~ label.control-label,
.form-group input[type="text"]:focus ~ label.control-label, .form-group input[type="text"].has_value ~ label.control-label,
.form-group input[type="password"]:focus ~ label.control-label, .form-group input[type="password"].has_value ~ label.control-label,
.form-group input[type="date"]:focus ~ label.control-label, .form-group input[type="date"].has_value ~ label.control-label,
.form-group input[type="file"]:focus ~ label.control-label, .form-group input[type="file"].has_value ~ label.control-label,
.form-group select:focus ~ label.control-label, .form-group select.has_value ~ label.control-label,
.form-group textarea:focus ~ label.control-label, .form-group textarea.has_value ~ label.control-label,
.form-group div.has_value ~ label.control-label, .form-group label.control-label.actif
{
  top:-1rem;
  font-size:12px;
  color:#406bac; opacity:1;
}
input[type="email"]:focus ~ .bar:before,
input[type="password"]:focus ~ .bar:before,
input[type="text"]:focus ~ .bar:before,
select:focus ~ .bar:before,
textarea:focus ~ .bar:before{
    width:100%;
}
input[type="email"].has_value ~ .bar:before,
input[type="password"].has_value ~ .bar:before,
input[type="text"].has_value ~ .bar:before,
select.has_value ~ .bar:before,
textarea.has_value ~ .bar:before,
textarea.has_value ~ .bar:before
{
    width:100%;
}

.input-disabled ~ .bar:after {background:#ccc;}
.input-disabled { opacity:0.5; }

.form-group select {
  width: 100%!important;
  font-size: 12px;
  height: 2.2rem;
  padding: 0.125rem 0.125rem 0.0625rem;
  background-color: none;
  border: none;
  line-height: 1.9;
  box-shadow: none;
  background-position:right 0;
  background-repeat:no-repeat;
  background-image:url(../images/select.png);
  appearance:none;
    -moz-appearance:none;
        -webkit-appearance:none;
}
.form-group textarea {
  width: 100%;
  font-size: 12px;
  height: 120px;
  padding: 0.125rem 0.125rem 0.0625rem;
  /*background-color: none;
  border: none;*/
  border:1px solid #dfdfdf;
  line-height: 1.9;
  box-shadow: none;  
  appearance:none;
    -moz-appearance:none;
        -webkit-appearance:none;
}

.form-group input[type=checkbox], .form-group input[type=radio] {
    position:absolute; z-index:-1000; overflow: hidden; clip: rect(0 0 0 0); height:1px; width:1px; margin:-1px; padding:0; border:0;
}
.form-group input[type=checkbox] + label, .form-group input[type=radio] + label {
    padding-left:2rem;
    /*height:1rem; */
    display:inline-block;
    /*line-height:1rem;*/
    background-repeat:no-repeat;
    background-position: 0 0;
    vertical-align:middle;
    cursor:pointer;
    position:relative;
    -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
.form-group input[type=checkbox] + label:before, .form-group input[type=radio] + label:before {
    position:absolute; content:""; width:16px; height:16px; border:2px solid #0868f8; left:0; top:0; color:#0868f8;
    transition:all 500ms;
    -webkit-transition:all 500ms;
}
.form-group input[type=radio] + label:before {
    border-radius:50%;
}
input[type=radio]:checked + label:before {
    font-family: 'FontAwesome';
    content:"\f111";
    text-align:center;
    line-height:16px;
}
/*input[type=radio]:checked + label {color:#0868f8;}*/

input[type=checkbox]:checked + label, input[type=radio]:checked + label {color:#0868f8;}
input[type=checkbox]:checked + label:before {
    font-family: 'FontAwesome';
    content:"\f00c";
    text-align:center;
    line-height:16px;
}

/*480*/
/*@media screen and (max-width: 30rem) {
    .form-group-inline {-webkit-flex-wrap: wrap; flex-wrap: wrap;}
    .form-group-inline .form-group.form-group2
    ,.form-group-inline .form-group.form-group3
    ,.form-group-inline .form-group.form-group4
    ,.form-group-inline .form-group.form-group75
    ,.form-group-inline .form-group.form-group25 {width:100%;}
    .form-group input[type=checkbox] + label, .form-group input[type=radio] + label {height:auto;}
}*/