/* ==========================================================================
   Bản Đồ Nội Tâm — Mô hình "Hồ sơ đa chiều" (câu mức độ + trang kết quả)
   ========================================================================== */

/* ---------- Câu hỏi thang mức độ ---------- */
.bdnt-likert{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0 8px}
.bdnt-likert__opt{position:relative;display:block;cursor:pointer;margin:0}
.bdnt-likert__opt input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.bdnt-likert__opt span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:96px;padding:14px 8px;border:1.5px solid #dfe7e3;border-radius:14px;background:#fff;text-align:center;font-size:15px;line-height:1.35;color:#24465c;transition:border-color .15s,background .15s,box-shadow .15s}
.bdnt-likert__opt span::before{content:"";flex:0 0 auto;width:20px;height:20px;border-radius:50%;border:2px solid #b8cbc4;background:#fff;box-sizing:border-box;transition:.15s}
.bdnt-likert__opt:hover span{border-color:#168f8b;background:#f4faf8}
.bdnt-likert__opt input:checked+span{border-color:#168f8b;background:#e6f4f1;color:#0e3553;font-weight:600;box-shadow:0 4px 14px rgba(22,143,139,.14)}
.bdnt-likert__opt input:checked+span::before{border-color:#168f8b;background:#168f8b;box-shadow:inset 0 0 0 3px #fff}
.bdnt-likert__opt input:focus-visible+span{outline:2px solid #168f8b;outline-offset:2px}
@media (max-width:720px){
  .bdnt-likert{grid-template-columns:1fr;gap:8px}
  .bdnt-likert__opt span{flex-direction:row;justify-content:flex-start;min-height:0;padding:13px 14px;text-align:left}
}

/* ---------- Trang kết quả ---------- */
.bdnt-profile-result{--pf-ink:#0e3553;--pf-muted:#5b7280;--pf-line:#e3ebe7}
.bdnt-profile-hero{display:block!important}
.bdnt-profile-overview{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:28px;align-items:center;background:#fff;border:1px solid var(--pf-line);border-radius:22px;padding:24px;margin:18px 0}
.bdnt-profile-radar{margin:0}
.bdnt-profile-radar svg{display:block;width:100%;height:auto;overflow:visible}
.bdnt-profile-radar .grid{fill:none;stroke:#dfe8e4;stroke-width:1}
.bdnt-profile-radar .axis{stroke:#e7eeeb;stroke-width:1}
.bdnt-profile-radar .area{fill:rgba(22,143,139,.16);stroke:#168f8b;stroke-width:2.5;stroke-linejoin:round}
.bdnt-profile-radar .lbl{font:600 12.5px Inter,system-ui,sans-serif;fill:#24465c}
.bdnt-profile-bars h2{margin:0 0 10px!important;color:var(--pf-ink)}
.bdnt-profile-bar{padding:8px 0;border-bottom:1px dashed #edf2ef}
.bdnt-profile-bar:last-child{border-bottom:0}
.bdnt-profile-bar .bdnt-trait-title{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 6px}
.bdnt-profile-bar .bdnt-trait-title b{font-size:15px;font-weight:600;color:var(--pf-ink)}
.bdnt-profile-bar.is-top .bdnt-trait-title b{font-weight:800}
.bdnt-profile-bar .bdnt-trait-title span{font-size:14px;font-weight:700;color:var(--pf-ink);white-space:nowrap}
.bdnt-profile-bar .bdnt-trait-title small{margin-left:4px;font-weight:500;color:var(--pf-muted)}
.bdnt-profile-track{height:8px;border-radius:99px;background:#eef3f1;overflow:hidden}
.bdnt-profile-track i{display:block;height:100%;border-radius:inherit}

.bdnt-profile-top{margin:22px 0}
.bdnt-profile-top>h2,.bdnt-profile-rest>h2{margin:0 0 14px!important;color:var(--pf-ink)}
.bdnt-profile-top-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.bdnt-profile-card{background:#fff;border:1px solid var(--pf-line);border-top:4px solid var(--dim,#168f8b);border-radius:18px;padding:20px}
.bdnt-profile-card header{display:flex;align-items:center;gap:12px;margin:0 0 10px}
.bdnt-profile-card .rank{flex:0 0 34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--dim,#168f8b);color:#fff;font-weight:800}
.bdnt-profile-card h3{margin:0!important;color:var(--pf-ink)}
.bdnt-profile-card header small{font-size:14px;color:var(--pf-muted)}
.bdnt-profile-card p{margin:0 0 8px;color:#3d5a6a}
.bdnt-profile-card h4{margin:14px 0 6px!important;font-size:13px!important;letter-spacing:.06em;text-transform:uppercase;color:var(--pf-muted)}
.bdnt-profile-card ul{margin:0;padding-left:18px}
.bdnt-profile-card li{margin:3px 0;font-size:15px!important;line-height:1.55!important;color:#2c4a5a}
.bdnt-profile-chips{display:flex;flex-wrap:wrap;gap:6px}
.bdnt-profile-chips span{padding:4px 10px;border-radius:99px;background:#f1f6f4;font-size:13px;color:#24465c}

.bdnt-profile-rest{margin:22px 0}
.bdnt-profile-rest details{background:#fff;border:1px solid var(--pf-line);border-radius:14px;padding:12px 16px;margin:0 0 8px}
.bdnt-profile-rest summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;font-size:16px;color:var(--pf-ink)}
.bdnt-profile-rest summary span{font-size:14px;color:var(--pf-muted);white-space:nowrap}
.bdnt-profile-rest details p{margin:10px 0 0;color:#3d5a6a}

@media (max-width:760px){
  .bdnt-profile-overview{grid-template-columns:1fr;gap:16px;padding:16px}
  .bdnt-profile-radar{max-width:340px;margin:0 auto;width:100%}
}
/* Thứ tự ưu tiên cao để thắng lớp chữ chung (html body:not(#bdnt) h4) */
html body:not(#bdnt) .bdnt-profile-card h4{font-size:13px!important;line-height:1.4!important;letter-spacing:.06em}
html body:not(#bdnt) .bdnt-feedback-compact h2{font-size:var(--bdnt-fs-h4,19px)!important;line-height:1.3!important}
html body:not(#bdnt) .bdnt-profile-card h3{font-size:var(--bdnt-fs-h4,19px)!important;line-height:1.3!important}

/* Sửa chung cho mọi bài: khung làm bài/kết quả dùng 100vw (tính cả thanh cuộn) nên tràn ngang ~10px */
html body .bdnt-test-overlay .bdnt-app{width:100%!important;max-width:1380px!important;box-sizing:border-box}

@media print{
  .bdnt-feedback-box{display:none!important}
  .bdnt-profile-rest details{break-inside:avoid}
  .bdnt-profile-rest details>*{display:block!important}
}
