/**
 * AI Level Test - SDM Corporate Design
 * Based on SDM Dil Okulu Brand Identity
 * FORCED LIGHT THEME
 */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =====================================================
   CSS Variables - SDM Brand Colors
   ===================================================== */
:root {
    /* Force light mode */
    color-scheme: light only;

    /* SDM Primary Colors */
    --alt-primary: #FFC800;
    --alt-primary-hover: #e6b400;
    --alt-primary-light: rgba(255, 200, 0, 0.15);

    /* Text Colors */
    --alt-text-dark: #1c1c1c;
    --alt-text-grey: #6B7280;
    --alt-text-light: #9CA3AF;

    /* Background Colors */
    --alt-bg-white: #ffffff;
    --alt-bg-light: #f9fafb;
    --alt-bg-card: #ffffff;
    --alt-bg-input: #f9fafb;

    /* Border Colors */
    --alt-border: #E5E7EB;
    --alt-border-hover: #D1D5DB;

    /* Status Colors */
    --alt-success: #10b981;
    --alt-warning: #f59e0b;
    --alt-danger: #ef4444;

    /* Shadows */
    --alt-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --alt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);

    /* Radius */
    --alt-radius: 12px;
    --alt-radius-sm: 8px;
    --alt-radius-lg: 16px;

    /* Transitions */
    --alt-transition: all 0.3s ease;
}

/* =====================================================
   Base Wrapper - Force Light Theme
   ===================================================== */
.ai-level-test-wrapper {
    font-family: 'Poppins', sans-serif;
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    color: #1c1c1c !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color-scheme: light only;
}

.ai-level-test-wrapper * {
    box-sizing: border-box;
    color-scheme: light only;
}

.ai-level-test-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    z-index: 999999;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff !important;
    background-color: #ffffff !important;
    -webkit-overflow-scrolling: touch;
}

/* =====================================================
   Screens
   ===================================================== */
.alt-screen {
    display: none;
    min-height: 100vh;
    padding: 2rem;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1c1c1c !important;
}

.alt-screen.active {
    display: flex;
    flex-direction: column;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* =====================================================
   Start Screen
   ===================================================== */
.alt-start-screen {
    justify-content: center;
    align-items: center;
    background: #ffffff !important;
    background-color: #ffffff !important;
    position: relative;
}

.alt-start-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.alt-logo {
    margin-bottom: 2rem;
}

.alt-logo-icon {
    width: 80px;
    height: 80px;
    color: var(--alt-primary);
}

.alt-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #1c1c1c !important;
    letter-spacing: -0.5px;
}

.alt-subtitle {
    font-size: 1.125rem;
    color: #6B7280 !important;
    margin: 0 0 2rem;
    font-weight: 400;
}

/* Exam Selector */
.alt-exam-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.alt-form-group {
    text-align: left;
}

.alt-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1c !important;
    margin-bottom: 8px;
}

.alt-select {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #E5E7EB !important;
    border-radius: var(--alt-radius-sm);
    color: #1c1c1c !important;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: var(--alt-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.alt-select:hover {
    border-color: var(--alt-border-hover);
}

.alt-select:focus {
    border-color: var(--alt-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--alt-primary-light);
}

/* Exam Info Cards */
.alt-exam-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.alt-info-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: var(--alt-radius);
    border: 1px solid #E5E7EB !important;
    box-shadow: var(--alt-shadow);
}

.alt-info-icon {
    width: 24px;
    height: 24px;
    color: var(--alt-primary);
}

.alt-info-text {
    font-size: 0.875rem;
    color: #6B7280 !important;
    font-weight: 500;
}

/* Sections Preview */
.alt-sections-preview {
    margin-bottom: 2rem;
}

.alt-sections-preview h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #9CA3AF !important;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alt-sections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.alt-section-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-radius: var(--alt-radius-sm);
    border: 1px solid #E5E7EB !important;
    transition: var(--alt-transition);
}

.alt-section-item:hover {
    border-color: #FFC800 !important;
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.15);
}

.alt-section-icon {
    width: 32px;
    height: 32px;
    color: #FFC800 !important;
}

.alt-section-name {
    font-size: 0.75rem;
    color: #6B7280 !important;
    font-weight: 500;
}

/* Buttons */
.alt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--alt-transition);
    text-decoration: none !important;
}

.alt-btn-primary {
    background-color: #FFC800 !important;
    background: #FFC800 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.3) !important;
}

.alt-btn-primary:hover {
    background-color: #e6b400 !important;
    background: #e6b400 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 200, 0, 0.4) !important;
}

.alt-btn-primary:focus,
.alt-btn-primary:active {
    background-color: #FFC800 !important;
    background: #FFC800 !important;
    color: #ffffff !important;
    outline: none !important;
}

.alt-btn-secondary {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1c1c1c !important;
    border: 1px solid #E5E7EB !important;
}

.alt-btn-secondary:hover {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    border-color: #D1D5DB !important;
    color: #1c1c1c !important;
}

.alt-btn-secondary:focus,
.alt-btn-secondary:active {
    background: #ffffff !important;
    color: #1c1c1c !important;
    outline: none !important;
}

.alt-btn-success {
    background-color: #10b981 !important;
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.alt-btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 50%;
    color: #6B7280 !important;
}

.alt-btn-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.alt-btn-icon:hover {
    background: #f9fafb !important;
    background-color: #f9fafb !important;
    color: #1c1c1c !important;
}

.alt-start-btn {
    min-width: 200px;
}

.alt-notice {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--alt-text-light);
}

/* =====================================================
   Exam Screen
   ===================================================== */
.alt-exam-screen {
    background: var(--alt-bg-light);
    padding: 0;
}

.alt-exam-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--alt-bg-white);
    border-bottom: 1px solid var(--alt-border);
}

.alt-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alt-exam-badge,
.alt-section-badge {
    padding: 0.5rem 1rem;
    background: var(--alt-bg-light);
    border-radius: var(--alt-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--alt-text-dark);
}

.alt-section-badge {
    background: var(--alt-primary);
    color: var(--alt-bg-white);
}

.alt-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--alt-bg-light);
    border-radius: var(--alt-radius);
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--alt-text-dark);
}

.alt-timer svg {
    color: var(--alt-primary);
}

.alt-timer.warning {
    color: var(--alt-warning);
    animation: pulse 1s ease-in-out infinite;
}

.alt-timer.danger {
    color: var(--alt-danger);
    animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Progress Bar */
.alt-progress-container {
    padding: 1rem 2rem;
    background: var(--alt-bg-white);
}

.alt-progress-bar {
    height: 6px;
    background: var(--alt-bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.alt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--alt-primary) 0%, var(--alt-primary-hover) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.alt-progress-sections {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.alt-progress-section {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--alt-text-light);
    border-radius: var(--alt-radius-sm);
    transition: var(--alt-transition);
}

.alt-progress-section.active {
    background: var(--alt-primary);
    color: var(--alt-bg-white);
}

.alt-progress-section.completed {
    background: var(--alt-success);
    color: var(--alt-bg-white);
}

/* Exam Main Content */
.alt-exam-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    overflow-y: auto;
}

.alt-question-container {
    width: 100%;
    max-width: 800px;
}

/* Question Card */
.alt-question-card {
    background: var(--alt-bg-white);
    border-radius: var(--alt-radius-lg);
    padding: 2rem;
    border: 1px solid var(--alt-border);
    box-shadow: var(--alt-shadow);
    animation: fadeIn 0.3s ease;
}

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

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

.alt-question-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--alt-border);
}

.alt-question-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--alt-primary);
    color: var(--alt-bg-white);
    font-weight: 700;
    border-radius: 50%;
}

.alt-question-meta {
    flex: 1;
}

.alt-difficulty-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--alt-bg-light);
    border-radius: var(--alt-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--alt-text-grey);
}

.alt-difficulty-badge.A1,
.alt-difficulty-badge.A2 {
    background: rgba(16, 185, 129, 0.15);
    color: var(--alt-success);
}

.alt-difficulty-badge.B1,
.alt-difficulty-badge.B2 {
    background: rgba(255, 200, 0, 0.15);
    color: var(--alt-primary-hover);
}

.alt-difficulty-badge.C1,
.alt-difficulty-badge.C2 {
    background: rgba(239, 68, 68, 0.15);
    color: var(--alt-danger);
}

.alt-question-text {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--alt-text-dark);
}

/* Reading Passage */
.alt-passage {
    background: var(--alt-bg-light);
    padding: 1.5rem;
    border-radius: var(--alt-radius);
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 1rem;
    color: var(--alt-text-grey);
    border-left: 4px solid var(--alt-primary);
}

.alt-passage::-webkit-scrollbar {
    width: 6px;
}

.alt-passage::-webkit-scrollbar-track {
    background: var(--alt-bg-light);
}

.alt-passage::-webkit-scrollbar-thumb {
    background: var(--alt-border);
    border-radius: 3px;
}

/* Answer Options */
.alt-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alt-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--alt-bg-white);
    border: 1px solid var(--alt-border);
    border-radius: var(--alt-radius);
    cursor: pointer;
    transition: var(--alt-transition);
}

.alt-option:hover {
    background: var(--alt-bg-light);
    border-color: var(--alt-border-hover);
}

.alt-option.selected {
    background: var(--alt-primary-light);
    border-color: var(--alt-primary);
}

.alt-option input {
    display: none;
}

.alt-option-marker {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--alt-bg-light);
    border: 2px solid var(--alt-border);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--alt-transition);
    color: var(--alt-text-dark);
}

.alt-option.selected .alt-option-marker {
    background: var(--alt-primary);
    border-color: var(--alt-primary);
    color: var(--alt-bg-white);
}

.alt-option-text {
    flex: 1;
    font-size: 1rem;
    color: var(--alt-text-dark);
}

/* Writing Section */
.alt-writing-area {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    background: var(--alt-bg-white);
    border: 1px solid var(--alt-border);
    border-radius: var(--alt-radius-sm);
    color: var(--alt-text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
    transition: var(--alt-transition);
}

.alt-writing-area:focus {
    outline: none;
    border-color: var(--alt-primary);
    box-shadow: 0 0 0 3px var(--alt-primary-light);
}

.alt-word-count {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--alt-text-light);
}

/* Exam Footer */
.alt-exam-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--alt-bg-white);
    border-top: 1px solid var(--alt-border);
}

.alt-question-counter {
    font-size: 0.875rem;
    color: var(--alt-text-grey);
    font-weight: 500;
}

.alt-action-buttons {
    display: flex;
    gap: 1rem;
}

/* =====================================================
   Loading Screen
   ===================================================== */
.alt-loading-screen {
    justify-content: center;
    align-items: center;
    background: var(--alt-bg-white);
}

.alt-loading-content {
    text-align: center;
    max-width: 400px;
}

.alt-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--alt-border);
    border-top-color: var(--alt-primary);
    border-radius: 50%;
    margin: 0 auto 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alt-loading-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--alt-text-dark);
}

.alt-loading-text {
    color: var(--alt-text-grey);
    margin: 0 0 2rem;
}

.alt-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.alt-loading-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--alt-bg-light);
    border-radius: var(--alt-radius-sm);
    font-size: 0.875rem;
    color: var(--alt-text-grey);
}

.alt-loading-step .alt-step-icon {
    width: 20px;
    height: 20px;
    color: var(--alt-text-light);
}

.alt-loading-step.completed .alt-step-icon {
    color: var(--alt-success);
}

/* =====================================================
   Results Screen
   ===================================================== */
.alt-results-screen {
    justify-content: flex-start;
    align-items: center;
    background: var(--alt-bg-light);
    overflow-y: auto;
}

.alt-results-content {
    max-width: 800px;
    width: 100%;
    padding: 2rem 0;
}

.alt-results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.alt-results-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--alt-text-dark);
}

.alt-results-date {
    color: var(--alt-text-light);
    font-size: 0.875rem;
}

/* Score Card */
.alt-score-card {
    background: var(--alt-bg-white);
    border-radius: var(--alt-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--alt-border);
    box-shadow: var(--alt-shadow);
}

.alt-main-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.alt-score-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.alt-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.alt-score-bg {
    fill: none;
    stroke: var(--alt-bg-light);
    stroke-width: 8;
}

.alt-score-progress {
    fill: none;
    stroke: var(--alt-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.alt-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.alt-score-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--alt-text-dark);
}

.alt-score-label {
    font-size: 0.875rem;
    color: var(--alt-text-light);
}

.alt-cefr-badge {
    text-align: center;
}

.alt-cefr-level {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--alt-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.alt-cefr-desc {
    font-size: 1rem;
    color: var(--alt-text-grey);
}

/* Section Scores */
.alt-section-scores {
    background: var(--alt-bg-white);
    border-radius: var(--alt-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--alt-border);
    box-shadow: var(--alt-shadow);
}

.alt-section-scores h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--alt-text-dark);
}

.alt-scores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.alt-score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--alt-bg-light);
    border-radius: var(--alt-radius);
}

.alt-score-icon {
    width: 32px;
    height: 32px;
    color: var(--alt-primary);
}

.alt-score-details {
    flex: 1;
}

.alt-score-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--alt-text-dark);
}

.alt-score-bar {
    height: 6px;
    background: var(--alt-bg-white);
    border-radius: 3px;
    overflow: hidden;
}

.alt-score-bar-fill {
    height: 100%;
    background: var(--alt-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.alt-score-percent {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--alt-text-dark);
}

/* AI Feedback */
.alt-ai-feedback {
    background: var(--alt-bg-white);
    border-radius: var(--alt-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--alt-border);
    box-shadow: var(--alt-shadow);
}

.alt-ai-feedback h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--alt-text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alt-ai-feedback h3 svg {
    width: 24px;
    height: 24px;
    color: var(--alt-primary);
}

.alt-feedback-content {
    color: var(--alt-text-grey);
    line-height: 1.8;
}

.alt-feedback-content h4 {
    color: var(--alt-text-dark);
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.alt-feedback-content h4:first-child {
    margin-top: 0;
}

.alt-feedback-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.alt-feedback-content li {
    margin-bottom: 0.5rem;
}

/* Results Actions */
.alt-results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* =====================================================
   Responsive - Mobile First
   ===================================================== */
@media (max-width: 768px) {
    .ai-level-test-wrapper.fullscreen {
        height: 100vh;
        height: 100dvh;
        min-height: -webkit-fill-available;
    }

    .alt-screen {
        padding: 1rem;
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: env(safe-area-inset-bottom, 1rem);
    }

    /* Start Screen - Compact to avoid scroll */
    .alt-start-screen {
        padding: 1rem;
        justify-content: flex-start;
        padding-top: 1.5rem;
    }

    .alt-logo {
        margin-bottom: 1rem;
    }

    .alt-logo-icon {
        width: 50px;
        height: 50px;
    }

    .alt-title {
        font-size: 1.25rem !important;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .alt-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 1rem;
    }

    .alt-exam-selector {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .alt-form-group {
        margin-bottom: 0;
    }

    .alt-form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .alt-select {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    .alt-exam-info {
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .alt-info-card {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .alt-info-icon {
        width: 18px;
        height: 18px;
    }

    .alt-sections-preview {
        margin-bottom: 1rem;
    }

    .alt-sections-preview h3 {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .alt-sections-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .alt-section-item {
        padding: 0.5rem;
    }

    .alt-section-icon {
        width: 24px;
        height: 24px;
    }

    .alt-section-name {
        font-size: 0.6rem;
    }

    .alt-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .alt-start-btn {
        width: 100%;
        max-width: 200px;
    }

    .alt-notice {
        margin-top: 0.75rem;
        font-size: 0.65rem;
    }

    /* Exam Screen Mobile - Header */
    .alt-exam-header {
        padding: 0.5rem 0.75rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
        align-items: center;
    }

    .alt-header-left {
        flex: 1;
        display: flex;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .alt-header-center {
        flex: 0 0 auto;
    }

    .alt-header-right {
        flex: 0 0 auto;
    }

    .alt-btn-icon {
        width: 32px;
        height: 32px;
    }

    .alt-btn-icon svg {
        width: 16px;
        height: 16px;
    }

    .alt-timer {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }

    .alt-exam-badge,
    .alt-section-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }

    .alt-progress-container {
        padding: 0.75rem 1rem;
    }

    .alt-progress-sections {
        display: none;
    }

    .alt-exam-main {
        padding: 0.75rem;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
    }

    .alt-question-container {
        max-width: 100%;
    }

    .alt-question-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .alt-question-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .alt-question-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .alt-question-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .alt-passage {
        padding: 1rem;
        font-size: 0.9rem;
        max-height: 200px;
        margin-bottom: 1rem;
    }

    .alt-option {
        padding: 0.75rem 1rem;
        min-height: 48px;
        align-items: flex-start;
    }

    .alt-option-marker {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .alt-option-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .alt-writing-area {
        min-height: 120px;
        font-size: 16px !important;
        /* Prevents iOS zoom */
    }

    .alt-exam-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
        background: #ffffff !important;
        border-top: 1px solid #E5E7EB;
        z-index: 100;
    }

    .alt-question-counter {
        display: none;
    }

    .alt-action-buttons {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .alt-action-buttons .alt-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.8rem;
        min-height: 40px;
    }

    /* Results Screen Mobile */
    .alt-results-content {
        padding: 1rem 0;
    }

    .alt-results-header h1 {
        font-size: 1.5rem;
    }

    .alt-main-score {
        flex-direction: column;
        gap: 1.5rem;
    }

    .alt-score-circle {
        width: 120px;
        height: 120px;
    }

    .alt-score-number {
        font-size: 2rem;
    }

    .alt-cefr-badge {
        min-width: 100px;
        padding: 0.75rem;
    }

    .alt-cefr-level {
        font-size: 1.75rem;
    }

    .alt-scores-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .alt-results-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .alt-results-actions .alt-btn {
        width: 100%;
    }

    /* Contact Form Mobile */
    .alt-contact-content {
        padding: 1rem;
    }

    .alt-contact-header h2 {
        font-size: 1.25rem;
    }

    .alt-contact-form input {
        font-size: 16px !important;
        /* Prevents iOS zoom */
        padding: 14px !important;
        min-height: 48px;
    }

    /* Loading Screen Mobile */
    .alt-loading-content {
        padding: 1rem;
    }

    .alt-loading-title {
        font-size: 1.25rem;
    }
}

/* =====================================================
   Contact Form Screen
   ===================================================== */
.alt-contact-screen {
    justify-content: center;
    align-items: center;
    background: var(--alt-bg-white);
}

.alt-contact-content {
    max-width: 500px;
    width: 100%;
    padding: 2rem;
}

.alt-contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.alt-contact-header svg {
    margin-bottom: 1rem;
}

.alt-contact-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--alt-text-dark);
}

.alt-contact-header p {
    color: var(--alt-text-grey);
    margin: 0;
    font-size: 1rem;
}

.alt-contact-form .alt-form-group {
    margin-bottom: 1.25rem;
}

.alt-contact-form .alt-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--alt-text-dark);
    margin-bottom: 6px;
}

.alt-required {
    color: var(--alt-danger);
}

.alt-contact-form input[type="text"],
.alt-contact-form input[type="tel"],
.alt-contact-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    background: var(--alt-bg-white);
    border: 1px solid var(--alt-border);
    border-radius: var(--alt-radius-sm);
    color: var(--alt-text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--alt-transition);
}

.alt-contact-form input:hover {
    border-color: var(--alt-border-hover);
}

.alt-contact-form input:focus {
    border-color: var(--alt-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--alt-primary-light);
}

.alt-contact-form input.invalid {
    border-color: var(--alt-danger);
}

.alt-contact-form input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.alt-form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--alt-text-light);
}

.alt-form-error {
    display: none;
    margin-top: 4px;
    font-size: 12px;
    color: var(--alt-danger);
}

.alt-contact-submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.alt-contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}