/* ==========================================================
   Tích hợp WordPress: thanh quản trị, Contact Form 7
   (giữ form hiển thị đúng như bản thiết kế)
   ========================================================== */

/* Thanh quản trị khi đăng nhập: đẩy header cố định xuống */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ---------- Contact Form 7 ---------- */
/* Lớp bọc của CF7 không tham gia bố cục → form như phần tử con trực tiếp */
.wpcf7,
.wpcf7-form-control-wrap,
.wpcf7-acceptance,
.wpcf7-acceptance .wpcf7-list-item {
  display: contents;
}
.wpcf7 .hidden-fields-container,
.wpcf7-not-valid-tip,
.wpcf7-spinner,
.wpcf7-response-output,
.wpcf7 .screen-reader-response {
  display: none !important;
}
.wpcf7 .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
}
.wpcf7-acceptance .wpcf7-list-item-label { display: none; }

/* Gửi lỗi (máy chủ không gửi được mail, spam…) → hiện thông báo dưới nút */
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  display: block !important;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--do-bat-buoc);
}
.wpcf7-form.submitting button[type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}

/* Chữ chỉ dành cho trình đọc màn hình */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
