/* =========================================================
   GLOBAL FOUNDATION – Matches Your Website Branding
   ========================================================= */
.cscs-mock-exam-root,
.cscs-mock-exam-wrapper {
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.cscs-mock-exam-wrapper * {
    box-sizing: inherit;
}

.cscs-mock-exam-root {
    max-width: 950px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* =========================================================
   EXAM SELECTION CARDS
   ========================================================= */
.cscs-exam-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
}

.cscs-exam-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px 26px;
    width: 300px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    text-align: center;
}

.cscs-exam-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: #f6b132;
    border-radius: 16px 16px 0 0;
}

.cscs-exam-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.15);
}

.cscs-exam-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #222222;
    margin-bottom: 6px;
}

.cscs-exam-meta {
    margin-bottom: 16px;
    color: #6f6f6f;
    font-size: 0.85rem;
}

.cscs-exam-start-btn {
    padding: 10px 16px;
    background: #f6b132;
    color: #222222;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block;
    margin: 12px auto 0 auto;
}

.cscs-exam-start-btn:hover {
    background: #e4a12c;
}

/* =========================================================
   EXAM HEADER + TIMER + PROGRESS BAR
   ========================================================= */
.cscs-exam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cscs-exam-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #222222;
}

.cscs-exam-progress {
    font-size: 0.9rem;
    color: #6f6f6f;
}

/* Timer capsule */
.cscs-exam-timer {
    background: #222222;
    color: #f6b132;
    padding: 8px 16px;
    font-weight: 700;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Progress bar container under timer & header */
.cscs-progress-bar-wrapper {
    margin-top: 8px;
    margin-bottom: 10px;
}

.cscs-progress-bar-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.cscs-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #22c55e, #f6b132);
    border-radius: inherit;
    transition: width 0.25s ease;
}

/* =========================================================
   OTHER EXAM SWITCH CARD
   ========================================================= */
.cscs-other-exam-card {
    width: fit-content;
    padding: 8px 14px;
    background: #222222;
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-bottom: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.20);
}

/* =========================================================
   QUESTION CARD
   ========================================================= */
.cscs-question-card {
    background: #f7f4ef;
    padding: 20px;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.cscs-question-inline {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 16px;
}

/* =========================================================
   OPTIONS
   ========================================================= */
.cscs-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.cscs-option-card {
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cscs-option-card:hover {
    border-color: #f6b132;
}

.cscs-option-selected {
    background: #fff7e6;
    border-color: #f6b132 !important;
}

/* Review states */
.cscs-option-correct {
    background: #d4f8df !important;
    border-color: #16a34a !important;
}

.cscs-option-user-wrong {
    background: #ffe1e1 !important;
    border-color: #dc2626 !important;
}

/* =========================================================
   NEXT BUTTON
   ========================================================= */
.cscs-question-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.cscs-next-btn {
    padding: 10px 20px;
    background: #f6b132;
    color: #222222;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.cscs-next-enabled {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* =========================================================
   RESULTS AREA + CIRCULAR SCORE + REVIEW
   ========================================================= */
.cscs-results-wrapper {
    margin-top: 24px;
}

/* Circular meter container */
.cscs-score-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cscs-score-left {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cscs-score-right {
    flex: 1 1 300px;
}

/* Circular Score Meter */
.cscs-score-circle-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px auto;
    position: relative;
}

.cscs-score-circle-container svg {
    width: 180px;
    height: 180px;
    transform: rotate(-90deg);
}

.cscs-score-bg {
    stroke: #444444;
}


.cscs-score-meter {
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
    stroke: url(#cscs-multi-gradient);
}

.cscs-score-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1.6rem;
    color: #ffffff;   /* Always visible */
    text-shadow: 0 2px 4px rgba(0,0,0,0.45);
}


.cscs-result-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222222;
    text-align: center;
}

.cscs-result-sub {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
}

/* PASS highlight */
.cscs-result-pass {
    background: #d9f5df;
    color: #137a2a;
    border-left: 6px solid #16a34a;
}

/* FAIL highlight */
.cscs-result-fail {
    background: #fde1e1;
    color: #b91c1c;
    border-left: 6px solid #dc2626;
}

/* Review list */
.cscs-review-list {
    margin-top: 16px;
}

.cscs-review-item {
    background: #f7f4ef;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.cscs-review-question {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.cscs-review-options {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
}

/* =========================================================
   RESULT ACTION BUTTONS – PREMIUM STYLE
   ========================================================= */

.cscs-results-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* GENERIC BUTTON BASE */
.cscs-result-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 26px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* GOLD BUTTON */
.cscs-primary-btn {
    background: #f6b132;
    color: #222222;
}

.cscs-primary-btn:hover {
    background: #e4a12c;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(246, 177, 50, 0.35);
}

/* DARK BUTTON */
.cscs-secondary-btn {
    background: #222222;
    color: #ffffff;
}

.cscs-secondary-btn:hover {
    background: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .cscs-options-grid,
    .cscs-review-options {
        grid-template-columns: 1fr;
    }

    .cscs-score-layout {
        flex-direction: column;
    }

    .cscs-score-right {
        width: 100%;
    }
}

.cscs-next-btn.submit-mode {
    background: #f6b132 !important;
    color: #222222 !important;
    box-shadow: 0 0 12px rgba(246,177,50,0.4);
}

