@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 222, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(134, 239, 172, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.quiz-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a, #15803d);
}

.progress-container {
    margin-bottom: 40px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.question-counter {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.question {
    display: none;
    animation: slideIn 0.5s ease-out;
}

.question.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question h2 {
    color: #1f2937;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.option:hover {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

.option:hover::before {
    left: 100%;
}

.option.selected {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.option.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
}

.options.multiple .option.selected {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
}

.input-field {
    width: 100%;
    padding: 20px 24px;
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    font-size: 18px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.input-field:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
    transform: translateY(-2px);
}

.slider-container {
    margin: 20px 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(34, 197, 94, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 20px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.slider-value {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #22c55e;
    margin-top: 10px;
    background: rgba(34, 197, 94, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
}

.confirm-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(34, 197, 94, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-back:hover {
    background: rgba(34, 197, 94, 0.15);
    transform: translateY(-1px);
}

.btn-next {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.final-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease-out;
}

.final-message.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.final-message h2 {
    color: #1f2937;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

.doctor-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.doctor-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.doctor-info h3 {
    color: #065f46;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.doctor-info p {
    color: #374151;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.result-timeline {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(74, 222, 128, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    padding: 24px;
    margin-top: 30px;
    position: relative;
}

.result-timeline::before {
    content: '🔧';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.result-timeline p {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .quiz-container {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .question h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .option {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .final-message h2 {
        font-size: 24px;
    }
    
    .doctor-info, .result-timeline {
        padding: 20px;
    }
}

@media (hover: none) {
    .option:active {
        transform: scale(0.98);
        background: rgba(245, 158, 11, 0.1);
    }
}

.question-transition {
    opacity: 0;
    transform: translateX(20px);
    animation: questionSlide 0.4s ease-out forwards;
}

@keyframes questionSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}