* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container { max-width: 900px; margin: 0 auto; }

header { text-align: center; color: white; padding: 30px 0; }
header h1 { font-size: 2.2em; margin-bottom: 10px; }
.subtitle { font-size: 1.2em; opacity: 0.9; }

.section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.section h2 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.hidden { display: none; }

.intelligence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.intel-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.intel-card .icon { font-size: 2em; margin-bottom: 8px; }
.intel-card h3 { color: #333; font-size: 1em; margin-bottom: 5px; }
.intel-card p { font-size: 0.85em; color: #666; }

.question-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.question-group h3 {
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.question {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.question:last-child { border-bottom: none; }
.question p { margin-bottom: 10px; color: #333; }

.rating { display: flex; gap: 10px; flex-wrap: wrap; }

.rating label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 20px;
    background: #e9ecef;
    transition: all 0.3s;
}

.rating label:hover { background: #667eea; color: white; }
.rating input[type="radio"] { display: none; }
.rating input[type="radio"]:checked + span { background: #667eea; color: white; }

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s;
}

.submit-btn:hover { transform: scale(1.02); }

#chartContainer { max-width: 500px; margin: 0 auto 30px; }

#scoreDetails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.score-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.score-item .score-icon { font-size: 1.5em; }
.score-item .score-name { font-weight: bold; color: #333; margin: 5px 0; }
.score-item .score-value { font-size: 1.5em; color: #667eea; font-weight: bold; }
.score-item .score-level { font-size: 0.9em; color: #666; }

#interpretation, #suggestions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#interpretation h3, #suggestions h3 { color: #667eea; margin-bottom: 15px; }

.strength-item, .suggestion-item {
    padding: 10px 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.suggestion-item h4 { color: #333; margin-bottom: 5px; }
.suggestion-item p { color: #666; font-size: 0.95em; }

#progressBar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

#progressFill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s;
}

#progressText {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.instruction-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.instruction-content p {
    margin-bottom: 10px;
    color: #555;
}

.rating label.selected {
    background: #667eea;
    color: white;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: #999;
    margin-top: 5px;
    padding: 0 5px;
}

@media (max-width: 600px) {
    .intelligence-grid { grid-template-columns: repeat(2, 1fr); }
    header h1 { font-size: 1.6em; }
}
