/**
 * Mobility Trailblazers - Evaluation Forms Styles
 * Version: 1.0.0
 * Created: 2025-08-17
 * 
 * Description: All evaluation form and scoring-related styles
 * Dependencies: mt-variables.css
 * 
 * This file contains:
 * - Evaluation form base styles
 * - Scoring criteria interface
 * - Score sliders and controls
 * - Comments sections
 * - Submission buttons
 * - Evaluation page layouts
 * - Rankings list styles
 */

/* ===================================
   EVALUATION CRITERIA INFO SECTION
   =================================== */

.mt-criteria-info-section {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
    box-sizing: border-box;
}

.mt-criteria-info-section .mt-section-title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0072BC;
    border-bottom: 2px solid #e5e7eb;
}

.mt-criteria-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mt-criterion-info-card {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
    transition: all 0.3s ease;
}

.mt-criterion-info-card:hover {
    box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
    transform: translateY(-2px);
}

.mt-criterion-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.mt-criterion-info-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.mt-criterion-info-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

.mt-criterion-info-content p {
    margin: 0;
    color: #4b5563;
}

/* Ensure evaluation page has proper width */
.mt-evaluation-page {
    width: 100%;
    max-width: 100%;
}

.mt-evaluation-page .mt-criteria-info-section {
    display: block;
    clear: both;
    width: calc(100% + 60px);
    margin-right: -30px;
    margin-left: -30px;
}

/* Mobile responsiveness for criteria info */
@media (width <= 768px) {
    .mt-criteria-info-grid {
        grid-template-columns: 1fr;
    }
    
    .mt-criteria-info-section {
        width: calc(100% + 20px);
        margin: 20px -10px;
        padding: 20px;
    }
    
    .mt-criterion-info-card {
        padding: 15px;
    }
}

/* ===================================
   BASE EVALUATION FORM
   =================================== */

/* Evaluation Form */
.mt-evaluation-form {
    margin: 20px 0;
    padding: 30px;
    background: var(--mt-bg-base);
    border: 1px solid var(--mt-blue-accent);
    border-radius: 12px;
}

.mt-evaluation-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--mt-blue-accent);
}

.mt-evaluation-header h2 {
    margin: 0 0 10px;
    color: var(--mt-primary);
}

.mt-candidate-info {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--mt-bg-beige);
    border-radius: 8px;
}

/* ===================================
   CRITERIA SECTION
   =================================== */

.mt-criteria-section {
    margin-bottom: 30px;
}

.mt-criterion {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--mt-bg-beige);
    border: 1px solid var(--mt-blue-accent);
    border-radius: 8px;
}

.mt-criterion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mt-criterion-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--mt-primary);
}

.mt-criterion-weight {
    padding: 4px 12px;
    font-size: 14px;
    color: white;
    background: var(--mt-secondary);
    border-radius: 20px;
}

/* ===================================
   SCORE SELECTOR
   =================================== */

/* Score Selector */
.mt-score-selector {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.mt-score-option {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: var(--mt-bg-base);
    border: 2px solid var(--mt-blue-accent);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mt-score-option:hover {
    border-color: var(--mt-secondary);
    transform: translateY(-2px);
}

.mt-score-option.selected {
    color: white;
    background: var(--mt-primary);
    border-color: var(--mt-primary);
}

.mt-score-option input[type="radio"] {
    display: none;
}

.mt-score-value {
    display: block;
    margin-bottom: 5px;
    font-size: 24px;
    font-weight: 700;
}

.mt-score-label {
    font-size: 12px;
    opacity: 0.8;
}

/* ===================================
   COMMENTS FIELD
   =================================== */

/* Comments Field */
.mt-comments-field {
    margin-top: 20px;
}

.mt-comments-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--mt-primary);
}

.mt-comments-field textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    font-size: 14px;
    color: var(--mt-body-text);
    background: var(--mt-bg-base);
    border: 1px solid var(--mt-blue-accent);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.mt-comments-field textarea:focus {
    outline: none;
    border-color: var(--mt-secondary);
    box-shadow: 0 0 0 2px rgb(0 76 95 / 10%);
}

/* ===================================
   SUBMIT BUTTON
   =================================== */

/* Submit Button */
.mt-submit-evaluation {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: var(--mt-accent);
    border: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mt-submit-evaluation:hover {
    background: var(--mt-kupfer-bold);
    box-shadow: 0 4px 12px rgb(193 105 60 / 30%);
    transform: translateY(-2px);
}

.mt-submit-evaluation:disabled {
    background: var(--mt-blue-accent);
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* ===================================
   EVALUATION PAGE SPECIFIC
   =================================== */

/* Evaluation Page Styles */
body .mt-evaluation-page {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* Evaluation Header */
body .mt-evaluation-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding: 20px !important;
    color: white !important;
    background: linear-gradient(135deg, var(--mt-primary) 0%, var(--mt-secondary) 100%) !important;
    border-radius: 12px !important;
}

body .mt-evaluation-header .mt-back-link {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    color: white !important;
    background: rgb(255 255 255 / 20%) !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    gap: 8px !important;
}

body .mt-evaluation-header .mt-back-link:hover {
    background: rgb(255 255 255 / 30%) !important;
    transform: translateX(-4px) !important;
}

body .mt-evaluation-title {
    flex: 1 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-align: center !important;
}

body .mt-evaluation-title h1 {
    margin: 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

body .mt-evaluation-header .mt-status-badge {
    display: inline-block !important;
    margin-left: 15px !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
}

body .mt-evaluation-header .mt-status-completed {
    color: #FFFFFF !important;
    background: var(--mt-primary) !important;
}

body .mt-evaluation-header .mt-status-draft {
    color: #856404 !important;
    background: #fff3cd !important;
}

/* ===================================
   CANDIDATE SHOWCASE TEXT WRAPPING
   =================================== */

/* Ensure long candidate names and text wrap properly */
.mt-evaluation-page .mt-candidate-name,
.mt-evaluation-page .mt-candidate-showcase .mt-candidate-name {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

.mt-evaluation-page .mt-meta-item,
.mt-evaluation-page .mt-candidate-meta .mt-meta-item {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.mt-evaluation-page .mt-candidate-showcase {
    overflow: hidden !important;
}

/* ===================================
   SCORING SECTION
   =================================== */

/* Scoring Section */
body .mt-scoring-section {
    margin: 30px 0 !important;
    padding: 40px !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgb(0 0 0 / 8%) !important;
}

body .mt-section-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 0 30px !important;
    padding-bottom: 15px !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0072BC !important;
    gap: 30px !important;
    border-bottom: 2px solid #dee2e6 !important;
}

body .mt-total-score-display {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #00694E !important;
}

body #mt-total-score {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0072BC !important;
}

/* ===================================
   CRITERIA GRID
   =================================== */

/* Criteria Grid */
body .mt-criteria-grid {
    display: grid !important;
    gap: 25px !important;
}

body .mt-criterion-card {
    padding: 25px !important;
    background: var(--mt-bg-beige) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

body .mt-criterion-card:hover {
    box-shadow: 0 6px 20px rgb(0 0 0 / 10%) !important;
    transform: translateY(-2px) !important;
}

body .mt-criterion-header {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    padding-left: 15px !important;
    border-left: 4px solid !important;
}

body .mt-criterion-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
}

body .mt-criterion-info {
    flex: 1 !important;
}

body .mt-criterion-label {
    margin: 0 0 5px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0072BC !important;
}

/* Criterion Description - Enhanced visibility fixes */
body .mt-criterion-description,
.mt-criterion-description,
.mt-criteria-grid .mt-criterion-description {
    position: static !important;
    z-index: auto !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 5px 0 0 !important;
    overflow: auto !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    color: var(--mt-body-text, #6c757d) !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-style: normal !important;
    clip: auto !important;
    clip-path: none !important;
}

/* Additional specificity for evaluation forms */
#mt-evaluation-form .mt-criterion-description,
.mt-evaluation-page .mt-criterion-description,
.mt-form-cards .mt-criterion-description {
    display: block !important;
    visibility: visible !important;
}

/* Prevent pseudo-elements from hiding content */
.mt-criterion-description::before,
.mt-criterion-description::after {
    content: none !important;
}

/* German language specific display */
body[lang="de-DE"] .mt-criterion-description,
html[lang="de-DE"] .mt-criterion-description {
    display: block !important;
    visibility: visible !important;
}

/* Ensure parent containers don't hide children */
.mt-criterion-info,
.mt-criterion-header,
.mt-criterion-card {
    overflow: hidden;
}

/* ===================================
   SCORING CONTROLS
   =================================== */

/* Scoring Controls */
body .mt-scoring-control {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Slider Style */
body .mt-score-slider-wrapper {
    position: relative !important;
    flex: 1 !important;
    padding: 10px 0 30px !important;
}

body .mt-score-slider {
    width: 100% !important;
    height: 8px !important;
    appearance: none !important;
    background: var(--mt-blue-accent) !important;
    border-radius: 4px !important;
    outline: none !important;
}

body .mt-score-slider::-webkit-slider-thumb {
    width: 24px !important;
    height: 24px !important;
    background: var(--mt-accent) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%) !important;
    cursor: pointer !important;
    appearance: none !important;
}

body .mt-score-slider::-moz-range-thumb {
    width: 24px !important;
    height: 24px !important;
    background: var(--mt-accent) !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%) !important;
    cursor: pointer !important;
}

body .mt-score-marks {
    position: absolute !important;
    bottom: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
}

body .mt-score-mark {
    padding: 2px 4px !important;
    font-size: 12px !important;
    color: var(--mt-body-text) !important;
    cursor: pointer !important;
}

body .mt-score-mark:hover {
    font-weight: 600 !important;
    color: var(--mt-accent) !important;
}

/* Score Display */
body .mt-score-display {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 60px !important;
    height: 60px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: white !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%) !important;
}

/* ===================================
   COMMENTS SECTION
   =================================== */

/* Comments Section */
body .mt-comments-section {
    margin: 30px 0 !important;
    padding: 40px !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgb(0 0 0 / 8%) !important;
}

body .mt-section-description {
    margin: -10px 0 20px !important;
    font-size: 16px !important;
    color: var(--mt-body-text) !important;
}

body .mt-comments-textarea {
    width: 100% !important;
    min-height: 150px !important;
    padding: 15px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    border: 2px solid var(--mt-blue-accent) !important;
    border-radius: 8px !important;
    transition: border-color 0.3s ease !important;
    resize: vertical !important;
}

body .mt-comments-textarea:focus {
    outline: none !important;
    border-color: var(--mt-accent) !important;
}

body .mt-char-count {
    margin-top: 8px !important;
    font-size: 13px !important;
    text-align: right !important;
    color: var(--mt-body-text) !important;
}

/* ===================================
   FORM ACTIONS
   =================================== */

/* Form Actions */
body .mt-form-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin: 40px 0 !important;
}

body .mt-form-actions .mt-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    gap: 8px !important;
}

body .mt-form-actions .mt-btn-primary {
    color: white !important;
    background: var(--mt-accent) !important;
    box-shadow: 0 4px 12px rgb(193 105 60 / 30%) !important;
}

body .mt-form-actions .mt-btn-primary:hover {
    background: var(--mt-kupfer-bold) !important;
    box-shadow: 0 6px 20px rgb(193 105 60 / 40%) !important;
    transform: translateY(-2px) !important;
}

body .mt-form-actions .mt-btn-secondary {
    color: var(--mt-secondary) !important;
    background: white !important;
    border: 2px solid var(--mt-secondary) !important;
}

body .mt-form-actions .mt-btn-secondary:hover {
    color: white !important;
    background: var(--mt-secondary) !important;
}

/* ===================================
   SUBMISSION GUIDELINES
   =================================== */

/* Submission Guidelines */
body .mt-submission-guidelines {
    margin: 30px 0 !important;
    padding: 30px !important;
    background: var(--mt-bg-beige) !important;
    border-radius: 12px !important;
}

body .mt-submission-guidelines h3 {
    margin: 0 0 15px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--mt-primary) !important;
}

body .mt-submission-guidelines ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

body .mt-submission-guidelines li {
    margin-bottom: 10px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--mt-body-text) !important;
}

/* ===================================
   RANKINGS LIST
   =================================== */

.mt-rankings-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.mt-rankings-list .mt-ranking-item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 10px 16px;
    background: var(--mt-bg-base);
    border: 1px solid var(--mt-blue-accent);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 4%);
    transition: box-shadow 0.2s, border-color 0.2s;
    gap: 16px;
}

.mt-rankings-list .mt-ranking-item:hover {
    border-color: var(--mt-secondary);
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.mt-rankings-list .mt-position-badge {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    margin-right: 8px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50%;
}

.mt-rankings-list .position-gold .mt-position-badge {
    color: var(--mt-bg-base);
    background: linear-gradient(135deg, var(--mt-accent), var(--mt-kupfer-bold));
}

.mt-rankings-list .position-silver .mt-position-badge {
    color: var(--mt-primary);
    background: linear-gradient(135deg, var(--mt-blue-accent), var(--mt-secondary));
}

.mt-rankings-list .position-bronze .mt-position-badge {
    color: var(--mt-bg-base);
    background: linear-gradient(135deg, var(--mt-kupfer-soft), var(--mt-kupfer-bold));
}

.mt-rankings-list .mt-candidate-info {
    flex: 2;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.mt-rankings-list .mt-candidate-name {
    margin: 0 0 2px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--mt-primary) !important;
}

.mt-rankings-list .mt-candidate-meta {
    margin: 0 !important;
    font-size: 12px !important;
    color: var(--mt-body-text) !important;
}

.mt-rankings-list .mt-total-score-display {
    flex: 0 0 80px;
    align-self: center;
    min-width: 80px;
    margin: 0 8px;
    padding: 4px 0;
    text-align: center;
    background: var(--mt-bg-beige);
    border-radius: 6px;
}

.mt-rankings-list .score-label {
    margin-bottom: 0 !important;
    font-size: 10px !important;
}

.mt-rankings-list .score-value {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* Inline evaluation controls in rankings */
.mt-rankings-list .mt-inline-evaluation-controls {
    flex: 3;
    min-width: 160px;
    margin-left: 8px;
    padding: 0;
    background: none;
    border: none;
}

.mt-rankings-list .mt-criteria-grid-inline {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
}

.mt-rankings-list .mt-criterion-inline {
    min-width: 0;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.mt-rankings-list .mt-criterion-label {
    margin-bottom: 2px !important;
    font-size: 10px !important;
    gap: 2px !important;
}

.mt-rankings-list .mt-score-control {
    gap: 2px !important;
}

.mt-rankings-list .mt-score-adjust {
    width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    font-size: 10px !important;
    border-radius: 3px !important;
}

.mt-rankings-list .mt-score-input {
    width: 28px !important;
    padding: 0 !important;
    font-size: 12px !important;
}

.mt-rankings-list .mt-inline-actions {
    gap: 4px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border: none !important;
}

.mt-rankings-list .mt-btn-save-inline,
.mt-rankings-list .mt-btn-full-evaluation {
    padding: 3px 10px !important;
    font-size: 11px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Responsive Design for Evaluation Page */
@media (width <= 768px) {
    /* Reduce evaluation page container padding */
    body .mt-evaluation-page {
        padding: 15px !important;
    }

    body .mt-evaluation-header {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px !important;
        text-align: center !important;
    }

    body .mt-evaluation-header .mt-back-link {
        align-self: flex-start !important;
    }

    body .mt-scoring-section,
    body .mt-comments-section {
        padding: 20px !important;
    }

    body .mt-section-title {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    body .mt-criterion-header {
        flex-direction: column !important;
        padding-top: 15px !important;
        padding-left: 0 !important;
        text-align: center !important;
        border-left: none !important;
        border-top: 4px solid !important;
    }

    body .mt-scoring-control {
        flex-direction: column !important;
        gap: 15px !important;
    }

    body .mt-form-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    body .mt-form-actions .mt-btn {
        justify-content: center !important;
        width: 100% !important;
        min-height: 44px !important; /* Better touch target */
    }

    .mt-score-selector {
        flex-wrap: wrap;
        gap: 8px;
    }

    .mt-score-option {
        min-width: calc(33.333% - 6px);
        min-height: 44px; /* Better touch target */
    }

    .mt-evaluation-form {
        padding: 15px;
    }

    /* Candidate Showcase Mobile Styles */
    .mt-evaluation-page .mt-candidate-showcase {
        padding: 20px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-profile {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-photo {
        width: 150px !important;
        height: 150px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-name {
        font-size: 24px !important;
        text-align: center !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-meta {
        gap: 10px !important;
        justify-content: center !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-meta-item {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-innovation-summary,
    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-bio {
        padding: 18px !important;
    }
}

/* Small Mobile Devices */
@media (width <= 480px) {
    /* Further reduce padding for small screens */
    body .mt-evaluation-page {
        padding: 10px !important;
    }

    body .mt-evaluation-header {
        padding: 12px !important;
        gap: 12px !important;
    }

    body .mt-evaluation-header h1 {
        font-size: 20px !important;
    }

    body .mt-scoring-section,
    body .mt-comments-section {
        padding: 15px !important;
    }

    body .mt-criterion-item {
        padding: 15px !important;
    }

    body .mt-criterion-header h3 {
        font-size: 16px !important;
    }

    /* Make score options full-width on small screens */
    .mt-score-option {
        min-width: calc(50% - 4px);
        font-size: 14px;
    }

    /* Ensure buttons have proper touch targets */
    body .mt-form-actions .mt-btn {
        min-height: 48px !important;
        font-size: 15px !important;
        padding: 12px 20px !important;
    }

    .mt-evaluation-form {
        padding: 10px;
    }

    /* Reduce slider track height slightly but keep touch-friendly */
    .mt-slider-track {
        height: 8px !important;
    }

    .mt-slider-handle {
        width: 24px !important;
        height: 24px !important;
    }

    /* Candidate Showcase Small Mobile Styles */
    .mt-evaluation-page .mt-candidate-showcase {
        margin: 15px 0 !important;
        padding: 15px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-profile {
        gap: 15px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-photo {
        width: 120px !important;
        height: 120px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-name {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-meta {
        gap: 8px !important;
        margin-bottom: 20px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-meta-item {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-innovation-summary {
        padding: 12px !important;
        margin-bottom: 20px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-innovation-summary h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-innovation-summary p {
        font-size: 14px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-bio {
        padding: 15px !important;
        margin-top: 20px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-candidate-bio h3 {
        font-size: 18px !important;
    }

    .mt-evaluation-page .mt-candidate-showcase .mt-bio-content {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

@media (width <= 900px) {
    .mt-rankings-list .mt-ranking-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 6px;
    }
    
    .mt-rankings-list .mt-inline-evaluation-controls {
        margin-left: 0;
    }
}

/* Evaluation Header Layout fixes */
.mt-scoring-section .mt-evaluation-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
