/* =====================================================
           FIRST AID STEP WIZARD - Single Focused Window Layout
           ===================================================== */
:root {
    --font-serif: 'Playfair Display', 'Noto Serif Sinhala', serif;
    --font-sans: 'Plus Jakarta Sans', 'Noto Sans Sinhala', sans-serif;
    --font-article: 'Nunito', 'Noto Sans Sinhala', sans-serif;

    --fa-green: #0f4a3b;
    --fa-green-hover: #135c49;
    --fa-green-light: #e9f5ee;
    --fa-red: #d9534f;
    --fa-red-hover: #c9302c;
    --fa-red-light: #fff3f3;
    --border-light: #e2e8f0;
    --text-dark: #1a202c;
    --text-muted: #64748b;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: #f9fafb;
}

.fa-page-wrapper {
    min-height: 100vh;
    background: #f4f7f6;
    padding-bottom: 80px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 24px;
    flex-wrap: wrap;
    font-family: var(--font-sans);
}

.breadcrumb a {
    text-decoration: none;
    color: var(--fa-green);
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--fa-green-hover);
}

.breadcrumb .sep {
    color: #cbd5e1;
}

.breadcrumb .current {
    color: #475569;
    font-weight: 600;
}

/* Wizard Modal Box */
.fa-wizard-modal {
    background: white;
    border: 1.5px solid var(--border-light);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fa-wizard-modal.final-active {
    border-color: #fecdd3;
    box-shadow: 0 12px 36px rgba(217, 83, 79, 0.12);
}

/* Wizard Header */
.fa-wizard-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-back {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-header-back:hover {
    background: #f1f5f9;
    color: var(--text-dark);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--fa-green);
    color: white;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
}

.header-brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    font-family: var(--font-sans);
}

.header-step-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--fa-green);
}

.header-step-count.final-step {
    color: var(--fa-red);
}

.btn-header-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-header-close:hover {
    background: #f1f5f9;
    color: #334155;
}

/* Wizard Content Area */
.fa-wizard-body {
    padding: 32px 28px;
}

.fa-step-window {
    display: none;
    flex-direction: column;
    animation: fadeInStep 0.35s ease-in-out forwards;
}

.fa-step-window.active {
    display: flex;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step 1 Visual Center Badge */
.step-center-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--fa-green-light);
    color: var(--fa-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px auto;
    overflow: hidden;
}

.step-title-center {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--fa-green);
    margin-bottom: 6px;
}

.step-title-center.red-title {
    color: var(--fa-red);
}

.step-subtitle-center {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-family: var(--font-sans);
}

.step-desc-center {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-family: var(--font-sans);
}

/* Wizard Options Buttons */
.fa-option-btn {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    transition: all 0.25s ease;
}

.btn-green-fill {
    background: var(--fa-green);
    color: white;
    box-shadow: 0 4px 14px rgba(15, 74, 59, 0.2);
}

.btn-green-fill:hover {
    background: var(--fa-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 74, 59, 0.3);
}

.btn-gray-outline {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.btn-gray-outline:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.btn-cat-item {
    background: #f8fafc;
    color: var(--fa-green);
    border-color: #cbd5e1;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
}

.btn-cat-item:hover {
    background: var(--fa-green);
    color: white;
    border-color: var(--fa-green);
    transform: translateX(4px);
}

.btn-goback {
    background: #f8fafc;
    color: var(--fa-green);
    border: 1.5px solid #cbd5e1;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 0.9rem;
    padding: 12px;
}

.btn-goback:hover {
    background: var(--fa-green-light);
    border-color: var(--fa-green);
}

/* Step 2 Search Component */
.fa-search-wrapper {
    margin-bottom: 16px;
}

.fa-search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 2px 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.fa-search-input-box:focus-within {
    border-color: var(--fa-green);
    box-shadow: 0 0 0 3.5px rgba(15, 74, 59, 0.12);
}

.fa-search-icon {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-right: 10px;
    flex-shrink: 0;
}

.fa-search-input-box:focus-within .fa-search-icon {
    color: var(--fa-green);
}

.fa-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-sans);
}

.fa-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.fa-search-clear {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1.15rem;
    color: #94a3b8;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.fa-search-clear:hover {
    color: var(--fa-red);
}

.fa-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px 0 4px;
    font-size: 0.78rem;
    color: #64748b;
    font-family: var(--font-sans);
}

/* Category List Container with sleek scroll */
#category-buttons-list {
    max-height: 440px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#category-buttons-list::-webkit-scrollbar {
    width: 6px;
}

#category-buttons-list::-webkit-scrollbar-track {
    background: transparent;
}

#category-buttons-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 99px;
}

/* Empty Search Results Card */
.fa-search-empty {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fa-search-empty .empty-icon {
    font-size: 2.2rem;
    margin-bottom: 2px;
}

.fa-search-empty .empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    font-family: var(--font-sans);
}

.fa-search-empty .empty-desc {
    font-size: 0.84rem;
    color: #64748b;
    max-width: 380px;
    margin-bottom: 10px;
    font-family: var(--font-sans);
    line-height: 1.45;
}

.btn-clear-search-action {
    background: var(--fa-green-light);
    color: var(--fa-green);
    border: 1px solid var(--fa-green);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.btn-clear-search-action:hover {
    background: var(--fa-green);
    color: white;
}

/* Safety First Box */
.safety-first-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.safety-first-box i {
    color: #166534;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.safety-first-box h5 {
    margin: 0 0 2px 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #166534;
    font-family: var(--font-sans);
}

.safety-first-box p {
    margin: 0;
    font-size: 0.82rem;
    color: #15803d;
    line-height: 1.45;
    font-family: var(--font-sans);
}

.step1-footer-tip {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

/* Diagnostic Question Box in Step 3 */
.diag-question-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.diag-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.diag-question-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-sans);
}

.diag-question-hint {
    font-size: 0.85rem;
    color: #166534;
    font-family: var(--font-sans);
}

.yes-no-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .yes-no-grid {
        grid-template-columns: 1fr;
    }
}

/* Final Guidance Step Timeline (Step 4) */
.guidance-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.guidance-step-item {
    background: #fff;
    border: 1px solid #fecdd3;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.guidance-step-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-num-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fa-red);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-family: var(--font-sans);
}

.step-icon-wrap {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.step-content h5 {
    margin: 0 0 3px 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    font-family: var(--font-sans);
    line-height: 1.35;
}

.step-content p {
    margin: 0;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.5;
    font-family: var(--font-sans);
}

/* Mobile-First Step See More Button & Expanded Box */
.fa-seemore-btn-wrap {
    margin-left: 42px;
    margin-top: -2px;
}

@media (max-width: 480px) {
    .fa-seemore-btn-wrap {
        margin-left: 0;
    }
}

.btn-step-seemore {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    min-height: 36px;
}

.btn-step-seemore:hover,
.btn-step-seemore.active {
    background: #0f4a3b;
    border-color: #0f4a3b;
    color: white;
}

.btn-step-seemore .seemore-arrow {
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}

.btn-step-seemore.active .seemore-arrow {
    transform: rotate(180deg);
}

.fa-step-expanded-panel {
    display: none;
    margin-left: 42px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    animation: fadeInExpand 0.25s ease-out forwards;
}

@media (max-width: 480px) {
    .fa-step-expanded-panel {
        margin-left: 0;
    }
}

.fa-step-expanded-panel.open {
    display: block;
}

@keyframes fadeInExpand {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fa-expanded-notes {
    font-size: 0.84rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 8px;
    white-space: pre-line;
    font-family: var(--font-sans);
}

.btn-inapp-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0f4a3b;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 42px;
    font-family: var(--font-sans);
    box-shadow: 0 2px 6px rgba(15, 74, 59, 0.15);
}

.btn-inapp-action:hover {
    background: #135c49;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 74, 59, 0.25);
}

.btn-inapp-action.video-btn {
    background: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.btn-inapp-action.video-btn:hover {
    background: #b91c1c;
}

/* In-App Mobile Article & Video Viewer Drawer */
.fa-article-drawer-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.fa-article-drawer-bg.open {
    display: block;
    opacity: 1;
}

.fa-article-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 620px;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.18);
}

.fa-article-drawer.open {
    transform: translateX(0);
}

.drawer-topbar {
    padding: 12px 16px;
    background: #0f4a3b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-drawer-back {
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-height: 42px;
    font-family: var(--font-sans);
    transition: background 0.2s ease;
}

.btn-drawer-back:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-drawer-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-drawer-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    background: #f8fafc;
}

#drawerArticleFrame {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 75px);
    border: none;
    display: block;
}

.yt-player-iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: unset !important;
    max-height: 100% !important;
    border: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Big Red Ambulance Button */
.btn-call-1990 {
    width: 100%;
    padding: 16px;
    background: var(--fa-red);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(217, 83, 79, 0.3);
    transition: all 0.25s ease;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

.btn-call-1990:hover {
    background: var(--fa-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 83, 79, 0.4);
}

.btn-start-over {
    width: 100%;
    padding: 13px;
    background: white;
    color: var(--fa-green);
    border: 1.5px solid var(--fa-green);
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.btn-start-over:hover {
    background: var(--fa-green-light);
}

/* Disclaimer Box */
.fa-disclaimer-card {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 640px;
    margin: 20px auto 0 auto;
    font-family: var(--font-sans);
}

.fa-disclaimer-icon {
    font-size: 1.5rem;
    color: #2563eb;
    flex-shrink: 0;
}

.fa-disclaimer-text {
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.5;
}

/* Lang switcher override */
#currentLangText {
    font-weight: 600;
}

/* ===================================================
   REDESIGNED SELECT SITUATION SCREEN (Step 2)
   =================================================== */

.fa-situation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fa-situation-header-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.fa-situation-title {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.fa-situation-subtitle {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f766e;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.fa-situation-desc {
    font-size: 0.84rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

/* 3D Medical Kit Hero Illustration */
.fa-situation-header-media {
    flex-shrink: 0;
    width: 86px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fa-kit-3d-box {
    position: relative;
    width: 78px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fa-kit-3d-handle {
    width: 30px;
    height: 11px;
    border: 3.5px solid #064e3b;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: transparent;
    margin-bottom: -2px;
    z-index: 1;
}

.fa-kit-3d-case {
    position: relative;
    width: 100%;
    height: 53px;
    background: linear-gradient(145deg, #10b981 0%, #059669 100%);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fa-kit-3d-cross {
    font-size: 1.7rem;
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1;
    margin-left: -8px;
}

.fa-kit-3d-heart {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #ff4b4b 0%, #dc2626 100%);
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    animation: heartPulse 1.8s infinite ease-in-out;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Search Box Container */
.fa-search-wrapper {
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
}

.fa-search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.fa-search-input-box:focus-within {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.fa-search-icon {
    font-size: 1.05rem;
    color: #64748b;
    margin-right: 8px;
    flex-shrink: 0;
}

.fa-search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 11px 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    font-family: var(--font-sans);
    min-width: 0;
}

.fa-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

/* Meta Indicator Below Search */
.fa-situation-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px 12px 2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.fa-situation-meta strong {
    color: #0f766e;
    font-weight: 800;
}

/* Section Title: Quick Select */
.fa-section-header {
    text-align: left;
    margin-bottom: 12px;
}

.fa-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px 0;
}

.fa-section-bar {
    width: 36px;
    height: 3.5px;
    background: #0f766e;
    border-radius: 99px;
}

/* 2-Column Grid with Strict minmax(0, 1fr) constraint */
.fa-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 3px 2px 12px 2px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.fa-categories-grid::-webkit-scrollbar {
    width: 5px;
}

.fa-categories-grid::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 99px;
}

/* Situation Card - Clean Pastel Container */
.fa-situation-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 14px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.02);
    min-height: 52px;
    overflow: hidden;
    outline: none;
}

.fa-situation-card:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.06);
}

.fa-situation-card:active {
    transform: scale(0.98);
}

.fa-card-icon-wrap {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    border-radius: 50%;
    background: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.fa-card-text {
    flex: 1 1 0%;
    min-width: 0 !important;
    overflow: hidden;
}

/* Reduced Situation Button Title Text Size */
.fa-card-name {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.22 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.fa-card-chevron {
    font-size: 0.85rem;
    opacity: 0.85;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s;
}

.fa-situation-card:hover .fa-card-chevron {
    transform: translateX(2px);
    opacity: 1;
}

/* ── DISTINCT PASTEL THEMES MATCHING MOCKUP ── */

/* 1. Pink / Red (Bleeding, Heart, Wounds) */
.fa-situation-card.theme-pink {
    background-color: #fdf2f4 !important;
    border: 1.5px solid #fecdd3 !important;
}

.fa-situation-card.theme-pink .fa-card-chevron {
    color: #e11d48 !important;
}

.fa-situation-card.theme-pink:hover {
    background-color: #ffe4e6 !important;
    border-color: #fb7185 !important;
}

/* 2. Orange (Burns, Heat, Dehydration) */
.fa-situation-card.theme-orange {
    background-color: #fff7ed !important;
    border: 1.5px solid #fed7aa !important;
}

.fa-situation-card.theme-orange .fa-card-chevron {
    color: #ea580c !important;
}

.fa-situation-card.theme-orange:hover {
    background-color: #ffedd5 !important;
    border-color: #fb923c !important;
}

/* 3. Yellow (Allergic Reactions, Poison, Diabetes) */
.fa-situation-card.theme-yellow {
    background-color: #fefce8 !important;
    border: 1.5px solid #fef08a !important;
}

.fa-situation-card.theme-yellow .fa-card-chevron {
    color: #ca8a04 !important;
}

.fa-situation-card.theme-yellow:hover {
    background-color: #fef9c3 !important;
    border-color: #facc15 !important;
}

/* 4. Blue (Asthma, Respiratory, Choking) */
.fa-situation-card.theme-blue {
    background-color: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
}

.fa-situation-card.theme-blue .fa-card-chevron {
    color: #0284c7 !important;
}

.fa-situation-card.theme-blue:hover {
    background-color: #e0f2fe !important;
    border-color: #38bdf8 !important;
}

/* 5. Green (Abdominal, Shock, CPR) */
.fa-situation-card.theme-green {
    background-color: #f0fdf4 !important;
    border: 1.5px solid #bbf7d0 !important;
}

.fa-situation-card.theme-green .fa-card-chevron {
    color: #16a34a !important;
}

.fa-situation-card.theme-green:hover {
    background-color: #dcfce7 !important;
    border-color: #4ade80 !important;
}

/* 6. Purple (Animal/Snake Bites, Stings) */
.fa-situation-card.theme-purple {
    background-color: #faf5ff !important;
    border: 1.5px solid #e9d5ff !important;
}

.fa-situation-card.theme-purple .fa-card-chevron {
    color: #9333ea !important;
}

.fa-situation-card.theme-purple:hover {
    background-color: #f3e8ff !important;
    border-color: #c084fc !important;
}

/* 7. Teal (Fractures, Sprains, Joints) */
.fa-situation-card.theme-teal {
    background-color: #f0fdfa !important;
    border: 1.5px solid #99f6e4 !important;
}

.fa-situation-card.theme-teal .fa-card-chevron {
    color: #0d9488 !important;
}

.fa-situation-card.theme-teal:hover {
    background-color: #ccfbf1 !important;
    border-color: #2dd4bf !important;
}

/* 8. Rose (Seizures, Fainting, Unresponsive) */
.fa-situation-card.theme-rose {
    background-color: #fff1f2 !important;
    border: 1.5px solid #fecdd3 !important;
}

.fa-situation-card.theme-rose .fa-card-chevron {
    color: #e11d48 !important;
}

.fa-situation-card.theme-rose:hover {
    background-color: #ffe4e6 !important;
    border-color: #f43f5e !important;
}

/* 9. Cyan (Eye Injuries, Frostbite) */
.fa-situation-card.theme-cyan {
    background-color: #ecfeff !important;
    border: 1.5px solid #a5f3fc !important;
}

.fa-situation-card.theme-cyan .fa-card-chevron {
    color: #0891b2 !important;
}

.fa-situation-card.theme-cyan:hover {
    background-color: #cffafe !important;
    border-color: #22d3ee !important;
}

/* 10. Lime (Fever, Diarrhea, Vomiting) */
.fa-situation-card.theme-lime {
    background-color: #f7fee7 !important;
    border: 1.5px solid #d9f99d !important;
}

.fa-situation-card.theme-lime .fa-card-chevron {
    color: #65a30d !important;
}

.fa-situation-card.theme-lime:hover {
    background-color: #ecfccb !important;
    border-color: #a3e635 !important;
}

/* Responsive Adjustments for Mobile - Edge-to-Edge Full Screen Width */
@media (max-width: 768px) {
    .fa-page-wrapper {
        padding-bottom: 30px;
    }

    .fa-page-wrapper .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .breadcrumb {
        padding: 0 12px;
        margin-bottom: 10px;
        font-size: 0.82rem;
    }

    .fa-disclaimer-card {
        margin: 16px 10px 0 10px !important;
        border-radius: 14px !important;
    }

    .fa-wizard-modal {
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid var(--border-light) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    }

    .fa-wizard-header {
        padding: 12px 14px !important;
    }

    .fa-wizard-body {
        padding: 16px 10px !important;
    }

    .fa-situation-header {
        gap: 10px;
        margin-bottom: 12px;
    }

    .fa-situation-title {
        font-size: 1.45rem;
    }

    .fa-situation-subtitle {
        font-size: 0.98rem;
    }

    .fa-situation-desc {
        font-size: 0.80rem;
    }

    .fa-situation-header-media {
        width: 76px;
        height: 64px;
    }

    .fa-kit-3d-box {
        width: 68px;
        height: 56px;
    }

    .fa-kit-3d-handle {
        width: 26px;
        height: 9px;
        border-width: 2.8px;
    }

    .fa-kit-3d-case {
        height: 47px;
        border-radius: 12px;
    }

    .fa-kit-3d-cross {
        font-size: 1.45rem;
        margin-left: -6px;
    }

    .fa-kit-3d-heart {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        border-width: 2px;
        bottom: -4px;
        right: -4px;
    }

    .fa-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        max-height: calc(100vh - 260px) !important;
        min-height: 420px;
        padding: 2px 0 10px 0 !important;
    }

    .fa-situation-card {
        padding: 9px 8px !important;
        gap: 7px !important;
        border-radius: 13px !important;
        min-height: 52px !important;
    }

    .fa-card-icon-wrap {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        font-size: 1.08rem !important;
    }

    .fa-card-name {
        font-size: 0.74rem !important;
        line-height: 1.20 !important;
    }

    .fa-card-chevron {
        font-size: 0.82rem !important;
    }
}

@media (max-width: 360px) {
    .fa-wizard-body {
        padding: 12px 6px !important;
    }

    .fa-categories-grid {
        gap: 6px !important;
    }

    .fa-situation-card {
        padding: 8px 6px !important;
        gap: 6px !important;
    }

    .fa-card-icon-wrap {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        font-size: 0.95rem !important;
    }

    .fa-card-name {
        font-size: 0.70rem !important;
    }
}