/* ============================================================
   Vá Contact Form 7 cho khớp markup gốc.

   CF7 bọc mỗi control trong <span class="wpcf7-form-control-wrap">. Ở bản tĩnh,
   <input> là CON TRỰC TIẾP của .field (grid) / .foot-nl (flex) nên tự giãn hết
   chiều ngang. Có span chen vào, input tụt về width auto -> co lại.
   Ba dòng dưới khôi phục đúng dòng chảy cũ, KHÔNG đụng tới style của input.
   ============================================================ */
.wpcf7-form-control-wrap{ display:block; }
/* input/textarea là inline-block -> trong span (block) sinh khoảng trắng baseline
   ~6px dưới đáy. Bản tĩnh không có span nên không có khoảng này. */
.wpcf7-form-control-wrap > input,
.wpcf7-form-control-wrap > textarea,
.wpcf7-form-control-wrap > select{ display:block; }

/* .field: label + input là 2 ô của grid gap:8px */
.field .wpcf7-form-control-wrap input,
.field .wpcf7-form-control-wrap textarea{ width:100%; }

/* CF7 luôn xuất rows="10" cho textarea -> cao 224px, trong khi bản tĩnh không có
   rows nên chỉ ăn min-height:140px. Ép đúng 140px, vẫn giữ resize:vertical. */
.field .wpcf7-form-control-wrap textarea{ height:140px; }

/* .foot-nl: input flex:1 cạnh nút */
.foot-nl .wpcf7-form-control-wrap{ flex:1; min-width:0; }
.foot-nl .wpcf7-form-control-wrap input{ width:100%; }

/* .lh là grid 2 cột — wrapper .wpcf7 thay chỗ <form> làm ô thứ nhất */
.lh > .wpcf7{ min-width:0; }

/* Thông báo lỗi/thành công của CF7 — dùng lại tông màu của layout */
.wpcf7-not-valid-tip{ font-size:12.5px; font-weight:600; color:#FA3163; margin-top:6px; }
.wpcf7-response-output{ font-size:13.5px; font-weight:600; line-height:1.5; margin:14px 0 0;
  padding:12px 16px; border-radius:12px; border:1px solid rgba(20,23,51,.12); }
.wpcf7 form.sent .wpcf7-response-output{ border-color:#0F9E8C; color:#0F9E8C; background:rgba(15,158,140,.08); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output{ border-color:#FA3163; color:#FA3163; background:rgba(250,49,99,.07); }
.foot-nl .wpcf7-response-output,
.nw-nl .wpcf7-response-output{ flex-basis:100%; }
.nw-nl .wpcf7-response-output{ color:#fff; border-color:rgba(255,255,255,.3); }

/* Modal ứng tuyển: nút submit nằm NGOÀI <form> (dùng thuộc tính form=), CF7 vẫn
   nhận vì nó lắng nghe sự kiện submit của chính form. */
.am-body .wpcf7-form-control-wrap input[type=file]{ display:none; }
.am-body .wpcf7-spinner{ display:none; }
