/* Placement Test Specific Styles */

:root {
    /* Use ESLFlix Variables where possible, fallback if standalone */
    --primary-color: #e50914;
    --primary-hover: #b2070f;
    --bg-color-dark: #121212;
    --text-color-dark: #f0f0f0;
    --bg-color-light: #f5f5f5;
    --text-color-light: #333;
    --warning-color: #f1c40f;

    --dpt-level-a1-text: #38761d;
    --dpt-level-a1-bg: #d9ead3;
    --dpt-level-a2-text: #274e13;
    --dpt-level-a2-bg: #c9dfc1;
    --dpt-level-b1-text: #b45f06;
    --dpt-level-b1-bg: #fce5cd;
    --dpt-level-b2-text: #a64d00;
    --dpt-level-b2-bg: #f9d5b4;
    --dpt-level-c1-text: #990000;
    --dpt-level-c1-bg: #f4cccc;
    --dpt-level-c2-text: #660000;
    --dpt-level-c2-bg: #ea9999;
    --dpt-level-pre-a1-text: #4a4a4a;
    --dpt-level-pre-a1-bg: #e0e0e0;
}

/* Subheading Style */
.sub-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    margin-top: -15px;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 5;
}

body.light-mode .sub-title {
    color: #111 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Container overrides */
.placement-test-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Base Button Style (ESLFlix) */
.action-btn,
#next-btn,
#start-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
    line-height: normal;
}

.action-btn:hover,
#next-btn:hover,
#start-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4);
}

.action-btn:disabled,
#next-btn:disabled,
#start-btn:disabled {
    background-color: #555 !important;
    color: #aaa !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7 !important;
    /* Slightly faded */
}

/* Start Screen */
.start-screen-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

body.light-mode .start-screen-container {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Form Layout - Side by Side on Desktop */
.input-group {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.input-group label {
    flex: 0 0 140px;
    /* Fixed width for labels */
    margin-top: 12px;
    margin-bottom: 0;
    font-weight: 600;
    text-align: right;
}

@media (max-width: 600px) {
    .input-group {
        gap: 10px;
        /* Reduce gap */
    }

    .input-group label {
        flex: 0 0 100px;
        /* Reduced specific width so input has more room */
        text-align: right;
        /* Keep right aligned */
        margin-top: 12px;
        font-size: 0.9rem;
        /* Slightly smaller text if needed */
    }
}

.input-wrapper {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.input-wrapper small {
    margin-left: 0;
    margin-top: 5px;
    /* Align check with input */
    display: block;
    width: 100%;
}

/* Inputs */
.form-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #444;
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

body.light-mode .form-input {
    background: white;
    border-color: #ddd;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Question Header (Level & Counter) */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}

body.light-mode .question-header {
    border-bottom-color: #eee;
}

.level-indicator {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    background: rgba(229, 9, 20, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.question-counter {
    font-weight: 600;
    font-size: 0.9rem;
    color: #888;
}

body.light-mode .question-counter {
    color: #666;
}

/* Question Screen */
.question-container {
    display: none;
    /* Hidden by default */
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);

    /* Animation base */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-height: 400px;
    overflow: hidden;
    flex-direction: column;
}

.question-content-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Desktop Only: Vertical Centering */
@media (min-width: 601px) {
    .question-container {
        min-height: 350px;
    }

    .question-content-wrapper {
        justify-content: center;
    }
}



.question-content-wrapper.fade-out {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

body.light-mode .question-container {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.question-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 600;
    text-align: center;
}

.blank-line {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -2px;
    /* Force underscores to touch */
}

/* Options Grid */
.options-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
    /* Default fallback */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 3 Options: 1 row of 3 */
.options-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 Options: 2 rows of 2 */
.options-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
}

.option-btn {
    background: transparent;
    border: 2px solid #555;
    padding: 15px 20px;
    border-radius: 10px;
    color: inherit;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
    display: flex;
    align-items: center;
}

body.light-mode .option-btn {
    border-color: #ddd;
    color: #333;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: rgba(229, 9, 20, 0.05);
    transform: translateY(-2px);
}

.option-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    /* Force white text for readability in all modes */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .controls {
    border-top-color: #eee;
}

.dont-know-btn {
    background: transparent;
    border: 1px solid #666;
    color: #888;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dont-know-btn:hover {
    border-color: #f1c40f;
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

body.light-mode .dont-know-btn:hover {
    border-color: #f1c40f;
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.dont-know-btn.selected {
    border-color: #f1c40f;
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

/* Results */
.results-container {
    display: none;
    text-align: center;
    padding: 40px;
}

.email-blacklist-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.email-blacklist-modal.active {
    display: flex;
    animation: fadeInModal 0.3s ease;
}

.email-blacklist-modal-content {
    width: min(100%, 480px);
    background: #1a1a1a;
    color: #f0f0f0;
    border: 1px solid #3b3b3b;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    text-align: left;
}

body.light-mode .email-blacklist-modal-content {
    background: #ffffff;
    color: #333333;
    border-color: #dddddd;
}

.email-blacklist-modal-content h3 {
    margin: 0 0 14px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.email-blacklist-modal-content p {
    margin: 0 0 24px;
    line-height: 1.6;
    font-size: 1rem;
}

.email-blacklist-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #999999;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.email-blacklist-modal-close:hover,
.email-blacklist-modal-close:focus {
    color: var(--primary-color);
}

/* Gradient Result text removed - Reverted to solid red */
.main-level-badge {
    position: static;
    margin-top: 20px;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

/* Share Icon */
.share-icon {
    font-size: 1.5rem;
    /* Smaller structure related to the badge */
    margin-left: 15px;
    color: #888;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.3s, transform 0.3s;
}

.share-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
    animation: fadeInModal 0.3s;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.share-modal.closing {
    animation: fadeOutModal 0.3s forwards;
}

@keyframes fadeOutModal {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.share-modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 30px;
    border: 1px solid #444;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.light-mode .share-modal-content {
    background-color: #fff;
    border-color: #ddd;
    color: #333;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.share-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Social Links */
.share-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    width: 60px;
    /* Larger hit area */
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    border: none;
    cursor: pointer;
    background: none;
    /* Reset if needed */
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-btn.fb {
    background-color: #3b5998;
}

.social-btn.x {
    background-color: #000;
    border: 1px solid #333;
}

.social-btn.li {
    background-color: #0077b5;
}

.social-btn.wa {
    background-color: #25d366;
}

/* QR Code - Removed from Modal */
/*.qr-section { display: none; } */

/* URL Copy */
.url-copy-container {
    display: flex;
    gap: 10px;
}

#share-url {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: rgba(0, 0, 0, 0.2);
    color: #ccc;
    font-size: 0.9rem;
}

body.light-mode #share-url {
    background: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

#copy-btn {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#copy-btn:hover {
    background: var(--primary-hover);
}

#share-url::selection {
    background: #38761d;
    color: white;
}

/* Hidden Share Card for Image Generation */
.share-card-element {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 600px;
    height: 600px;
    /* Square for Instagram/Social */
    background: radial-gradient(circle at top right, #2a2a2a, #121212);
    color: white;
    padding: 40px;
    border: 2px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.share-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.sc-logo {
    font-size: 2rem;
    font-weight: bold;
}

.sc-logo .esl {
    color: var(--primary-color);
}

.sc-url {
    color: #888;
    font-size: 1.2rem;
}

.share-card-body {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.sc-title {
    font-size: 1.5rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sc-student-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.sc-level-badge {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sc-date {
    font-size: 1.2rem;
    color: #888;
}

.share-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Align QR right? Or center maybe */
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}



.sc-qr-code {
    background: white;
    padding: 10px;
    border-radius: 8px;
}


body.light-mode .loading-spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

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

    100% {
        transform: rotate(360deg);
    }
}


/* ----------------------------------------------------------------
 * REDESIGN COMPACT RESULTS Styles
 * ---------------------------------------------------------------- */

.results-page-content {
    max-width: 1000px;
    /* Slight increase for 2-col layout */
    margin: 0 auto;
    padding-bottom: 60px;
}

/* Header Grid: Info Left, Chart Right */
.results-header-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Info takes less space, Chart takes more */
    gap: 30px;
    margin-bottom: 40px;
}

/* Info Card */
.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.light-mode .info-card {
    background: white;
    border-color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.student-details h2 {
    margin: 0 0 15px 0;
    font-size: 2rem;
    color: inherit;
}

.meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #aaa;
}

body.light-mode .meta-row {
    color: #666;
}

.meta-icon {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    color: var(--primary-color);
}

/* Vertical ribbon or bg effect for info card? */
.info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--primary-color);
}


/* Old main-level-badge rules removed */

/* Chart Card */
.chart-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    height: 300px;
}

body.light-mode .chart-card {
    background: white;
    border-color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Tabs */
.tabs-nav {
    display: flex;
    position: relative;
    /* Ensure offsetLeft is relative to this container */
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* Scrollbar space */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    /* Center the tabs */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

@media (max-width: 800px) {
    .tabs-nav {
        justify-content: flex-start;
    }

    .tab-btn {
        flex-shrink: 0;
    }
}

body.light-mode .tabs-nav {
    border-bottom-color: #e0e0e0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #fff;
}

body.light-mode .tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Answers Grid */
/* Answers Grid (Masonry Simulation) */
.results-cols-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.results-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 800px) {
    .results-cols-container {
        flex-direction: column;
    }
}

/* Result Card */
.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

body.light-mode .result-card {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-mode .result-card:hover {
    border-color: #ccc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Colored strip on left */
/* Colored strip on left - Force precedence over generic border */
.result-card.correct {
    border-left: 4px solid #38761d !important;
}

.result-card.incorrect {
    border-left: 4px solid var(--primary-color) !important;
}

.result-card.dont-know {
    border-left: 4px solid var(--warning-color) !important;
}

.result-card-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.q-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.q-num {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.status-badge {
    font-size: 1.2rem;
}

.status-badge.correct {
    color: #38761d;
}

.status-badge.incorrect {
    color: var(--primary-color);
}

.status-badge.dont-know {
    color: var(--warning-color);
}

.q-preview {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    color: inherit;
}

.card-expand-icon {
    color: #888;
    transition: transform 0.3s;
}

.result-card.expanded .card-expand-icon {
    transform: rotate(180deg);
}

/* Card Expanded Body */
.result-card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 20px;
    /* Vertical padding 0 initially to hide completely */
    border-top: 1px solid transparent;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .result-card-body {
    background: #f9f9f9;
}

.result-card.expanded .result-card-body {
    max-height: 1000px;
    /* Large enough to fit content */
    opacity: 1;
    padding: 20px;
    border-top-color: rgba(255, 255, 255, 0.05);
    margin-top: 5px;
}

body.light-mode .result-card.expanded .result-card-body {
    border-top-color: #eee;
}

.full-question {
    padding-top: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1rem;
}

.blank-line-small {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 2px;
}

.answer-row {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
}

.ans-label {
    width: 100px;
    color: #888;
    font-size: 0.9rem;
    text-align: right;
}

.ans-val {
    flex: 1;
    font-weight: bold;
}

.ans-val.correct {
    color: #38761d;
}

.ans-val.incorrect {
    color: var(--primary-color);
}

.ans-val.dont-know {
    color: var(--warning-color);
}

.badge-dk {
    background: rgba(241, 196, 15, 0.1);
    color: var(--warning-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: inline-block;
}

.explanation-box {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #888;
    font-size: 0.9rem;
    border-radius: 4px;
    line-height: 1.5;
}

body.light-mode .explanation-box {
    background: white;
    border: 1px solid #eee;
    border-left: 3px solid #999;
}


/* Base Main Level Badge */
.main-level-badge {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.final-level-display {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
    text-align: center;
    line-height: 1;
}

/* Mobile Redesign Adjustments */
@media (max-width: 800px) {
    .results-header-grid {
        grid-template-columns: 1fr;
    }

    .answers-grid {
        grid-template-columns: 1fr;
    }

    .main-level-badge {
        position: static;
        margin-top: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.5rem;
        /* Decrease from default if needed */
    }

    .final-level-display {
        font-size: 9rem;
    }

    .info-card {
        text-align: left;
        /* Ensure left alignment if favored, or center */
        align-items: flex-start;
    }

    /* Small adjustment for share icon size if needed */
    .share-icon {
        font-size: 1.2rem;
    }
}

/* Mobile: Full Width & Remove Container Padding */
@media (max-width: 600px) {

    /* Target the main theme container to remove its padding for the TEST */
    body.placement-test-page .content-container {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Override for RESULTS page to have 90% width and spacing */
    body.placement-test-page.results-page .content-container {
        width: 90% !important;
        max-width: 90% !important;
        margin: 30px auto 0 auto !important;
    }

    .placement-test-container {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .question-container,
    .start-screen-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
        /* Keep some internal padding so text doesn't touch screen edges, 
           but reduce it from 40px to 15px */
        padding: 20px 15px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .email-blacklist-modal-content {
        padding: 24px 20px 20px;
    }
}

/* Sub Title Styles */
.sub-title {
    text-align: center;
    font-weight: 600;
    margin-top: -15px !important;
    margin-bottom: 20px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
}

body.light-mode .sub-title {
    color: #333;
    text-shadow: none;
}
