:root {
    --deep-violet: #4c1d95;
    --mystic-purple: #7c3aed;
    --soft-purple: #8b5cf6;
    --pale-purple: #c4b5fd;
    --violet-mist: #ddd6fe;
    --lavender: #e9d5ff;
    --amber-accent: #fbbf24;
    --pure-white: #ffffff;
    --light-gray: #f8fafc;
    --text-gray: #64748b;
    --charcoal: #1e293b;
    --success-green: #22c55e;
    --gradient-primary: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    --shadow-sm: 0 1px 3px 0 rgba(76, 29, 149, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(76, 29, 149, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(76, 29, 149, 0.1);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.chakra-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.chakra-result-item {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid;
}

.chakra-result-item.balanced {
    border-color: #d6d31a;
    background: #fffff2;
    color: #d6d31a;
}

.chakra-result-item.deficient {
    border-color: #e41818;
    background: #ffe9e9;
    color: #e41818;
}

.chakra-result-item.excessive {
    border-color: #18e418;
    background: #e9ffe9;
    color: #18e418;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f6eeff96;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-in-out;
    flex-direction: column;
    gap: 10px;
}

.loading-text {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.loading-progress-bar {
    width: 200px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
}

.loading-progress-bar-fill {
    width: 0%;
    height: 100%;
    background: rgb(19, 199, 19);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
    display: flex;
}

.loading-overlay.step-1 .loading-progress-bar-fill {
    width: 33.33% !important;
}

.loading-overlay.step-2 .loading-progress-bar-fill {
    width: 66.66% !important;
}

.loading-overlay.step-3 .loading-progress-bar-fill {
    width: 100% !important;
}



.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--pure-white);
    box-shadow: var(--shadow-xl);
}

/* Header */
.quiz-header {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-8);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.quiz-logo {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

.quiz-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
}

.quiz-subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

/* Progress */
.progress-qu-section {
    background: var(--pure-white);
    padding: var(--space-6);
    border-bottom: 2px solid var(--violet-mist);
    position: sticky;
    top: 193px;
    z-index: 90;
}

.progress-qu-bar {
    width: 100%;
    height: 12px;
    background: var(--violet-mist);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.progress-qu-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 6px;
    transition: width 0.8s ease;
    width: 0%;
    position: relative;
}

.progress-qu-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.progress-qu-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.step-info {
    color: var(--mystic-purple);
    font-size: 1.1rem;
}

.percentage {
    color: var(--text-gray);
    font-size: 1rem;
}



/* Content */
.quiz-content {
    flex: 1;
    padding: var(--space-8);
}

.step {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Questions */
.question-section {
    margin-bottom: var(--space-8);
}

.question-number {
    color: var(--mystic-purple);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: var(--space-3);
}

.question-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep-violet);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}


.scale-options {
    display: flex;
    gap: var(--space-3);
    justify-content: space-between;
}

.scale-options .opt-item {
    flex: 1;
    aspect-ratio: 1;
    min-height: 80px;
}

.scale-options .opt-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--pure-white);
    border: 3px solid var(--violet-mist);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    padding: var(--space-3);
    font-weight: 600;
    color: var(--deep-violet);
    font-size: 0.85rem;
    text-align: center;
    gap: 4px;
}

.scale-options .opt-item label:hover {
    border-color: var(--soft-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scale-options .opt-item input:checked+label {
    border-color: var(--mystic-purple);
    background: var(--gradient-subtle);
    transform: scale(1.05);
}

.scale-options .opt-item label span {
    font-size: 28px;
    line-height: 44px;
}

/* Navigation */
.quiz-navigation {
    background: var(--pure-white);
    padding: var(--space-6);
    border-top: 2px solid var(--violet-mist);
    display: flex;
    gap: var(--space-4);
    position: sticky;
    bottom: 0;
}

.nav-btn {
    padding: var(--space-4) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-back {
    background: var(--light-gray);
    color: var(--text-gray);
    border: 2px solid var(--violet-mist);
    min-width: 120px;
}

.btn-back:hover:not(:disabled) {
    background: var(--violet-mist);
    color: var(--deep-violet);
}

.btn-next {
    flex: 1;
    background: var(--gradient-primary);
    color: white;
    border: 2px solid transparent;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}


/* Loading */
.loading-state {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.loading-state.show {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Personal Info Form */
.form-grid {
    display: grid;
    gap: var(--space-6);
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-label {
    font-weight: 600;
    color: var(--deep-violet);
    margin-bottom: var(--space-3);
    font-size: 1rem;
}

.form-input {
    padding: var(--space-4);
    border: 2px solid var(--violet-mist);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--mystic-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.date-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-4);
}