/**
 * MedXimity Symptom Checker Styles
 */

/* Page Layout */
.symptom-checker-page,
.symptom-checker-results {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Progress Steps */
.progress-steps {
    padding: 0 20px;
    margin-bottom: 30px;
}

.progress-steps .d-flex {
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.3s;
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.progress-step.completed .step-circle {
    background: #198754;
    border-color: #198754;
}

.step-label {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
    text-align: center;
}

.progress-step.active .step-label {
    color: #0d6efd;
    font-weight: 600;
}

.progress-line {
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

/* Step Cards */
.step-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.step-card .card-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.step-card .card-body {
    padding: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 14px;
}

/* Gender Selection */
.gender-option .gender-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #dee2e6 !important;
}

.gender-option .gender-card:hover {
    border-color: #0d6efd !important;
    background: #f8f9fa;
}

.gender-option input:checked + .gender-card {
    border-color: #0d6efd !important;
    background: #e7f1ff;
    color: #0d6efd;
}

.gender-option input:checked + .gender-card svg {
    color: #0d6efd;
}

/* Age Range Options */
.age-option input:checked + .btn {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Body Map */
.body-map-container {
    max-width: 200px;
    margin: 0 auto;
}

#body-map-wrapper {
    width: 100%;
}

#body-map-wrapper svg {
    width: 100%;
    height: auto;
    max-height: 450px;
}

.body-map-svg .body-region {
    fill: #e9ecef;
    stroke: #6c757d;
    stroke-width: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.body-map-svg .body-part:hover .body-region {
    fill: #cfe2ff;
    stroke: #0d6efd;
    stroke-width: 2;
}

.body-map-svg .body-part.selected .body-region {
    fill: #0d6efd;
    stroke: #0a58ca;
    stroke-width: 2;
}

/* Body Part Buttons */
.body-part-buttons {
    display: flex;
    flex-wrap: wrap;
}

.body-part-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.body-part-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Symptoms Grid */
.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.symptom-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.symptom-checkbox:hover {
    border-color: #0d6efd;
    background: #f0f7ff;
}

.symptom-checkbox.selected {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.symptom-checkbox input {
    margin-right: 10px;
}

.symptom-checkbox label {
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0;
}

/* Severity Slider */
.severity-slider {
    height: 8px;
}

.severity-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
}

.severity-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
}

/* Location Section */
.location-section {
    border: 1px solid #dee2e6;
}

/* Results Page Styles */
.urgency-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.urgency-emergency {
    background: #f8d7da;
    color: #dc3545;
}

.urgency-urgent_care {
    background: #fff3cd;
    color: #ffc107;
}

.urgency-see_doctor {
    background: #cff4fc;
    color: #0dcaf0;
}

.urgency-self_care {
    background: #d1e7dd;
    color: #198754;
}

/* Provider Cards */
.provider-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.provider-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}

.provider-card .provider-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #e9ecef;
}

.provider-card .provider-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.provider-card .provider-practice {
    color: #6c757d;
    font-size: 0.9rem;
}

.provider-card .provider-distance {
    color: #0d6efd;
    font-size: 0.85rem;
}

.provider-card .provider-rating {
    color: #ffc107;
}

/* Existing Conditions */
.existing-conditions .form-check {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-steps {
        padding: 0;
    }
    
    .step-label {
        font-size: 9px;
    }
    
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .body-map-container {
        max-width: 180px;
    }
    
    .symptoms-grid {
        grid-template-columns: 1fr;
    }
    
    .gender-selection {
        flex-direction: column;
    }
}

/* Print styles */
@media print {
    .btn, footer, header, .navbar, .main-header, .progress-steps {
        display: none !important;
    }
    .card {
        break-inside: avoid;
    }
}
