/* Footer form: make Contact Form 7 output match the static front-end footer exactly.
   Front-end reference (前端页面.zip):
   - textarea 视觉上是 36px 单行输入框（class=formbit）
   - 上下间距仅 5px
   - 提交按钮（class=sumbit）高度 36px、宽度 100%
*/

/* Reset CF7 default spacing wrappers */
footer .book .wpcf7{ margin:0 !important; }
footer .book .wpcf7 form{ margin:0 !important; }
footer .book .wpcf7 form p{ margin:0 !important; padding:0 !important; }


/* When form is built without <p> tags (recommended), CF7 still wraps controls in spans.
   Normalize wrappers to avoid extra vertical gaps. */
footer .book .wpcf7 .footer-msg-form{ margin:0 !important; padding:0 !important; }
footer .book .wpcf7 .footer-msg-form .wpcf7-form-control-wrap{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
}
footer .book .wpcf7 .footer-msg-form br{ display:none !important; }
/* exact gap between input and button like static page */
footer .book .wpcf7 .footer-msg-form input.formbit,
footer .book .wpcf7 .footer-msg-form textarea.formbit{
  margin:0 !important;
}
footer .book .wpcf7 .footer-msg-form input.sumbit,
footer .book .wpcf7 .footer-msg-form .wpcf7-submit{
  margin-top:5px !important;
}

/* Create the same 5px gap as the static <ul><li> structure */
footer .book .wpcf7 form p:first-of-type{ margin-bottom:5px !important; }
footer .book .wpcf7 form p + p{ margin-top:0 !important; }

/* Form controls */
footer .book .wpcf7 textarea.formbit,
footer .book .wpcf7 input.formbit,
footer .book .wpcf7 input[type="text"].formbit,
footer .book .wpcf7 input[type="email"].formbit,
footer .book .wpcf7 input[type="tel"].formbit{
  width:100% !important;
  height:36px !important;
  line-height:36px !important;
  padding:0 10px !important;
  border:0 !important;
  outline:none !important;
  background:#fff !important;
  box-sizing:border-box !important;
  font-size:12px !important;
  font-family:"微软雅黑", "Microsoft YaHei", sans-serif !important;
  color:#333 !important;
  border-radius:0 !important;
}

/* textarea in footer is rendered as single-line input in the static page */
footer .book .wpcf7 textarea.formbit{
  resize:none !important;
  overflow:hidden !important;
  white-space:nowrap !important;
}

/* Placeholder color like static page */
footer .book .wpcf7 textarea.formbit::placeholder,
footer .book .wpcf7 input.formbit::placeholder{ color:#b2b1af !important; }

/* Submit button */
footer .book .wpcf7 input.sumbit,
footer .book .wpcf7 input[type="submit"],
footer .book .wpcf7 .wpcf7-submit{
  width:100% !important;
  height:36px !important;
  line-height:36px !important;
  padding:0 10px !important;
  border:0 !important;
  outline:none !important;
  background-color:#b2b1af !important;
  color:#fff !important;
  font-size:14px !important;
  text-align:center !important;
  cursor:pointer !important;
  border-radius:0 !important;
}

/* Remove CF7 validation tip spacing from affecting footer height */
footer .book .wpcf7-not-valid-tip,
footer .book .wpcf7-response-output{
  display:none !important;
}
