/* =========================
  Contact Page Layout
========================= */
.contact-page {
  padding-top: 82px; /* 仅用于避开固定 Header，确保背景色完整 */
  background-color: #f8fbff;
  min-height: 80vh;
}


/* =========================
  Contact Form 7 Custom Styles
========================= */
.contact-form-wrapper {
  max-width: 800px;
  margin: 100px auto; /* 这里使用外边距来实现您要求的上下间距 */
  text-align: left;
  background: #fff;
  padding: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.wpcf7-form p {
  margin-bottom: 24px;
}

.wpcf7-form label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 15px;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-text,
.wpcf7-textarea,
.wpcf7-select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #f8fbff;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  transition: all 0.25s ease;
}

.wpcf7-text:focus,
.wpcf7-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 159, 232, 0.1);
}

.wpcf7-textarea {
  min-height: 160px;
  resize: vertical;
}

.wpcf7-submit {
  display: block;
  margin: 0 auto;
  min-width: 200px;
  padding: 16px 32px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 24px rgba(6, 40, 74, .18);
}

.wpcf7-submit:hover {
  background: #09345f;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(6, 40, 74, .22);
}

.wpcf7-spinner {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border: 2px solid transparent !important;
  text-align: center;
}

.wpcf7-mail-sent-ok {
  background-color: #eafaf1 !important;
  border-color: #3cae6c !important;
  color: #2d8150 !important;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background-color: #fff5f5 !important;
  border-color: #ff5e5e !important;
  color: #d63031 !important;
}

.wpcf7-not-valid-tip {
  color: #d63031;
  font-size: 13px;
  font-weight: 600;
  margin-top: 5px;
  display: block;
}

@media (max-width: 767px) {
  .contact-page {
    padding-top: 56px;
  }
  .contact-form-wrapper {
    margin: 60px auto;
    padding: 28px 20px;
    border-radius: 16px;
  }
  .wpcf7-form label {
    font-size: 14px;
  }
  .wpcf7-text,
  .wpcf7-textarea,
  .wpcf7-select {
    padding: 12px 14px;
    font-size: 16px; /* 防止 iOS 自动缩放 */
  }
  .wpcf7-submit {
    width: 100%;
  }
}