/* Pre-employment tests (Oct 2026). Shared look: the pt- rules are the Personality
   test styles (same as the inline block on /personality-test); as- rules are new. */
/* ---------------- Personality test (pt-) ---------------- */
.pg-page button.th-btn { border: 0; cursor: pointer; }
.pt-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px 0; scroll-margin-top: calc(var(--pg-header) + 16px); }
.pt-card {
    position: relative; overflow: hidden;
    border: 1px solid var(--th-line); border-radius: 16px; background: #fff;
    box-shadow: 0 10px 40px rgba(15, 61, 36, .08);
    min-height: 440px; scroll-margin-top: calc(var(--pg-header) + 16px);
}
.pt-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--th-green) 0%, var(--th-green-700) 100%); }
.pt-view { display: none; padding: 48px 56px; }
.pt-card[data-state="intro"] .pt-view--intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pt-card[data-state="quiz"] .pt-view--quiz { display: flex; flex-direction: column; }
.pt-card[data-state="done"] .pt-view--done { display: block; }

.pt-eyebrow { margin: 0 0 8px !important; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--th-green-700); }
.pg-page .pt-title { margin: 0 0 12px; font-family: "Muli", "Mulish", sans-serif; font-size: 30px; line-height: 38px; font-weight: 800; color: var(--th-ink); }
.pt-text { margin: 0 0 20px; font-size: 16px; line-height: 26px; color: var(--th-muted); }
.pt-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.pt-facts li { padding: 6px 12px; border-radius: 999px; background: var(--th-green-50); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--th-green-700); }
.pt-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; }
.pt-lang__label { margin-right: 4px; font-size: 14px; color: var(--th-muted); }
.pt-lang__btn {
    height: 36px; padding: 0 14px; border: 1px solid var(--th-line); border-radius: 999px; background: #fff;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--th-ink); cursor: pointer;
}
.pt-lang__btn.is-active { border-color: var(--th-green-700); background: var(--th-green-700); color: #fff; }
.pt-start { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pt-start__btn { height: 52px; padding: 0 28px; font-size: 16px; }
.pt-link { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--th-green-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pt-link[hidden] { display: none; }

/* decorative preview bars on the intro */
.pt-preview { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 12px; background: var(--th-green-900); }
.pt-preview__row { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--th-green-50); }
.pt-preview__row i { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pt-preview__row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 5px; background: #7fe3ae; }

/* quiz */
.pt-progress { margin-bottom: 36px; }
.pt-progress__meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--th-muted); }
.pt-progress__bar { height: 8px; border-radius: 4px; background: var(--th-green-50); overflow: hidden; }
.pt-progress__bar span { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--th-green); transition: width .3s ease; }
.pt-q__lead { margin: 0 0 8px; text-align: center; font-size: 14px; color: var(--th-muted); }
.pt-q {
    min-height: 84px; max-width: 760px; margin: 0 auto 32px; text-align: center;
    font-family: "Muli", "Mulish", sans-serif; font-size: 28px; line-height: 38px; font-weight: 800; color: var(--th-ink);
}
.pt-q.is-in { animation: pt-in .25s ease; }
@keyframes pt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pt-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 860px; width: 100%; margin: 0 auto; }
.pt-opt {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px;
    border: 1px solid var(--th-line); border-radius: 12px; background: #fff; cursor: pointer;
    font: inherit; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--th-ink);
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.pt-opt:hover { border-color: var(--th-green-700); transform: translateY(-2px); }
.pt-opt:focus-visible { outline: 2px solid var(--th-green-700); outline-offset: 2px; }
.pt-opt__dot { width: 22px; height: 22px; border: 2px solid var(--th-green-700); border-radius: 50%; transition: background-color .15s ease, box-shadow .15s ease; }
.pt-opt[data-v="1"] .pt-opt__dot, .pt-opt[data-v="5"] .pt-opt__dot { width: 30px; height: 30px; }
.pt-opt[data-v="2"] .pt-opt__dot, .pt-opt[data-v="4"] .pt-opt__dot { width: 26px; height: 26px; }
.pt-opt[aria-checked="true"] { border-color: var(--th-green-700); background: var(--th-green-50); }
.pt-opt[aria-checked="true"] .pt-opt__dot { background: var(--th-green-700); box-shadow: inset 0 0 0 4px #fff; }
.pt-nav { display: flex; justify-content: space-between; align-items: center; max-width: 860px; width: 100%; margin: 28px auto 0; }
.pt-hint { font-size: 13px; color: var(--th-muted); }

/* done summary */
.pt-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0 28px; }
.pt-mini__item { padding: 16px; border-radius: 12px; background: var(--th-green-50); }
.pt-mini__name { display: block; margin-bottom: 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--th-muted); }
.pt-mini__score { font-family: "Muli", "Mulish", sans-serif; font-size: 28px; line-height: 32px; font-weight: 800; color: var(--th-green-700); }
.pt-mini__level { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--th-ink); }
.pt-source { margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--th-muted); }
.pt-source a { color: var(--th-green-700); }

/* result pop-up */
.pt-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pt-modal[hidden] { display: none; }
.pt-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 30, 20, .62); animation: pt-fade .2s ease; }
.pt-modal__dialog {
    position: relative; width: 100%; max-width: 880px; max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); animation: pt-pop .25s ease;
    font-family: "Inter", "Mulish", sans-serif; color: var(--th-ink);
}
.pt-modal__dialog:focus { outline: none; }
@keyframes pt-fade { from { opacity: 0; } }
@keyframes pt-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pt-modal__close {
    position: sticky; top: 12px; float: right; z-index: 2; width: 40px; height: 40px; margin: 12px 12px 0 0;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); font-size: 26px; line-height: 40px; color: var(--th-ink); cursor: pointer;
}
.pt-modal__close:hover { background: var(--th-green-50); }
body.pt-lock { overflow: hidden; }
.pt-modal .th-btn--outline { background: #fff; border: 1px solid var(--th-green-700); color: var(--th-green-700) !important; }
.pt-modal .th-btn--outline:hover { background: var(--th-green-50); }

.pt-r__head { padding: 36px 40px 28px; background: linear-gradient(135deg, var(--th-green-900) 0%, var(--th-green-700) 100%); color: #fff; }
.pt-r__head .pt-eyebrow { color: #7fe3ae; }
.pg-page .pt-r__title { margin: 0 0 8px; font-family: "Muli", "Mulish", sans-serif; font-size: 28px; line-height: 36px; font-weight: 800; color: #fff; }
.pt-r__sub { margin: 0; font-size: 15px; line-height: 24px; color: var(--th-green-50); }
.pt-r__sub strong { color: #fff; }
.pt-r__body { padding: 28px 40px 36px; }
.pt-r__h { margin: 28px 0 12px; font-family: "Muli", "Mulish", sans-serif; font-size: 19px; line-height: 26px; font-weight: 800; color: var(--th-ink); }
.pt-r__h:first-child { margin-top: 0; }
.pt-trait { padding: 16px 0; border-bottom: 1px solid var(--th-line); }
.pt-trait:last-child { border-bottom: 0; }
.pt-trait__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pt-trait__name { font-size: 16px; font-weight: 700; }
.pt-trait__score { font-size: 14px; font-weight: 700; color: var(--th-green-700); white-space: nowrap; }
.pt-trait__level { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--th-green-50); font-size: 12px; font-weight: 700; color: var(--th-green-700); }
.pt-trait__bar { position: relative; height: 10px; margin-bottom: 10px; border-radius: 5px; background: var(--th-green-50); overflow: hidden; }
.pt-trait__bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 5px; background: var(--th-green); transition: width .8s ease; }
.pt-trait__ends { display: flex; justify-content: space-between; margin: -4px 0 8px; font-size: 12px; color: var(--th-muted); }
.pt-trait__text { margin: 0; font-size: 14px; line-height: 22px; color: var(--th-muted); }
.pt-r__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt-r__box { padding: 20px; border-radius: 12px; background: var(--th-surface-alt, #F5F7F5); }
.pt-r__box h4 { margin: 0 0 10px; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--th-ink); }
.pt-r__box ul { margin: 0; padding-left: 18px; }
.pt-r__box li { margin: 0 0 6px; font-size: 14px; line-height: 22px; color: var(--th-ink); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-chips li { padding: 6px 12px; border: 1px solid var(--th-green-700); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--th-green-700); }
.pt-r__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 20px 24px; border-radius: 12px; background: var(--th-green-50); }
.pt-r__cta p { margin: 0; flex: 1 1 260px; font-size: 15px; line-height: 22px; font-weight: 600; }
.pt-r__cta .pt-r__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-r__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.pt-r__note { margin: 16px 0 0; font-size: 12px; line-height: 18px; color: var(--th-muted); }

@media (max-width: 991px) {
    .pt-view { padding: 36px 32px; }
    .pt-card[data-state="intro"] .pt-view--intro { grid-template-columns: 1fr; gap: 28px; }
    .pt-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .pt-wrap { padding: 24px 16px 0; }
    .pt-card { min-height: 0; border-radius: 12px; }
    .pt-view { padding: 28px 18px; }
    .pg-page .pt-title { font-size: 24px; line-height: 32px; }
    .pt-preview { display: none; }
    .pt-start__btn { width: 100%; justify-content: center; }
    .pt-progress { margin-bottom: 24px; }
    .pt-q { min-height: 96px; margin-bottom: 20px; font-size: 21px; line-height: 30px; }
    .pt-scale { grid-template-columns: 1fr; gap: 8px; }
    .pt-opt { flex-direction: row; gap: 14px; padding: 13px 16px; font-size: 15px; text-align: left; }
    .pt-opt__dot, .pt-opt[data-v] .pt-opt__dot { width: 22px; height: 22px; flex: 0 0 22px; }
    .pt-hint { display: none; }
    .pt-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-modal { padding: 0; align-items: flex-end; }
    .pt-modal__dialog { max-height: 92vh; border-radius: 16px 16px 0 0; }
    .pt-r__head { padding: 28px 20px 22px; }
    .pt-r__title { font-size: 23px; line-height: 30px; }
    .pt-r__body { padding: 20px 20px 28px; }
    .pt-r__cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .pt-q.is-in, .pt-modal__dialog, .pt-modal__backdrop { animation: none; }
    .pt-trait__bar span { transition: none; }
}
/* "Save as PDF": print only the result */
@media print {
    body.pt-print > *:not(.pt-modal) { display: none !important; }
    body.pt-print .pt-modal { position: static; padding: 0; }
    body.pt-print .pt-modal__backdrop, body.pt-print .pt-modal__close, body.pt-print .pt-r__actions, body.pt-print .pt-r__cta .pt-r__btns { display: none !important; }
    body.pt-print .pt-modal__dialog { max-height: none; overflow: visible; box-shadow: none; }
    body.pt-print .pt-r__head, body.pt-print .pt-trait__bar span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- Situational judgment: scenario + lettered choices ---- */
.as-scen { max-width: 820px; margin: 0 auto 14px; padding: 20px 24px; border-radius: 12px; background: var(--th-green-50);
    font-size: 18px; line-height: 28px; font-weight: 600; color: var(--th-ink); }
.as-scen.is-in { animation: pt-in .25s ease; }
.as-ask { max-width: 820px; margin: 0 auto 16px !important; font-size: 15px; font-weight: 700; color: var(--th-green-700); }
.as-choices { display: flex; flex-direction: column; gap: 10px; max-width: 820px; width: 100%; margin: 0 auto; }
.as-choice { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border: 1px solid var(--th-line); border-radius: 12px; background: #fff;
    font: inherit; font-size: 16px; line-height: 24px; text-align: left; color: var(--th-ink); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.as-choice:hover { border-color: var(--th-green-700); }
.as-choice:focus-visible { outline: 2px solid var(--th-green-700); outline-offset: 2px; }
.as-choice[aria-checked="true"] { border-color: var(--th-green-700); background: var(--th-green-50); }
.as-choice__key { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 2px solid var(--th-green-700); font-size: 13px; line-height: 24px; font-weight: 800; text-align: center; color: var(--th-green-700); }
.as-choice[aria-checked="true"] .as-choice__key { background: var(--th-green-700); color: #fff; }
.as-mini6 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.as-review { margin: 0; padding-left: 18px; }
.as-review li { margin: 0 0 12px; font-size: 14px; line-height: 22px; color: var(--th-ink); }
.as-p { margin: 0 0 12px; font-size: 15px; line-height: 24px; color: var(--th-ink); }
.as-hero-style { padding: 20px 24px; border-radius: 12px; background: var(--th-green-50); margin-bottom: 8px; }
.as-hero-style p { margin: 0 0 8px; font-size: 15px; line-height: 24px; }
.as-quote { font-style: italic; color: var(--th-green-700); font-weight: 600; }

/* ---- Submit my result + next test ---- */
.as-submit { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--th-line); border-radius: 12px; background: #fff; }
.pg-page .as-submit__h { margin: 0 0 6px; font-family: "Muli", "Mulish", sans-serif; font-size: 18px; line-height: 26px; font-weight: 800; color: var(--th-ink); }
.as-submit__p { margin: 0 0 16px; font-size: 14px; line-height: 22px; color: var(--th-muted); }
.as-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.as-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: var(--th-ink); }
.as-field input { height: 44px; padding: 0 12px; border: 1px solid #7A8880; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 400; color: var(--th-ink); }
.as-field input:focus { outline: 2px solid var(--th-green-700); outline-offset: 1px; border-color: var(--th-green-700); }
.as-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.as-agree { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--th-muted); }
.as-agree input { margin-top: 3px; }
.as-agree a { color: var(--th-green-700); }
.as-form__row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.as-send { border: 0; cursor: pointer; }
.as-send[disabled] { opacity: .7; cursor: wait; }
.as-msg { margin: 0; font-size: 14px; font-weight: 600; }
.as-msg.is-ok { color: var(--th-green-700); }
.as-msg.is-err { color: #B42318; }
.as-submit.is-sent { border-color: var(--th-green-700); background: var(--th-green-50); }
.as-next { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; margin-top: 16px; padding: 18px 22px; border-radius: 12px;
    background: linear-gradient(135deg, var(--th-green-900) 0%, var(--th-green-700) 100%); color: #fff !important; text-decoration: none !important; }
.as-next__eyebrow { grid-column: 1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fe3ae; }
.as-next__title { grid-column: 1; font-family: "Muli", "Mulish", sans-serif; font-size: 18px; line-height: 26px; font-weight: 800; }
.as-next .th-arrow { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; }
.as-next:hover { filter: brightness(1.08); }
@media (max-width: 767px) {
    .as-scen { padding: 16px; font-size: 16px; line-height: 25px; }
    .as-choice { padding: 12px 14px; font-size: 15px; }
    .as-form { grid-template-columns: 1fr; }
    .as-mini6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .as-submit { padding: 18px; }
}
@media print {
    body.pt-print .as-submit, body.pt-print .as-next { display: none !important; }
}
