.form {
  margin-top: 150px;
}
@media screen and (max-width: 767px) {
  .form {
    margin-top: 100px;
  }
}
@media screen and (max-width: 575px) {
  .form {
    margin-top: 40px;
  }
}
.form .tada-animation {
  display: inline-block;
  animation: tada 1s;
}
@keyframes tada {
  0% {
    transform: scale(1);
  }
  10%, 20% {
    transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg);
  }
  30%, 50%, 70%, 90% {
    transform: scale3d(1.1, 1.1, 1.1) rotate(3deg);
  }
  40%, 60%, 80% {
    transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
.form .spacer {
  height: 40px;
}
@media (min-width: 576px) {
  .form .spacer {
    display: none;
  }
}
.form .title {
  font-size: 34px;
  line-height: 1.58;
}
@media (max-width: 575px) {
  .form .title {
    font-size: 18px;
  }
}
.form .form-wrap {
  margin-top: 62px;
}
@media screen and (max-width: 575px) {
  .form .form-wrap {
    margin-top: 28px;
  }
}
.form .form-wrap .all-rows {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media screen and (max-width: 575px) {
  .form .form-wrap .all-rows {
    gap: 20px;
  }
}
.form .form-wrap .with-cv .form-row-bottom {
  gap: 20px;
}
@media (max-width: 991px) {
  .form .form-wrap .with-cv .form-row-bottom {
    align-items: flex-start;
    gap: 40px;
  }
}
@media (min-width: 992px) {
  .form .form-wrap .with-cv .form-row-bottom .wrapper {
    display: contents;
  }
}
@media (max-width: 991px) {
  .form .form-wrap .with-cv .form-row-bottom .wrapper {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }
}
@media (max-width: 767px) {
  .form .form-wrap .with-cv .form-row-bottom .wrapper {
    flex-direction: row-reverse;
    gap: 30px;
  }
}
@media (max-width: 380px) {
  .form .form-wrap .with-cv .form-row-bottom .wrapper {
    flex-direction: column;
  }
}
@media (min-width: 992px) {
  .form .form-wrap .with-cv .form-row-bottom .btn-wrapper {
    margin-left: auto;
  }
}
.form .form-wrap .form-row-upper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
@media screen and (max-width: 575px) {
  .form .form-wrap .form-row-upper {
    gap: 20px;
  }
}
.form .form-wrap .form-row-attach {
  min-width: 170px;
  padding-top: 22px;
}
@media (max-width: 767px) {
  .form .form-wrap .form-row-attach {
    padding-top: 0;
  }
}
.form .form-wrap .form-row-attach span input {
  display: none;
}
.form .form-wrap .form-row-attach span label {
  white-space: nowrap;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--red-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 8px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s;
}
.form .form-wrap .form-row-attach span label:hover {
  color: #c82749;
}
.form .form-wrap .form-row-attach span label:before {
  content: "";
  background-image: url("/wp-content/themes/ergotree/assets/img/spinka.svg");
  width: 20px;
  height: 20px;
  z-index: 1;
  display: flex;
}
.form .form-wrap .form-row-bottom {
  position: relative;
  display: flex;
  gap: 64px;
}
@media screen and (max-width: 767px) {
  .form .form-wrap .form-row-bottom {
    flex-direction: column;
    gap: 40px;
  }
}
@media screen and (max-width: 575px) {
  .form .form-wrap .form-row-bottom {
    gap: 24px;
  }
}
.form .form-wrap .form-row-bottom .form-row-accept {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form .form-wrap .form-row-bottom .form-row-accept .wpcf7-list-item {
  font-size: 14px;
  line-height: 1.58;
  margin: 0;
}
@media (max-width: 575px) {
  .form .form-wrap .form-row-bottom .form-row-accept .wpcf7-list-item {
    font-size: 9px;
  }
}
.form .form-wrap .form-row-bottom .form-row-accept label {
  display: flex;
  gap: 15px;
}
@media (max-width: 575px) {
  .form .form-wrap .form-row-bottom .form-row-accept label {
    align-items: center;
  }
}
.form .form-wrap .form-row-bottom .form-row-accept label input {
  position: relative;
  margin-top: 5px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  aspect-ratio: 1;
  border-radius: 2px;
  border: 1px solid var(--gray-small-min);
  transition: 0.3s;
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width: 575px) {
  .form .form-wrap .form-row-bottom .form-row-accept label input {
    margin-top: 0px;
  }
}
@media screen and (max-width: 575px) {
  .form .form-wrap .form-row-bottom .form-row-accept label input {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
  }
}
.form .form-wrap .form-row-bottom .form-row-accept label input:hover {
  background-color: var(--blue-mist);
}
.form .form-wrap .form-row-bottom .form-row-accept label input:checked {
  background-image: url("/wp-content/themes/ergotree/assets/img/check.svg");
}
@media screen and (max-width: 575px) {
  .form .form-wrap .form-row-bottom .form-row-accept label input:checked {
    background-image: none;
  }
  .form .form-wrap .form-row-bottom .form-row-accept label input:checked:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--red-500);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
  }
}
.form .form-wrap .form-row-bottom .form-row-accept label span {
  cursor: pointer;
  color: var(--gray-small-min);
}
.form .form-wrap .form-row-bottom .form-row-accept .wpcf7-not-valid label input {
  background-color: var(--red-hover-light);
}
.form .form-wrap .form-row-bottom .form-row-accept .wpcf7-not-valid-tip {
  font-size: 12px;
  line-height: 19px;
  color: var(--red-500);
  margin-left: 33px;
  margin-top: 4px;
}
.form .form-wrap .form-row-bottom .btn-wrapper input {
  padding: 22px 65px;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 575px) {
  .form .form-wrap .form-row-bottom .btn-wrapper input {
    font-size: 13px;
    padding: 16px 55px;
  }
}
.form .form-wrap .form-row-bottom .btn-wrapper .wpcf7-spinner {
  position: absolute;
  bottom: 0;
  background-color: var(--red-500-hover-light);
  right: 0;
  margin: 0;
  padding: 0;
}
.form .form-wrap .form-row {
  display: flex;
  align-items: center;
  gap: 40px;
}
@media screen and (max-width: 575px) {
  .form .form-wrap .form-row {
    flex-direction: column;
    gap: 20px;
  }
}
.form .form-wrap .form-row .single-input {
  width: 100%;
}
.form .form-wrap .form-row .single-input span input:focus ~ label,
.form .form-wrap .form-row .single-input span textarea:focus ~ label {
  font-size: 12px;
  top: -19px;
}
.form .form-wrap .form-row .single-input span input:not(:-moz-placeholder-shown) ~ label, .form .form-wrap .form-row .single-input span textarea:not(:-moz-placeholder-shown) ~ label {
  font-size: 12px;
  top: -19px;
}
.form .form-wrap .form-row .single-input span input:not(:placeholder-shown) ~ label,
.form .form-wrap .form-row .single-input span textarea:not(:placeholder-shown) ~ label {
  font-size: 12px;
  top: -19px;
}
.form .form-wrap .form-row .single-input span textarea ~ label {
  top: 13px;
}
.form .form-wrap .form-row .single-input span {
  width: 100%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.form .form-wrap .form-row .single-input span label {
  color: var(--gray-title);
  position: absolute;
  top: 8px;
  left: 30px;
  z-index: -1;
  transition: 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  font-size: 16px;
  line-height: 1.58;
}
@media (max-width: 575px) {
  .form .form-wrap .form-row .single-input span label {
    font-size: 14px;
    left: 24px;
  }
}
.form .form-wrap .form-row .single-input span input[type=color],
.form .form-wrap .form-row .single-input span input[type=date],
.form .form-wrap .form-row .single-input span input[type=datetime],
.form .form-wrap .form-row .single-input span input[type=datetime-local],
.form .form-wrap .form-row .single-input span input[type=email],
.form .form-wrap .form-row .single-input span input[type=month],
.form .form-wrap .form-row .single-input span input[type=number],
.form .form-wrap .form-row .single-input span input[type=password],
.form .form-wrap .form-row .single-input span input[type=search],
.form .form-wrap .form-row .single-input span input[type=tel],
.form .form-wrap .form-row .single-input span input[type=text],
.form .form-wrap .form-row .single-input span input[type=time],
.form .form-wrap .form-row .single-input span input[type=url],
.form .form-wrap .form-row .single-input span input[type=week],
.form .form-wrap .form-row .single-input span input,
.form .form-wrap .form-row .single-input span select:focus,
.form .form-wrap .form-row .single-input span textarea {
  font-size: 16px !important;
}
.form .form-wrap .form-row .single-input span textarea {
  padding: 13px 30px;
  border-radius: 22px;
  background: transparent;
  border: 1px solid var(--gray-title);
  resize: none;
  font-size: 16px;
  line-height: 1.58;
}
@media (max-width: 575px) {
  .form .form-wrap .form-row .single-input span textarea {
    font-size: 14px;
    padding: 8px 24px;
  }
}
.form .form-wrap .form-row .single-input span textarea::-moz-placeholder {
  color: transparent;
}
.form .form-wrap .form-row .single-input span textarea::placeholder {
  color: transparent;
}
.form .form-wrap .form-row .single-input span textarea:focus, .form .form-wrap .form-row .single-input span textarea:focus-visible, .form .form-wrap .form-row .single-input span textarea:focus-within {
  outline: none;
  color: var(--gray);
  border-color: var(--gray);
}
.form .form-wrap .form-row .single-input span textarea:-webkit-autofill, .form .form-wrap .form-row .single-input span textarea:-webkit-autofill:focus {
  -webkit-transition: background-color 600000s 0s, color 600000s 0s;
  transition: background-color 600000s 0s, color 600000s 0s;
  background-color: #fff;
  color: var(--gray-small-min);
  box-shadow: 0 0 0 1000px white inset;
  -webkit-box-shadow: 0 0 0 1000px white inset;
  -webkit-text-fill-color: var(--gray-small-min);
}
.form .form-wrap .form-row .single-input span textarea[data-autocompleted] {
  background-color: transparent !important;
}
.form .form-wrap .form-row .single-input span textarea[aria-invalid=true] {
  background-color: rgba(216, 54, 88, 0.1019607843) !important;
  border: 1px solid var(--red-500);
}
.form .form-wrap .form-row .single-input span input {
  width: 100%;
  background: transparent;
  border: none;
  border: 1px solid var(--gray-title);
  border-radius: 21px;
  padding: 8px 30px;
  color: var(--gray-small-min);
  font-size: 16px;
  line-height: 1.5;
  transition: 0.3s ease-out;
}
@media screen and (min-width: 576px) {
  .form .form-wrap .form-row .single-input span input {
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
}
@media (max-width: 575px) {
  .form .form-wrap .form-row .single-input span input {
    font-size: 14px;
    padding: 8px 24px;
  }
}
.form .form-wrap .form-row .single-input span input::-moz-placeholder {
  color: transparent;
}
.form .form-wrap .form-row .single-input span input::placeholder {
  color: transparent;
}
.form .form-wrap .form-row .single-input span input:focus, .form .form-wrap .form-row .single-input span input:focus-visible, .form .form-wrap .form-row .single-input span input:focus-within {
  outline: none;
  color: var(--gray);
  border-color: var(--gray);
}
.form .form-wrap .form-row .single-input span input:-webkit-autofill, .form .form-wrap .form-row .single-input span input:-webkit-autofill:focus {
  -webkit-transition: background-color 600000s 0s, color 600000s 0s;
  transition: background-color 600000s 0s, color 600000s 0s;
  background-color: #fff;
  color: var(--gray-small-min);
  box-shadow: 0 0 0 1000px white inset;
  -webkit-box-shadow: 0 0 0 1000px white inset;
  -webkit-text-fill-color: var(--gray-small-min);
}
.form .form-wrap .form-row .single-input span input[data-autocompleted] {
  background-color: transparent !important;
}
.form .form-wrap .form-row .single-input span input[aria-invalid=true] {
  background-color: rgba(216, 54, 88, 0.1019607843) !important;
  border-color: var(--red-500);
}
.form .form-wrap .form-row span.wpcf7-not-valid-tip {
  font-size: 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}
.form .form-wrap .form-row span.wpcf7-not-valid-tip:before {
  content: "";
  display: flex;
  background-image: url("/wp-content/themes/ergotree/assets/img/warning.svg");
  background-repeat: no-repeat;
  width: 13px;
  height: 12px;
}
.form .wpcf7-response-output {
  display: none;
}
.form form.invalid .wpcf7-response-output,
.form form.failed .wpcf7-response-output {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  color: var(--red-500);
  font-size: 12px;
  line-height: 19px;
  margin-top: 30px;
}
.form .outer-wrapper {
  display: none;
}
.form .right .small-title {
  margin-bottom: 20px;
}
.form .single-block {
  display: flex;
  gap: 25px;
  align-items: center;
}
.form .single-block .text .label {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.58;
}
@media (max-width: 575px) {
  .form .single-block .text .label {
    font-size: 14px;
  }
}
.form .single-block .text a {
  font-size: 16px;
  line-height: 1.58;
  color: var(--gray);
  text-decoration: none;
}
@media (max-width: 575px) {
  .form .single-block .text a {
    font-size: 12px;
  }
}
.form input[type=submit] {
  height: -moz-fit-content;
  height: fit-content;
}