/* static/css/tests/test.css

/* General Layout */
body {
    font-family: 'Inter', sans-serif;
    color: #303030;
    margin: 0;
    padding: 0;
    /* For WebKit browsers (Chrome, Safari) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Optional: Improve text rendering */
    text-rendering: optimizeLegibility;
}

/* Smooth Auto-Scroll */
html {
    scroll-behavior: smooth;
}

.navbar-logo, .empty-area {
    width: 180px;
}

/* Landing Page Container */
.landing-container {
    max-width: 800px;
    margin: 0px auto;
    padding: 20px;
    border-radius: 10px;
}

#questions-container{
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.test-landing{
    background-color: white;
}

.test-container{
    background-color: #f7faff;
}

/* Logo */
.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 150px;
    height: auto;
}

/* Title */
.test-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Introduction */
.test-intro {
    font-size: 16px;
    line-height: 1.6;
}

/* Fixed Answer Scale Header */
#fixed-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: white;
    padding: 15px;
    z-index: 1000;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eaeffa;
    box-shadow: 0px 2px 6px #e6edfc8f;
}

.fixed-header{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.fixed-header p{
    margin-bottom: 0;
}

.fixed-header-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

/* Container */
.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 760px;
    gap: 10px;
    justify-content: center;
}

.progress-text, .step-label, .progress-percentage{
    font-size: 14px;
    color: grey;
}

/* Progress Wrapper */
.progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Info Icon */
.info-icon {
    font-size: 12px;
    color: #aaa;
    cursor: pointer;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    width: 100%;
    background-color: #ECF2FF;
    border-radius: 10px;
    position: relative;
}

/* Progress Fill */
.progress-fill {
    height: 100%;
    background-color: #274285; /* Dark blue */
    border-radius: 10px;
    transition: width 0.3s ease-in-out;
}

.fixed-scale-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    pointer-events: none;
}

.fixed-scale-options .answer-label{
    display: flex;
    height: 30px;
    align-items: flex-end;
    font-size: 12px;
    line-height: normal;
}

.fixed-circle-label {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle-wrapper{
    display: flex;
    height: 60px;
    justify-content: center;
    align-items: center;
}

/* Answer Radio Buttons */
.question {
    margin-top: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #eaeffa;
    box-shadow: 0px 2px 6px rgb(230 237 252 / 56%);
}

.question p {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 30px;
    line-height: normal;
    text-align: center;
    text-wrap: auto;
}

/* Answer Circles */

.answer-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.answer-label{
    font-size: 14px;
    color: grey;
}

.circle-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.circle-label input {
    display: none;
}

/* Circle Styles */
.circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* Apply different colors dynamically for 5 answers*/
.five-answers .circle-0 { width: 50px; height: 50px; border-color: #E75555; background-color: #e7555512; }
.five-answers .circle-1 { width: 44px; height: 44px; border-color: #FF995F; background-color: #ff9a5f0d; }
.five-answers .circle-2 { width: 38px; height: 38px; border-color: #a3b5db; background-color: #f6f6f675; }/* Center */
.five-answers .circle-3 { width: 44px; height: 44px; border-color: #81b952; background-color: #9bd55818; }
.five-answers .circle-4 { width: 50px; height: 50px; border-color: #73a10a; background-color: #99c8701a; }


.seven-answers .circle-0 { width: 50px; height: 50px; border-color: #E75555; background-color: #e7555512; }
.seven-answers .circle-1 { width: 44px; height: 44px; border-color: #FF995F; background-color: #ff9a5f0d; }
.seven-answers .circle-2 { width: 38px; height: 38px; border-color: #FFBF4E; background-color: #ffebc833; }
.seven-answers .circle-3 { width: 32px; height: 32px; border-color: #a3b5db; background-color: #f6f6f675; } /* Center */
.seven-answers .circle-4 { width: 38px; height: 38px; border-color: #CCC466; background-color: #fffde54d; }
.seven-answers .circle-5 { width: 44px; height: 44px; border-color: #81b952; background-color: #9bd55818; }
.seven-answers .circle-6 { width: 50px; height: 50px; border-color: #73a10a; background-color: #99c8701a; }

/* Hide the checkmark initially */
.circle i {
    font-size: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    position: absolute;
}

/* Selected Circle Effect */
.circle-label input:checked + .circle {
    background-color: rgba(0, 0, 0, 0.2);
    border-width: 3px;
    color: white;
    transition: all 0.3s ease-in-out;
}

/* Show the Font Awesome checkmark when checked */
.circle-label input:checked + .circle i {
    opacity: 1;
}

/* Selected Circle Effect - Custom Background Colors */
.five-answers .circle-label input:checked + .circle-0 {
    background-color: #E75555;
}
.five-answers .circle-label input:checked + .circle-1 {
    background-color: #FF995F;
}
.five-answers .circle-label input:checked + .circle-2 {
    background-color: #7793c9;
}
.five-answers .circle-label input:checked + .circle-3 {
    background-color: #81b952;
}
.five-answers .circle-label input:checked + .circle-4 {
    background-color: #73a10a;
}

/* Apply checked background color only when .seven-answers is present */
.seven-answers .circle-label input:checked + .circle-0 {
    background-color: #E75555;
}
.seven-answers .circle-label input:checked + .circle-1 {
    background-color: #FF995F;
}
.seven-answers .circle-label input:checked + .circle-2 {
    background-color: #FFBF4E;
}
.seven-answers .circle-label input:checked + .circle-3 {
    background-color: #7793c9;
} /* Center */
.seven-answers .circle-label input:checked + .circle-4 {
    background-color: #CCC466;
}
.seven-answers .circle-label input:checked + .circle-5 {
    background-color: #81b952;
}
.seven-answers .circle-label input:checked + .circle-6 {
    background-color: #73a10a;
}

/* Info popup */

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 0;
    right: 15px;
    font-size: 32px;
    color: #cac8c8;
    cursor: pointer;
}

/* Popup Content */

.popup-title{
    font-size: 20px;
}

.popup-content {
    background: white;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

/* Pagination Buttons */
.pagination-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-requirement{
    text-align: center;
    font-size: 14px;
    color: #595959;
}

.btn-secondary {
    display: inline-block;
    background-color: #6c757d;
    color: #fff;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.hidden {
    display: none;
}

/* Test Content */
.test-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-top: 20px;
}

/* Author */
.test-author {
    font-size: 14px;
    color: #777;
    margin-top: 30px;
}

/* Spinner Animation */
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {

    .navbar-logo, .empty-area {
        display: none;
    }

    .progress-text{
        display: none;
    }

    .landing-container{
        padding: 40px 0px;
    }

    .question{
        border-radius: 0px;
    }

    #questions-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .progress-container{
        width: 100%;
    }

    .pagination-container{
        padding-left: 20px;
        padding-right: 20px;
    }

    .answer-container{
        position: relative;
    }

    .answer-label{
        position: absolute;
        top: 60px;
    }

    .answer-label.left{
        left: 0;
    }

    .answer-label.right{
        right: 0;
    }

    .question {
        padding: 20px 20px 40px;
    }

    .question p{
        font-size: 16px;
        margin-bottom: 20px;
    }

    .fixed-scale-options .answer-label {
        height: 40px;
        width: min-content;
        position: static;
        line-height: normal;
    }

    #footer-copyright{
        display: none;
    }

}
/* One-question-per-page layout (answer_layout = single) */
.layout-single .question {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.layout-single .question p {
    text-align: center;
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 24px;
}
.question-image {
    text-align: center;
    margin-bottom: 20px;
}
.question-image img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 14px;
    object-fit: cover;
}

/* Multiple-choice questions (regular questions, one option per row) */
.mc-options {
    max-width: 420px;
    margin: 8px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mc-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #e7e7ea;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
    box-shadow: 0 1px 2px rgba(20,20,40,.04);
}
.mc-option:hover {
    border-color: #cfd2dc;
    box-shadow: 0 4px 14px rgba(20,20,40,.08);
}
.mc-option input[type="radio"] {
    display: none;
}
.mc-option .mc-label {
    font-size: 1.05rem;
    color: #1a1a2e;
    text-align: left;
}
.mc-option .mc-arrow {
    color: #9aa0ad;
    font-size: 1.15rem;
    transition: color .15s ease, transform .15s ease;
}
.mc-option:hover .mc-arrow {
    color: #1a1a2e;
    transform: translateX(3px);
}
/* Selected state */
.mc-option input[type="radio"]:checked ~ .mc-label {
    font-weight: 600;
}
.mc-option:has(input[type="radio"]:checked) {
    border-color: #274285;
    box-shadow: 0 0 0 2px rgba(39,66,133,.18);
}
.mc-option:has(input[type="radio"]:checked) .mc-arrow {
    color: #274285;
}

/* Colour dots for Likert rendered as option rows */
.mc-dot {
    width: 12px; height: 12px; border-radius: 50%;
    flex: 0 0 auto; margin-right: 4px; display: inline-block;
}
/* 5-option scale: green -> red */
.dot-of-5.dot-0 { background: #cdd9f0; }
.dot-of-5.dot-1 { background: #9fb6e4; }
.dot-of-5.dot-2 { background: #b9bfca; }
.dot-of-5.dot-3 { background: #5d7fca; }
.dot-of-5.dot-4 { background: #2f5bd1; }
/* 7-option scale: green -> red */
.dot-of-7.dot-0 { background: #cdd9f0; }
.dot-of-7.dot-1 { background: #a8bfe8; }
.dot-of-7.dot-2 { background: #86a1db; }
.dot-of-7.dot-3 { background: #b9bfca; }
.dot-of-7.dot-4 { background: #6a8ad0; }
.dot-of-7.dot-5 { background: #f1948a; }
.dot-of-7.dot-6 { background: #e74c3c; }
.mc-option .mc-label { flex: 1 1 auto; }

/* ─── Clean quiz top bar (TestLibrary / Personality.co style) ─── */
.quiz-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; gap: 12px;
    height: 56px; padding: 0 18px;
    background: #fff; border-bottom: 1px solid #eef1f6;
}
.quiz-topbar .quiz-back {
    background: none; border: 0; color: #1f2a44; font-size: 1.05rem;
    cursor: pointer; padding: 6px 8px; border-radius: 8px; line-height: 1;
}
.quiz-topbar .quiz-back:hover { background: #f2f4f8; }
.quiz-topbar .quiz-logo { height: 24px; margin: 0 auto; }
.quiz-topbar .quiz-counter {
    font-size: .9rem; font-weight: 700; color: #8a93a5; letter-spacing: .02em;
}
.quiz-topbar .quiz-progress {
    position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: #eef1f6;
}
.quiz-topbar .quiz-progress-fill {
    height: 100%; background: #2f5bd1; width: 0; transition: width .3s ease;
}

/* push quiz content below the fixed bar and centre it vertically */
#test-quiz.layout-single #questions-container {
    min-height: calc(100vh - 56px);
    padding: 90px 16px 40px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.quiz-instruction {
    position: fixed; top: 56px; left: 0; right: 0; z-index: 999;
    text-align: center; font-size: .9rem; color: #8a93a5;
    padding: 10px 16px; pointer-events: none;
}

/* ─── Flow screens: intro (guidelines) + congrats ─── */
.flow-screen {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; background: #faf6f1;
}
.flow-card {
    max-width: 520px; width: 100%; text-align: center;
    background: #fff; border: 1px solid #eef1f6; border-radius: 18px;
    padding: 44px 36px; box-shadow: 0 10px 40px rgba(31,42,68,.06);
}
.flow-icon {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: #eef2fb; color: #2f5bd1; font-size: 1.6rem;
}
.flow-icon.success { background: #e4f6ec; color: #1e8e4e; }
.flow-title { font-size: 1.7rem; font-weight: 800; color: #1f2a44; margin: 0 0 20px; }
.flow-subtitle { color: #6b7280; margin: 0 0 24px; }
.flow-bullets { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.flow-bullets li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 0; color: #3f4759; font-size: 1rem; line-height: 1.45;
}
.flow-bullets li i { color: #1e8e4e; margin-top: 3px; flex: 0 0 auto; }
.flow-cta {
    width: 100%; padding: 14px 20px; font-size: 1.02rem; font-weight: 700;
    border-radius: 12px;
}
.flow-cta i { margin-left: 8px; }
.flow-secondary {
    display: block; width: 100%; margin-top: 14px; background: none; border: 0;
    color: #8a93a5; font-size: .92rem; cursor: pointer; padding: 8px;
}
.flow-secondary:hover { color: #1f2a44; }

/* ─── Cleaner single question look ─── */
#test-quiz.layout-single .question {
    max-width: 640px; margin: 0 auto; text-align: center;
}
#test-quiz.layout-single .question > p {
    font-size: 1.55rem; font-weight: 700; color: #1f2a44;
    line-height: 1.35; margin: 24px 0 40px;
}
#test-quiz.layout-single .mc-options { max-width: 460px; margin: 0 auto; }

/* ─── Landing marketing sections ─── */
.section-title { font-size: 1.9rem; font-weight: 800; color: #1f2a44; margin: 0 0 8px; }
.section-subtitle { color: #6b7280; margin: 0 0 8px; }
.text-center { text-align: center; }

.landing-stats { padding: 40px 0; }
.landing-stats .stats-row {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    background: #274285; border-radius: 18px; padding: 32px 24px;
}
.landing-stats .stat-item { text-align: center; color: #fff; }
.landing-stats .stat-value { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.landing-stats .stat-label { font-size: .9rem; opacity: .85; margin-top: 6px; }

.landing-how { padding: 48px 0; }
.landing-how .section-title { margin-bottom: 34px; }
.how-steps { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.how-step { flex: 1 1 240px; max-width: 300px; text-align: center; }
.how-step-num {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
    background: #eef2fb; color: #274285; font-weight: 800; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.how-step-title { font-weight: 700; color: #1f2a44; margin-bottom: 6px; }
.how-step-sub { color: #6b7280; font-size: .93rem; line-height: 1.45; }

.landing-constructs { padding: 48px 0 56px; }
.landing-constructs .section-title { margin-bottom: 6px; }
.landing-constructs .section-subtitle { margin-bottom: 34px; }
.constructs-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px;
}
.construct-card {
    background: #fff; border: 1px solid #eef1f6; border-radius: 16px;
    padding: 26px 22px; text-align: center; box-shadow: 0 6px 24px rgba(31,42,68,.05);
}
.construct-card .construct-icon { width: 56px; height: 56px; margin-bottom: 14px; object-fit: contain; }
.construct-card .construct-name { font-weight: 700; color: #1f2a44; margin-bottom: 8px; font-size: 1.05rem; }
.construct-card .construct-desc { color: #6b7280; font-size: .9rem; line-height: 1.5; }
.landing-cta-wrap .btn-primary { padding: 14px 32px; font-size: 1.02rem; }

@media (max-width: 768px) {
    .constructs-grid { grid-template-columns: 1fr; }
    .landing-stats .stats-row { gap: 28px; }
}


/* =====================================================================
   APPEND THIS TO THE END OF static/css/tests/test.css
   (placed last so it overrides the earlier .layout-single rules)
   ===================================================================== */

/* ─── 1. Single-layout question: drop the white card, sit on the page bg ─── */
#test-quiz.layout-single .question {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 20px 0;
}

/* ─── 2. Lighter prompt weight (was 700) ─── */
#test-quiz.layout-single .question > p {
    font-weight: 600;
}

/* ─── 3. Analysing screen ─── */
.analyzing-screen {
    align-items: flex-start;   /* content sits near the top like the reference */
}
.analyzing-inner {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding-top: 8px;
}
.analyzing-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1f2a44;
    margin: 8px 0 40px;
}

.analyzing-steps {
    margin-bottom: 44px;
}
.analyzing-step {
    margin-bottom: 26px;
    opacity: .5;
    transition: opacity .3s ease;
}
.analyzing-step.active {
    opacity: 1;
}
.analyzing-step-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #1f2a44;
}
.analyzing-step-sub {
    color: #6b7280;
    margin: 4px 0 12px;
    font-size: .96rem;
}
.analyzing-bar {
    height: 10px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}
.analyzing-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 20px;
    background: #2f5bd1;
    transition: width 1.1s ease;
}

/* Reviews */
.analyzing-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.analyzing-review {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(31,42,68,.06);
    opacity: 0;
    transform: translateY(10px);
    animation: reviewIn .5s ease forwards;
}
.analyzing-review:nth-child(2) { animation-delay: .12s; }
.analyzing-review:nth-child(3) { animation-delay: .24s; }
@keyframes reviewIn {
    to { opacity: 1; transform: translateY(0); }
}
.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.review-who {
    display: flex;
    align-items: center;
    gap: 10px;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.review-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2fb;
    color: #274285;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-name {
    font-weight: 700;
    color: #1f2a44;
    font-size: .96rem;
}
.review-loc {
    color: #8a93a5;
    font-size: .8rem;
}
.review-verified {
    color: #1e8e4e;
    font-weight: 700;
    font-size: .78rem;
    white-space: nowrap;
}
.review-verified i { margin-right: 4px; }
.review-stars {
    color: #f5b301;
    margin-bottom: 8px;
    font-size: .88rem;
}
.review-text {
    color: #3f4759;
    font-size: .9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .analyzing-title { font-size: 1.7rem; margin-bottom: 28px; }
    .analyzing-reviews { grid-template-columns: 1fr; }
    .analyzing-inner { padding-top: 24px; }
}