/* =========================================================
   Ollato Student Assessment Test
   Final Clean CSS - Modified
========================================================= */

.no-copy {
    user-select: none;
    -webkit-user-select: none;
}

.test-page-wrapper {
    width: 100%;
    max-width: 1180px;
    min-height: 100vh;
    margin: 0 auto;
    display: block;
    overflow: visible;
}

/* =========================================================
   Sticky Header
========================================================= */

.test-sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #eef4ff;
    padding-bottom: 12px;
}

/* Topbar */
.test-topbar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 0;
    padding: 22px 26px;
    min-height: 118px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.16), transparent 30%),
        radial-gradient(circle at 15% 80%, rgba(37, 99, 235, 0.14), transparent 30%),
        linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #dbe3ef;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.test-topbar::before {
    content: "✦";
    position: absolute;
    right: 170px;
    top: 12px;
    color: rgba(37, 99, 235, 0.12);
    font-size: 68px;
    font-weight: 900;
    transform: rotate(-12deg);
}

.test-topbar::after {
    content: "✓";
    position: absolute;
    right: 36px;
    bottom: -22px;
    color: rgba(124, 58, 237, 0.10);
    font-size: 112px;
    font-weight: 900;
}

.test-title-area {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: calc(100% - 230px);
}

.test-eyebrow {
    margin: 0 0 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.test-topbar h1 {
    margin: 0;
    color: #0f172a;
    font-size: 25px;
    font-weight: 950;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

/* Small status below assessment name */
.test-mini-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.test-mini-status span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: #475569;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.test-mini-status strong,
.test-mini-status #answeredCountText,
#answeredCountText {
    color: #2563eb;
    font-weight: 950;
}

/* =========================================================
   Circular Progress + Circular Timer
========================================================= */

.test-status-circles {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

/* Circular progress */
.circle-progress {
    --progress: 0;

    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        conic-gradient(
            #2563eb calc(var(--progress) * 1%),
            #e2e8f0 0
        );
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.circle-progress-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.06);
}

.circle-progress-inner strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
    line-height: 1;
}

.circle-progress-inner span {
    margin-top: 4px;
    color: #64748b;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

/* Circular timer with decreasing ring */
.circle-timer {
    --timer-progress: 100;
    --timer-color: #2563eb;

    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        conic-gradient(
            var(--timer-color) calc(var(--timer-progress) * 1%),
            #e2e8f0 0
        );
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.16);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.circle-timer-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.06);
}

.circle-timer-inner span {
    color: #64748b;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.circle-timer-inner strong {
    margin-top: 4px;
    color: var(--timer-color);
    font-size: 16px;
    font-weight: 950;
    line-height: 1;
    transition: color 0.3s ease;
}

/* =========================================================
   Page / Answer Info Cards
   Hidden because status is now below assessment name
========================================================= */

.test-progress-line {
    display: none !important;
}

.progress-info-card {
    padding: 11px 14px;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.progress-info-card.center {
    text-align: center;
}

.progress-info-card span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.progress-info-card strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

/* Old horizontal progress hidden */
.test-progress-track,
.test-progress-fill {
    display: none !important;
}

/* =========================================================
   Question Card / Normal Page Scroll
========================================================= */

.test-question-card {
    flex: none;
    overflow: visible;
    margin-top: 0;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

/* Hide internal scrollbar because page scroll is used */
.test-question-card::-webkit-scrollbar {
    display: none;
}

/* Question Pages */
.question-page {
    display: none;
}

.question-page.active {
    display: block;
}

/* Questions */
.test-question-block {
    padding: 14px 0 22px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}

.test-question-block:last-child {
    border-bottom: 0;
}

.test-question-block h2 {
    margin: 0 0 10px;
    color: #174ec9;
    font-size: 15.5px;
    font-weight: 950;
    line-height: 1.45;
}

.test-question-block h2 span {
    color: #174ec9;
    font-weight: 950;
}

/* =========================================================
   Small Professional Options
========================================================= */

.test-option-row {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(82px, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
    max-width: 760px;
}

.test-option-btn {
    position: relative;
    cursor: pointer;
    min-height: 52px;
    padding: 7px 8px;
    border-radius: 13px;
    border: 1px solid #dbe3ef;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    color: #1e293b;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 900;
    text-align: center;
    transition: 0.25s ease;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.04);
}

.test-option-btn input[type="radio"] {
    display: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.option-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    line-height: 1;
    flex: 0 0 auto;
}

.option-label {
    font-size: 11.5px;
    font-weight: 950;
    line-height: 1.15;
}

.test-option-btn:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
}

/* Icon background colors */
.option-never .option-icon {
    background: #fee2e2;
    border-color: #fecaca;
}

.option-rarely .option-icon {
    background: #ffedd5;
    border-color: #fed7aa;
}

.option-sometimes .option-icon {
    background: #fef9c3;
    border-color: #fde68a;
}

.option-often .option-icon {
    background: #dcfce7;
    border-color: #bbf7d0;
}

.option-always .option-icon {
    background: #d1fae5;
    border-color: #a7f3d0;
}

/* Selected states */
.test-option-btn.selected,
.test-option-btn:has(input[type="radio"]:checked) {
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.20);
}

.option-never.selected,
.option-never:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #7c3aed7d, #2563eb);
}

.option-rarely.selected,
.option-rarely:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #7c3aed7d, #2563eb);
}

.option-sometimes.selected,
.option-sometimes:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #7c3aed7d, #2563eb);
 
}

.option-often.selected,
.option-often:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #7c3aed7d, #2563eb);
}

.option-always.selected,
.option-always:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #7c3aed7d, #2563eb);
}

.test-option-btn.selected .option-icon,
.test-option-btn:has(input[type="radio"]:checked) .option-icon {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.46);
}

.test-option-btn.selected::after,
.test-option-btn:has(input[type="radio"]:checked)::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.30);
    color: inherit;
    font-size: 9px;
    font-weight: 950;
}

/* =========================================================
   Alert + Buttons
========================================================= */

.test-alert {
    display: none;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 14px;
    font-weight: 850;
}

.test-alert.show {
    display: block;
}

.test-action-row {
    position: static !important;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
    padding-top: 18px;
    padding-bottom: 4px;
    background: transparent !important;
}

.test-nav-btn {
    min-width: 150px;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    transition: 0.22s ease;
}

.test-nav-btn.primary,
.test-nav-btn.submit {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.test-nav-btn.secondary {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.test-nav-btn:hover {
    transform: translateY(-1px);
}

.test-nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

#submitTestBtn,
#testThankyouCard {
    display: none;
}

#testThankyouCard.show {
    display: block;
}

/* =========================================================
   Thank You
========================================================= */

.test-thankyou-card {
    padding: 46px 30px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    text-align: center;
    margin-top: 24px;
}

.thankyou-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    font-size: 40px;
    font-weight: 900;
}

.test-thankyou-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 32px;
    font-weight: 950;
}

.test-thankyou-card p {
    max-width: 620px;
    margin: 0 auto 22px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 992px) {
    .test-page-wrapper {
        height: auto;
        overflow: visible;
    }

    .test-sticky-header {
        position: sticky;
        top: 0;
    }

    .test-question-card {
        overflow: visible;
    }

    .test-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .test-title-area {
        max-width: 100%;
    }

    .test-status-circles {
        width: 100%;
        justify-content: flex-start;
    }

    .test-option-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .test-topbar {
        min-height: auto;
        padding: 16px;
        border-radius: 20px;
    }

    .test-topbar h1 {
        font-size: 20px;
    }

    .test-mini-status {
        gap: 7px;
    }

    .test-mini-status span {
        font-size: 11px;
        padding: 6px 8px;
    }

    .test-status-circles {
        justify-content: space-between;
        margin-top: 12px;
    }

    .circle-progress,
    .circle-timer {
        width: 72px;
        height: 72px;
    }

    .circle-progress-inner,
    .circle-timer-inner {
        width: 54px;
        height: 54px;
    }

    .circle-progress-inner strong,
    .circle-timer-inner strong {
        font-size: 14px;
    }

    .circle-progress-inner span,
    .circle-timer-inner span {
        font-size: 8px;
    }

    .test-question-card {
        padding: 16px;
        border-radius: 18px;
    }

    .test-option-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .test-option-btn {
        min-height: 48px;
        flex-direction: row;
        justify-content: flex-start;
        padding: 8px 30px 8px 8px;
        gap: 7px;
        text-align: left;
    }

    .option-icon {
        width: 28px;
        height: 28px;
    }

    .option-label {
        text-align: left;
    }

    .test-action-row {
        flex-direction: column;
    }

    .test-nav-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .test-status-circles {
        flex-direction: row !important;
        align-items: center;
        gap: 10px;
    }

    .circle-progress,
    .circle-timer {
        width: 68px;
        height: 68px;
    }

    .circle-progress-inner,
    .circle-timer-inner {
        width: 52px;
        height: 52px;
    }

    .test-option-row {
        grid-template-columns: 1fr !important;
    }

    .test-option-btn {
        min-height: 46px;
    }
}