/* Personality Test — public /personality-test */

.personality-test-body {
    background: #f8f6f4;
}

.personality-test-main {
    min-height: calc(100vh - var(--header-height, 72px));
    margin-top: var(--header-height, 72px);
}

@media screen and (max-width: 1310px) {
    .personality-test-main {
        margin-top: var(--header-height-mobile, 64px);
    }
}

/* ── Landing ── */

.pt-landing {
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.pt-landing__layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}

.pt-landing__content {
    padding: 0;
}

.pt-landing__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-bold);
    margin-bottom: 1.25rem;
}

.pt-landing__title {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-bold);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pt-landing__title span {
    color: var(--secondary);
}

.pt-landing__lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #5c6570;
    margin-bottom: 2.25rem;
    max-width: 34rem;
}

.pt-landing__steps {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 34rem;
}

.pt-landing__step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.125rem 0;
    border-bottom: 1px solid rgba(135, 10, 8, 0.08);
}

.pt-landing__step:first-child {
    border-top: 1px solid rgba(135, 10, 8, 0.08);
}

.pt-landing__step-num {
    flex-shrink: 0;
    width: auto;
    height: auto;
    background: none;
    color: var(--secondary-bold);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.4;
    border-radius: 0;
    min-width: 1.25rem;
}

.pt-landing__step-text strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--primary-bold);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.pt-landing__step-text span {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
}

.pt-landing__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 0.25rem;
}

.pt-landing__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.625rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bold) 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(135, 10, 8, 0.22);
}

.pt-landing__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(135, 10, 8, 0.28);
    color: #fff;
}

.pt-landing__cta-arrow {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.pt-landing__cta:hover .pt-landing__cta-arrow {
    transform: translateX(2px);
}

.pt-landing__signin {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.pt-landing__signin a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
}

.pt-landing__signin a:hover {
    text-decoration: underline;
}

.pt-landing__aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pt-landing__visual {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.pt-landing__visual img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.pt-landing__tip {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #64748b;
    padding-left: 0.75rem;
    border-left: 2px solid var(--secondary);
}

/* ── Quiz shell ── */

.pt-quiz {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 5vw, 4rem);
}

.pt-quiz__card {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2rem) 0;
}

/* ── Progress header ── */

.pt-quiz__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pt-quiz__progress-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    margin: 0;
}

.pt-quiz__progress-bar {
    flex: 1;
    min-width: 120px;
    height: 8px;
    background: #e8e4e0;
    border-radius: 999px;
    overflow: hidden;
}

.pt-quiz__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-bold) 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.pt-quiz__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pt-quiz__btn-outline {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 1.5px solid rgba(135, 10, 8, 0.25);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.pt-quiz__btn-outline:hover:not(.disabled) {
    background: var(--primary-light);
    border-color: var(--primary);
}

.pt-quiz__btn-outline.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Educational tip ── */

.pt-quiz__tip {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0 0 0 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    border-left: 2px solid var(--secondary);
}

.pt-quiz__tip i {
    color: var(--secondary-bold);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.pt-quiz__tip-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--secondary-bold);
}

/* ── Step: Who are you ── */

.pt-quiz__heading {
    text-align: center;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-bold);
    margin-bottom: 0.5rem;
}

.pt-quiz__subheading {
    text-align: center;
    font-size: 0.9375rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.pt-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.pt-role-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 1.5rem;
    border: 1px solid #e8e4e0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    background: #fff;
}

.pt-role-card:hover {
    border-color: rgba(135, 10, 8, 0.25);
}

.pt-role-card--selected {
    border-color: var(--primary);
    background: rgba(255, 232, 232, 0.35);
}

.pt-role-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.pt-role-card h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-bold);
    margin-bottom: 1rem;
}

.pt-role-card input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.pt-quiz__next-full {
    width: 100%;
    margin-top: 2rem;
    padding: 0.875rem;
    font-weight: 600;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bold) 100%);
    border: none;
    color: #fff;
    transition: opacity 0.2s;
}

.pt-quiz__next-full.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Questions ── */

.pt-question {
    text-align: center;
}

.pt-question__text {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 600;
    color: var(--primary-bold);
    line-height: 1.45;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.pt-question__hint {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

.pt-answer-scale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: 1.5rem 0 2rem;
}

.pt-answer-scale__label {
    font-size: 0.9375rem;
    font-weight: 700;
    min-width: 4.5rem;
    text-align: center;
}

.pt-answer-scale__label--agree {
    color: #2d8a4e;
}

.pt-answer-scale__label--disagree {
    color: var(--secondary-bold);
}

.pt-answer-scale__options {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.pt-answer-btn {
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    flex-shrink: 0;
}

.pt-answer-btn--agree {
    width: 72px;
    height: 72px;
    border: 3px solid #2d8a4e;
}

.pt-answer-btn--disagree {
    width: 72px;
    height: 72px;
    border: 3px solid var(--secondary-bold);
}

.pt-answer-btn--agree:hover,
.pt-answer-btn--agree.selected {
    background: #2d8a4e;
    box-shadow: 0 4px 16px rgba(45, 138, 78, 0.35);
}

.pt-answer-btn--disagree:hover,
.pt-answer-btn--disagree.selected {
    background: var(--secondary-bold);
    box-shadow: 0 4px 16px rgba(145, 99, 14, 0.35);
}

.pt-answer-btn:active {
    transform: scale(0.95);
}

/* ── Navigation row ── */

.pt-quiz__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.pt-quiz__nav .btn-white {
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-weight: 600;
    color: #4a5568;
}

.pt-quiz__nav .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
}

.pt-quiz__nav .primary_arrow {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* ── Empty state ── */

.pt-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.pt-empty h5 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.pt-empty p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* ── Modals ── */

.modal.pt-modal-backdrop {
    display: none;
}

.modal.pt-modal-backdrop.d-block {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(30, 20, 20, 0.55);
    backdrop-filter: blur(6px);
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.pt-modal-backdrop .modal-dialog {
    margin: 2rem auto;
    max-width: 480px;
    width: 100%;
}

.pt-modal-backdrop .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.pt-modal-backdrop .modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.25rem 1.5rem;
}

.pt-modal-backdrop .modal-header h1,
.pt-modal-backdrop .modal-header h6 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-bold);
    margin: 0;
}

.pt-modal-backdrop .modal-body {
    padding: 1.25rem 1.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.pt-modal-backdrop .modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
}

.pt-modal-backdrop .modal-footer .btn-primary {
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
}

.pt-modal-backdrop .modal-footer .btn-secondary {
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
}

/* Exit quiz trigger */
.pt-exit-btn {
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: 1.5px solid #ddd;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pt-exit-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* Create account modal */
.pt-results-modal .modal-dialog {
    max-width: 560px;
}

.pt-results-modal .head-section {
    background: linear-gradient(135deg, var(--primary-bold) 0%, var(--primary) 100%);
    padding: 1.75rem 1.5rem !important;
    border-radius: 16px 16px 0 0;
}

.pt-results-modal .head-section h4 {
    color: var(--secondary) !important;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.pt-results-modal .head-section h5 {
    color: #fff !important;
    font-size: 1.375rem;
    font-weight: 700;
}

.pt-results-modal .left-section {
    padding: 2rem 2rem 2.5rem !important;
}

.pt-results-modal .left-section > .mb-5 h5 {
    color: var(--primary-bold);
    font-weight: 700;
}

.pt-results-modal .left-section > .mb-5 p {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.pt-results-modal .form-control {
    border-radius: 10px;
    border-color: #e2e8f0;
}

.pt-results-modal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(135, 10, 8, 0.1);
}

.pt-results-modal .btn-primary {
    border-radius: 999px;
    padding: 0.875rem;
    font-weight: 600;
}

/* Verification modal */
.pt-verify-modal .modal-dialog {
    max-width: 440px;
}

.pt-verify-modal .modal-content {
    padding: 2rem 2rem 2.5rem;
    text-align: center;
}

.pt-verify-modal h4 {
    color: var(--primary-bold);
    font-weight: 700;
}

.pt-verify-modal .code,
.pt-verify .code {
    color: #64748b;
    font-size: 0.9375rem;
}

.pt-verify-modal .num-wrapper,
.pt-verify .num-wrapper,
.pt-otp.num-wrapper {
    gap: 1rem;
}

.pt-otp__digit {
    width: 64px;
    height: 64px;
    padding: 0;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 64px;
    border: 2px solid #870a08;
    border-radius: 16px;
    background-color: #fff;
    color: #870a08 !important;
    -webkit-text-fill-color: #870a08;
    caret-color: #870a08;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.pt-otp__digit:focus {
    outline: none;
    border-color: #870a08;
    box-shadow: 0 0 0 3px rgba(135, 10, 8, 0.12);
    color: #870a08 !important;
    -webkit-text-fill-color: #870a08;
    background-color: #fff;
}

.pt-otp__digit--filled {
    color: #870a08 !important;
    -webkit-text-fill-color: #870a08;
}

.pt-otp__digit:-webkit-autofill,
.pt-otp__digit:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #870a08;
    color: #870a08 !important;
}

@media (max-width: 575.98px) {
    .pt-otp.num-wrapper {
        gap: 0.625rem;
    }

    .pt-otp__digit {
        width: 52px;
        height: 52px;
        line-height: 52px;
        font-size: 1.5rem;
        border-radius: 14px;
    }
}

.pt-verify-modal .verify-number,
.pt-verify .verify-number {
    width: 56px;
    height: 56px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: var(--primary-bold);
}

.pt-verify-modal .verify-number:focus,
.pt-verify .verify-number:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(135, 10, 8, 0.1);
}

.pt-verify-modal .btn-primary {
    border-radius: 999px;
    padding: 0.875rem;
    font-weight: 600;
}

/* ── Responsive ── */

@media (max-width: 992px) {
    .pt-landing__layout {
        grid-template-columns: 1fr;
    }

    .pt-landing__aside {
        order: -1;
    }

    .pt-landing__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pt-landing__cta {
        justify-content: center;
        width: 100%;
    }

    .pt-landing__signin {
        text-align: center;
    }

    .pt-role-grid {
        grid-template-columns: 1fr;
    }

    .pt-quiz__header {
        flex-direction: column;
        align-items: stretch;
    }

    .pt-quiz__actions {
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .pt-answer-scale {
        flex-direction: column;
        gap: 1rem;
    }

    .pt-answer-scale__label {
        min-width: auto;
    }

    .pt-answer-btn--agree,
    .pt-answer-btn--disagree {
        width: 60px;
        height: 60px;
    }

    .pt-quiz__nav {
        flex-direction: column;
    }

    .pt-quiz__nav .btn {
        width: 100%;
        justify-content: center;
    }

}

/* ── v2 scenario + character responses ── */

.pt-v2-responses {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.pt-v2-response {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    text-align: left;
    padding: 1rem 1.125rem;
    border: 1.5px solid #e8e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.pt-v2-response strong {
    color: var(--primary-bold);
    font-size: 0.9375rem;
}

.pt-v2-response span {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
}

.pt-v2-response:hover,
.pt-v2-response--selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 4px 16px rgba(135, 10, 8, 0.08);
}

.pt-results-v2__lead {
    font-size: 1.0625rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.pt-results-v2__section {
    background: #faf8f8;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: #334155;
    line-height: 1.7;
}

.pt-results-v2__tabs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pt-results-v2__panel {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: #fff;
}

.pt-results-v2__panel summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-bold);
}

.pt-results-v2__panel div {
    margin-top: 0.75rem;
    color: #4a5568;
    line-height: 1.6;
}

.pt-results-v2__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

