* {
    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: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.quiz-content {
    padding: 40px 30px;
}

.question {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.question.active {
    opacity: 1;
    transform: translateY(0);
}

.question h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.options {
    display: grid;
    gap: 12px;
}

.option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.option:hover {
    background: #e3f2fd;
    border-color: #2196f3;
    transform: translateY(-2px);
}

.option.selected {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-color: #4facfe;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 16.67%;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.results {
    display: none;
    text-align: center;
}

.results.show {
    display: block;
}

.score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
}

.score-number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.recommendation {
    background: #f8f9fa;
    border-left: 5px solid #4facfe;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    text-align: left;
}

.recommendation h4 {
    color: #4facfe;
    margin-bottom: 10px;
}

.tips {
    text-align: left;
    margin: 20px 0;
}

.tips ul {
    list-style: none;
    padding: 0;
}

.tips li {
    background: #e8f5e8;
    margin: 8px 0;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.restart-btn {
    margin-top: 30px;
}

@media (max-width: 600px) {
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .header, .quiz-content {
        padding: 30px 20px;
    }
}