/* diagnose.css — ServeGuru Machine Symptom Diagnoser (Ultra Modern Clean UI) */

.diagnose-section {
    padding-top: 24px;
    padding-bottom: 90px;
    background: #f8fafc;
    min-height: calc(100vh - 200px);
}

.diagnose-hero {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 0 16px;
}

.diagnose-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 82, 156, 0.08);
    color: #02529C;
    border: 1px solid rgba(2, 82, 156, 0.2);
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.diagnose-badge svg {
    color: #02529C;
}

.diagnose-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    margin-bottom: 8px;
}

.diagnose-hero p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.5;
}

/* Stepper Progress Bar */
.diagnose-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 650px;
    margin: 0 auto 24px;
    padding: 0 16px;
    position: relative;
}

.diagnose-stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #64748b;
    transition: all 0.25s ease;
}

.step-node.active .step-circle {
    background: #013768;
    border-color: #013768;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(1, 55, 104, 0.3);
}

.step-node.completed .step-circle {
    background: #10B981;
    border-color: #10B981;
    color: #ffffff;
}

.step-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
}

.step-node.active .step-label {
    color: #013768;
}

/* Card Container */
.diagnose-card {
    scroll-margin-top: 85px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 760px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .diagnose-card {
        padding: 16px;
        border-radius: 14px;
    }
}

.step-title-wrap {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.step-title-wrap h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}

.step-title-wrap p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Machine Grid (Step 1 - Photo E-Commerce Cards) */
.machine-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .machine-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .machine-option-card:last-child:nth-child(odd) {
        grid-column: span 2;
    }
    .machine-option-card:last-child:nth-child(odd) .machine-img-box {
        height: 120px;
    }
}

.machine-option-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.machine-option-card:hover {
    border-color: #013768;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(1, 55, 104, 0.09);
}

.machine-option-card.selected {
    border-color: #013768;
    box-shadow: 0 0 0 2.5px #013768, 0 10px 25px rgba(1, 55, 104, 0.12);
}

.machine-img-box {
    width: 100%;
    height: 130px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

@media (max-width: 640px) {
    .machine-img-box {
        height: 105px;
        padding: 6px 10px;
    }
}

.machine-img-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    transition: transform 0.25s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
    display: block;
    margin: 0 auto;
}

.machine-option-card:hover .machine-img-box img {
    transform: scale(1.05);
}

.machine-info-box {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

@media (max-width: 640px) {
    .machine-info-box {
        padding: 10px 10px 12px;
    }
}

.machine-opt-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    margin-bottom: 2px;
}

@media (max-width: 640px) {
    .machine-opt-title {
        font-size: 0.84rem;
    }
}

.machine-opt-tamil {
    font-size: 0.78rem;
    font-weight: 700;
    color: #02529C;
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .machine-opt-tamil {
        font-size: 0.72rem;
    }
}

.machine-opt-brands {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.machine-opt-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #013768;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
}

/* Symptom Grid (Step 2 - Zero Phone Emojis / Custom SVG Icons) */
.symptom-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 641px) {
    .symptom-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.symptom-option-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    min-height: 54px;
}

.symptom-option-card:hover {
    border-color: #013768;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(1, 55, 104, 0.06);
}

.symptom-option-card.selected {
    border-color: #013768;
    background: rgba(1, 55, 104, 0.03);
    box-shadow: 0 0 0 2px #013768, 0 6px 18px rgba(1, 55, 104, 0.08);
}

.symptom-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.symptom-option-card:hover .symptom-icon-wrap {
    transform: scale(1.08);
}

.symptom-text-wrap {
    flex: 1;
    min-width: 0;
}

.symptom-thanglish {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.35;
    margin-bottom: 2px;
}

.symptom-english {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.25;
}

.symptom-select-indicator {
    color: #cbd5e1;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.symptom-option-card:hover .symptom-select-indicator {
    color: #013768;
    transform: translateX(3px);
}

.symptom-option-card.selected .symptom-select-indicator {
    color: #013768;
}

/* Step 3: Diagnostic Report */
.report-card {
    background: #ffffff;
}

.report-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.severity-minor {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.severity-moderate {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.severity-critical {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.report-section-block {
    margin-bottom: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.report-section-label {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.report-cause-thanglish {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
    line-height: 1.45;
}

.report-cause-english {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
}

.report-diy-list {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.55;
}

.report-diy-list li {
    margin-bottom: 6px;
}

.action-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.btn-book-service {
    background: #013768;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(1, 55, 104, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-book-service:hover {
    background: #02529C;
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-wa-doctor {
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-wa-doctor:hover {
    background: #1eb857;
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-restart {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-restart:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Google Review Card in Footer */
.google-review-trust-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    max-width: 760px;
    margin: 24px auto 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
    .google-review-trust-card {
        flex-direction: column;
        text-align: center;
    }
}
