/**
 * /user/assets/styles/form.css
 *
 * @author Pablo Rubio
 * @version 0.1
 */

.form {
  position: relative;
}

.form .loader {
  position: absolute;
  background-color: #ffffff;
  width: 100%;
  height: 0%;
  top: 0px;
  left: 0px;
  z-index: 500;
  opacity: 0;
  transition: height 0ms 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.3s 0s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-image: url('../images/spinner/dark.gif');
  background-size: 32px;
  background-repeat: no-repeat;
  background-position: center;
}

.form.submitting .loader {
  height: 100%;
  opacity: 0.9;
  transition: height 0s 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.3s 0s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form .field {
  position: relative;
}

.form .input {
  position: relative;
  background-color: #ffffff;
  padding: 5px 5px 3px 5px;
}

.form label {
  font-size: 0.9em;
  line-height: 1.5em;
  padding: 5px 0px;
  font-weight: 500;
}

.form .field > div {
  /* border-bottom: 2px solid #ffffff; */
}

.form .field.invalid > div {
  position: relative;
}

.form .field.invalid > div {
  /*border-bottom: 2px solid #FF8383;*/
}

.form .field.invalid > div:after {
  content: '\f158';
  font-family: dashicons;
  position: absolute;
  bottom: 12px;
  right: 5px;
  display: block;
  font-size: 12px;
  line-height: 14px;
  width: 14px;
  height: 14px;
  color: #ff8383;
}

.form .field.invalid > div .input {
  border-bottom: 1px solid #ff8383 !important;
}

.form select {
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form .field-select:before {
  content: '\f347';
  font-family: dashicons;
  display: inline-block;
  font-size: 12px;
  line-height: 12px;
  color: #333333;
  position: absolute;
  bottom: 18px;
  right: 12px;
  z-index: 100;
}

.form .field-message textarea {
  min-height: 110px;
}

.form button:focus,
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
}
