.form__row {
  position: relative;
  margin-bottom: 16px;
}
@media (min-width: 1024px) {
  .form__row {
    margin-bottom: 22px;
  }
}

/* .form__label {
  display: block;
  margin-bottom: 9px;
  font-size: 16px;
} */

.form__field {
  position: relative;
}

.form__input {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0;
  color: var(--color-black);
  font-weight: normal;
  font-size: 20px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-black);
  border-radius: 0px;
  box-shadow: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s,
    box-shadow 0.15s;
  outline: none;
}
@media (min-width: 1024px) {
  .form__input {
    height: 62px;
    font-size: 24px;
  }
}

.form__placeholder {
  font-size: 20px;
  height: 42px;
  display: flex;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  line-height: 1;
  font-weight: normal;
  transition: all 0.15s;
}
.form__input:focus + .form__placeholder,
.form__input:not(:placeholder-shown) + .form__placeholder {
  font-size: 12px;
  color: #fff;
  text-transform: uppercase;
  height: 12px;
  top: -8px;
}
@media (min-width: 1024px) {
  .form__placeholder {
    height: 62px;
    font-size: 24px;
  }
  .form__input:focus + .form__placeholder,
  .form__input:not(:placeholder-shown) + .form__placeholder {
    font-size: 14px;
    height: 14px;
    top: -6px;
  }
}
@media (max-width: 1023px) {
  textarea.form__input:focus + .form__placeholder,
  textarea.form__input:not(:placeholder-shown) + .form__placeholder {
    top: -2px;
  }
}

.form__input::placeholder {
  opacity: 0 !important;
}

textarea.form__input {
  height: 120px;
  min-height: 120px;
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: top;
  resize: vertical;
  margin-top: 14px;
}
@media (min-width: 1024px) {
  textarea.form__input {
    height: 140px;
    min-height: 140px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.form__input.wpcf7-not-valid {
  border-color: red !important;
  box-shadow: 0 1px 0 red !important;
}
.form__input.wpcf7-not-valid + .form__placeholder {
  color: #ffa4a4;
}

.form__input:focus {
  border-color: var(--color-gray-5);
  box-shadow: 0 1px 0 var(--color-gray-5);
}

/* .form__helper {
  position: absolute;
  top: 0;
  right: 17px;
  color: #adb2b6;
  font-size: 24px;
  line-height: 62px;
  user-select: none;
  pointer-events: none;
} */

.wpcf7-not-valid-tip {
  display: none;
}

.form .wpcf7-spinner {
  position: absolute;
  top: 20px;
  left: 100%;
  margin-right: 0;
  margin-left: -39px;
}

.form__agree {
  font-size: 16px;
  line-height: 1.25;
  position: relative;
  padding-left: 40px;
  margin-bottom: 32px;
  margin-top: 32px;
}
.form__agree label {
  cursor: pointer;
}
.form__agree a {
  text-decoration: underline;
}
body.-notouch .form__agree a:hover {
  text-decoration: none;
}
.wpcf7-form-control-wrap {
  position: static;
}
.form__agree input[type="checkbox"],
.form__agree input[type="checkbox"] + .checkbox {
  position: absolute;
  left: 0px;
  top: 0px;
}
@media (min-width: 1024px) {
  .form__agree {
    font-size: 20px;
    margin-bottom: 40px;
    margin-top: 40px;
  }
  .form__agree input[type="checkbox"],
  .form__agree input[type="checkbox"] + .checkbox {
    top: -1px;
  }
}

.wpcf7-list-item {
  margin-left: 0;
}

input[type="checkbox"] {
  width: 24px;
  height: 24px;
}
input[type="checkbox"] + .checkbox {
  width: 24px;
  height: 24px;
  background: var(--color-black);
  display: inline-block;
  position: relative;
  border-radius: 4px;
}
input[type="checkbox"] + .checkbox::before {
  content: "";
  position: absolute;
  display: block;
  left: 8px;
  top: 2px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  width: 8px;
  height: 15px;
  transform: rotate(45deg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s, visibility 0.1s;
}
input[type="checkbox"]:checked + .checkbox::before {
  opacity: 1;
  visibility: visible;
}

.form__submit {
  position: relative;
}
.form__submit .wpcf7-spinner {
  position: absolute;
  top: 14px;
  right: 0;
  margin: 0px 12px;
}
.form__submit .btn {
  width: 100%;
}
@media (min-width: 1024px) {
  .form__submit {
    width: max-content;
  }
  .form__submit .btn {
    width: auto;
    min-width: 260px;
  }
  .form__submit .wpcf7-spinner {
    top: 18px;
  }
}

.wpcf7 form .wpcf7-response-output {
  margin: 24px 0px 0px 0;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.25;
  border-radius: 0px;
  border: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  background: #22b19c;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background: #b83a95;
}
@media (min-width: 1024px) {
  .wpcf7 form .wpcf7-response-output {
    font-size: 18px;
  }
}
@media (min-width: 1280px) {
  .wpcf7 form .wpcf7-response-output {
    margin-top: 0;
  }
}

.text-white .form__input {
  border-bottom-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}
.text-white .form__input:not([name="s"]):focus {
  border-color: var(--color-white);
  box-shadow: 0 1px 0 var(--color-white);
}

.text-white.bg-purple .form__input::placeholder {
  color: #d4bcf3;
  opacity: 1;
}
.text-white input[type="checkbox"] + .checkbox {
  background: var(--color-white);
}
.text-white input[type="checkbox"] + .checkbox::before {
  border-right: 2px solid var(--color-black);
  border-bottom: 2px solid var(--color-black);
}

@media (min-width: 768px) {
  .page-id-26 main textarea {
    height: 200px;
  }
}
@media (min-width: 1024px) {
  .page-id-26 main textarea {
    height: 160px;
  }
}
@media (min-width: 1280px) {
  .page-id-26 main textarea {
    height: 270px;
  }
}
