input[name="FORM_KEY"]{display:none;}

.form-group {position:relative; width:100%;  vertical-align:middle; margin: 0 auto 1.5rem auto;}
.form-group.form-group-3 {display:inline-block; width:32%;}
.form-group.form-group-2 {display:inline-block; width:48%;}
.form-group.form-group-4 {display:inline-block; width:22%;}

.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%;
    font-size: 0.9rem; font-family: 'roboto-regular'; padding: .4rem 0;
    outline: 0;
    color: #2e3e57;
    border: 1px solid #2e3e57;
    border-radius: 4px;
    padding: 0.7rem 0.5rem;
    box-sizing: border-box;
    font-family: 'poppins-regular'
}
.form-group input[type="date"], .form-group input[type="file"]{
  appearance:none;
    -moz-appearance:none;
        -webkit-appearance:none;
}

.form-group label.control-label {
  color:#2e2d30; 
  font-size:.9rem;
  font-weight:normal;
  position:absolute;
  pointer-events:none;
  left:.31rem;
  top:.7rem;
  transition:0.2s ease all; 
  -moz-transition:0.2s ease all; 
  -webkit-transition:0.2s ease all;
}
.form-group label.control-label i{color:#2e3e57; margin-right: .5rem}
label.control-label.required { font-family:"roboto-bold" }
label span {color:red;}

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

.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
{
  top: -0.8rem;
    font-size: .7rem;
    color: #4f5e6a;
    background: none;
}
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{
    width:100%;
}

.form-group select {
  width: 100%;
  font-size: 0.8rem;
  height: 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: 0.8rem;
  height: 7.3rem;
  padding: 0.125rem 0.125rem 0.0625rem;
  background-color: none;
  border: none;
  line-height: 1.9;
  color: #2e3e57;
    border: 1px solid #2e3e57;
    border-radius: 4px;
    padding: 0.7rem 0.5rem;
    box-sizing: border-box;
  box-shadow: none;  
  appearance:none;
    -moz-appearance:none;
        -webkit-appearance:none;
        font-family: 'poppins-regular'
}

.form-group input[type=checkbox] {
    position:absolute; z-index:-1000; left:-1000px; overflow: hidden; clip: rect(0 0 0 0); height:1px; width:1px; margin:-1px; padding:0; border:0;
}
.form-group input[type=checkbox] + 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 {
    position:absolute; content:""; width:1rem; height:1rem; border:2px solid #0868f8; left:0; top: -.1rem; color:#0868f8;
    transition:all 500ms;
    -webkit-transition:all 500ms;
}
input[type=checkbox]:checked + label {color:#0868f8;}
input[type=checkbox]:checked + label:before {
    font-family: 'FontAwesome';
    content:"\f00c";
    text-align:center;
}
/* form starting stylings ------------------------------- */
.group            { 
  position:relative;
  margin-right: 1rem;
  width: 10rem;
  box-sizing: border-box; 
}
input               {
    font-size: .9rem;
    padding: 10px 10px 10px 5px;
    display: block;
    width: 10rem;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    background: none;
    box-sizing: border-box;
    color: #fff;
}
input:focus         { outline:none; }

/* LABEL ======================================= */
label                {
  color:#fff; 
  font-size:.9rem;
  font-weight:normal;
  position:absolute;
  pointer-events:none;
  left:5px;
  top:10px;
  transition:0.2s ease all; 
  -moz-transition:0.2s ease all; 
  -webkit-transition:0.2s ease all;
}

label i{margin-right: .5rem}

/* active state */
input:focus ~ label, input:valid ~ label, textarea:focus ~ label, textarea:valid ~ label        {
  top:-1rem;
  font-size:.7rem;
  color:rgba(255, 255, 255, 0.7);
}

/* active state */
input:focus ~ .bar:before, input:focus ~ .bar:after {
  width:50%;
}

/* HIGHLIGHTER ================================== */
.highlight {
  position:absolute;
  height:60%; 
  width:100px; 
  top:25%; 
  left:0;
  pointer-events:none;
  opacity:0.5;
}

/* active state */
input:focus ~ .highlight {
  -webkit-animation:inputHighlighter 0.3s ease;
  -moz-animation:inputHighlighter 0.3s ease;
  animation:inputHighlighter 0.3s ease;
}

/* ANIMATIONS ================ */
@-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; }
}
/* form ending stylings ------------------------------- */
