/* SIMPLIFIED ASSESSMENT CSS - Focus on functionality */

:root {
    --primary-blue: #1E40AF;
    --primary-teal: #0891B2;
    --accent-green: #059669;
    --accent-red: #DC2626;
    --accent-orange: #EA580C;
    --text-dark: #0F172A;
    --text-medium: #334155;
    --text-light: #64748B;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --border-light: #E2E8F0;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* Header - Simple */
header {
    background: white;
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.nav-links a:hover {
    background: var(--bg-light);
}

.cta-nav {
    background: var(--primary-blue) !important;
    color: white !important;
}

/* Main Content */
main {
    margin-top: 80px;
}

.hero {
    background: var(--bg-light);
    padding: 4rem 2rem;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* Buttons - Simplified */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-teal);
}

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ASSESSMENT MODAL - Core functionality */
.assessment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.assessment-modal.active {
    opacity: 1;
    visibility: visible;
}

.assessment-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.assessment-modal.active .assessment-container {
    transform: scale(1);
}

/* Close button */
.assessment-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    z-index: 10001;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.assessment-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Header */
.assessment-header {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
}

.assessment-header h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.assessment-header p {
    color: var(--text-medium);
    font-size: 1rem;
}

/* Progress bar */
.progress-bar {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.progress-track {
    background: var(--bg-light);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: var(--primary-blue);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 600;
}

/* Content area */
.assessment-content {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* SECTIONS - Critical for navigation */
.section {
    display: none;
}

.section.current {
    display: block !important;
}

.section h2 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* FORM ELEMENTS - Simplified */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* CHECKBOX GROUPS */
.checkbox-group {
    margin: 1rem 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background: var(--bg-light);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-item label {
    font-weight: 500;
    margin-bottom: 0;
    cursor: pointer;
}

/* RADIO GROUPS - Critical for functionality */
.radio-group {
    margin-top: 1rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.radio-option:hover {
    border-color: var(--primary-blue);
    background: var(--bg-light);
}

.radio-option.selected {
    border-color: var(--primary-blue);
    background: var(--bg-light);
}

.radio-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.option-content {
    cursor: pointer;
}

.option-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.option-content p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Risk level colors - simplified */
.radio-option.risk-high {
    border-color: var(--accent-red);
}

.radio-option.risk-high:hover,
.radio-option.risk-high.selected {
    background: #FEF2F2;
    border-color: var(--accent-red);
}

.radio-option.risk-medium {
    border-color: var(--accent-orange);
}

.radio-option.risk-medium:hover,
.radio-option.risk-medium.selected {
    background: #FFF7ED;
    border-color: var(--accent-orange);
}

.radio-option.risk-low {
    border-color: #D97706;
}

.radio-option.risk-low:hover,
.radio-option.risk-low.selected {
    background: #FFFBEB;
    border-color: #D97706;
}

.radio-option.risk-minimal {
    border-color: var(--accent-green);
}

.radio-option.risk-minimal:hover,
.radio-option.risk-minimal.selected {
    background: #F0FDF4;
    border-color: var(--accent-green);
}

/* Declaration section */
.declaration-section {
    background: #FFF7ED;
    border: 2px solid var(--accent-orange);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.declaration-section h4 {
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

/* NAVIGATION - Critical for functionality */
.assessment-navigation {
    padding: 1.5rem 2rem;
    border-top: 1px solid #E2E8F0;
    display: flex !important;
    gap: 1rem;
    align-items: center;
    background: white;
    position: relative;
    z-index: 200;
    flex-shrink: 0;
    min-height: 80px;
}

/* RESULTS SECTION */
.results-section {
    display: none;
    text-align: center;
    padding: 2rem;
}

.results-section.current {
    display: block !important;
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
    color: var(--primary-blue);
}

.recommendations {
    text-align: left;
    margin: 2rem 0;
}

.recommendations h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.recommendation-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-blue);
    background: var(--bg-light);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem;
    text-align: center;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .assessment-container {
        width: 95%;
        max-height: 95vh;
    }

    .assessment-content {
        padding: 1rem;
        max-height: 50vh;
    }

    .assessment-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .radio-option {
        padding: 0.75rem;
    }

    .checkbox-item {
        padding: 0.5rem;
    }
}

/* CRITICAL: Ensure buttons are clickable */
button, .btn-primary, .btn-secondary {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* CRITICAL: Ensure form elements are interactive */
input, select, textarea {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* CRITICAL: Ensure radio and checkbox containers are clickable */
.radio-option, .checkbox-item {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* Remove any potential overlay issues */
.assessment-modal * {
    pointer-events: auto;
}

/* Ensure navigation is always visible and clickable */
.assessment-navigation {
    position: relative;
    z-index: 100;
}

.assessment-navigation button {
    position: relative;
    z-index: 101;
}