/* Assessment Specific Styles */

.assessment-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

/* Landing Page Elements */
.assessment-landing {
    text-align: center;
    background: var(--color-white);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
}

.assessment-landing h1 {
    font-size: 42px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.assessment-landing p.lead {
    font-size: 20px;
    color: var(--color-text-body);
    margin-bottom: 40px;
    line-height: 1.6;
}

.assessment-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.benefit-item {
    background: var(--color-bg-gray);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-dark);
}

.assessment-disclaimer {
    font-size: 13px;
    color: var(--color-meta);
    margin-top: 40px;
    line-height: 1.5;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.btn-start-assessment {
    display: inline-block;
    background: var(--color-sea-green);
    color: var(--color-white);
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-start-assessment:hover, .btn-start-assessment:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 158, 117, 0.3);
    background: var(--color-primary);
    color: var(--color-white);
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Assessment UI Shell */
.assessment-ui {
    display: none;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.assessment-header {
    padding: 20px 30px;
    background: var(--color-bg-gray);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assessment-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 1px;
    margin: 0;
}

.assessment-progress-text {
    font-size: 14px;
    color: var(--color-text-body);
}

.progress-bar-container {
    height: 6px;
    background: #E0E0E0;
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-sea-green);
    width: 0%;
    transition: width 0.4s ease-out;
}

/* Question Area */
.assessment-body {
    padding: 40px 50px;
}

.question-text {
    font-size: 28px;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.question-instruction {
    font-size: 15px;
    color: var(--color-meta);
    margin-bottom: 30px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 24px;
    font-size: 18px;
    text-align: left;
    background: var(--color-white);
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text-body);
    font-family: inherit;
    position: relative;
}

.option-btn:hover {
    border-color: var(--color-secondary);
    background: rgba(24, 95, 165, 0.02);
}

.option-btn:focus-visible {
    outline: 3px solid var(--color-sea-green);
    outline-offset: 2px;
}

.option-btn.selected {
    border-color: var(--color-primary);
    background: rgba(12, 68, 124, 0.05);
    color: var(--color-primary);
    font-weight: 600;
}

/* Checkbox/Radio visual indicators inside option buttons */
.option-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.is-radio .option-indicator {
    border-radius: 50%;
}

.is-checkbox .option-indicator {
    border-radius: 4px;
}

.option-btn.selected .option-indicator {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.option-indicator::after {
    content: '';
    display: none;
}

.is-radio .option-btn.selected .option-indicator::after {
    display: block;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.is-checkbox .option-btn.selected .option-indicator::after {
    display: block;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.error-message {
    color: #D32F2F;
    font-size: 15px;
    margin-top: 15px;
    display: none;
    font-weight: 600;
}

/* Navigation Buttons */
.assessment-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.btn-nav {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-nav-back {
    background: transparent;
    color: var(--color-meta);
    border: 1px solid #ccc;
}

.btn-nav-back:hover, .btn-nav-back:focus {
    background: #f0f0f0;
    color: var(--color-text-dark);
}

.btn-nav-next {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-nav-next:hover, .btn-nav-next:focus {
    background: var(--color-secondary);
}

.btn-nav-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-exit {
    background: transparent;
    color: var(--color-meta);
    border: none;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

/* Results Area */
.assessment-results {
    display: none;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.results-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.results-header h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 10px;
}

.results-header p {
    font-size: 18px;
    opacity: 0.9;
}

.results-body {
    padding: 40px 50px;
}

.results-summary-box {
    background: #E8F5E9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid var(--color-sea-green);
}

.results-summary-box.moderate {
    background: #FFF8E1;
    border-color: #FFB300;
}

.results-summary-box.high {
    background: #FFEBEE;
    border-color: #E53935;
}

.results-summary-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.factors-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.factor-card {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 25px;
    background: #FAFAFA;
}

.factor-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-meta);
    margin-bottom: 15px;
    font-weight: 700;
}

.factor-finding {
    font-size: 20px;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.factor-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.factor-details p {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--color-text-body);
}

.factor-details p:last-child {
    margin-bottom: 0;
}

.next-steps-container {
    background: var(--color-bg-gray);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.next-steps-container h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.next-steps-list {
    list-style: none;
    padding: 0;
}

.next-steps-list li {
    display: flex;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--color-text-dark);
}

.next-steps-list li::before {
    content: '→';
    color: var(--color-sea-green);
    font-weight: bold;
    margin-right: 15px;
}

.results-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-share, .btn-restart {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    border: none;
    transition: all 0.2s ease;
}

.btn-share {
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-share:hover {
    background: rgba(12, 68, 124, 0.05);
}

.btn-restart {
    background: transparent;
    color: var(--color-meta);
    text-decoration: underline;
}

/* Urgent Pathway Alert */
.urgent-alert-container {
    display: none;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 50px;
    text-align: center;
    border-top: 8px solid #E53935;
}

.urgent-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.urgent-alert-container h2 {
    color: #E53935;
    font-size: 28px;
    margin-bottom: 20px;
}

.urgent-alert-container p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-urgent {
    background: #E53935;
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .assessment-landing {
        padding: 40px 20px;
    }
    
    .assessment-landing h1 {
        font-size: 32px;
    }
    
    .assessment-benefits {
        flex-direction: column;
        gap: 15px;
    }
    
    .assessment-body, .results-body {
        padding: 30px 20px;
    }
    
    .question-text {
        font-size: 24px;
    }
    
    .option-btn {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .btn-start-assessment {
        width: 100%;
        text-align: center;
    }
    
    .results-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-footer button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
