.hero__wrapper {
  width: 50%;
  max-width: calc(var(--maxScreenWidth) / 2);
  margin-left: auto;
  margin-right: initial;
}
.hero-form {
  width: 50%;
  max-width: calc(var(--maxScreenWidth) / 2);
  margin-right: auto;
  color: white;
  display: flex;
  justify-content: flex-end;
}
.hero-form .contact-form {
  display: block;
  height: 597px;
  width: 343px;
  min-width: 343px;
  padding: 25px 36px;
  background: linear-gradient(
      0deg,
      rgba(12, 99, 47, 0.76),
      rgba(12, 99, 47, 0.94)
    ),
    linear-gradient(360deg, rgba(203, 213, 11, 1) 34%, rgba(12, 99, 47, 1) 100%);

  font-family: var(--secondaryFont);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0px 1px 2px 0px #000000bf;
}
.hero-form h2 {
  font-size: var(--textFontSizeM);
  font-weight: 600;
  max-width: 269.73px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}
.wpcf7-list-item {
  margin-left: 0;
}
.wpcf7-list-item label {
  display: flex;
  align-items: center;
}
.wpcf7-list-item:has([type="checkbox"]) a {
  color: white;
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  display: block;
  padding: 9px 6.5px;
  margin-bottom: 17.5px;
  border-radius: 8px;
  border: none;
  outline: none;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--gray);
}
.contact-form__textarea {
  margin-bottom: 20px;
}
label:has(.contact-form__privacy) {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  gap: 10px;
  font-family: var(--secondaryFont);
  font-size: var(--textFontSizeS);
  color: white;
}
label:has(.contact-form__privacy) a {
  color: white;
  font-weight: 500px;
}
label:has(.contact-form__privacy) a:hover {
  text-decoration: underline;
}
.hero-form .button--primary {
  width: 100%;
  border-radius: 7.5px;
  text-transform: uppercase;
  box-shadow: 0px 1px 2px 0px #000000bf;
}

.hero-form__feedback {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 35px;
}
.hero-form__feedback img {
  width: 331px;
  transform: translateX(12px);
}
.hero-form__feedback p {
  font-size: var(--textFontSizeXL);
  width: 325px;
  margin-right: 5px;
  line-height: 1;
  text-align: center;
}

.contact-form .form.loading .contact-form__input,
.contact-form .form.loading .contact-form__textarea,
.contact-form .form.loading .contact-form__privacy,
.contact-form .form.loading .button--primary {
  opacity: 0.9;
  pointer-events: none;
}
.contact-form .form.loading .button--primary {
  background: var(--green);
  cursor: wait !important;
}
@media (max-width: 1280px) {
  .hero-form__feedback img {
    width: 300px;
  }
  .hero-form .contact-form {
    height: auto;
    padding: 25px 30px 50px;
  }
  .hero-form__feedback p {
    font-size: calc(var(--textFontSizeXL) - 10px);
    width: 300px;
  }
  .hero-form h2 {
    font-size: calc(var(--textFontSizeM) - 2px);
  }
}
@media (max-width: 850px) {
  .hero-form__feedback {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .hero__wrapper {
    width: 100%;
    max-width: initial;
  }
  .hero__wrapper > small {
    width: 100%;
    max-width: initial;
    text-align: center;
  }
  .hero__wrapper > h1 {
    width: 100%;
    max-width: initial;
    text-align: center;
    font-size: calc(var(--textFontSizeXL) - 5px);
  }
  .hero__feedback {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .hero-form {
    width: 100%;
    max-width: initial;
    justify-content: center;
  }
  .hero-form h2 {
    font-size: var(--textFontSizeM);
  }
}
