.footer {
  width: 100%;
  padding-top: 240px;
}

.footer__inner {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.footer .contact-form {
  width: 95vw;
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.2);
  border-radius: 32px;
  padding: 40px 20px;
  position: relative;
  top: -150px;
}

.footer .footer__content {
  position: relative;
  top: -50px;
}

.footer .footer__content a {
  color: inherit;
  text-decoration: none;
}

.footer .contact-form__submit {
  width: 100%;
  margin-top: 32px;
}

.footer .contact-form__subheader {
  margin: 16px 0 64px;
}

.footer .contact-form__image {
  position: absolute;
  width: 120px;
  height: 120px;
  right: 0px;
  top: 40px;
}

.footer .links {
  list-style: none;
  color: var(--prosem-dark-color);
  text-align: center;
}

.footer .links li {
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  padding: 10px;
}

.footer .links li a {
  text-decoration: none;
  color: var(--prosem-dark-color);
}

.footer .socials {
  list-style: none;
  display: flex;
  margin: 20px 0;
  justify-content: center;
}

.footer .socials__item {
  margin: 0 10px;
}

.footer .company-info {
  font-size: 16px;
  line-height: 32px;
  color: var(--prosem-dark-color);
  text-align: center;
}

.footer .copyright {
  margin-top: 20px;
}

@media screen and (max-width: 600px) {
  .footer .contact-form .h2 {
    font-size: 32px;
  }
}

@media screen and (min-width: 600px) {
  .footer .contact-form {
    padding: 60px 40px;
    width: 500px;
  }

  .footer .contact-form__image {
    width: 160px;
    height: 160px;
    right: -60px;
  }
}

@media screen and (min-width: 860px) {
  .footer {
    padding-top: 320px;
  }

  .footer .contact-form {
    padding: 116px 96px;
    width: 655px;
    top: -240px;
  }

  .footer .footer__content {
    padding-bottom: 60px;
  }

  .footer .links {
    position: relative;
    top: -50px;
  }

  .footer .contact-form__image {
    position: absolute;
    width: 260px;
    height: 260px;
    right: -130px;
    top: 120px;
  }

  .footer .links li {
    font-size: 32px;
    line-height: 40px;
  }
}

@media screen and (min-width: 1200px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer .footer__content {
    padding: 120px 120px 160px;
  }

  .footer .links,
  .footer .company-info {
    text-align: left;
  }

  .footer .socials {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 1400px) {
  .footer .footer__content {
    top: -60px;
  }

  .footer .links {
    display: flex;
    flex-direction: column;
    column-gap: 40px;
    flex-wrap: wrap;
    max-height: 320px;
  }
}

.checkbox-wrapper .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-wrapper .wpcf7-list-item {
  margin: 0;
  padding: 0;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: auto;
  accent-color: var(--prosem-primary-color);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-wrapper .wpcf7-list-item-label {
  color: var(--prosem-light-color);
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-wrapper a {
  color: var(--prosem-primary-color);
  text-decoration: underline;
  transition: color 0.2s;
}

.checkbox-wrapper a:hover {
  color: var(--prosem-light-color);
  text-decoration: none;
}

.error-404-container {
  margin-top: var(--prosem-navbar-height);
  background-color: var(--prosem-light-color);
  color: var(--prosem-dark-color);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-404-content {
  max-width: 600px;
  width: 100%;
}

.error-404-header {
  font-size: 120px;
  font-weight: 900;
  margin: 0;
  line-height: 1;
  color: var(--prosem-primary-color);
}

.error-404-title {
  font-size: 32px;
  margin: 20px 0;
  font-weight: 700;
  color: var(--prosem-dark-color);
}

.error-404-text {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: var(--prosem-dark-color);
}

.error-404-button {
  display: inline-block;
  background-color: var(--prosem-primary-color);
  color: var(--prosem-dark-color);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s ease;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.error-404-button:hover {
  background-color: var(--prosem-dark-color);
  color: var(--prosem-primary-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .error-404-header {
      font-size: 80px;
  }
  .error-404-title {
      font-size: 24px;
  }
}

.wpcf7-not-valid-tip {
  font-size: 14px;
  margin-bottom: 12px;
}
