* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.section {
    padding: 30px;
}

.hidden {
    display: none;
}

.scale-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.scale-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.scale-info ul {
    list-style: none;
    padding-left: 0;
}

.scale-info li {
    padding: 5px 0;
    color: #555;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 30px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    position: absolute;
    top: 15px;
    right: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.question-group {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.question-group:last-child {
    border-bottom: none;
}

.question-group h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.question {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #667eea;
}

.question label:first-child {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.5;
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.radio-group label:hover {
    border-color: #667eea;
    background: #f0f3ff;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    accent-color: #667eea;
}

.radio-group label:has(input:checked) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.score-display {
    text-align: center;
    margin: 30px 0;
}

.score-visual {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.score-range-bar {
    position: relative;
    height: 40px;
    background: linear-gradient(90deg, #3498db 0%, #27ae60 25%, #f39c12 50%, #e74c3c 75%, #c0392b 100%);
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.score-indicator {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 60px;
    background: #2c3e50;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: left 0.5s ease;
}

.score-indicator::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2c3e50;
}

.score-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
}

.score-circle span {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.score-context {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.score-context p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #555;
}

.range-legend {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.legend-item {
    text-align: center;
    padding: 10px 5px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.legend-minimal {
    background: #3498db;
}

.legend-low {
    background: #27ae60;
}

.legend-moderate {
    background: #f39c12;
}

.legend-high {
    background: #e74c3c;
}

#riskLevel {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.interpretation, .recommendations {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.interpretation h4, .recommendations h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.interpretation p, .recommendations p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.recommendations ul {
    margin-left: 20px;
}

.recommendations li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.risk-high {
    border-left: 4px solid #e74c3c;
}

.risk-moderate {
    border-left: 4px solid #f39c12;
}

.risk-low {
    border-left: 4px solid #27ae60;
}

.risk-minimal {
    border-left: 4px solid #3498db;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 20px;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .radio-group label {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-circle span {
        font-size: 2.5rem;
    }
    
    .range-legend {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .legend-item {
        font-size: 0.75rem;
        padding: 8px 4px;
    }
    
    .score-range-bar {
        height: 30px;
        margin: 15px 0;
    }
    
    .score-indicator {
        height: 50px;
        width: 6px;
    }
    
    #riskLevel {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 1.7rem;
    }
    
    .section {
        padding: 15px;
    }
    
    .question-group h3 {
        font-size: 1.2rem;
    }
}