/* =========================================================
 * Lusaka Eye Hospital - Hospital Redesign Modular Styles
 * Mobile-First Clinical Pathway, ZMW Fee Clarity, Partners,
 * Reader Modal, Upgraded Booking Portal & Mobile Triage Bar
 * ========================================================= */

:root {
    --leh-navy: #1d4381;
    --leh-navy-dark: #0f2750;
    --leh-sky: #0284c7;
    --leh-teal: #0d9488;
    --leh-emerald: #059669;
    --leh-surface: #ffffff;
    --leh-canvas: #f8fafc;
    --leh-border: #e2e8f0;
    --leh-text: #0f172a;
    --leh-muted: #475569;
    --leh-radius: 18px;
}

/* Smooth reveal micro-animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Top Clinical Utility Strip */
.hospital-utility-bar {
    background: var(--leh-navy-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.utility-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.utility-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #e2e8f0;
}

.utility-item i {
    color: #38bdf8;
    font-size: 0.95rem;
}

.utility-emergency {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.utility-emergency:hover {
    background: rgba(239, 68, 68, 0.28);
    transform: translateY(-1px);
}

/* Hero Clinical Impact KPIs & Fee Chip */
.hero-fee-ribbon {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    color: #e0f2fe;
}

.hero-fee-ribbon strong {
    color: #ffffff;
}

.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 2.25rem;
}

@media (min-width: 768px) {
    .hero-stats-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 1rem 1.15rem;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.hero-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.86);
    margin-top: 0.25rem;
}

/* Hospital Patient Care Pathway Section */
.care-pathway-section {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-top: 1px solid var(--leh-border);
    border-bottom: 1px solid var(--leh-border);
}

.pathway-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.25rem;
}

@media (min-width: 640px) {
    .pathway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .pathway-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.pathway-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--leh-border);
    border-radius: var(--leh-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pathway-card:hover {
    transform: translateY(-4px);
    border-color: #7dd3fc;
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.09);
}

.pathway-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.pathway-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--leh-navy);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
}

.pathway-duration-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--leh-teal);
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.pathway-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0284c7, #1d4381);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.pathway-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--leh-text);
    margin: 0;
}

.pathway-subtitle {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--leh-sky);
    margin: 0;
}

.pathway-desc {
    font-size: 0.88rem;
    line-height: 1.58;
    color: var(--leh-muted);
    margin: 0;
}

/* Enhanced Specialty Cards (Procedures + ZMW Fee Pill + Triage Level) */
.specialty-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.specialty-triage-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.specialty-fee-badge {
    font-size: 0.74rem;
    font-weight: 800;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.specialty-procedures-list {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.specialty-procedures-list li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #334155;
}

.specialty-procedures-list li i {
    color: var(--leh-teal);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.specialty-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
}

.btn-specialty-book {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--leh-navy);
    border: none;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-specialty-book:hover {
    background: var(--leh-sky);
    transform: translateY(-1px);
}

/* Optical Product ZMW Price Badge */
.product-price-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 800;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

/* Insurance & NHIMA Assurance Section */
.partners-section {
    padding: 4.5rem 0;
    background: #f1f5f9;
    border-top: 1px solid var(--leh-border);
    border-bottom: 1px solid var(--leh-border);
}

.partners-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .partners-layout {
        grid-template-columns: 2fr 1fr;
        align-items: stretch;
    }
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.partner-card {
    background: #ffffff;
    border: 1px solid var(--leh-border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
}

.partner-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--leh-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.partner-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--leh-border);
    padding: 4px;
    flex-shrink: 0;
}

.partner-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--leh-emerald);
    background: #ecfdf5;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

.partner-card h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--leh-text);
}

.partner-card p {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--leh-muted);
}

.fee-transparency-card {
    background: linear-gradient(155deg, var(--leh-navy-dark) 0%, var(--leh-navy) 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 18px 35px rgba(15, 39, 80, 0.2);
}

.fee-line-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 1rem;
}

.fee-line-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.fee-line-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.fee-line-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #5eead4;
}

.fee-line-note {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.82);
}

/* Booking Form 2-Column Responsive Row */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row-2col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.booking-assurance-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.assurance-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--leh-navy);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}

.booking-success-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 16px;
    padding: 1.35rem;
    margin-top: 1rem;
    text-align: left;
}

.booking-success-box .ref-chip {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 800;
    font-size: 0.92rem;
    background: #ffffff;
    color: #047857;
    border: 1px solid #6ee7b7;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
}

/* Update Reader Modal */
.leh-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.leh-modal-backdrop.hidden {
    display: none;
}

.leh-modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
}

.leh-modal-cover {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.leh-modal-body {
    padding: 1.5rem;
}

.leh-modal-close {
    position: sticky;
    top: 0.75rem;
    float: right;
    margin: 0.75rem 0.75rem 0 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile-First Sticky Action Dock (Phones Only) */
.mobile-triage-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--leh-border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.45rem 0.6rem calc(0.45rem + env(safe-area-inset-bottom));
    gap: 0.45rem;
}

.mobile-dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.45rem 0.25rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--leh-navy);
    background: #f1f5f9;
}

.mobile-dock-btn.dock-primary {
    background: var(--leh-navy);
    color: #ffffff;
}

.mobile-dock-btn.dock-emergency {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.mobile-dock-btn i {
    font-size: 1.15rem;
}

@media (min-width: 769px) {
    .mobile-triage-dock {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 72px;
    }
}


/* Specialist Bio & Additional Update Badges */
.specialist-bio {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 1rem;
}

.specialty-card {
    display: flex;
    flex-direction: column;
}

.update-category-badge.badge-pediatric {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
}

.update-category-badge.badge-theater {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #ffffff;
}

.update-category-badge.badge-optical {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
}

/* Mobile-first tuning for hero & section headings */
@media (max-width: 640px) {
    .hero-stats-strip {
        gap: 0.65rem;
    }

    .hero-stat-card {
        padding: 0.85rem;
    }

    .hero-stat-value {
        font-size: 1.2rem;
    }
}
