:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --dark: #3a0ca3;
    --light: #f8f9fa;
    --gray: #6c757d;
    --danger: #e63946;
    --warning: #fca311;
    --info: #4cc9f0;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.content {
    padding: 30px;
}

.welcome-screen, .question-screen, .results-screen {
    display: none;
    animation: fadeIn 0.5s ease;
    text-align: center;
}

.active {
    display: block;
}

.welcome-screen h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.welcome-screen p {
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--gray);
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.question-container {
    margin-bottom: 30px;
}

.question-number {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--dark);
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    border-color: var(--primary-light);
    background: rgba(67, 97, 238, 0.05);
}

.option.selected {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
}

.option-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: transparent;
    transition: var(--transition);
}

.option.selected .option-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.option-text {
    flex: 1;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    color: var(--primary);
    margin-bottom: 10px;
}

.personality-type {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 30px;
}

.type-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.type-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

.traits-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.trait-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.trait-card:hover {
    transform: translateY(-5px);
}

.trait-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.trait-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.trait-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.careers-container {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.careers-container h3 {
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}

.careers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.career-tag {
    background: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .type-name {
        font-size: 2rem;
    }
    
    .traits-container {
        grid-template-columns: 1fr;
    }
}