:root {
    --primary-color: #5758BB;
    --primary-light: #7879CF;
    --secondary-color: #F48FB1;
    --text-color: #333;
    --light-text: #666;
    --lighter-text: #888;
    --background-color: #f5f7fa;
    --card-color: #fff;
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --info-color: #2196F3;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

.card {
    background-color: var(--card-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-light);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: rgba(87, 88, 187, 0.1);
}

.secondary-btn:disabled {
    color: var(--lighter-text);
    border-color: var(--border-color);
    cursor: not-allowed;
}

/* Test Options */
.test-options {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.test-option-card {
    flex: 1;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.test-option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.test-option-card h3 {
    color: var(--primary-color);
}

.test-option-card p {
    margin-bottom: 0.5rem;
}

.test-description {
    min-height: 3em;
    color: var(--light-text);
}

.test-option-card .btn {
    margin-top: auto;
    width: 100%;
}

.test-type-indicator {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: rgba(33, 150, 243, 0.2);
    color: var(--info-color);
    margin-top: 1rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Question Card */
.question-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.question-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.question-description {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.options-container {
    margin-bottom: 1.5rem;
}

.option-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.option-item:hover {
    border-color: var(--primary-light);
    background-color: rgba(87, 88, 187, 0.05);
}

.option-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(87, 88, 187, 0.1);
}

.option-radio {
    margin-right: 1rem;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
}

/* Results Section */
.result-category {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.normal {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
}

.immersive {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.maladaptive {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
}

.result-summary-card {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.score-container {
    margin-top: 1rem;
}

.score-item {
    margin-bottom: 1.5rem;
}

.score-item:last-child {
    margin-bottom: 0;
}

.score-bar-container {
    height: 12px;
    background-color: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.score-bar {
    height: 100%;
    width: 0%;
    transition: width 1s ease-out;
}

#immersion-bar {
    background-color: var(--primary-color);
}

#impact-bar {
    background-color: var(--secondary-color);
}

#awareness-bar {
    background-color: var(--info-color);
}

.score-value {
    text-align: right;
    font-weight: 500;
    font-size: 0.9rem;
}

#characteristics-content, 
#strategies-content,
#resources-content {
    margin-top: 1rem;
}

.characteristic-item, .strategy-item {
    margin-bottom: 1.5rem;
}

.characteristic-item:last-child, 
.strategy-item:last-child {
    margin-bottom: 0;
}

.characteristic-title, .strategy-title {
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.resources-card h3 {
    margin-top: 1rem;
}

.resources-card h3:first-child {
    margin-top: 0;
}

.disclaimer {
    background-color: rgba(255, 193, 7, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Support Card */
.support-card {
    text-align: center;
    padding: 1.5rem;
}

.support-card h3 {
    margin-bottom: 1rem;
}

.support-card p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.bmc-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.bmc-container img {
    height: 60px !important;
    width: 217px !important;
    transition: transform 0.3s ease;
}

.bmc-container img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .test-options {
        flex-direction: column;
    }
}