
.controls {
  text-align: left;
  position: relative;
} 
.controls input[type="text"],
.controls input[type="password"],
.controls input[type="number"],
.controls input[type="date"],
.controls input[type="email"],
.controls input[type="tel"],
.controls textarea,
.controls button,
.controls select {
  padding: 12px;
  font-size: 14px;
  font-weight: 300;
  border: 1px solid #c6c6c6;
  width: 93%;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  background-color: #fff;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-appearance: none;
}

.controls input[type="text"]:focus, .controls input[type="text"]:hover,
.controls input[type="password"]:focus, .controls input[type="password"]:hover,
.controls input[type="email"]:focus, .controls input[type="email"]:hover,
.controls input[type="tel"]:focus, .controls input[type="tel"]:hover,
.controls input[type="number"]:focus, .controls input[type="number"]:hover,
.controls input[type="date"]:focus, .controls input[type="date"]:hover,
.controls textarea:focus,
.controls textarea:hover,
.controls button:focus,
.controls button:hover,
.controls select:focus,
.controls select:hover {
  outline: none;
  border-color: #077ABC;
}
.controls input[type="text"]:focus + label,
.controls input[type="password"]:focus + label,
.controls input[type="email"]:focus + label,
.controls input[type="tel"]:focus + label,
.controls input[type="number"]:focus + label,
.controls input[type="date"]:focus + label,
.controls textarea:focus + label,
.controls button:focus + label,
.controls select:focus + label {
  color: #077ABC;
  cursor: text;
   border: 1px solid rgb(198,198,198);
    border-image: linear-gradient(to bottom, rgba(108,219,141,0) 0%,#077ABC 0%,#077ABC 54%,rgba(108,219,141,0) 54%);
    border-image-slice: 1;
}
.controls input[type="text"]:hover + label,
.controls input[type="password"]:hover + label,
.controls input[type="email"]:hover + label,
.controls input[type="tel"]:hover + label,
.controls input[type="number"]:hover + label,
.controls input[type="date"]:hover + label,
.controls textarea:hover + label,
.controls button:hover + label,
.controls select:hover + label {
  color: #077ABC;
  cursor: text;
}

.controls .fa-sort {
  position: absolute;
  right: 10px;
  top: 17px;
  color: #999;
}
.controls select {
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.controls label {
  position: relative;
  top: -38px;
  left:1px;
  color: #666666;
  padding: 4px 11px 0px 8px;
  font-size: 16px;
  display: inline-block;
  margin-left: 6px;
  font-weight: 400;
  background-color: rgba(255, 255, 255, 0);
  pointer-events: none;
  -moz-transition: color 0.3s, top 0.3s, background-color 0.8s;
  -o-transition: color 0.3s, top 0.3s, background-color 0.8s;
  -webkit-transition: color 0.3s, top 0.3s, background-color 0.8s;
  transition: color 0.3s, top 0.3s, background-color 0.8s;
}
.controls .labelta { top: -223px}
.controls .labelta.active { top: -250px; color:red}
.controls label.active {
  top: -60px;
  color: #797979;
  background-color: #ffffff;
    border: 1px solid rgb(198,198,198);
    border-image: linear-gradient(to bottom, rgba(108,219,141,0) 0%,rgb(198,198,198) 0%,rgba(198,198,198,1) 54%,rgba(108,219,141,0) 54%);
    border-image-slice: 1;
}
.controls textarea {
  width:90%;
  height: 200px;
  resize: none;
  font-family: Roboto;
}
.controls button {
  cursor: pointer;
  background-color: #077ABC;
  border: none;
  color: #fff;
  padding: 12px 0;
  width: 97%;
}
.controls button:hover {
  background-color: #025a8c;
}

input:-webkit-autofill ~ label {top:-64px; color:#555; background-color:white; !important;}
input:-webkit-autofill {-webkit-box-shadow: 0 0 0 1000px #FFFFFF inset; !important;}
select:-webkit-autofill ~ label {top:-64px; color:#555; background-color:white; !important;}
select:-webkit-autofill {-webkit-box-shadow: 0 0 0 1000px #FFFFFF inset; !important;}

