.form__input {
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  height: 60px;
  line-height: 1.33;
  margin: 0;
  outline: none;
  padding: 0 20px;
  width: 100%;
}

.form__input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.form__input:invalid {
  box-shadow: none;
}

.form__group_textarea textarea.form__input {
  resize: vertical;
}

.form__field-error {
  font-family: 'Roboto', Arial, sans-serif;
  color: red;
  display: none;
  font-size: 13px;
  margin-top: 5px;
}

.form .form__group_error .form__field-error {
  display: block;
}

.form .form__group_error .form__input {
  border: 1px solid red !important;
}

.form__errors_bottom {
  display: none;
}

.form__errors_middle {
  width: 100%;
}

.form__errorbox {
  font-family: 'Roboto', Arial, sans-serif;
  background: #f95d51;
  margin-bottom: 20px;
  padding: 10px;
  text-align: center;
}

.form__errorbox-list {
  font-family: 'Roboto', Arial, sans-serif;
  box-sizing: border-box;
  color: #fff;
  list-style: none;
  margin-bottom: 0;
  padding: 0 10px 10px 10px;
}

.form__errorbox-item {
  font-family: 'Roboto', Arial, sans-serif;
  display: none;
  margin-top: 10px;
}

.form__success {
  font-family: 'Roboto', Arial, sans-serif;
  background: #62c584;
  color: #fff;
  margin-bottom: 20px;
  padding: 20px;
  text-align: center;
}

.form__note {
  margin-top: 30px;
  text-align: center;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .submit {
  position: relative;
}

.btn.btn_sending,
.form .submit.btn_sending {
  color: transparent !important;
}

.btn.btn_sending:before,
.form .btn_sending:before {
  animation: submit-spinner .6s linear infinite;
  border: 2px solid #ccc;
  border-radius: 50%;
  border-top-color: #333;
  box-sizing: border-box;
  content: "";
  height: 30px;
  left: 50%;
  margin-left: -15px;
  margin-top: -15px;
  position: absolute;
  top: 50%;
  width: 30px;
}

@keyframes submit-spinner {
  to {
    transform: rotate(1turn);
  }
}

.form .form__inputs.form__inputs_horizontal {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
}

.form .form__inputs.form__inputs_horizontal .form__group {
  flex: 1;
  order: 1;
}

.form .form__inputs.form__inputs_horizontal .form__submit {
  max-width: 100%;
  order: 2;
}

@media screen and (min-width: 961px) {
  .form .form__inputs.form__inputs_horizontal .form__field-error {
    display: none;
  }
}

@media screen and (max-width: 960px) {
  .form .form__inputs.form__inputs_horizontal {
    display: flex;
    flex-direction: column;
  }

  .form .form__inputs.form__inputs_horizontal .form__submit {
    order: 3;
  }

  .form .form__inputs.form__inputs_horizontal .form__errors_middle {
    order: 2;
  }

  .form .form__inputs.form__inputs_horizontal .form__errors_middle .form__errorbox {
    margin-top: 0;
  }
}

.lead-form .form_inputs-total_3 .form__group {
  width: 33.33%;
}

.lead-form .form__inputs {
  display: table;
  transition: max-height 0.3s cubic-bezier(.19, 1, .22, 1), opacity 0.3s linear;
  max-height: 5000px;
}

.lead-form .lead-form__inputs_hidden.form__inputs {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.lead-form .form__group {
  display: table-cell;
  vertical-align: bottom;
}

.lead-form .form__field {
  height: 100%;
  width: 100%;
  padding-right: 20px;
  box-sizing: border-box;
}

.lead-form .form__submit {
  display: table-cell;
  vertical-align: bottom;
  height: 100%;
}

.lead-form .form__field-error {
  display: none !important;
}

.lead-form .form__errorbox {
  margin-top: 20px;
  margin-bottom: 20px;
}

.lead-form .form__errors_middle {
  display: none;
}

.lead-form .form__errors_bottom {
  display: block;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #000000;
  opacity: 0.5;
}

.lead-form .form__button {
  color: #ffffff;
  background-color: #0379ff;
  --border-width: 0px;
  border-style: none !important;
  border-radius: 60px;
  box-shadow: none !important;
  transition-duration: 0.2s;
  transition-property: background-color, color, border-color, box-shadow, opacity, transform, gap;
  transition-timing-function: ease-in-out;
}

@media screen and (max-width: 960px) {
  .lead-form .form__inputs {
    display: block;
  }

  .lead-form .form__group {
    display: block;
    width: 100% !important;
  }

  .lead-form .form__field {
    display: block;
    width: 100%;
    margin-bottom: 25px;
    padding-right: 0;
  }

  .lead-form .form__submit {
    display: block;
    width: 100%;
    padding-bottom: 20px;
  }

  .lead-form .submit {
    width: 100%;
  }

  .lead-form .form__errors_middle {
    display: block;
  }

  .lead-form .form__errors_bottom {
    display: none;
  }
}

.contacts .form__inputs {
  transition: max-height 0.3s cubic-bezier(.19, 1, .22, 1);
  max-height: 10000px;
}

.contacts .contacts__inputs_hidden.form__inputs {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.contacts .form__inputs_vertical .form__group {
  margin-bottom: 25px;
}

.contacts .form__inputs_vertical + .form__errors_bottom {
  display: none;
}

.contacts .form__inputs_vertical .form__errors_middle {
  display: block;
}

.contacts .form__input {
  background-color: transparent;
  -webkit-appearance: none;
}

.contacts .form__field textarea {
  padding-top: 17px;
  background-color: transparent;
}

.contacts .form__submit {
  display: block;
  height: 100%;
  vertical-align: middle;
}

.contacts .form__inputs_vertical .form__submit {
  margin-top: 30px;
}

.contacts .form__button {
  color: #ffffff;
  background-color: #0379ff;
  --border-width: 0px;
  border-style: none !important;
  border-radius: 30px;
  box-shadow: none !important;
  transition-duration: 0.2s;
  transition-property: background-color, color, border-color, box-shadow, opacity, transform, gap;
  transition-timing-function: ease-in-out;
}

@media (hover: hover) {
  .lead-form .form__button:hover,
  .lead-form .form__button:focus-visible,
  .contacts .form__button:hover,
  .contacts .form__button:focus-visible {
    background-color: #00a2ff !important;
  }
}

@media screen and (max-width: 960px) {
  .contacts .form__group,
  .contacts .form__field {
    display: block;
    width: 100%;
  }

  .contacts .form__group {
    margin-bottom: 25px;
  }

  .contacts .form__submit {
    margin-top: 0;
  }
}

@media screen and (max-width: 640px) {
  .contacts .form__submit,
  .contacts .submit {
    width: 100%;
  }

  .contacts .form__submit {
    padding-bottom: 20px;
  }

  .contacts .form__field textarea {
    padding-top: 12px;
  }
}
