/* Diagnosis Flow CSS */

.diagnosis-section, .result-section {
    padding: 100px 0 50px;
    background: var(--cream);
    min-height: 100vh;
}

/* Diagnosis Header */
.diagnosis-header {
    text-align: center;
    margin-bottom: 50px;
}

.diagnosis-header h1 {
    font-size: 42px;
    color: var(--dark-sage);
    margin-bottom: 15px;
}

.diagnosis-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 5px 20px var(--shadow);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.category-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 22px;
    color: var(--dark-sage);
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.category-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--golden);
}

/* Progress Bar */
.progress-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.progress-bar {
    height: 8px;
    background: rgba(139, 157, 131, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage-green), var(--golden));
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* Question Card */
.question-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
}

.question-card h2 {
    font-size: 28px;
    color: var(--dark-sage);
    margin-bottom: 40px;
    text-align: center;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.option-card {
    cursor: pointer;
}

.option-card input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border: 2px solid rgba(139, 157, 131, 0.2);
    border-radius: 12px;
    transition: all 0.3s;
    background: var(--white);
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: var(--sage-green);
    background: rgba(139, 157, 131, 0.05);
}

.option-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}

.option-check {
    font-size: 24px;
    color: var(--sage-green);
    opacity: 0;
    transition: opacity 0.3s;
}

.option-card input[type="radio"]:checked + .option-content .option-check {
    opacity: 1;
}

/* Question Actions */
.question-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.skip-option {
    text-align: center;
    margin-top: 20px;
}

.skip-option a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

/* Result Card */
.result-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 40px;
    text-align: center;
}

.result-header {
    margin-bottom: 40px;
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.result-header h1 {
    font-size: 36px;
    color: var(--dark-sage);
    margin-bottom: 10px;
}

.disease-result h2 {
    font-size: 32px;
    color: var(--golden);
    margin-bottom: 25px;
}

/* Confidence Meter */
.confidence-meter {
    max-width: 500px;
    margin: 0 auto;
}

.confidence-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.confidence-value {
    font-weight: 600;
    color: var(--golden);
}

.confidence-bar {
    height: 12px;
    background: rgba(139, 157, 131, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage-green), var(--golden));
}

/* Recommendations */
.recommendations {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 40px;
}

.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(139, 157, 131, 0.1);
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--sage-green);
    border-bottom-color: var(--sage-green);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 24px;
    color: var(--dark-sage);
    margin-bottom: 25px;
}

/* Medicine List */
.medicine-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.medicine-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--cream);
    border-radius: 12px;
}

.medicine-info h4 {
    font-size: 18px;
    color: var(--dark-sage);
    margin-bottom: 5px;
}

.medicine-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.medicine-duration {
    font-size: 12px;
    color: var(--sage-green);
}

/* Diet Grid */
.diet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.diet-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-sage);
}

.diet-section ul {
    list-style: none;
}

.diet-section li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 157, 131, 0.1);
}

/* Lifestyle List */
.lifestyle-list {
    list-style: none;
}

.lifestyle-list li {
    padding: 15px 20px;
    background: var(--cream);
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Result Actions */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.diagnosis-note {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--golden);
    border-radius: 8px;
}

.diagnosis-note p {
    color: var(--text-dark);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .question-card {
        padding: 30px 20px;
    }
    
    .diet-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .tabs {
        flex-direction: column;
    }
}
