.form {
  font-family: 'Gilroy', sans-serif;
  font-size: 1.15rem;
  line-height: 30px;
  font-weight: 700;
}
.form[disabled="true"]:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: fixed rgba(0,0,0,0.5) url('../images/loader.gif') no-repeat center center / auto auto;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 1;
}

.wrapout {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  -moz-box-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  align-items: center;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -moz-box-orient: horizontal;
  -moz-box-direction: normal;
  flex-direction: row;
  width: -webkit-calc(100% + 30px);
  width: -moz-calc(100% + 30px);
  width: calc(100% + 30px);
  margin: 15px -15px 0 -15px;
}

.wrapin {
  display: inline-block;
}

.form * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.form .wrap {
  -webkit-box-flex: 0;
  -webkit-flex: 0 1 -webkit-calc(33.3% - 30px);
  -moz-box-flex: 0;
  flex: 0 1 calc(33.3% - 30px);
  margin: 15px 15px 0 15px;
}

.form .wrap.full-width {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 -webkit-calc(100% - 30px);
  -moz-box-flex: 1;
  flex: 1 1 calc(100% - 30px);
}

.form .wrap.split-wrap {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}
.form .wrap.split-wrap output {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 90px;
  -moz-box-flex: 0;
  flex: 0 0 90px;
  margin-right: 15px !important;
}

.form label {
  display: inline-block;
  vertical-align: middle;
  padding-right: 30px;
}
.form label[for] {
  cursor: pointer;
}

.form input, .form select, .form output {
  display: block;
  width: 100%;
  height: 50px;
  border: 2px solid #ffffff;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  outline: none;
  background: #ffffff;
  font: inherit;
  color: #000000;
  padding: 10px 20px;
  margin: 0 !important;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  -moz-transition: all 0.5s;
  transition: all 0.5s;
}
.form input:focus, .form select:focus {
  outline: none;
  -webkit-box-shadow: 0 0 30px #00aa81;
  -moz-box-shadow: 0 0 30px #00aa81;
  box-shadow: 0 0 30px #00aa81;
}
.form input.error, .form select.error, .form output.error {
  border: 2px solid #ff7777;
  -webkit-box-shadow: 0 0 30px #ff7777;
  -moz-box-shadow: 0 0 30px #ff7777;
  box-shadow: 0 0 30px #ff7777;
}

.form input::-webkit-input-placeholder {
  opacity: 0.5;
}

.form input:-moz-placeholder {
  opacity: 0.5;
}

.form input::-moz-placeholder {
  opacity: 0.5;
}

.form input:-ms-input-placeholder {
  opacity: 0.5;
}

.form input::-ms-input-placeholder {
  opacity: 0.5;
}

.form input::placeholder {
  opacity: 0.5;
}

.form input[type="checkbox"], .form input[type="radio"] {
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: middle;
  cursor: pointer;
}
.form input[type="checkbox"]:focus, .form input[type="radio"]:focus {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
.form input[type="checkbox"] + label, .form input[type="radio"] + label {
  padding-left: 20px;
  margin-left: -5px;
}
.form input[type="checkbox"].error + label, .form input[type="radio"].error + label {
  color: #ff7777;
  text-shadow: 0 0 15px #ff7777;
}

.form input[type="date"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.form button[type="submit"], .button.popup__button, .button.popup__button-error {
  display: block;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  background: #107F10;
  line-height: 30px;
  text-decoration: none;
  color: #ffffff;
  padding: 10px 40px;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  -moz-transition: all 0.5s;
  transition: all 0.5s;
}
.form button[type="submit"]:hover, .button.popup__button:hover, .button.popup__button-error:hover {
  -webkit-box-shadow: 0 0 30px #107F10;
  -moz-box-shadow: 0 0 30px #107F10;
  box-shadow: 0 0 30px #107F10;
}
.form button[type="submit"][disabled] {
  background: #999999;
  pointer-events: none;
}



/* POPUP */
.popup {
  display: none;
  position: fixed;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  flex-direction: column;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.9);
  text-align: center;
  color: #ffffff;
  padding: 30px;
  z-index: 2;
}
.popup.active {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
}



@media screen and (max-width: 900px) {
  .form .wrap {
    -webkit-box-flex: 0;
    -webkit-flex: 0 1 -webkit-calc(50% - 30px);
    -moz-box-flex: 0;
    flex: 0 1 calc(50% - 30px);
  }
}



@media screen and (max-width: 650px) {
  .form .wrap {
    -webkit-box-flex: 0;
    -webkit-flex: 0 1 -webkit-calc(100% - 30px);
    -moz-box-flex: 0;
    flex: 0 1 calc(100% - 30px);
  }
}
