* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(90deg, #2c3e50, #4a6491);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.logo {
    font-size: 32px;
    margin-bottom: 10px;
}

h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.content-container {
    display: flex;
    min-height: 600px;
}

.intro-panel {
    flex: 1;
    background: #f8f9fa;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.test-panel {
    flex: 2;
    padding: 30px;
    background: white;
    display: none;
}

.result-panel {
    flex: 3;
    padding: 30px;
    background: white;
    display: none;
    overflow-y: auto;
    max-height: 700px;
}

.progress-container {
    margin-bottom: 25px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    color: #7f8c8d;
}

.progress-bar {
    height: 15px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.5s ease;
}

.question-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.question-text {
    font-weight: bold;
    margin-bottom: 25px;
    font-size: 22px;
    color: #2c3e50;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.option:hover {
    background: #e8f4fc;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.option.selected {
    background: #d1ecf1;
    border-color: #3498db;
}

.option input {
    margin-right: 15px;
    transform: scale(1.3);
}

.option-label {
    font-size: 18px;
    font-weight: 500;
    flex: 1;
}

.option-value {
    background: #3498db;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-prev {
    background: #95a5a6;
    color: white;
}

.btn-submit {
    background: #2ecc71;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.overall-assessment {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    text-align: center;
}

.score-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.score-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.score-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.total-score {
    font-size: 42px;
    font-weight: bold;
    color: #3498db;
    margin: 10px 0;
}

.score-interpretation {
    font-size: 18px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.normal {
    background: #d4edda;
    color: #155724;
}

.mild {
    background: #fff3cd;
    color: #856404;
}

.moderate {
    background: #ffeaa7;
    color: #6c5c0b;
}

.severe {
    background: #f8d7da;
    color: #721c24;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.factors-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.factors-table th, .factors-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.factors-table th {
    background: #2c3e50;
    color: white;
}

.factors-table tr:nth-child(even) {
    background: #f8f9fa;
}

.factor-details {
    margin-top: 30px;
}

.factor {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.factor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.factor-name {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
}

.factor-score {
    font-weight: bold;
    font-size: 20px;
}

.factor-progress {
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.factor-progress-bar {
    height: 100%;
    border-radius: 5px;
}

.interpretation {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.interpretation h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.warning {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    color: #856404;
    margin-top: 30px;
}

.feature-list {
    margin: 25px 0;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature i {
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

@media (max-width: 992px) {
    .content-container {
        flex-direction: column;
    }
    
    .score-cards {
        grid-template-columns: 1fr;
    }
}

.start-btn {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    color: white;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.section-title {
    font-size: 24px;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.auto-advance-notice {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: #7f8c8d;
}

.symptom-list {
    padding-left: 20px;
    margin: 10px 0;
}

.symptom-list li {
    margin-bottom: 8px;
}

.report-link {
    background: #e8f4fc;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid #3498db;
}

.positive-indicator {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    margin: 10px 0;
}

.debug-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    display: none;
}