/* =========================================================
   TRANG HỢP TÁC  –  dùng cho template hop-tac.php
   Mọi class có tiền tố "ht-" và mọi CSS chỉ tác động bên trong .ht,
   nên không đụng tới class / thẻ của theme.
   Mốc responsive: 849px (tablet) và 549px (mobile) – giống theme của web.
   ========================================================= */

/* =========================================================
   1. BIẾN MÀU & NỀN TẢNG  (chỉ áp dụng bên trong .ht)
   ========================================================= */
.ht {
  --blue:  #194890;   /* màu thương hiệu: nút, link, số liệu */
  --blue2: #0f3470;   /* nút khi hover */
  --tint:  #eef3fb;   /* nền nhấn nhẹ */
  --ink:   #1d2433;   /* chữ chính */
  --text:  #5b6475;   /* chữ phụ */
  --line:  #e3e8f1;   /* đường kẻ, viền */

  font: 400 16px/normal Manrope, sans-serif;
  color: var(--ink);
}

.ht, .ht *, .ht *::before, .ht *::after { box-sizing: border-box; }

/* Đặt lại kiểu mặc định của thẻ. Dùng :where() để độ ưu tiên chỉ bằng 1 class:
   thắng CSS theo thẻ của theme, nhưng vẫn nhường các class ht- bên dưới. */
.ht :where(h1, h2, h3, h4, p, ul, li, section, form, label, input, select, textarea, button) { margin: 0; }
.ht :where(ul)  { padding: 0; list-style: none; }
.ht :where(img) { display: block; max-width: 100%; height: auto; }
.ht :where(a)   { color: var(--blue); text-decoration: none; }

.ht :where(h1, h2, h3, h4) { font-family: inherit; color: var(--ink); line-height: normal; text-transform: none; letter-spacing: normal; }
.ht :where(p)   { color: var(--text); line-height: 1.65; }

/* Chữ nhấn trong câu: <mark> tô nền nửa dưới, <strong> tô xanh đậm */
.ht :where(mark) { padding: 0 2px; border-radius: 2px; background: linear-gradient(transparent 58%, #d6e4f7 58%); color: inherit; }
.ht :where(p strong, q strong) { color: var(--blue); font-weight: 600; }


/* =========================================================
   2. KHỐI DÙNG CHUNG
   ========================================================= */
.ht-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ht-sec  { padding: 80px 0; }
.ht-bg   { background: #f5f8fc; }
.ht-gray { background: #f9fafb; }

/* Nhãn nhỏ dạng viên thuốc phía trên tiêu đề */
.ht-eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px;
  border-radius: 99px; background: var(--tint);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}

/* Đầu mỗi khối: nhãn + tiêu đề + mô tả, canh giữa */
.ht-head    { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.ht-head h2 { margin-bottom: 12px; font-size: 32px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.ht-head p  { font-size: 16px; }

/* Nút bấm */
.ht-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px;
  font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none;
  transition: .2s;
}
.ht-btn img        { width: 18px; height: 18px; }
.ht-btn-fill       { background: var(--blue); color: #fff; }
.ht-btn-fill:hover { background: var(--blue2); color: #fff; }
.ht-btn-line       { background: #fff; color: var(--blue); border: 1.5px solid #c9d7ee; }
.ht-btn-line:hover { border-color: var(--blue); color: var(--blue); }

/* Ô vuông bo góc chứa icon (icon là ảnh tải lên từ ACF) */
.ht-ico     { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--tint); }
.ht-ico img { width: 24px; height: 24px; object-fit: contain; }


/* =========================================================
   3. HERO
   ========================================================= */
.ht-hero {
  position: relative; z-index: 2;
  padding: 72px 0 0;
  background: radial-gradient(circle at 95% 0, rgba(25, 72, 144, .06) 0 230px, transparent 231px),
              linear-gradient(180deg, #f2f6fc 0%, #f7f9fd 100%);
}
.ht-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }

.ht-hero .ht-eyebrow { background: #fff; border: 1px solid #d6e2f3; }
.ht-hero h1      { margin-bottom: 18px; font-size: 44px; font-weight: 600; line-height: 1.15; }
.ht-hero h1 span { color: var(--blue); }             /* dòng tiêu đề thứ hai */
.ht-hero-desc    { max-width: 620px; margin-bottom: 28px; font-size: 17px; }
.ht-hero mark    { font-weight: 600; color: var(--ink); }
.ht-acts         { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ảnh + nhãn nổi ở góc dưới trái */
.ht-hero-img       { position: relative; }
.ht-hero-img img   { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 44px rgba(25, 72, 144, .16); }
.ht-badge          { position: absolute; left: -22px; bottom: 26px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 600; color: var(--blue); box-shadow: 0 10px 24px rgba(25, 72, 144, .12); }
.ht-badge small    { display: block; font-size: 12px; font-weight: 500; color: var(--text); }

/* Dải số liệu: thẻ trắng nổi, nửa dưới tràn sang khối kế tiếp */
.ht-stats           { position: relative; z-index: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 56px 0 -56px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(25, 72, 144, .08); }
.ht-stats div       { padding: 26px 20px; border-right: 1px solid var(--line); text-align: center; }
.ht-stats div:last-child { border-right: 0; }
.ht-stats b         { display: block; font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--blue); }
.ht-stats span      { font-size: 14px; color: var(--text); }
.ht-after-hero      { padding-top: 110px; }           /* chừa chỗ cho dải số liệu tràn xuống */


/* =========================================================
   4. KHÁCH HÀNG & ĐỐI TÁC  (lưới logo)
   ========================================================= */
.ht-brands h3            { margin-bottom: 20px; font-size: 22px; font-weight: 600; letter-spacing: -.2px; text-align: center; color: #333; text-wrap: balance; }
.ht-brand-grid + h3      { margin-top: 36px; }
.ht-brand-grid           { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.ht-brand                { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 116px; padding: 10px; border-radius: 12px; background: #fff; transition: .2s; }
.ht-brand:hover          { box-shadow: 0 8px 20px rgba(25, 72, 144, .10); transform: translateY(-2px); }
.ht-brand img            { width: auto; height: 34px; max-width: 100%; object-fit: contain; }
.ht-brand small          { margin-top: 10px; font-size: 12px; color: #6a7280; }
.ht-brand-more           { background: var(--blue); font-size: 14.5px; font-weight: 600; line-height: 1.4; text-align: center; color: #fff; }


/* =========================================================
   5. MÔ HÌNH ĐỐI TÁC  (4 thẻ có ảnh)
   ========================================================= */
.ht-types      { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ht-type       { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .2s; }
.ht-type:hover { border-color: var(--blue); box-shadow: 0 10px 28px rgba(25, 72, 144, .10); transform: translateY(-3px); }

.ht-type-img         { position: relative; margin-bottom: 34px; }
.ht-type-img > img   { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ht-type-img .ht-ico { position: absolute; left: 22px; bottom: -24px; background: #fff; box-shadow: 0 6px 16px rgba(25, 72, 144, .15); }

.ht-type h3    { margin-bottom: 8px; padding: 0 22px; font-size: 18px; font-weight: 600; }
.ht-type p     { flex: 1; padding: 0 22px 12px; font-size: 14.5px; }
.ht-type-go    { display: inline-block; margin: 0 22px 22px; font-size: 14px; font-weight: 600; color: var(--blue); }
.ht-type-go:hover { color: var(--blue); text-decoration: underline; }


/* =========================================================
   6. QUYỀN LỢI  (3 nhóm, số thứ tự 01–10 chạy liên tục)
   ========================================================= */
.ht-groups        { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ht-group         { height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ht-group-h       { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; padding-bottom: 18px; border-bottom: 2px solid var(--tint); }
.ht-group-h h3    { font-size: 19px; font-weight: 600; }
.ht-group-h small { display: block; font-size: 13px; font-weight: 500; color: var(--text); }

.ht-ben            { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.ht-ben:last-child { padding-bottom: 0; border-bottom: 0; }
.ht-ben-num        { display: flex; align-items: center; justify-content: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--tint); font-size: 13px; font-weight: 600; color: var(--blue); }
.ht-ben h4         { margin-bottom: 4px; font-size: 15.5px; font-weight: 600; }
.ht-ben p          { font-size: 14px; line-height: 1.6; }
.ht-tag            { display: inline-block; margin: 6px 4px 0 0; padding: 2px 8px; border-radius: 6px; background: var(--tint); font-size: 12px; font-weight: 600; color: var(--blue); }

/* Quyền lợi nổi bật: nền xanh nhạt, số nền xanh đậm, nhãn "★ Nổi bật" */
.ht-ben.ht-hot     { margin: 6px -12px; padding: 16px 12px; border-radius: 10px; border-bottom-color: transparent; background: #f5f8fd; }
.ht-hot .ht-ben-num { background: var(--blue); color: #fff; }
.ht-star           { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--blue); font-size: 11px; font-weight: 600; color: #fff; vertical-align: 2px; }


/* =========================================================
   7. CÁC BƯỚC  (số trong vòng tròn tự sinh bằng CSS counter)
   ========================================================= */
.ht-steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 960px; margin: 0 auto; counter-reset: ht-step; }
.ht-step  { position: relative; padding: 0 18px; text-align: center; counter-increment: ht-step; }

/* Vòng tròn số */
.ht-step::before {
  content: counter(ht-step);
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--blue); font-size: 22px; font-weight: 600; color: #fff;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line);
}
/* Đường gạch nối sang bước kế tiếp */
.ht-step::after {
  content: ""; position: absolute; top: 28px; left: 50%; z-index: 0;
  width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 14px);
}
.ht-step:last-child::after { display: none; }

.ht-step h4 { margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.ht-step p  { font-size: 14px; }
.ht-step a, .ht-step a:hover { font-weight: 600; color: var(--blue); }
.ht-center  { margin-top: 36px; text-align: center; }


/* =========================================================
   8. ĐỐI TÁC NÓI GÌ
   ========================================================= */
.ht-tes  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ht-te   { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ht-te.ht-hl { border-color: #c9d7ee; background: #f2f6fc; }      /* thẻ nổi bật */

.ht-te q         { display: block; flex: 1; margin-bottom: 18px; font-size: 15px; line-height: 1.65; color: var(--ink); quotes: none; }
.ht-te q::before { content: "“"; display: block; margin-bottom: 6px; font-size: 44px; font-weight: 600; line-height: .6; color: var(--blue); }
.ht-te q strong  { color: var(--ink); background: linear-gradient(transparent 62%, #e3ecf9 62%); }

.ht-who       { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.ht-who img   { width: 46px; height: 46px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.ht-who b     { display: block; font-size: 15px; }
.ht-who small { font-size: 13px; color: var(--text); }


/* =========================================================
   9. ĐĂNG KÝ  (form do Contact Form 7 in ra)
   ========================================================= */
.ht-reg          { background: linear-gradient(180deg, #f7f9fd, #eef3fb); scroll-margin-top: 90px; }
.ht-reg .ht-head { margin-bottom: 28px; }

.ht-quick     { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--text); }
.ht-quick a   { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #d6e2f3; border-radius: 99px; background: #fff; font-weight: 600; }
.ht-quick a, .ht-quick a:hover { color: var(--blue); }
.ht-quick img { width: 16px; height: 16px; }

.ht-reg-card { max-width: 820px; margin: 0 auto; padding: 32px 36px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(25, 72, 144, .08); }

/* Lưới form 2 cột. Contact Form 7 tự bọc <p> và chèn <br>: cho <p> "tan" ra, ẩn <br>. */
.ht-cf       { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ht-cf p     { display: contents; line-height: inherit; color: inherit; }
.ht-cf br    { display: none; }
.ht-cf .wpcf7-form-control-wrap { display: block; }
.ht-full     { grid-column: 1 / -1; }
.ht-cf label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }

/* Ô nhập: viết ".ht .ht-cf …" để thắng CSS input[type=…] sẵn có của theme */
.ht .ht-cf input:not([type=file], [type=radio], [type=checkbox], [type=submit]),
.ht .ht-cf select,
.ht .ht-cf textarea {
  width: 100%; height: auto; margin: 0; padding: 12px 14px;
  border: 1px solid #e3e8f1; border-radius: 8px; box-shadow: none;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 14.5px; font-weight: 500;
}
.ht .ht-cf select   { margin-top: 6px; }
.ht .ht-cf textarea { height: 90px; min-height: 90px; margin-top: 6px; }
.ht .ht-cf input:focus, .ht .ht-cf select:focus, .ht .ht-cf textarea:focus { border-color: var(--blue); outline: 0; box-shadow: none; }

/* Chọn hình thức hợp tác: nút radio hiển thị thành 4 ô bấm */
.ht-chips b              { display: block; margin-bottom: 8px; font-size: 13px; color: var(--ink); }
.ht-chips .wpcf7-radio   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ht-chips .wpcf7-list-item { margin: 0; }
.ht-chips label          { position: relative; display: block; cursor: pointer; }
.ht .ht-chips input      { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.ht-chips .wpcf7-list-item-label {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 10px;
  border: 1.5px solid #e3e8f1; border-radius: 10px; background: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--text);
  transition: .15s;
}
.ht-chips label:hover .wpcf7-list-item-label { border-color: #c9d7ee; color: var(--blue); }
.ht-chips input:checked + .wpcf7-list-item-label { border-color: var(--blue); background: var(--tint); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.ht-chips input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Khối đính kèm hồ sơ (chỉ hiện khi chọn hình thức ghi ở data-show) */
.ht-up       { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; border: 1.5px dashed #c9d7ee; border-radius: 12px; background: #f5f8fd; }
.ht-up b     { grid-column: 1 / -1; font-size: 14px; color: var(--ink); }
.ht-up small { grid-column: 1 / -1; margin-top: -8px; font-size: 12px; font-weight: 500; color: var(--text); }
.ht-cf .ht-up-item { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.ht-up input[type=file] { display: block; width: 100%; font-size: 12px; color: var(--text); }
.ht-up input[type=file]::file-selector-button { margin-right: 8px; padding: 6px 10px; border: 0; border-radius: 6px; background: var(--tint); font-weight: 600; color: var(--blue); cursor: pointer; }

/* Nút gửi */
.ht .ht-cf [type=submit] {
  width: auto; height: auto; min-height: 0; margin: 4px 0 0; padding: 14px 28px;
  border: 0; border-radius: 10px; box-shadow: none;
  background: var(--blue); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; line-height: normal;
  text-transform: none; letter-spacing: normal;
  cursor: pointer;
}
.ht .ht-cf [type=submit]:hover { background: var(--blue2); color: #fff; box-shadow: none; }

/* Thông báo của Contact Form 7 */
.ht-cf .wpcf7-spinner                 { display: none; }
.ht-reg-card form.submitting .wpcf7-spinner { display: inline-block; vertical-align: middle; }
.ht-cf .wpcf7-not-valid-tip           { margin-top: 4px; font-size: 12px; font-weight: 500; }
.ht .ht-reg-card .wpcf7-response-output { margin: 14px 0 0; padding: 10px 14px; border-width: 1px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }


/* =========================================================
   10. TABLET  (≤ 849px)
   ========================================================= */
@media (max-width: 849px) {
  .ht-head    { margin-bottom: 28px; }
  .ht-head h2 { font-size: 26px; }

  /* Hero: 1 cột, nút giãn đều */
  .ht-hero       { padding-top: 48px; }
  .ht-hero h1    { font-size: 32px; }
  .ht-hero-grid  { grid-template-columns: 1fr; gap: 28px; }
  .ht-acts .ht-btn { flex: 1 1 auto; justify-content: center; }
  .ht-badge      { left: 12px; bottom: 12px; padding: 8px 12px; font-size: 12.5px; }
  .ht-stats div  { padding: 18px 8px; }
  .ht-stats span { font-size: 12px; }
  .ht-after-hero { padding-top: 90px; }

  .ht-brand-grid { grid-template-columns: repeat(4, 1fr); }
  .ht-types      { grid-template-columns: repeat(2, 1fr); }

  .ht-groups     { grid-template-columns: 1fr; }
  .ht-group      { margin-bottom: 20px; padding: 22px; }
  .ht-ben.ht-hot { margin: 6px -8px; padding: 14px 8px; }

  /* Các bước xếp dọc, bỏ đường gạch nối */
  .ht-steps      { grid-auto-flow: row; row-gap: 28px; }
  .ht-step::after { display: none; }

  .ht-tes        { grid-template-columns: 1fr; }
  .ht-up         { grid-template-columns: 1fr; }
}


/* =========================================================
   11. MOBILE  (≤ 549px)
   ========================================================= */
@media (max-width: 549px) {
  .ht-head h2 { font-size: 22px; }
  .ht-head p  { font-size: 14.5px; }

  .ht-hero h1    { font-size: 28px; }
  .ht-stats      { margin-top: 36px; }
  .ht-stats div  { padding: 14px 4px; }
  .ht-stats b    { font-size: 20px; }
  .ht-stats span { display: block; font-size: 11.5px; line-height: 1.35; }

  .ht-brands h3  { font-size: 18px; }
  .ht-brand-grid { grid-template-columns: repeat(3, 1fr); }
  .ht-brand      { height: 96px; }
  .ht-brand-more { grid-column: 1 / -1; height: 52px; }

  /* Thẻ mô hình: ảnh nhỏ bên trái, chữ bên phải */
  .ht-types      { grid-template-columns: 1fr; gap: 14px; }
  .ht-type       { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto 1fr auto; column-gap: 14px; padding: 12px; }
  .ht-type-img   { grid-row: 1 / 4; margin: 0; }
  .ht-type-img > img { height: 100%; min-height: 120px; aspect-ratio: auto; border-radius: 10px; }
  .ht-type-img .ht-ico { display: none; }
  .ht-type h3    { margin: 2px 0 4px; padding: 0; font-size: 16px; }
  .ht-type p     { padding: 0 0 6px; font-size: 13.5px; line-height: 1.5; }
  .ht-type-go    { margin: 0; font-size: 13.5px; }

  .ht-step::before { width: 48px; height: 48px; font-size: 19px; }
  .ht-te         { padding: 20px; }

  /* Form 1 cột, ô chọn hình thức 2 cột, nút gửi tràn ngang */
  .ht-reg-card   { padding: 20px 16px; border-radius: 14px; }
  .ht-cf         { grid-template-columns: 1fr; }
  .ht-chips .wpcf7-radio { grid-template-columns: 1fr 1fr; }
  .ht-chips .wpcf7-list-item-label { min-height: 44px; font-size: 13px; }
  .ht-up         { padding: 12px; }
  .ht .ht-cf [type=submit] { width: 100%; }
}
