/* Bộ tìm HLV dùng chung (trang chủ + /tim/). MỌI luật đều bọc trong .tm để không đụng Tailwind của trang chủ:
   preflight Tailwind có [type=button]{background:transparent} cùng độ ưu tiên với 1 class → phải dùng ".tm .x" (2 class). */
.tm{--cream:#FAF5EE;--soft:#F3EBDD;--tint:#F6E9DF;--terra:#C67B5C;--terrad:#A9603F;--ink:#2E2A26;--inks:#6E655A;--inkf:#A39A8D;--line:#EAE0D2;--sage:#5F7A4E;--sagebg:#EEF3E8;--gold:#EDB264;--err:#B3412F;
  font-family:"Be Vietnam Pro",system-ui,sans-serif;color:var(--ink);line-height:1.45;-webkit-font-smoothing:antialiased}
.tm *,.tm *::before,.tm *::after{box-sizing:border-box}
.tm .tm-serif{font-family:"Playfair Display",Georgia,serif}
.tm button{font-family:inherit;color:inherit;cursor:pointer}
.tm svg.tm-i{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;display:inline-block}
.tm [hidden]{display:none!important}

/* HERO: nền trơn, chỉ logo nhận diện */
.tm .tm-hero{position:relative;display:flex;flex-direction:column;align-items:center;padding:var(--tm-hero-pt,18px) 16px 30px}
.tm .tm-logo{align-self:center;display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);margin:0 0 22px}
.tm .tm-mark{width:46px;height:46px;flex:none;filter:drop-shadow(0 6px 10px rgba(200,84,44,.28))}
.tm .tm-wm{display:flex;flex-direction:column;line-height:1.05;text-align:left}
.tm .tm-wm b{font-size:24px;font-weight:800;letter-spacing:-.2px;color:var(--ink)}
.tm .tm-wm small{font-size:11px;font-weight:700;color:var(--terrad);letter-spacing:.6px;text-transform:uppercase;margin-top:4px}
.tm .tm-in{width:100%;max-width:680px;text-align:center}
/* TẶNG 30 NGÀY: khối to, nổi bật nhất màn đầu */
.tm .tm-gift{display:inline-flex;align-items:center;gap:14px;background:linear-gradient(105deg,#F4B55B 0%,#E58A4E 55%,#C8542C 100%);color:#fff;border-radius:22px;padding:14px 24px 14px 18px;box-shadow:0 18px 34px -16px rgba(200,84,44,.85);margin:0 0 18px;position:relative;text-align:left}
.tm .tm-gift::after{content:"";position:absolute;inset:5px;border:1.5px dashed rgba(255,255,255,.55);border-radius:17px;pointer-events:none}
.tm .tm-giftic{font-size:clamp(34px,7vw,46px);line-height:1}
.tm .tm-gifttx{display:flex;flex-direction:column}
.tm .tm-gifttx b{font-size:clamp(30px,7.4vw,46px);font-weight:900;line-height:1;letter-spacing:.3px;text-shadow:0 2px 0 rgba(120,40,10,.25)}
.tm .tm-gifttx span{font-size:clamp(14px,2.8vw,17px);font-weight:700;margin-top:4px;opacity:.95}
.tm .tm-h1{color:var(--ink);font-size:clamp(28px,6vw,44px);line-height:1.12;margin:0 0 6px;font-weight:800;text-wrap:balance}
.tm .tm-sub{color:var(--inks);font-size:clamp(14.5px,2.2vw,17px);margin:0 auto 20px;max-width:520px}

/* KHUNG TÌM: 2 câu hỏi hiện sẵn, câu 1 tích nhiều ô, câu 2 chọn một */
.tm .tm-box{background:#fff;border:1px solid var(--line);border-radius:26px;padding:20px 16px 16px;box-shadow:0 26px 60px -34px rgba(90,50,25,.45);text-align:left;max-width:680px;margin:0 auto}
.tm .tm-q{border:none;margin:0 0 18px;padding:0;min-width:0}
.tm .tm-q legend{font-size:16.5px;font-weight:800;color:var(--ink);margin:0 0 10px;padding:0;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.tm .tm-q legend em{font-style:normal;font-size:12.5px;font-weight:600;color:var(--inks);background:var(--soft);border-radius:999px;padding:2px 9px}
.tm .tm-n{width:24px;height:24px;border-radius:50%;background:var(--terra);color:#fff;font-size:12.5px;font-weight:800;display:inline-grid;place-items:center;flex:none}
.tm .tm-cks{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tm .tm-rds{display:grid;grid-template-columns:1fr;gap:8px}
.tm .tm-ck,.tm .tm-rd{position:relative;display:flex;align-items:center;gap:10px;border:1.5px solid var(--line);background:var(--cream);border-radius:15px;padding:11px 12px;cursor:pointer;transition:.12s;user-select:none;min-width:0}
.tm .tm-ck:hover,.tm .tm-rd:hover{border-color:var(--terra)}
.tm .tm-ck input,.tm .tm-rd input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.tm .tm-tick{width:22px;height:22px;border-radius:7px;border:2px solid #CDBFAE;background:#fff;display:grid;place-items:center;flex:none;transition:.12s}
.tm .tm-tick svg.tm-i{width:15px;height:15px;stroke-width:3.2;color:#fff;opacity:0}
.tm .tm-dot{width:22px;height:22px;border-radius:50%;border:2px solid #CDBFAE;background:#fff;flex:none;transition:.12s;position:relative}
.tm .tm-ckic{width:34px;height:34px;border-radius:10px;background:var(--tint);color:var(--terrad);display:grid;place-items:center;flex:none}
.tm .tm-ckic svg.tm-i{width:21px;height:21px}
.tm .tm-cktx{display:flex;flex-direction:column;min-width:0}
.tm .tm-cktx b{font-size:15px;font-weight:800;color:var(--ink);line-height:1.2}
.tm .tm-cktx small{font-size:12.5px;color:var(--inks);font-weight:500;margin-top:2px;line-height:1.25}
.tm .tm-ck.tm-on,.tm .tm-rd.tm-on{border-color:var(--terra);background:var(--tint);box-shadow:0 8px 18px -14px rgba(166,96,63,.9)}
.tm .tm-ck input:checked~.tm-tick{background:var(--terra);border-color:var(--terra)}
.tm .tm-ck input:checked~.tm-tick svg.tm-i{opacity:1}
.tm .tm-rd input:checked~.tm-dot{border-color:var(--terra)}
.tm .tm-rd input:checked~.tm-dot::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--terra)}
.tm .tm-ck input:focus-visible~.tm-tick,.tm .tm-rd input:focus-visible~.tm-dot{outline:3px solid rgba(198,123,92,.45);outline-offset:2px}
.tm .tm-area{display:none;background:var(--cream);border:2px solid var(--terra);border-radius:18px;padding:12px 14px;margin-bottom:4px}
.tm .tm-area.tm-show{display:block;animation:tmfade .25s}
.tm .tm-area:focus-within{background:#fff}
.tm .tm-area label{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:800;color:var(--ink);margin-bottom:6px}
.tm .tm-arow{display:flex;gap:8px;align-items:center}
.tm .tm-arow input{flex:1}
.tm .tm-gps{flex:none;border:2px solid var(--terra);background:#fff;color:var(--terrad);font-weight:800;font-size:13px;border-radius:999px;padding:7px 11px;white-space:nowrap}
.tm .tm-gps[disabled]{opacity:.6}
.tm .tm-gpsmsg{font-size:12.5px;color:var(--sage);font-weight:600;margin-top:4px}
.tm .tm-gpsmsg.tm-warn{color:var(--err)}
.tm .tm-gpsmsg:empty{display:none}
/* bản đồ Goong */
.tm .tm-mapbox:not(:empty){margin:0 0 14px}
.tm .tm-map{height:300px;border-radius:18px;overflow:hidden;border:1px solid var(--line);position:relative;z-index:0;background:var(--soft)}
.tm .tm-mapnote{font-size:12px;color:var(--inks);margin-top:6px;text-align:center}
.tm .tm-mk{background:#fff;border:2px solid var(--terrad);color:var(--terrad);font:800 12px "Be Vietnam Pro",sans-serif;padding:3px 9px;border-radius:999px;white-space:nowrap;box-shadow:0 4px 10px -4px rgba(0,0,0,.35);cursor:default}
.tm .tm-mk.tm-mk-xa{border-color:#A39A8D;color:var(--inks)}
.tm .tm-area input{width:100%;min-width:0;border:none;background:transparent;font:600 16px "Be Vietnam Pro",sans-serif;color:var(--ink);outline:none;padding:2px 0}
.tm .tm-area input::placeholder{color:var(--inkf);font-weight:500}
.tm .tm-area input::-webkit-calendar-picker-indicator{display:none!important}
.tm .tm-go{margin-top:14px;width:100%;border:none;border-radius:20px;background:linear-gradient(100deg,var(--terra),var(--terrad));color:#fff;font-size:clamp(19px,3.4vw,23px);font-weight:800;padding:20px 16px;box-shadow:0 18px 36px -14px rgba(166,96,63,.9);transition:.15s;display:flex;align-items:center;justify-content:center;gap:10px}
.tm .tm-go:hover{transform:translateY(-2px);filter:brightness(1.05)}
.tm .tm-go svg.tm-i{width:26px;height:26px;stroke-width:2.4}
.tm .tm-note{text-align:center;font-size:12.5px;color:var(--inks);margin:10px 0 0}
.tm .tm-trust{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 16px;margin-top:16px;color:var(--inks);font-size:13px;font-weight:600}
.tm .tm-trust span{display:flex;align-items:center;gap:6px}
.tm .tm-trust svg.tm-i{width:16px;height:16px;color:var(--sage)}

/* KẾT QUẢ */
.tm .tm-res{max-width:880px;margin:0 auto;padding:0 16px 28px;animation:tmfade .35s}
@keyframes tmfade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.tm .tm-rbar{position:sticky;top:var(--tm-top,0px);z-index:30;background:rgba(250,245,238,.95);backdrop-filter:blur(8px);padding:12px 0 10px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.tm .tm-rbar .tm-sum{font-size:13.5px;color:var(--inks);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tm .tm-rbar .tm-sum b{color:var(--ink)}
.tm .tm-rbar button{flex:none;border:2px solid var(--terra);background:#fff;color:var(--terrad);font-weight:800;font-size:13.5px;border-radius:999px;padding:7px 14px}
.tm .tm-rhead{margin:16px 0 14px}
.tm .tm-rhead h2{margin:0;font-size:clamp(22px,4vw,28px);font-weight:800;line-height:1.2}
.tm .tm-rhead p{margin:5px 0 0;color:var(--inks);font-size:14px}
.tm .tm-cards{display:flex;flex-direction:column;gap:14px}
.tm .tm-card{display:grid;grid-template-columns:168px 1fr 210px;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 12px 30px -24px rgba(60,30,15,.55)}
.tm .tm-card.tm-best{border:2px solid var(--terra)}
.tm .tm-ph{position:relative;min-height:176px;background:linear-gradient(150deg,#D69A78,#A9603F)}
.tm .tm-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 18%;max-width:none}
.tm .tm-mono{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:800 64px "Playfair Display",Georgia,serif;text-shadow:0 4px 18px rgba(0,0,0,.18)}
.tm .tm-pill{position:absolute;background:#fff;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:800;box-shadow:0 4px 10px -5px rgba(0,0,0,.3)}
.tm .tm-pill.tm-vd{top:9px;right:9px;color:#B3412F}
.tm .tm-pill.tm-bestp{bottom:9px;left:9px;background:var(--terra);color:#fff}
.tm .tm-mid{padding:15px 16px;display:flex;flex-direction:column;gap:7px;justify-content:center;min-width:0}
.tm .tm-nm{font-size:18px;font-weight:800;display:flex;align-items:center;gap:7px;flex-wrap:wrap;line-height:1.25}
.tm .tm-ver{font-size:11px;font-weight:700;color:var(--sage);background:var(--sagebg);padding:2px 8px;border-radius:999px}
.tm .tm-sp{font-size:14px;color:var(--inks)}
.tm .tm-why{display:flex;flex-direction:column;gap:3px;font-size:13.5px;font-weight:600;color:var(--sage)}
.tm .tm-why .tm-no{color:var(--inks);font-weight:500}
.tm .tm-proof{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:var(--inks)}
.tm .tm-act{padding:15px 16px;display:flex;flex-direction:column;justify-content:center;gap:8px;border-left:1px dashed var(--line)}
.tm .tm-price{font-size:12px;color:var(--inks);line-height:1.35}
.tm .tm-price b{display:block;font-size:20px;color:var(--terrad);font-weight:800}
.tm .tm-cta{border:none;background:var(--terra);color:#fff;border-radius:13px;padding:12px;font-weight:800;font-size:14px;text-align:center}
.tm .tm-cta:hover{background:var(--terrad)}
.tm .tm-cta[disabled]{opacity:.6;cursor:default}
.tm .tm-ghost{border:2px solid var(--line);background:#fff;border-radius:13px;padding:9px;font-weight:700;font-size:13.5px;text-align:center;text-decoration:none;color:var(--ink);display:block}
.tm .tm-ghost:hover{border-color:var(--terra)}
.tm .tm-subhead{margin:24px 0 12px;font-size:16px;font-weight:800}
.tm .tm-lead{background:#fff;border:2px solid var(--terra);border-radius:20px;padding:22px 18px;text-align:center}
.tm .tm-lead h3{margin:4px 0 6px;font-size:19px;font-weight:800}
.tm .tm-lead p{color:var(--inks);margin:0 0 14px;font-size:14.5px}
.tm .tm-form{display:grid;gap:8px;max-width:440px;margin:0 auto}
.tm .tm-form input{width:100%;min-width:0;border:2px solid var(--line);border-radius:13px;padding:12px 14px;font:600 16px "Be Vietnam Pro",sans-serif;background:#fff;color:var(--ink)}
.tm .tm-form input:focus{outline:none;border-color:var(--terra)}
.tm .tm-msg{font-size:13px;min-height:18px;text-align:center}
.tm .tm-msg.tm-err{color:var(--err)}
.tm .tm-msg.tm-ok{color:var(--sage);font-weight:700}
.tm .tm-loading{text-align:center;color:var(--inks);padding:30px 0}

/* thẻ nơi tập */
.tm .tm-monoic svg.tm-i{width:56px;height:56px;color:#fff;stroke-width:1.5}
.tm .tm-pill.tm-kmp{top:9px;left:9px;color:var(--terrad)}
.tm .tm-lops{display:flex;flex-direction:column;gap:3px;font-size:13px;color:var(--ink);background:var(--cream);border-radius:12px;padding:8px 10px}
.tm .tm-lops .tm-no{color:var(--inks)}
.tm .tm-proof a{color:var(--terrad);font-weight:700;text-decoration:none}
.tm .tm-mk.tm-mk-noi{margin-bottom:8px}
.tm .tm-mk.tm-mk-noi::after{content:"";position:absolute;left:50%;bottom:-8px;margin-left:-6px;border:6px solid transparent;border-top-color:var(--terrad);border-bottom:0}
.tm .tm-mk.tm-mk-noi.tm-mk-xa::after{border-top-color:#A39A8D}
.tm .tm-sel{width:100%;border:2px solid var(--line);border-radius:13px;padding:11px 12px;font:600 15px "Be Vietnam Pro",sans-serif;background:#fff;color:var(--ink);margin-bottom:8px}
.tm .tm-av.tm-avic{background:var(--tint);color:var(--terrad)}
.tm .tm-avic svg.tm-i{width:36px;height:36px}

/* HỘP ĐĂNG KÝ */
.tm .tm-modal{position:fixed;inset:0;z-index:1000;background:rgba(30,18,10,.55);display:flex;align-items:flex-end;justify-content:center;padding:0;animation:tmfade .2s}
.tm .tm-sheet{background:#fff;width:100%;max-width:480px;border-radius:24px 24px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));position:relative;text-align:center;max-height:92vh;overflow:auto}
.tm .tm-sheet h3{margin:6px 0 6px;font-size:20px;font-weight:800;line-height:1.25}
.tm .tm-sheet p{margin:0 0 14px;color:var(--inks);font-size:14.5px}
.tm .tm-x{position:absolute;top:10px;right:12px;border:none;background:var(--soft);width:34px;height:34px;border-radius:50%;font-size:18px;font-weight:700;color:var(--inks)}
.tm .tm-av{width:72px;height:72px;border-radius:20px;margin:0 auto;overflow:hidden;background:linear-gradient(150deg,#D69A78,#A9603F);display:grid;place-items:center;color:#fff;font:800 30px "Playfair Display",serif}
.tm .tm-av img{width:100%;height:100%;object-fit:cover}

@media(min-width:760px){
  .tm .tm-box{padding:24px 24px 20px}
  .tm .tm-rds{grid-template-columns:1fr 1fr}
  .tm .tm-modal{align-items:center;padding:16px}
  .tm .tm-sheet{border-radius:24px}
}
@media(max-width:420px){
  .tm .tm-ck{padding:10px 9px;gap:7px}
  .tm .tm-ck .tm-ckic{display:none}
  .tm .tm-cktx b{font-size:14.5px}
  .tm .tm-gift{padding:12px 18px 12px 14px;gap:10px}
}
@media(max-width:700px){
  .tm .tm-card{grid-template-columns:1fr}
  .tm .tm-ph{min-height:200px}
  .tm .tm-ph.tm-noimg{min-height:120px}
  .tm .tm-ph.tm-noimg .tm-mono{font-size:52px}
  .tm .tm-act{border-left:none;border-top:1px dashed var(--line)}
}
