
.form-description:not(:last-child) {
  margin-bottom: 3rem;
}

.form-block .form-content {
  background: var(--color-secondary);
  border-radius: 0;
  justify-content: center;
  margin: 0 .9375rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.form-contact {
  padding: 3.125rem;
  position: relative;
  width: 43%;
}
.form-contact * {
  position: relative;
  z-index: 2;
}

.form {
  padding: 3.125rem 5rem 2.5rem;
  width: 57%;
}

.form-block label {
  font-size: 1rem;
  font-weight: 500;
}

.form-block input {
  height: 3.125rem;
  margin-top: .25rem;
}
.form-block input[aria-invalid=true] {
  background: #ffeeee;
}

.form-block input[type=checkbox] {
  background: #fff;
  height: 2.5rem;
  margin: 0 1.25rem 0 0;
  width: 2.5rem;
}

.form-block input[type=file] {
  border: 0 !important;
  height: auto;
  padding: .5rem 0 0;
  width: fit-content;
}

.form-block .wpcf7-acceptance label {
  align-items: center;
  display: flex;
  font-weight: 300;
}

.form input[type=submit] {
  height: auto;
  margin-top: 1rem;
  width: 100%;
}

.form-block input:not([type=submit]),
.form-block textarea {
  border: solid 1px #d5d5d5;
}
.form-block input:focus,
.form-block textarea:focus {
  border: solid 1px var(--color-primary);
}

.form textarea {
  border-radius: 0;
  height: 8.75rem;
  margin-top: .25rem;
}

.form ::placeholder {
  color: #90a2a9;
}


.form-block-title {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 1rem;
}
.form-description p {
  font-size: 1rem;
  font-weight: 300;
}

.form-title {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 2rem;
}


/* Contacts Persons */
.form-block .contacts {
  display: flex;
  flex-direction: column;
  row-gap: 3.75rem;
}

.form-block .contacts a:hover {
  text-decoration: underline;
}

.form-block .contact-person {
  align-items: center;
  display: flex;
  column-gap: 1.625rem;
  row-gap: 1.625rem;
}
.form-block .person-thumbnail {
  border-radius: 50%;
  height: 7.5rem;
  overflow: hidden;
  width: 7.5rem;
}
.form-block .person-thumbnail img {
  height: 7.5rem;
  object-fit: cover;
  width: 7.5rem;
}
.form-block .person-details {
  min-height: fit-content;
}
.form-block .person-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.form-block .person-title {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: .5rem;
}
.form-block .person-phone,
.form-block .person-phone a {
  font-size: 1rem;
  font-weight: 500;
}
.form-block .person-phone a {
  align-items: center;
  column-gap: .6875rem;
  display: flex;
}
.form-block .person-email,
.form-block .person-email a {
  font-size: .9375rem;
  font-weight: 500;
}

.form-button {
  margin-top: 3rem;
}


.form-block .form-background-image {
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}
    .form-block .form-background-image img {
      height: 100%;
      object-fit: cover;
      width: 100%;
    }




/***********/

@media (max-width: 1599px) {
  .form-block-title {
    font-size: 1.75rem;
  }
  .form-block .person-name {
    font-size: 1.125rem;
    margin-bottom: 0;
  }
}
@media (min-width: 640px) and (max-width: 1599px) {
  .form-block .wpcf7-form label {
    font-size: 1rem;
  }
  .form-block .wpcf7-form textarea::placeholder {
    font-size: 1.125rem;
  }
}


@media (max-width: 1439px) {
  .form-block .contact-person {
    column-gap: 1rem;
  }

  .form-block .person-thumbnail,
  .form-block .person-thumbnail img {
    height: 3.5rem;
    width: 3.5rem;
  }

  .form-block .person-title {
    font-size: .9375rem;
  }
  .form-block .person-phone,
  .form-block .person-phone a {
    font-size: .9375rem;
  }
  .form-block .person-email,
  .form-block .person-email a {
    font-size: .875rem;
  }

  .form-form-title {
    font-size: 1.75rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 1199px) {
  .form-block .form-wrapper {
    margin: 0 auto;
    max-width: 60vw;
  }
  .form-block .form-content {
    flex-direction: column;
  }
  .form-block .contacts {
    row-gap: 2rem;
  }
  .form-contact,
  .form {
    width: 100%;
  }
  .form-description:not(:last-child) {
    margin-bottom: 3rem;
  }
  .form-title {
    font-size: 1.375rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 1023px) {
  .form-block .form-wrapper {
    margin: 0 6rem;
    max-width: 100%;
  }
  .form-contact,
  .form-form {
    padding: 2rem;
  }
}

@media (max-width: 823px) {
  .form-block .form-wrapper {
    margin: 0 3rem;
  }
}

@media (max-width: 639px) {
  .form-block .form-content {
    border-radius: 1rem;
  }
  .form-block .form-wrapper {
    /* margin: 0 1.625rem; */
    margin: 0 1rem;
  }
  .form-contact, .form {
    padding: 1.25rem;
  }
  .form-form-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
  .form-block .person-email,
  .form-block .person-email a {
    font-size: clamp(.75rem, 3vw, .9375rem);
  }
  .form-block .form-content {
    margin: 0;
  }
  .form-block-title {
    font-size: 1.5rem;
  }
  .form-block .person-phone a svg {
    display: none;
  }
  .form-block .person-title {
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: .5rem;
    line-height: 1.3;
    margin-top: 0.2rem;
  }
  .form-description p {
    line-height: 1.5;
  }
  .form-block .person-phone, .form-block .person-phone a {
    font-size: .9rem;
  }
  .form-description:not(:last-child) {
    margin-bottom: 2rem;
  }
  .form-block input {
    height: 2.5rem;
    margin-top: .125rem;
    margin-bottom: 0.5rem;
  }
  .form-wrapper .form p {
    margin-bottom: 0.5rem;
  }


}
