.contact-block {
  padding: 0 0 104px;
}

.hf {
  border-top: 0;
  padding-top: 0;
}

.hf__grid {
  background:
    linear-gradient(
      110deg,
      #f7fcff 0%,
      #e8f6ff 18%,
      #d6eeff 42%,
      #bfe3ff 70%,
      #add7ff 100%
    );
  border-radius: 0 0 22px 22px;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 52px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.hf__left {
  padding-top: clamp(4px, 1vw, 12px);
}

.hf__title {
  margin: 0 0 14px;
  font-family: 'Abril Fatface', serif;
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0d2640;
}

.hf__sub {
  margin: 0;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  color: #1a3050;
}

.hf__right {
  display: flex;
  flex-direction: column;
}

.hf__field {
  margin: 0;
}

.hf input[type="text"],
.hf input[type="tel"],
.hf input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: none;
  background: #ffffff;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #0d2640;
  outline: none;
  box-sizing: border-box;
}

.hf textarea {
  width: 100%;
  min-height: 90px;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  background: #ffffff;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #0d2640;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
}

.hf input::placeholder,
.hf textarea::placeholder {
  color: rgba(13,38,64,.4);
}

.hf input:focus,
.hf textarea:focus {
  box-shadow: 0 0 0 2px rgba(13,38,64,.15);
}

.hf__note {
  margin: 0;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: #1a3050;
}

.hf__note a {
  color: #0d2640;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hf__btnwrap {
  margin-top: 4px;
}

.hf .hf__btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: rgba(140, 185, 230, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #0d2640;
  cursor: pointer;
  transition: background 180ms ease;
}

.hf .hf__btn:hover {
  background: rgba(140, 185, 230, 0.9);
}

.hf .wpcf7-spinner {
  margin-left: 10px;
}

.hf .wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 6px;
}

.hf .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 14px;
}

@media (max-width: 860px) {
  .hf__grid {
    background:
      linear-gradient(
        140deg,
        #f7fcff 0%,
        #e4f4ff 28%,
        #cbe9ff 64%,
        #add7ff 100%
      );
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hf__left {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .contact-block {
    padding: 0 0 48px;
  }

  .hf__grid {
    background:
      linear-gradient(
        150deg,
        #f7fcff 0%,
        #e3f4ff 30%,
        #c8e8ff 70%,
        #add7ff 100%
      );
    border-radius: 0 0 18px 18px;
    padding: 32px 20px;
  }

  .hf__title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .hf input[type="text"],
  .hf input[type="tel"],
  .hf input[type="email"] {
    height: 52px;
    border-radius: 12px;
  }

  .hf textarea {
    border-radius: 12px;
  }

  .hf .hf__btn {
    height: 54px;
    border-radius: 12px;
  }
}

.contact-block .wpcf7 {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.contact-block .wpcf7 form {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.contact-block .wpcf7,
.contact-block .wpcf7 * {
  box-sizing: border-box;
}