/* Trắc nghiệm tính cách (MBTI & DISC) — dùng chung cho /trac-nghiem-tinh-cach, /mbti, /disc
   và các trang loại tính cách. Tông peach theo style.md; pastel chỉ dùng cho badge/nhóm. */

.pt-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px 56px;
    color: var(--text-main, #5c4b47);
    font-family: 'Comfortaa', 'Quicksand', system-ui, sans-serif;
}
.pt-wrap h1, .pt-wrap h2, .pt-wrap h3, .pt-wrap h4 { font-family: 'Nunito', system-ui, sans-serif; }

/* ---------- Hero ---------- */
.pt-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, #ffd6e6 0%, #fad0c4 55%, #ffe9b3 100%);
    border-radius: 28px;
    padding: 32px 20px 28px;
    box-shadow: 0 10px 30px rgba(250, 208, 196, .35);
}
.pt-eyebrow {
    display: inline-block; background: rgba(255, 255, 255, .78); border-radius: 999px;
    padding: 6px 14px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .78rem;
    color: #d67d63; margin-bottom: 12px;
}
.pt-hero h1 { font-size: clamp(1.4rem, 4.4vw, 2.1rem); font-weight: 800; color: #b05c45; margin: 4px 0 10px; line-height: 1.25; }
.pt-hero .lead { max-width: 580px; margin: 0 auto 18px; line-height: 1.65; color: #6e4a3f; font-size: .96rem; }
.pt-code {
    width: 108px; min-height: 68px; margin: 0 auto 12px; border-radius: 22px; background: #fff;
    display: grid; place-items: center; font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: 1.85rem; letter-spacing: .06em; color: #d67d63; padding: 10px 6px;
    box-shadow: 0 10px 24px rgba(214, 125, 99, .22); border: 3px solid #fff;
}
.pt-kw { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 14px; }
.pt-kw span {
    background: rgba(255, 255, 255, .85); color: #8a5a4c; border-radius: 999px;
    padding: 5px 13px; font-size: .78rem; font-weight: 700; font-family: 'Nunito', sans-serif;
}
.pt-hero-meta { font-size: .82rem; color: #7d5548; margin: 0 0 14px; }

/* ---------- Nút ---------- */
.btn-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #fad0c4 0%, #fbc1b0 100%); color: #5c4b47;
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .95rem;
    padding: 13px 28px; border: none; border-radius: 999px; text-decoration: none; cursor: pointer;
    box-shadow: 0 6px 18px rgba(250, 208, 196, .5); transition: transform .25s, box-shadow .25s;
}
.btn-pill:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 22px rgba(250, 208, 196, .7); }
.btn-pill:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-pill.ghost { background: #fff; color: #d67d63; border: 2px solid #ffe6e0; box-shadow: none; }
.btn-pill.ghost:hover { background: #fff5f2; border-color: #fbc1b0; }
.pt-btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Thẻ nội dung ---------- */
.pt-card {
    background: #fff; border: 1px solid #ffe6e0; border-radius: 24px;
    padding: 22px 24px; margin-top: 18px; box-shadow: 0 8px 24px -10px rgba(250, 208, 196, .6);
}
.pt-card h2 {
    font-size: 1.15rem; font-weight: 800; color: #d67d63; margin: 0 0 12px;
    padding-bottom: 10px; border-bottom: 1px dashed #ffe6e0;
}
.pt-card h3 { font-size: 1rem; font-weight: 800; color: #e59882; margin: 18px 0 8px; }
.pt-card p { line-height: 1.8; margin: 0 0 12px; }
.pt-card p:last-child { margin-bottom: 0; }
.pt-card ul, .pt-card ol { margin: 0; padding-left: 20px; line-height: 1.8; }
.pt-card li { margin-bottom: 7px; }
.pt-card a { color: #d67d63; font-weight: 700; }
.pt-card.mint { background: #f3fbf6; border-color: #cbe9d8; }
.pt-card.pink { background: #fff6fa; border-color: #ffd6e6; }
.pt-card.lav { background: #f9f5fd; border-color: #e3d4f0; }
.pt-card.sky { background: #f4fafd; border-color: #cfe7f5; }
.pt-note { background: #fff5f2; border: 1px dashed #ffe6e0; border-radius: 16px; padding: 12px 16px; font-size: .9rem; line-height: 1.7; }
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.pt-two > .pt-card { margin-top: 0; }

/* ---------- Chip nghề / danh sách ---------- */
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pt-chips span {
    background: #fff5f2; border: 1px solid #ffe6e0; color: #8a5a4c; border-radius: 999px;
    padding: 6px 14px; font-size: .84rem; font-weight: 700; font-family: 'Nunito', sans-serif;
}

/* ---------- 4 cặp xu hướng ---------- */
.pt-axes { display: grid; gap: 12px; margin-top: 4px; }
.pt-axis { border: 1px solid #ffe6e0; border-radius: 18px; padding: 14px 16px; background: #fffaf9; }
.pt-axis h4 { margin: 0 0 10px; font-size: .95rem; color: #d67d63; }
.pt-axis-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-axis-col b { display: block; font-family: 'Nunito', sans-serif; color: #b05c45; margin-bottom: 4px; font-size: .92rem; }
.pt-axis-col span { font-size: .88rem; line-height: 1.65; }

/* ---------- Lưới 16 loại ---------- */
.pt-groups { display: grid; gap: 16px; }
.pt-group h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1rem; color: #b05c45; }
.pt-group h3 i { width: 14px; height: 14px; border-radius: 50%; background: var(--dot, #fad0c4); display: inline-block; }
.pt-group .g-blurb { font-size: .86rem; color: #8a7772; margin: 0 0 10px; line-height: 1.6; }
.pt-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pt-type-grid a {
    display: block; text-decoration: none; text-align: center; background: #fff;
    border: 1px solid #ffe6e0; border-radius: 18px; padding: 12px 8px; transition: transform .2s, box-shadow .2s;
}
.pt-type-grid a:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(250, 208, 196, .8); }
.pt-type-grid a.on { border-color: #fbc1b0; background: #fff5f2; }
.pt-type-grid b { display: block; font-family: 'Nunito', sans-serif; font-weight: 800; color: #d67d63; letter-spacing: .05em; font-size: .98rem; }
.pt-type-grid small { display: block; color: #8a7772; font-size: .74rem; margin-top: 3px; line-height: 1.35; }

/* ---------- Khối kết quả cá nhân ---------- */
.pt-result { background: linear-gradient(135deg, #fff6fa 0%, #fff5f2 100%); border: 2px solid #fbc1b0; border-radius: 24px; padding: 20px 22px; margin-top: 18px; }
.pt-result h2 { font-size: 1.1rem; color: #b05c45; margin: 0 0 4px; border: none; padding: 0; }
.pt-result .r-sub { font-size: .88rem; color: #8a7772; margin: 0 0 14px; line-height: 1.6; }
.pt-bars { display: grid; gap: 12px; }
.pt-bar-row { font-size: .84rem; }
.pt-bar-head { display: flex; justify-content: space-between; font-family: 'Nunito', sans-serif; font-weight: 700; color: #7d5548; margin-bottom: 5px; }
.pt-bar-head .on { color: #d67d63; }
.pt-bar { height: 12px; background: #ffe6e0; border-radius: 999px; overflow: hidden; }
.pt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #fad0c4, #fbc1b0); border-radius: 999px; }
.pt-bar.flip i { margin-left: auto; background: linear-gradient(90deg, #fbc1b0, #fad0c4); }

/* ---------- FAQ ---------- */
.pt-faq { border-bottom: 1px dashed #ffe6e0; padding: 12px 0; }
.pt-faq:last-child { border-bottom: none; padding-bottom: 0; }
.pt-faq summary { cursor: pointer; font-family: 'Nunito', sans-serif; font-weight: 700; color: #b05c45; font-size: .95rem; list-style: none; position: relative; padding-right: 26px; }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 1.2rem; color: #d67d63; }
.pt-faq[open] summary::after { content: '\2013'; }
.pt-faq p { margin: 10px 0 0; line-height: 1.8; font-size: .93rem; }

/* ---------- Bảng so sánh ---------- */
.pt-compare { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pt-compare th, .pt-compare td { padding: 11px 12px; text-align: left; vertical-align: top; line-height: 1.65; border-bottom: 1px dashed #ffe6e0; }
.pt-compare th { font-family: 'Nunito', sans-serif; color: #d67d63; font-weight: 800; }
.pt-compare td:first-child { font-family: 'Nunito', sans-serif; font-weight: 700; color: #8a5a4c; white-space: nowrap; }

/* ---------- CTA & điều hướng ---------- */
.pt-cta { text-align: center; margin-top: 22px; padding: 26px 20px; background: linear-gradient(135deg, #fffcfb 0%, #fff5f2 100%); border: 1px dashed #ffe6e0; border-radius: 24px; }
.pt-cta p { margin: 12px 0 0; color: #8a7772; font-size: .88rem; line-height: 1.6; }
.pt-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }
.pt-nav a { flex: 1 1 220px; }
.pt-mesh { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.pt-mesh a {
    display: block; text-decoration: none; background: #fffaf9; border: 1px solid #ffe6e0;
    border-radius: 16px; padding: 12px 14px; color: #5c4b47; font-size: .88rem; line-height: 1.5; transition: background .2s;
}
.pt-mesh a:hover { background: #fff5f2; }
.pt-mesh b { display: block; font-family: 'Nunito', sans-serif; color: #d67d63; margin-bottom: 2px; }

/* ---------- Bài test ---------- */
.q-progress {
    position: sticky; top: 74px; z-index: 20; background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid #ffe6e0; border-radius: 999px; padding: 9px 16px; margin: 0 0 16px;
    display: flex; align-items: center; gap: 12px; box-shadow: 0 6px 18px -8px rgba(250, 208, 196, .8);
}
.q-progress b { font-family: 'Nunito', sans-serif; font-size: .82rem; color: #d67d63; white-space: nowrap; }
.q-progress .bar { flex: 1; height: 8px; background: #ffe6e0; border-radius: 999px; overflow: hidden; }
.q-progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fad0c4, #fbc1b0); border-radius: 999px; transition: width .3s; }
.q-card { background: #fff; border: 1px solid #ffe6e0; border-radius: 22px; padding: 18px 18px 14px; margin-bottom: 14px; box-shadow: 0 8px 24px -14px rgba(250, 208, 196, .7); }
.q-card.done { border-color: #fbc1b0; background: #fffaf9; }
.q-text { font-size: .98rem; line-height: 1.65; margin-bottom: 14px; }
.q-num { font-family: 'Nunito', sans-serif; font-weight: 800; color: #e59882; margin-right: 7px; }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.likert label { cursor: pointer; }
.likert input { position: absolute; opacity: 0; width: 0; height: 0; }
.likert .lk {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    min-height: 62px; padding: 8px 4px; border: 1.5px solid #ffe6e0; border-radius: 16px;
    background: #fffaf9; text-align: center; transition: all .18s;
}
.likert .lk em { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fbc1b0; display: block; }
.likert .lk .lk-txt { font-size: .68rem; font-weight: 700; font-family: 'Nunito', sans-serif; color: #8a7772; line-height: 1.25; }
.likert input:checked + .lk { border-color: #d67d63; background: linear-gradient(135deg, #fad0c4, #fbc1b0); }
.likert input:checked + .lk em { background: #fff; border-color: #fff; }
.likert input:checked + .lk .lk-txt { color: #6e4a3f; }
.likert-ends { display: none; }
.likert input:focus-visible + .lk { outline: 2px solid #d67d63; outline-offset: 2px; }
.q-submit { text-align: center; margin-top: 22px; }
.q-alert { background: #ffe6e0; color: #b03b3b; border-radius: 16px; padding: 12px 16px; font-size: .9rem; margin-bottom: 14px; text-align: center; }
.q-empty { text-align: center; color: #8a7772; padding: 30px 0; line-height: 1.8; }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
    .pt-two { grid-template-columns: 1fr; }
    .pt-type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pt-wrap { padding: 0 14px 44px; }
    .pt-hero { padding: 26px 16px 24px; border-radius: 24px; }
    .pt-card { padding: 18px 16px; border-radius: 20px; }
    .pt-axis-cols { grid-template-columns: 1fr; }
    .pt-mesh { grid-template-columns: 1fr; }
    .pt-compare th, .pt-compare td { padding: 9px 8px; font-size: .84rem; }
    .pt-compare td:first-child { white-space: normal; }
    /* Mobile: bỏ nhãn chữ (dài 16 ký tự, không vừa cột ~60px), dùng 5 vòng tròn to nhỏ dần
       kiểu thang đồng ý quen thuộc + 2 nhãn hai đầu. Vùng chạm cao 60px cho dễ bấm. */
    .likert { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .likert .lk { min-height: 60px; padding: 0; border-radius: 16px; }
    .likert .lk .lk-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .likert .lk em { border-width: 2.5px; }
    .likert .s0 em, .likert .s4 em { width: 28px; height: 28px; }
    .likert .s1 em, .likert .s3 em { width: 23px; height: 23px; }
    .likert .s2 em { width: 18px; height: 18px; }
    .likert .s0 em, .likert .s1 em { border-color: #ff9eb5; }
    .likert .s3 em, .likert .s4 em { border-color: #7fc9a4; }
    .likert input:checked + .lk em { background: #fff; border-color: #fff; }
    .likert-ends { display: flex; justify-content: space-between; margin-top: 7px; font-size: .68rem; font-weight: 700; font-family: 'Nunito', sans-serif; color: #8a7772; }
    .q-progress { top: 66px; padding: 8px 12px; }
    .q-card { padding: 15px 14px 12px; border-radius: 18px; }
    .btn-pill { width: 100%; }
    .pt-btn-row .btn-pill { width: auto; flex: 1 1 100%; }
}
