/* QuickDent Homepage Modern Styling - Figma Match */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');
@import url('./app-custom.css');
@import url('./services.css?v=20261124e');
@import url('./search.css');
@import url('./blogs.css');
@import url('./components.css');
@import url('./quickdent-mobile.css');

/* Mobile Web App Utilities & Horizontal Scroll */
[x-cloak] {
    display: none !important;
}
.scrollbar-none::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.qd-mobile-home-container {
    -webkit-overflow-scrolling: touch;
}

/* Appinventiv-Grade Lenis Smooth Scroll Rules */
html.lenis,
html.lenis body {
    height: auto;
    overflow-x: clip;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
    overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
    overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

.lenis.lenis-autoToggle {
    transition-property: overflow;
    transition-duration: 1ms;
    transition-behavior: allow-discrete;
}

:root {
    --qd-font: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --qd-primary: #0080ff;
    --qd-primary-hover: #006ee6;
    --qd-primary-dark: #0056b3;
    --qd-dark-bg: #0b0f19;
    --qd-dark-surface: #141a29;
    --qd-text-main: #111111;
    --qd-text-muted: #64748b;
    --qd-text-light: #94a3b8;
    --qd-border: #e2e8f0;
    --qd-border-dark: rgba(255, 255, 255, 0.12);
}

body {
    font-family: var(--qd-font) !important;
    color: var(--qd-text-main);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

/* Container layout matching Figma 1440px with 100px padding */
.qd-hero-container,
.qd-nav-container,
.qd-section-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    padding-right: 100px;
    width: 100%;
}

.qd-profile-container {
    max-width: 1240px;
    width: min(1240px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 640px) {
    .qd-profile-container {
        width: calc(100% - 32px);
    }
}

.qd-nav-container {
    transition: background 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease, max-width 0.25s ease, width 0.25s ease, padding 0.25s ease;
    border-radius: 0;
    border: 1px solid transparent;
}

.qd-navbar:not(.scrolled-light):not(.qd-navbar-inner) .qd-nav-container {
    width: min(1240px, calc(100% - 48px));
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 768px) {
    .qd-navbar:not(.scrolled-light):not(.qd-navbar-inner) .qd-nav-container {
        width: calc(100% - 32px);
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 1280px) {

    .qd-hero-container,
    .qd-nav-container,
    .qd-section-container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (max-width: 768px) {

    .qd-hero-container,
    .qd-section-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .qd-nav-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Navbar specific styling */
.qd-navbar {
    padding-top: 16px;
    padding-bottom: 0px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: padding 0.25s ease;
}

/* Main content clearance under fixed floating pill header */
.qd-main--inner {
    padding-top: 88px;
    background: #f8fafc;
    min-height: 40vh;
}

.qd-main--hero {
    padding-top: 0;
}

@media (max-width: 768px) {
    .qd-main--inner {
        padding-top: 72px;
    }
}

/* Clinic profile hero — same transparent white header treatment as booking */
.qd-clinic-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    color: #fff;
}

.qd-clinic-hero-bg {
    position: absolute;
    inset: 0;
}

.qd-clinic-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.qd-clinic-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.2) 100%);
}

.qd-clinic-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 132px 0 0;
}

.qd-clinic-hero-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.qd-clinic-hero-sub {
    margin: 10px 0 0;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.qd-clinic-hero-sub i {
    margin-top: 3px;
    color: #60a5fa;
}

.qd-clinic-hero-meta {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
    .qd-clinic-hero {
        height: 240px;
    }

    .qd-clinic-hero-inner {
        padding-top: 108px;
        width: calc(100% - 32px);
    }
}

/* Brand logos: white on dark/transparent hero nav; dark on light pill */
.qd-brand-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.qd-brand-logo .qd-logo-img {
    filter: none !important;
    height: 34px;
    width: auto;
}

@media (min-width: 640px) {
    .qd-brand-logo .qd-logo-img {
        height: 38px;
    }
}

@media (min-width: 768px) {
    .qd-brand-logo .qd-logo-img {
        height: 42px;
    }
}

.qd-brand-logo .qd-logo-img--dark {
    display: none;
}

.qd-brand-logo .qd-logo-img--white {
    display: block;
}

/* Light floating pill (scrolled / inner / dark) → dark theme logo */
.qd-navbar.scrolled-light .qd-brand-logo .qd-logo-img--white,
.qd-navbar.qd-navbar-inner .qd-brand-logo .qd-logo-img--white,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-brand-logo .qd-logo-img--white {
    display: none !important;
}

.qd-navbar.scrolled-light .qd-brand-logo .qd-logo-img--dark,
.qd-navbar.qd-navbar-inner .qd-brand-logo .qd-logo-img--dark,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-brand-logo .qd-logo-img--dark {
    display: block !important;
}


@media (min-width: 640px) {
    .qd-navbar {
        padding-top: 24px;
    }
}

@media (min-width: 1024px) {
    .qd-navbar {
        padding-top: 52px;
    }
}

/* Light scrolled state: white frosted glass navbar on scroll */
.qd-navbar.scrolled-light {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background: transparent !important;
    border-bottom: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.qd-navbar.scrolled-light .qd-nav-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 6px 18px 6px 20px;
    transition: none;
    max-width: 1240px;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 52px;
}

@media (max-width: 768px) {
    .qd-navbar.scrolled-light {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .qd-navbar.scrolled-light .qd-nav-container {
        width: calc(100% - 24px) !important;
        padding: 5px 10px 5px 14px !important;
        min-height: 46px !important;
    }
}

/* Nav links turn dark on light navbar */
.qd-navbar.scrolled-light .qd-nav-link {
    color: rgba(15, 23, 42, 0.75);
}

.qd-navbar.scrolled-light .qd-nav-link:hover {
    color: #0b0f19;
}

.qd-navbar.scrolled-light .qd-nav-link::after {
    background: var(--qd-primary);
}

/* Book a visit button: light outline on light navbar */
.qd-navbar.scrolled-light .qd-btn-book {
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: rgba(15, 23, 42, 0.04);
    backdrop-filter: none;
    color: #0b0f19;
}

.qd-navbar.scrolled-light .qd-btn-book:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.3);
    color: #0b0f19;
}

/* Bell button on light navbar */
.qd-navbar.scrolled-light .qd-btn-bell {
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    background: rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #0b0f19 !important;
    box-shadow: none !important;
}

.qd-navbar.scrolled-light .qd-btn-bell:hover {
    background: rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(15, 23, 42, 0.3) !important;
    color: #0b0f19 !important;
    transform: translateY(-1px);
}

.qd-navbar.scrolled-light .qd-btn-bell[aria-expanded="true"] {
    background: rgba(15, 23, 42, 0.12) !important;
    border-color: rgba(15, 23, 42, 0.35) !important;
    color: #0b0f19 !important;
}

/* Login button stays blue on light navbar */
.qd-navbar.scrolled-light .qd-btn-login {
    background: #0080ff;
    color: #ffffff !important;
}

/* Logo adapts via White/Dark SVG swap — no CSS filter */
.qd-navbar.scrolled-light .qd-logo-img {
    filter: none !important;
}

/* Mobile menu button on light navbar */
.qd-navbar.scrolled-light #qd-mobile-menu-btn {
    background: rgba(15, 23, 42, 0.06);
    color: #0b0f19;
}

.qd-navbar.scrolled-light #qd-mobile-menu-btn:hover {
    background: rgba(15, 23, 42, 0.12);
}

/* Patient dropdown button on light navbar */
.qd-navbar.scrolled-light .qd-patient-dropdown>button {
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    background: rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #0b0f19 !important;
}

.qd-navbar.scrolled-light .qd-patient-dropdown>button:hover {
    background: rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(15, 23, 42, 0.3) !important;
    color: #0b0f19 !important;
}

/*
 * Inner / Patient Profile header:
 * - Normal (unscrolled / top of page): flat transparent bar aligning with content (max-width 1344px)
 * - On scroll (scrolled-light): transforms into the white floating pill
 */
.qd-navbar.qd-navbar-inner:not(.scrolled-light) {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.qd-navbar.qd-navbar-inner:not(.scrolled-light) .qd-nav-container {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 1344px !important;
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 0 auto !important;
    min-height: auto !important;
}

@media (min-width: 640px) {
    .qd-navbar.qd-navbar-inner:not(.scrolled-light) .qd-nav-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (min-width: 1024px) {
    .qd-navbar.qd-navbar-inner:not(.scrolled-light) .qd-nav-container {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
}

/*
 * Floating white pill header — applies on scroll effect:
 * - .qd-navbar.scrolled-light
 * - .qd-navbar.qd-navbar-inner.scrolled-light
 * - .qd-navbar.qd-navbar-dark.scrolled-light
 */
.qd-navbar.scrolled-light,
.qd-navbar.qd-navbar-inner.scrolled-light,
.qd-navbar.qd-navbar-dark.scrolled-light {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.qd-navbar.scrolled-light .qd-nav-container,
.qd-navbar.qd-navbar-inner.scrolled-light .qd-nav-container,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-nav-container {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.6) inset !important;
    padding: 6px 18px 6px 20px !important;
    max-width: 1240px !important;
    width: min(1240px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
    min-height: 52px !important;
}

.qd-navbar.qd-navbar-inner ul.hidden.lg\:flex,
.qd-navbar.qd-navbar-dark.scrolled-light ul.hidden.lg\:flex {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.qd-navbar.qd-navbar-inner .qd-nav-link,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-nav-link {
    color: rgba(15, 23, 42, 0.75) !important;
    font-weight: 500;
}

.qd-navbar.qd-navbar-inner .qd-nav-link:hover,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-nav-link:hover {
    color: #0b0f19 !important;
}

.qd-navbar.qd-navbar-inner .qd-btn-book,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-btn-book,
.qd-navbar.qd-navbar-inner .qd-btn-bell,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-btn-bell {
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    background: rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    color: #0b0f19 !important;
    font-weight: 600;
}

.qd-navbar.qd-navbar-inner .qd-btn-book:hover,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-btn-book:hover,
.qd-navbar.qd-navbar-inner .qd-btn-bell:hover,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-btn-bell:hover {
    background: rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(15, 23, 42, 0.3) !important;
    color: #0b0f19 !important;
    box-shadow: none !important;
}

.qd-navbar.qd-navbar-inner .qd-btn-bell[aria-expanded="true"],
.qd-navbar.qd-navbar-dark.scrolled-light .qd-btn-bell[aria-expanded="true"] {
    background: rgba(15, 23, 42, 0.12) !important;
    border-color: rgba(15, 23, 42, 0.35) !important;
    color: #0b0f19 !important;
}

.qd-navbar.qd-navbar-inner .qd-btn-login,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-btn-login {
    background: #0080ff !important;
    color: #ffffff !important;
}

.qd-navbar.qd-navbar-inner .qd-patient-dropdown>button,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-patient-dropdown>button {
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    background: rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    color: #0b0f19 !important;
}

.qd-navbar.qd-navbar-inner .qd-patient-dropdown>button:hover,
.qd-navbar.qd-navbar-dark.scrolled-light .qd-patient-dropdown>button:hover {
    background: rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(15, 23, 42, 0.3) !important;
    color: #0b0f19 !important;
}

.qd-navbar.qd-navbar-inner #qd-mobile-menu-btn,
.qd-navbar.qd-navbar-dark.scrolled-light #qd-mobile-menu-btn {
    background: rgba(15, 23, 42, 0.06) !important;
    border: none !important;
    color: #0b0f19 !important;
}

@media (max-width: 768px) {

    .qd-navbar.scrolled-light,
    .qd-navbar.qd-navbar-inner.scrolled-light,
    .qd-navbar.qd-navbar-dark.scrolled-light {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .qd-navbar.scrolled-light .qd-nav-container,
    .qd-navbar.qd-navbar-inner.scrolled-light .qd-nav-container,
    .qd-navbar.qd-navbar-dark.scrolled-light .qd-nav-container {
        width: calc(100% - 24px) !important;
        padding: 5px 10px 5px 14px !important;
        min-height: 46px !important;
    }
}

/* Alt Header (/home route) - Image 1 (at top) & Glass Effect (on scroll) */
.qd-navbar.qd-navbar-alt {
    padding-top: 16px;
    padding-bottom: 0px;
    background: transparent;
    border-bottom: 1px solid transparent;
}

@media (min-width: 640px) {
    .qd-navbar.qd-navbar-alt {
        padding-top: 24px;
    }
}

@media (min-width: 1024px) {
    .qd-navbar.qd-navbar-alt {
        padding-top: 52px;
    }
}

/* Scrolled state for /home: Premium Frosted Glass Effect */
.qd-navbar.qd-navbar-alt.scrolled-alt {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    background: rgba(11, 15, 25, 0.68) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
}

@media (min-width: 768px) {
    .qd-navbar.qd-navbar-alt.scrolled-alt {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}

.qd-navbar.qd-navbar-alt.scrolled-alt .qd-nav-container {
    max-width: 1440px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.qd-navbar.qd-navbar-alt.scrolled-alt .qd-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.qd-navbar.qd-navbar-alt.scrolled-alt .qd-nav-link:hover {
    color: #ffffff !important;
}

.qd-navbar.qd-navbar-alt.scrolled-alt .qd-btn-book,
.qd-navbar.qd-navbar-alt.scrolled-alt .qd-btn-bell,
.qd-navbar.qd-navbar-alt.scrolled-alt .qd-patient-dropdown>button {
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
}

.qd-navbar.qd-navbar-alt.scrolled-alt .qd-btn-book:hover,
.qd-navbar.qd-navbar-alt.scrolled-alt .qd-btn-bell:hover,
.qd-navbar.qd-navbar-alt.scrolled-alt .qd-patient-dropdown>button:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
}

.qd-navbar.qd-navbar-alt.scrolled-alt .qd-logo-img {
    filter: none !important;
}

.qd-navbar.qd-navbar-alt.scrolled-alt .qd-brand-logo .qd-logo-img--white {
    display: block;
}

.qd-navbar.qd-navbar-alt.scrolled-alt .qd-brand-logo .qd-logo-img--dark {
    display: none;
}

.qd-nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    text-decoration: none;
    position: relative;
    padding: 6px 2px;
}

.qd-nav-link:hover {
    color: #ffffff;
}

.qd-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--qd-primary);
    transition: all 0.25s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.qd-nav-link:hover::after {
    width: 80%;
}

/* Buttons */
.qd-btn-book {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 9999px;
    padding: 7px 16px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: none;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .qd-btn-book {
        display: inline-flex;
        font-size: 0.9rem;
        padding: 9px 20px;
    }
}

.qd-btn-book:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Bell button: matches .qd-btn-book on transparent/dark hero navbar */
.qd-btn-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    padding: 0;
    flex-shrink: 0;
    text-decoration: none;
}

@media (min-width: 768px) {
    .qd-btn-bell {
        width: 40px;
        height: 40px;
    }
}

.qd-btn-bell:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
}

.qd-btn-bell:active,
.qd-btn-bell[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.qd-btn-bell .material-icons-outlined {
    font-size: 20px;
    color: inherit;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

@media (min-width: 768px) {
    .qd-btn-bell .material-icons-outlined {
        font-size: 21px;
    }
}

.qd-btn-bell:hover .material-icons-outlined {
    transform: scale(1.08);
}

/* Badge inside bell button */
.qd-btn-bell [x-text="badge"] {
    position: absolute;
    top: -2px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--qd-primary);
    border-radius: 9999px;
    background-color: #e11d48;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

.qd-btn-login {
    background: var(--qd-primary);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 9999px;
    padding: 7px 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 14px rgba(0, 128, 255, 0.35);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .qd-btn-login {
        font-size: 0.9rem;
        padding: 9px 22px;
        gap: 6px;
    }
}

.qd-btn-login:hover {
    background: var(--qd-primary-hover);
    box-shadow: 0 6px 20px rgba(0, 128, 255, 0.5);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Hero Section */
.qd-hero {
    position: relative;
    min-height: 840px;
    background-color: #0b0f19;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 136px;
    padding-bottom: 40px;
    overflow: hidden;
}

/* Hero Background Crossfade Slider */
.qd-hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.qd-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.qd-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.qd-hero-slide.outgoing {
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

.qd-hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right 20% center;
    transform: scale(1.0);
    transform-origin: 75% 45%;
    will-change: transform, opacity;
}

.qd-hero-slide.active .qd-hero-slide-img {
    animation: qdHeroZoomIn 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.qd-hero-slide.outgoing .qd-hero-slide-img {
    transform: scale(1.14);
}

@keyframes qdHeroZoomIn {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qd-hero-slide.active .qd-hero-slide-img {
        animation: none;
        transform: scale(1.0);
    }
}

/* Dark Gradient Overlay for Text Contrast */
.qd-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right, rgba(11, 15, 25, 0.94) 0%, rgba(11, 15, 25, 0.78) 36%, rgba(11, 15, 25, 0.22) 58%, rgba(11, 15, 25, 0.02) 78%, transparent 100%),
        linear-gradient(to bottom, rgba(11, 15, 25, 0.4) 0%, transparent 25%, transparent 75%, rgba(11, 15, 25, 0.5) 100%);
}

.qd-hero-container {
    position: relative;
    z-index: 10;
}

/* Hero Carousel Pagination Dots */
.qd-hero-dot {
    position: relative;
    height: 6px;
    width: 6px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
    outline: none;
}

.qd-hero-dot::after {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -4px;
    right: -4px;
}

.qd-hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.85);
}

.qd-hero-dot.active {
    width: 36px;
    background-color: #ffffff;
}

.qd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    /* Figma: 11px */
    height: 32px;
    /* Figma: Hug (32px) */
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
}

.qd-avatar-group {
    display: flex;
    align-items: center;
    height: 32px;
}

.qd-avatar-group img {
    width: 32px;
    /* Figma: 32px */
    height: 32px;
    /* Figma: 32px */
    border-radius: 9999px;
    border: 2px solid #0b0f19;
    margin-left: -8px;
    object-fit: cover;
}

.qd-avatar-group img:first-child {
    margin-left: 0;
}

.qd-hero-title {
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(2.5rem, 5.2vw, 80px);
    font-weight: 500;
    /* Figma exact: Medium 500 */
    line-height: clamp(2.6rem, 5.2vw, 80px);
    /* Figma exact: 80px */
    letter-spacing: -0.02em;
    /* Figma exact: -2% */
    color: #ffffff;
    max-width: 661px;
    /* Figma exact: 661px */
    margin-top: clamp(32px, 7.5vw, 110px);
    /* Figma exact: 110px distance from badge */
    margin-bottom: 20px;
}

.qd-hero-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Glass Search Bar */
.qd-search-bar {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 5px 6px 5px 20px;
    display: flex;
    align-items: center;
    max-width: 580px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.qd-search-bar:focus-within {
    border-color: rgba(0, 128, 255, 0.8);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 128, 255, 0.25);
}

/* Hero location suggestions: scrolls on its own (wheel, trackpad, touch) without moving the page. */
#qd-hero-location-dropdown {
    max-height: 240px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#qd-hero-location-dropdown::-webkit-scrollbar {
    width: 6px;
}

#qd-hero-location-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

#qd-hero-location-dropdown::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.qd-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.9rem;
    width: 100%;
}

.qd-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.qd-search-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 12px;
    flex-shrink: 0;
}

.qd-btn-search {
    background: var(--qd-primary);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 9999px;
    padding: 9px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.qd-btn-search:hover {
    background: var(--qd-primary-hover);
    transform: translateY(-1px);
}

/* Floating Doctor Card (Figma Frame 2147228657: 322px x 115px) */
.qd-floating-doctor {
    width: 322px;
    height: 115px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(36.05px);
    -webkit-backdrop-filter: blur(36.05px);
    border: 0.72px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11.54px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.qd-floating-doctor:hover {
    transform: translateY(-3px);
}

.qd-hero-doctor-img {
    width: 76px !important;
    height: 91px !important;
    max-width: 76px !important;
    max-height: 91px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.qd-hero-doctor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 91px;
    min-width: 0;
    padding: 2px 0;
    box-sizing: border-box;
}

.qd-hero-doctor-header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.qd-hero-doctor-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    line-height: 1.2;
}

.qd-hero-doctor-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    flex-shrink: 0;
    display: inline-block;
}

.qd-hero-doctor-exp {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.qd-btn-appointment {
    background: #000000;
    border: 0.75px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 40px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    width: fit-content;
    line-height: 1.4;
}

.qd-btn-appointment:hover {
    background: var(--qd-primary);
    border-color: var(--qd-primary);
    color: #ffffff;
}

/* Ask Lio AI Orb (Figma Exact image.png asset) */
.qd-ask-lio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.qd-ask-lio:hover {
    transform: translateY(-2px);
}

.qd-lio-sparkle {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
    animation: qdSparklePulse 3s ease-in-out infinite;
}

.qd-lio-text {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
    line-height: 1;
}

.qd-ask-lio:hover .qd-lio-text {
    color: #ffffff;
}

.qd-orb-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 168, 255, 0.45));
    transition: filter 0.3s ease, transform 0.3s ease;
    animation: qdOrbFloat 4s ease-in-out infinite;
}

.qd-ask-lio:hover .qd-orb-img {
    filter: drop-shadow(0 6px 20px rgba(0, 168, 255, 0.75));
    transform: scale(1.06);
}

@keyframes qdSparklePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.9));
    }
}

@keyframes qdOrbFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.02);
    }
}

/* Numbers / Stats Bar */
.qd-stats-bar {
    background: #ffffff;
    border-bottom: none;
    padding: 28px 0;
}

.qd-stat-divider {
    border-right: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .qd-stat-divider {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
}

/* Section Eyebrow */
.qd-eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--qd-text-muted);
    letter-spacing: 0.04em;
    text-transform: capitalize;
    margin-bottom: 6px;
}

/* Section Heading */
.qd-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--qd-text-main);
    letter-spacing: -0.02em;
}

/* Featured Clinics Carousel & Cards (Figma 334x386px Match) */
.qd-clinics-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-top: 8px;
    padding-bottom: 24px;
    margin-bottom: -16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.qd-clinics-carousel::-webkit-scrollbar {
    display: none;
}

.qd-carousel-arrow-btn {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qd-carousel-arrow-btn:hover:not(:disabled) {
    background: #007BEA;
    border-color: #007BEA;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 123, 234, 0.28);
}

.qd-carousel-arrow-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(15, 23, 42, 0.08);
}

/* Clinic card — Figma Group 60 (970:7109) ~306×354 */
.qd-clinic-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    padding: 15px;
    width: 306px;
    min-width: 306px;
    max-width: 306px;
    height: 354px;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.qd-clinic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(0, 123, 234, 0.16), 0 6px 18px rgba(15, 23, 42, 0.06);
    border-color: rgba(0, 123, 234, 0.28);
}

.qd-clinic-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 151px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #f1f5f9;
    flex-shrink: 0;
}

.qd-clinic-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.qd-clinic-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.qd-clinic-card:hover .qd-clinic-card-img {
    transform: scale(1.06);
}

.qd-clinic-card-badges {
    position: absolute;
    top: 11px;
    left: 11px;
    right: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    pointer-events: none;
}

.qd-badge-rating,
.qd-badge-verified {
    background: #ffffff;
    padding: 2px 7px;
    border-radius: 18px;
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: none;
    border: none;
}

.qd-badge-rating {
    font-weight: 500;
    color: #111111;
}

.qd-badge-verified {
    font-weight: 600;
    color: #007BEA;
}

.qd-badge-rating__icon,
.qd-badge-verified__icon {
    width: 15px;
    height: 15px;
    display: block;
    flex-shrink: 0;
}

.qd-clinic-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding-top: 11px;
}

.qd-clinic-card__title {
    margin: 0 0 8px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 16.5px;
    line-height: 21px;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qd-clinic-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.qd-clinic-card:hover .qd-clinic-card__title a {
    color: #007BEA;
}

.qd-clinic-card__meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.qd-clinic-card__meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    height: 18px;
}

.qd-clinic-card__meta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.qd-clinic-card__meta-text {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 12.8px;
    line-height: 18px;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Action pills — Figma 970:7139 / 970:7141 */
.qd-clinic-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 15px;
    width: 100%;
    min-width: 0;
    margin-top: auto;
    padding-top: 18px;
    box-sizing: border-box;
}

.qd-btn-view-clinic {
    border: 1px solid #111111;
    background: #ffffff;
    color: #111111;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 14.5px;
    line-height: 15px;
    border-radius: 55px;
    height: 37px;
    width: 102px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.qd-btn-view-clinic:hover {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.qd-btn-book-clinic {
    background: #007BEA;
    border: 1px solid #007BEA;
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 14.5px;
    line-height: 15px;
    border-radius: 55px;
    height: 37px;
    width: 154px;
    max-width: calc(100% - 117px);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    box-sizing: border-box;
    box-shadow: none;
}

.qd-btn-book-clinic:hover {
    background: #0068c8;
    border-color: #0068c8;
    color: #ffffff;
}

.qd-btn-outline:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.qd-btn-primary-sm {
    background: var(--qd-primary);
    border: 1px solid var(--qd-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 9999px;
    padding: 7px 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0, 128, 255, 0.25);
}

.qd-btn-primary-sm:hover {
    background: var(--qd-primary-hover);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 128, 255, 0.35);
}

/* About QuickDent Layout (Figma Exact: 326px left / 872px right) */
.qd-about-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.qd-about-team-col {
    width: 326px;
    min-width: 326px;
    max-width: 326px;
    flex-shrink: 0;
}

.qd-about-statement-col {
    flex: 1;
    min-width: 0;
    max-width: 872px;
}

@media (max-width: 1024px) {
    .qd-about-grid {
        flex-direction: column;
        gap: 36px;
    }

    .qd-about-team-col {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Smooth Scroll Reveal & Stagger Animation Framework
   ========================================================================== */
.qd-scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

.qd-stagger-parent .qd-stagger-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--qd-delay, 0) * 75ms);
    will-change: opacity, transform;
}

.qd-stagger-parent.is-inview .qd-stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Reading Progress Indicator */
.scroll-indicator,
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #007BEA 0%, #00C6FF 60%, #007BEA 100%);
    box-shadow: 0 0 12px rgba(0, 123, 234, 0.45);
    z-index: 99999;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* About QuickDent Typography & Fluid Scroll Word-by-Word Scrub Reveal (Figma Exact: 40px / 52px Medium) */
.qd-about-statement {
    font-family: 'Urbanist', -apple-system, sans-serif;
    font-size: 40px;
    line-height: 52px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #111111;
}

/* Word wrapper: keeps words whole, preventing mid-word breaks */
.qd-scrub-word {
    display: inline-block;
    color: #111111;
    opacity: 1;
    transition: color 0.16s cubic-bezier(0.2, 0, 0, 1), opacity 0.16s cubic-bezier(0.2, 0, 0, 1);
    will-change: color, opacity;
}

/* Active scrub state initialized by JS: unrevealed words are muted slate */
.qd-scrub-active .qd-scrub-word {
    color: rgb(148, 163, 184);
    /* Slate-400 */
    opacity: 0.24;
}

.qd-scrub-active .qd-scrub-word.is-revealed {
    color: rgb(17, 17, 17);
    /* #111111 */
    opacity: 1;
}

/* Accent words: glow in brand-blue (#007BEA) when revealed */
.qd-scrub-active .qd-scrub-word.qd-highlight-word.is-revealed {
    color: #007BEA;
    font-weight: 600;
}

/* Sticky Doctor Team Column */
@media (min-width: 1024px) {
    .qd-about-team-col {
        position: sticky;
        top: 110px;
        align-self: flex-start;
    }
}

/* Accessible reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {

    .qd-scroll-reveal,
    .qd-stagger-parent .qd-stagger-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .qd-scrub-active .qd-scrub-word {
        color: rgb(17, 17, 17) !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

.qd-about-highlight {
    color: #111111;
}

.qd-about-body {
    color: #94a3b8;
}

@media (max-width: 1200px) {
    .qd-about-statement {
        font-size: 32px;
        line-height: 44px;
    }
}

@media (max-width: 768px) {
    .qd-about-statement {
        font-size: 24px;
        line-height: 34px;
    }
}

.qd-about-team-img {
    width: 155px;
    height: 210px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.qd-about-team-img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Treatments Section: Clean 8-Card Grid (Figma Exact Layout)
   ========================================================================== */
.qd-treatments-section {
    position: relative;
    background: #ffffff;
    width: 100%;
}

.qd-treatments-inner {
    width: 100%;
}

.qd-treatments-grid .qd-service-card,
.qd-treatments-grid .qd-service-figma-blue-card {
    transform: translateY(var(--card-y, 0px)) scale(var(--card-scale, 1));
    opacity: var(--card-opacity, 1);
    will-change: transform, opacity;
}

.qd-treatments-grid .qd-service-card {
    transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.qd-treatments-grid .qd-service-card:hover {
    background: #007BEA !important;
    border-color: #007BEA !important;
    color: #ffffff !important;
    transform: translateY(calc(var(--card-y, 0px) - 5px)) scale(1.015) !important;
    box-shadow: 0 16px 34px rgba(0, 123, 234, 0.32) !important;
}

.qd-treatments-grid .qd-service-card:hover .qd-service-title {
    color: #ffffff !important;
}

.qd-treatments-grid .qd-service-card:hover .qd-service-desc {
    color: rgba(255, 255, 255, 0.88) !important;
}

.qd-treatments-grid .qd-service-card:hover .qd-service-num-img {
    filter: brightness(0) invert(1) !important;
}

.qd-treatments-grid .qd-service-card:hover .qd-service-link,
.qd-treatments-grid .qd-service-card:hover .qd-service-price {
    color: #ffffff !important;
}

/* Treatment Services Grid (Figma Exact Layout) */
.qd-treatments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 1100px) {
    .qd-treatments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .qd-treatments-grid {
        grid-template-columns: 1fr;
    }
}

/* Home treatments grid only — do not leak into booking .qd-service-card */
.qd-treatments-grid .qd-service-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 205px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

/* Hover State: blue background #007BEA, white typography, white icon */
.qd-treatments-grid .qd-service-card:hover {
    background: #007BEA;
    border-color: #007BEA;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 123, 234, 0.32);
}

.qd-treatments-grid .qd-service-card:hover .qd-service-title {
    color: #ffffff;
}

.qd-treatments-grid .qd-service-card:hover .qd-service-desc {
    color: rgba(255, 255, 255, 0.88);
}

.qd-treatments-grid .qd-service-card:hover .qd-service-icon,
.qd-treatments-grid .qd-service-card:hover .qd-service-icon-wrap {
    color: #ffffff;
}

/* Frame 2147229442: Number Container (Figma exact: Height 38px, Width 66px for 01, bottom line in PNG) */
.qd-service-num-wrap,
.frame-2147229442 {
    height: 38px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: -14px;
}

.qd-service-num-img {
    height: 38px;
    width: auto;
    max-width: 86px;
    object-fit: contain;
    display: block;
    transition: filter 0.25s ease, opacity 0.25s ease;
    margin-top: -20px;
}

/* Hover State: number graphic turns white on blue card */
.qd-treatments-grid .qd-service-card:hover .qd-service-num-img {
    filter: brightness(0) invert(1);
}

/* Treatment Illustration Icon (Figma exact: 90x90) */
.qd-service-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
    margin-top: -20px;
}

.qd-treatments-grid .qd-service-card:hover .qd-service-img {
    filter: brightness(0) invert(1);
    transform: scale(1.05);
}

.qd-treatments-grid .qd-service-card:hover .qd-service-link {
    color: #ffffff;
}

.qd-treatments-grid .qd-service-card:hover .qd-service-price {
    color: rgba(255, 255, 255, 0.75);
}

.qd-treatments-grid .qd-service-title {
    font-family: 'Urbanist', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111111;
    margin-top: 14px;
    margin-bottom: 6px;
    line-height: 1.25;
}

.qd-treatments-grid .qd-service-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 16px;
}

.qd-service-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #007BEA;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qd-service-link:hover {
    text-decoration: underline;
}

.qd-service-price {
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
}

/* Patient profile dropdown */
.qd-patient-dropdown {
    position: relative;
}

.qd-patient-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
    min-width: 220px;
    padding: 8px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.qd-patient-dropdown:hover .qd-patient-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qd-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.qd-menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ==========================================================================
   Specialists Section (Figma Exact Match: Experienced hands, unhurried appointments)
   ========================================================================== */
.qd-specialists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .qd-specialists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .qd-specialists-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.qd-doctor-card-link {
    display: block;
    border-radius: 24px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.qd-doctor-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0, 123, 234, 0.22);
}

.qd-doctor-card {
    position: relative;
    border-radius: 24px;
    background: #f8fbff;
    border: 1px solid rgba(219, 234, 254, 0.85);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.qd-doctor-card-link:hover .qd-doctor-card {
    border-color: rgba(0, 123, 234, 0.35);
}

.qd-doctor-card-rating {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 9999px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.qd-doctor-card-star {
    color: #ffb800;
    font-size: 13px;
    line-height: 1;
}

.qd-doctor-card-score {
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Urbanist', sans-serif;
    line-height: 1;
}

.qd-doctor-card-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 640 / 780;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 60%, rgba(239, 246, 255, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qd-doctor-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.qd-doctor-card-link:hover .qd-doctor-card-img {
    transform: scale(1.03);
}

.qd-doctor-card-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: #007bea;
    border-radius: 18px;
    padding: 13px 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 8px 20px -4px rgba(0, 123, 234, 0.4);
    transition: background-color 0.2s ease;
}

.qd-doctor-card-link:hover .qd-doctor-card-info {
    background: #0070d6;
}

.qd-doctor-card-meta {
    flex: 1;
    min-width: 0;
}

.qd-doctor-card-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qd-doctor-card-spec {
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    margin: 2px 0 0 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qd-doctor-card-exp {
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    margin: 6px 0 0 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.qd-doctor-card-divider {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
}

.qd-doctor-card-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #007bea;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.qd-doctor-card-link:hover .qd-doctor-card-arrow {
    transform: scale(1.08);
}

.qd-doctor-arrow-icon {
    width: 15px;
    height: 15px;
}

/* Compact variant: mobile carousels and 2-column mobile grids */
.qd-doctor-card--compact {
    border-radius: 18px;
}

.qd-doctor-card--compact .qd-doctor-card-rating {
    top: 10px;
    left: 10px;
    padding: 2px 7px;
}

.qd-doctor-card--compact .qd-doctor-card-info {
    bottom: 8px;
    left: 8px;
    right: 8px;
    border-radius: 13px;
    padding: 9px 10px;
    gap: 6px;
}

.qd-doctor-card--compact .qd-doctor-card-name {
    font-size: 13px;
}

.qd-doctor-card--compact .qd-doctor-card-spec {
    font-size: 11px;
}

.qd-doctor-card--compact .qd-doctor-card-exp {
    font-size: 10px;
    margin-top: 4px;
    gap: 4px;
}

.qd-doctor-card--compact .qd-doctor-card-arrow {
    width: 26px;
    height: 26px;
}

.qd-doctor-card--compact .qd-doctor-arrow-icon {
    width: 12px;
    height: 12px;
}

.qd-doctor-card-link:has(.qd-doctor-card--compact) {
    border-radius: 18px;
}

/* ==========================================================================
   Clinic Care Section (Figma Exact: 449px / 395px / 395px Grid, 617px height, 10px Radius)
   ========================================================================== */
.qd-clinic-care-grid {
    display: grid;
    grid-template-columns: minmax(0, 449px) minmax(0, 395px) minmax(0, 395px);
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

@media (max-width: 1240px) {
    .qd-clinic-care-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 449px;
        margin: 0 auto;
    }
}

.qd-care-card-1 {
    min-height: 617px;
    height: 617px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 28px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.qd-care-card-1:hover,
.qd-care-card-3:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
}

.qd-care-col-2 {
    width: 100%;
    max-width: 395px;
    height: 617px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
}

.qd-care-card-2-top {
    width: 100%;
    height: 352px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qd-care-card-2-bottom {
    width: 100%;
    height: 254px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qd-care-card-2-top:hover,
.qd-care-card-2-bottom:hover {
    transform: translateY(-2px);
}

.qd-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.04));
    pointer-events: none;
}

.qd-card-2-top-inner {
    position: relative;
    z-index: 2;
    padding: 24px 20px 14px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.qd-card-2-bottom-inner {
    position: relative;
    z-index: 2;
    padding: 28px 24px 20px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.qd-figma-row-363 {
    width: 100%;
    max-width: 363px;
    margin: 0 auto;
}

.qd-seg-bars-wrapper {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    max-width: 355px;
    height: 34px;
    margin: 0 auto;
}

.qd-seg-bar {
    flex: 1 1 0;
    height: 34px;
    border-radius: 4px;
}

.qd-seg-bar.active {
    background-color: #007BEA;
}

.qd-seg-bar.inactive {
    background-color: #E2E8F0;
}

.qd-stage-labels {
    width: 100%;
    max-width: 355px;
    margin: 0 auto;
}

.qd-ask-lio-bridge {
    position: absolute;
    top: 352px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qd-ask-lio-orb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.qd-ask-lio-orb {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 123, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qd-ask-lio-orb-link:hover .qd-ask-lio-orb {
    transform: scale(1.06);
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 123, 234, 0.6);
}

.qd-ask-lio-text {
    position: absolute;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    font-family: 'Urbanist', sans-serif;
}

.qd-care-card-3 {
    width: 100%;
    max-width: 395px;
    min-height: 617px;
    height: 617px;
    background: #007BEA;
    border-radius: 20px;
    padding: 28px 24px 0 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 123, 234, 0.25);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    box-sizing: border-box;
    margin: 0 auto;
}

.qd-care-card-3-img-box {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 323px;
    max-width: 100%;
    height: 325px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
    margin: 0;
    z-index: 1;
    border-bottom-right-radius: 20px;
}

.qd-care-card-3-img {
    width: 323px;
    max-width: 100%;
    height: 325px;
    object-fit: contain;
    object-position: bottom right;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom-right-radius: 20px;
}

.qd-care-card-3:hover .qd-care-card-3-img {
    transform: scale(1.03);
}

/* ==========================================================================
   Journal Section (Figma Exact Match: 407px x 403px Cards, 42px/50px Heading)
   ========================================================================== */
.qd-journal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 407px));
    gap: 20px;
    justify-content: center;
    align-items: start;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1240px) {
    .qd-journal-grid {
        grid-template-columns: repeat(2, minmax(0, 407px));
        gap: 24px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .qd-journal-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 407px;
    }
}

.qd-journal-card {
    width: 100%;
    max-width: 407px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.qd-journal-card:hover {
    transform: translateY(-4px);
}

.qd-journal-img-box {
    width: 100%;
    height: 303px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.qd-journal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.qd-journal-card:hover .qd-journal-img {
    transform: scale(1.04);
}

.qd-journal-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.qd-journal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: 'Urbanist', sans-serif;
    line-height: 20px;
}

.qd-journal-author {
    font-size: 14px;
    font-weight: 400;
    color: #111111;
}

.qd-journal-date {
    font-size: 13px;
    font-weight: 400;
    color: #828282;
}

.qd-journal-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
    color: #000000;
    max-width: 362px;
    margin: 0;
    transition: color 0.2s ease;
}

.qd-journal-card:hover .qd-journal-title {
    color: #007BEA;
}

/* ==========================================================================
   FAQ Section (Figma Exact Match: Left 442px, Right 759px Accordion, Urbanist 24px/100%)
   ========================================================================== */
.qd-faq-accordion {
    width: 100%;
}

.qd-faq-item {
    transition: border-color 0.2s ease;
}

.qd-faq-trigger {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.qd-faq-icon-pill {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qd-faq-item.active .qd-faq-icon-pill {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

.qd-faq-answer {
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, margin-top 0.25s ease;
}

/* ==========================================================================
   Booking Banner / CTA Section (Figma Exact Match: Rectangle 56 #DFF0FF, 1256x400)
   ========================================================================== */
.qd-cta-card {
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 123, 234, 0.08);
}

.qd-btn-cta-primary {
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 123, 234, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.qd-btn-cta-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 234, 0.35);
    transform: translateY(-1px);
}

.qd-btn-cta-primary span.rounded-full {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qd-btn-cta-primary:hover span.rounded-full {
    transform: translate(2px, -2px);
}

.qd-btn-cta-secondary {
    cursor: pointer;
    transition: all 0.2s ease;
}

.qd-btn-cta-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.qd-cta-image {
    transform: scale(1.0);
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
    will-change: transform;
}

.qd-cta-image-wrapper:hover .qd-cta-image,
.qd-cta-image:hover {
    transform: scale(1.06);
}

/* ==========================================================================
   Footer Section (Figma Exact Match: # Footer 1392px x 557px, Radius 40px)
   ========================================================================== */
.qd-footer-card {
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    min-height: 557px;
}

@media (min-width: 1024px) {
    .qd-footer-card {
        height: 557px;
    }
}

.qd-footer-brand-logo {
    display: block;
    height: 32px;
    width: auto;
    filter: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.qd-footer-brand-logo:hover {
    opacity: 0.85;
}

.qd-footer-watermark {
    position: absolute;
    top: 210px;
    left: 68px;
    width: 1252px;
    height: 310px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

@media (max-width: 1392px) {
    .qd-footer-watermark {
        left: 5%;
        width: 90%;
        top: 210px;
    }
}

@media (max-width: 1023px) {
    .qd-footer-watermark {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

.qd-footer-watermark span {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: clamp(60px, 17.5vw, 260px);
    line-height: 1;
    letter-spacing: -0.015em;
    background: linear-gradient(180deg, #1742FF 0%, rgba(23, 66, 255, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.40;
    display: block;
    white-space: nowrap;
}


.qd-footer-social-btn {
    background-color: #000000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.qd-footer-social-btn:hover {
    background-color: #1742FF;
    transform: translateY(-3px) scale(1.12);
    box-shadow: 0 6px 14px rgba(23, 66, 255, 0.45);
}

/* ==========================================================================
   GSAP-Style Staggered Scroll Entrance Animations & Dynamic Interactions
   ========================================================================== */

/* 1. Hero Page-Load Stagger Sequence */
.qd-hero-badge {
    animation: qdHeroFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.qd-hero-title {
    animation: qdHeroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.qd-hero-subtitle {
    animation: qdHeroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}

.qd-search-bar {
    animation: qdHeroFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes qdHeroFadeDown {
    0% {
        opacity: 0;
        transform: translateY(-16px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qdHeroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Specialists Section GSAP Stagger Scroll Entrance & 3D Tilt */
.qd-specialists-grid .qd-specialist-card {
    transform: translateY(var(--spec-y, 0px)) scale(var(--spec-scale, 1));
    opacity: var(--spec-opacity, 1);
    will-change: transform, opacity;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.qd-specialists-grid .qd-specialist-card .qd-doctor-card-link {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.qd-specialists-grid .qd-specialist-card:hover .qd-doctor-card-link {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 44px -10px rgba(0, 123, 234, 0.28);
}

/* 3. Clinic Care Section GSAP Stagger Scroll Entrance */
.qd-clinic-care-grid .qd-care-card-1,
.qd-clinic-care-grid .qd-care-col-2,
.qd-clinic-care-grid .qd-care-card-3 {
    transform: translateY(var(--care-y, 0px)) scale(var(--care-scale, 1));
    opacity: var(--care-opacity, 1);
    will-change: transform, opacity;
}

.qd-seg-bar.active {
    background-color: #007BEA;
    transform-origin: bottom;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    transition-delay: calc(var(--bar-i, 1) * 28ms);
}

.qd-clinic-care-grid:not(.is-inview) .qd-seg-bar.active {
    transform: scaleY(0.25);
    opacity: 0.35;
}

.qd-clinic-care-grid.is-inview .qd-seg-bar.active {
    transform: scaleY(1);
    opacity: 1;
}

/* Ask Lio Ambient Pulse Animation */
@keyframes qdLioPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 123, 234, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 32px rgba(0, 123, 234, 0.65);
    }
}

.qd-ask-lio-orb {
    animation: qdLioPulse 3.5s ease-in-out infinite;
}

/* 4. Journal Section GSAP Stagger Scroll Entrance */
.qd-journal-grid .qd-journal-card {
    transform: translateY(var(--journal-y, 0px)) scale(var(--journal-scale, 1));
    opacity: var(--journal-opacity, 1);
    will-change: transform, opacity;
}

.qd-journal-card:hover {
    transform: translateY(-6px) scale(1.015);
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {

    .qd-hero-badge,
    .qd-hero-title,
    .qd-hero-subtitle,
    .qd-search-bar,
    .qd-ask-lio-orb {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================================================
   Category / Book Visit Search Page (Figma 970:6767)
   ========================================================= */

.qd-category-hero {
    position: relative;
    min-height: 590px;
    height: clamp(480px, 58vw, 590px);
    display: flex;
    align-items: flex-start;
    overflow: visible;
    background: #0b1b33;
    z-index: 4;
}

.qd-category-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: 0;
}

.qd-category-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Keep smiling subject on the right; leave left copy space like Figma */
    object-position: 72% center;
    transform: scale(1);
    transform-origin: 72% 45%;
    will-change: transform;
    animation: qdHeroZoomIn 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.qd-category-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
    z-index: 1;
}

.qd-category-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* Soft left-side read pad for title + search; keeps photo visible on the right */
    background:
        linear-gradient(90deg, rgba(8, 18, 36, 0.78) 0%, rgba(8, 18, 36, 0.55) 34%, rgba(8, 18, 36, 0.18) 58%, rgba(8, 18, 36, 0.04) 78%, transparent 100%),
        linear-gradient(180deg, rgba(8, 18, 36, 0.28) 0%, transparent 28%, transparent 62%, rgba(8, 18, 36, 0.35) 100%);
}

.qd-category-hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    /* Figma: title ~206px from top of 590 hero */
    padding: 156px 24px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.qd-category-hero-copy {
    margin: 0 0 30px;
    max-width: 640px;
    animation: qdHeroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.qd-category-hero-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 62px;
    letter-spacing: -0.96px;
    color: #ffffff;
    margin: 0 0 16px;
    max-width: 553px;
}

.qd-category-hero-subtitle {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #ffffff;
    margin: 0;
    max-width: 583px;
}

.qd-category-search-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    max-width: 807px;
    width: 100%;
    min-height: 56px;
    padding: 4px 6px 4px 16px;
    border-radius: 91.54px;
    border: 0.721px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(18.026px);
    -webkit-backdrop-filter: blur(18.026px);
    box-sizing: border-box;
    overflow: visible;
    position: relative;
    z-index: 5;
    animation: qdHeroFadeUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.qd-category-search-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
}

.qd-category-search-mid {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.qd-category-search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    position: relative;
    box-sizing: border-box;
}

.qd-category-search-query {
    flex: 0 0 235px;
    width: 235px;
    max-width: 235px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.qd-category-search-location {
    flex: 0 0 214px;
    width: 214px;
    max-width: 214px;
    padding-right: 12px;
    gap: 32px;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.qd-category-location-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.qd-category-search-spec {
    flex: 0 0 188px;
    width: 188px;
    max-width: 188px;
    position: relative;
    overflow: visible;
}

.qd-category-search-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 1;
    display: block;
}

.qd-category-pin-icon {
    width: 24px;
    height: 24px;
}

.qd-category-search-input,
.qd-category-search-select {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
}

.qd-category-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.qd-category-search-select {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 46px;
    width: 100%;
    min-height: 28px;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    text-align: left;
}

.qd-category-search-select span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qd-category-select-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: block;
    /* Figma arrow_back_ios rotated -90deg → points down */
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
}

.qd-category-search-spec.is-open .qd-category-select-chevron {
    transform: rotate(90deg);
}

.qd-category-spec-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    right: auto;
    width: 240px;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    z-index: 40;
}

.qd-category-spec-menu[hidden] {
    display: none !important;
}

.qd-category-spec-option {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.qd-category-spec-option:hover,
.qd-category-spec-option.is-active {
    background: #EBF5FF;
    color: #007BEA;
}

.qd-category-location-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    width: 52px;
    justify-content: space-between;
}

.qd-category-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.qd-category-icon-btn:hover {
    opacity: 1;
}

.qd-category-icon-btn img {
    width: 20px;
    height: 20px;
    display: block;
}

.qd-category-search-btn {
    flex-shrink: 0;
    height: 48px;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background: #007eef;
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.qd-category-search-btn:hover {
    background: #0068c8;
}

.qd-category-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.qd-category-explore {
    padding: 48px 0 72px;
    background: #ffffff;
    scroll-margin-top: 96px;
}

.qd-category-explore-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.qd-category-explore-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.5vw, 32px);
    line-height: 1.3;
    color: #111111;
    margin: 0;
}

.qd-category-tab-switch {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0;
    border-radius: 9999px;
    background: #f1f5f9;
    gap: 0;
    overflow: hidden;
}

.qd-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    height: 100%;
    padding: 0 24px;
    border-radius: 9999px;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.qd-category-tab:hover {
    color: #111111;
}

.qd-category-tab.is-active {
    background: var(--qd-primary, #0080ff);
    color: #ffffff !important;
    border-radius: 9999px;
}

.qd-category-tab.is-active:hover {
    background: var(--qd-primary-hover, #006ee6);
    color: #ffffff !important;
}

.qd-category-explore-divider {
    height: 1px;
    background: rgba(17, 17, 17, 0.08);
    margin-bottom: 28px;
}

.qd-category-explore-layout {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.qd-category-filters {
    position: sticky;
    top: 96px;
    align-self: start;
    z-index: 20;
    width: 100%;
    max-height: calc(100vh - 112px);
}

.qd-category-filters-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 20px -2px rgba(17, 24, 39, 0.06);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 112px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 123, 234, 0.4) transparent;
}

.qd-category-filters-card::-webkit-scrollbar {
    width: 4px;
}

.qd-category-filters-card::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 234, 0.4);
    border-radius: 999px;
}

.qd-category-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.qd-category-filters-head h3 {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.qd-category-filters-reset {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #007bea;
    text-decoration: none;
}

.qd-category-filters-reset:hover {
    text-decoration: underline;
}

.qd-category-filter-group {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.qd-category-filter-group:last-child {
    border-bottom: none;
}

.qd-category-filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111111;
    text-align: left;
}

.qd-category-filter-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    /* Asset is a right chevron — closed points down, open points up */
    transform: rotate(90deg);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.qd-category-filter-group.is-open .qd-category-filter-chevron {
    transform: rotate(-90deg);
}

.qd-category-filter-body {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
}

.qd-category-filter-group.is-open .qd-category-filter-body {
    display: flex;
}

/* Dental Services: visible height ≈ 5 checkbox rows, then vertical scroll */
.qd-category-filter-body--services.is-scrollable {
    --qd-filter-row-h: 45px;
    /* 10 + 24 + 10 + 1px border */
    max-height: calc(var(--qd-filter-row-h) * 5);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 123, 234, 0.45) transparent;
}

.qd-category-filter-body--services.is-scrollable::-webkit-scrollbar {
    width: 4px;
}

.qd-category-filter-body--services.is-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.qd-category-filter-body--services.is-scrollable::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 234, 0.45);
    border-radius: 999px;
}

.qd-category-filter-body--services.is-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 234, 0.7);
}

.qd-category-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    flex-shrink: 0;
    min-height: var(--qd-filter-row-h, 45px);
    box-sizing: border-box;
}

.qd-category-check:last-child {
    border-bottom: none;
}

.qd-category-check-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.qd-category-check-box.is-checked {
    background: #007bea;
    border-color: #007bea;
}

.qd-category-check-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #141219;
}

.qd-category-filter-empty {
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    color: #94a3b8;
    margin: 4px 0 8px;
}

/* Applied filter badges */
.qd-category-explore-heading-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.qd-header-applied-filters {
    display: inline-flex;
    align-items: center;
}

.qd-header-applied-filters:empty {
    display: none;
}

.qd-header-applied-filters .qd-applied-filters-list,
.qd-applied-filters-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.qd-header-applied-filters,
.qd-header-applied-filters *,
.qd-applied-filters-list,
.qd-applied-filters-list *,
.qd-filter-badge,
.qd-filter-badge-text,
.qd-filter-badge-remove,
.qd-applied-filters-clear {
    font-family: 'Urbanist', sans-serif !important;
}

.qd-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    box-shadow: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.qd-filter-badge:hover {
    background: transparent;
    box-shadow: none;
}

.qd-filter-badge-text {
    /* color: #0F172A; */
    font-weight: 600;
    font-size: 13px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qd-filter-badge-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #64748B;
    cursor: pointer;
    transition: all 0.15s ease;
}

.qd-filter-badge-remove:hover {
    color: #EF4444;
    transform: scale(1.15);
}

.qd-filter-badge-remove svg {
    width: 9px;
    height: 9px;
    display: block;
    pointer-events: none;
}

.qd-applied-filters-clear {
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border: none;
    background: transparent;
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0276B3;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.qd-applied-filters-clear:hover {
    color: #014E78;
}

.qd-category-results-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.qd-category-results-toolbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.qd-category-results-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: #000000;
    margin: 0;
}

.qd-category-sort {
    position: relative;
    display: inline-block;
}

.qd-category-sort-form {
    margin: 0;
    padding: 0;
    position: relative;
}

.qd-category-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 9999px;
    background: #ffffff;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #111111;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
    white-space: nowrap;
}

.qd-category-sort-btn:hover {
    border-color: rgba(17, 17, 17, 0.24);
    background: #fbfcfe;
    color: #111111;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.qd-category-sort-btn:focus-visible {
    border-color: #0080ff;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15);
}

.qd-category-sort.is-open .qd-category-sort-btn {
    border-color: #0080ff;
    background: #ffffff;
    color: #0080ff;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12);
}

.qd-sort-icon {
    flex-shrink: 0;
    color: #111111;
    transition: color 0.2s ease;
}

.qd-category-sort.is-open .qd-sort-icon {
    color: #0080ff;
}

.qd-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.qd-sort-current-val {
    font-weight: 700;
    color: #0080ff;
}

.qd-sort-chevron {
    flex-shrink: 0;
    color: #64748b;
    margin-left: 2px;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.qd-category-sort-btn:hover .qd-sort-chevron {
    color: #111111;
}

.qd-category-sort.is-open .qd-sort-chevron {
    transform: rotate(180deg);
    color: #0080ff;
}

/* Custom Sort Menu */
.qd-sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    padding: 6px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.18s;
    pointer-events: none;
}

.qd-category-sort.is-open .qd-sort-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.qd-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    user-select: none;
    box-sizing: border-box;
}

.qd-sort-option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.qd-sort-option.is-active {
    background: #EBF5FF;
    color: #0080ff;
    font-weight: 600;
}

.qd-sort-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #0080ff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.qd-sort-option.is-active .qd-sort-option-check {
    opacity: 1;
    transform: scale(1);
}

.qd-sort-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.qd-category-sort .qd-select-wrapper {
    display: none !important;
}

.qd-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.qd-category-grid .qd-clinic-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 354px;
}

.qd-category-grid .qd-clinic-card__actions {
    gap: 14px;
}

.qd-category-grid .qd-btn-view-clinic {
    width: auto;
    min-width: 0;
    padding: 0 15px;
}

/* Grid cards stretch with the column, so keep the Figma image proportion (276×151)
   and let Book Appointment fill the row as the two pills do in Figma 970:11084. */
.qd-category-grid .qd-clinic-card-img-wrapper {
    height: auto;
    aspect-ratio: 276 / 151;
    min-height: 151px;
}

.qd-category-grid .qd-btn-book-clinic {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
    padding: 0 16px;
}

.qd-category-doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1024px) {
    .qd-category-doctors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .qd-category-doctors-grid {
        grid-template-columns: 1fr;
    }
}

.qd-category-empty {
    text-align: center;
    padding: 64px 24px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.qd-category-empty h4 {
    font-family: 'Urbanist', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #111111;
    margin: 0 0 8px;
}

.qd-category-empty p {
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    color: #64748b;
    margin: 0 0 20px;
}

.qd-category-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 9999px;
    background: #007bea;
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.qd-category-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.qd-category-pagination {
    margin-top: 32px;
}

/* Centred "View more" button for appendable grids — brand blue, matches the specialist card arrow */
.qd-load-more {
    --qd-lm-blue: #007bea;
    --qd-lm-blue-hover: #006ad0;
    margin-top: 32px;
    display: flex;
    justify-content: center;
    font-family: 'Urbanist', sans-serif;
}

/* Last page: no button, so collapse the wrapper and its margin */
.qd-load-more:not(:has(.qd-load-more-btn)) {
    display: none;
}

/* Tailwind v4 utilities are layered, so restate .hidden for this unlayered block */
.qd-load-more.hidden {
    display: none;
}

.qd-load-more-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 22px;
    border-radius: 9999px;
    border: 0;
    background: var(--qd-lm-blue);
    color: #ffffff;
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(0, 123, 234, 0.45);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.qd-load-more-btn:hover {
    background: var(--qd-lm-blue-hover);
    color: #ffffff;
    box-shadow: 0 12px 24px -8px rgba(0, 123, 234, 0.55);
}

.qd-load-more-btn:active {
    transform: scale(0.98);
}

.qd-load-more-btn:focus-visible {
    outline: 2px solid var(--qd-lm-blue);
    outline-offset: 3px;
}

/* White circle with blue chevron — same motif as the card's arrow button */
.qd-load-more-chip {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--qd-lm-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.qd-load-more-btn:hover .qd-load-more-chip {
    transform: translateY(2px);
}

.qd-load-more-icon {
    width: 15px;
    height: 15px;
}

.qd-load-more-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: qd-load-more-spin 0.7s linear infinite;
}

.qd-load-more-btn.is-loading {
    pointer-events: none;
    background: var(--qd-lm-blue-hover);
}

.qd-load-more-btn.is-loading .qd-load-more-icon {
    display: none;
}

.qd-load-more-btn.is-loading .qd-load-more-spinner {
    display: inline-block;
}

.qd-load-more-enter {
    animation: qd-load-more-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes qd-load-more-spin {
    to { transform: rotate(360deg); }
}

@keyframes qd-load-more-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .qd-load-more-enter { animation: none; }
    .qd-load-more-spinner { animation-duration: 1.5s; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
    .qd-category-explore-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .qd-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .qd-category-hero {
        height: auto;
        min-height: 460px;
    }

    .qd-category-hero-img {
        object-position: 68% center;
    }

    .qd-category-hero-overlay {
        background:
            linear-gradient(180deg, rgba(8, 18, 36, 0.55) 0%, rgba(8, 18, 36, 0.72) 45%, rgba(8, 18, 36, 0.88) 100%),
            linear-gradient(90deg, rgba(8, 18, 36, 0.45) 0%, transparent 70%);
    }

    .qd-category-hero-inner {
        padding: 110px 20px 40px;
    }

    .qd-category-hero-title {
        font-size: clamp(28px, 7vw, 40px);
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .qd-category-hero-copy {
        margin-bottom: 24px;
    }

    .qd-category-search-bar {
        border-radius: 24px;
        padding: 12px;
        max-width: 100%;
    }

    .qd-category-search-row,
    .qd-category-search-mid {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .qd-category-search-query,
    .qd-category-search-location,
    .qd-category-search-spec {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        padding: 8px 10px;
        border-right: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        gap: 12px;
        overflow: visible;
    }

    .qd-category-search-select {
        gap: 12px;
    }

    .qd-category-search-btn {
        width: 100%;
    }

    .qd-category-explore-layout {
        grid-template-columns: 1fr;
    }

    .qd-category-filters {
        position: static;
        max-height: none;
    }

    .qd-category-filters-card {
        max-height: none;
        overflow: visible;
    }

    .qd-category-grid,
    .qd-category-doctors-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet (desktop view starts at md/768px): one column stretched clinic cards to ~850px.
   Two columns keep them near the Figma card size. Below 768px the mobile views render instead. */
@media (min-width: 768px) and (max-width: 900px) {
    .qd-category-grid:not(.qd-category-doctors-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .qd-category-explore-title {
        font-size: 24px;
    }

    .qd-category-hero-title {
        font-size: 28px;
        line-height: 36px;
        letter-spacing: -0.56px;
    }

    .qd-category-hero-subtitle {
        font-size: 15px;
        line-height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .qd-category-hero-img,
    .qd-category-hero-copy,
    .qd-category-search-bar {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =========================================================
   Book Appointment page — Figma 970:9610
   ========================================================= */
/* Keep chrome + page on the same gray so no white bands / empty voids */
body:has(.qd-booking-page),
body:has(.qd-booking-page) main {
    background: #f3f5f4 !important;
}

body:has(.qd-booking-page) #site-footer {
    background: #f3f5f4;
    padding-top: 12px;
    padding-bottom: 32px;
}

body:has(.qd-profile-page),
body:has(.qd-profile-page) main,
body:has(.qdp-page),
body:has(.qdp-page) main {
    background: #F7F8FA !important;
}

body:has(.qd-profile-page) #site-footer,
body:has(.qdp-page) #site-footer {
    background: #F7F8FA !important;
    padding-top: 0 !important;
}

/* Patient portal pages: align the unscrolled inner header container with .qdp-w (1240px),
   while preserving the exact .scrolled-light floating pill transition used on all other pages. */
body:has(.qdp-page) #qd-navbar.qd-navbar-inner:not(.scrolled-light) .qd-nav-container,
body:has(.qd-profile-page) #qd-navbar.qd-navbar-inner:not(.scrolled-light) .qd-nav-container {
    max-width: 1240px !important;
    width: min(1240px, calc(100% - 48px)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 640px) {
    body:has(.qdp-page) #qd-navbar.qd-navbar-inner:not(.scrolled-light) .qd-nav-container,
    body:has(.qd-profile-page) #qd-navbar.qd-navbar-inner:not(.scrolled-light) .qd-nav-container {
        width: calc(100% - 32px) !important;
    }
}

.qd-profile-sidebar-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 96px !important;
    align-self: start !important;
    z-index: 20;
}

.qd-profile-sidebar-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 96px !important;
    align-self: start !important;
    z-index: 20;
}

.qd-booking-page {
    --qd-book-blue: #007bea;
    --qd-book-ink: #0f172a;
    --qd-book-muted: #6b7280;
    --qd-book-border: #e8eaed;
    --qd-book-bg: #f3f5f4;
    background: var(--qd-book-bg);
    font-family: 'Urbanist', sans-serif;
    color: var(--qd-book-ink);
    min-height: 0;
    padding-bottom: 8px;
}

.qd-booking-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
    color: #fff;
}

.qd-booking-hero-bg {
    position: absolute;
    inset: 0;
}

.qd-booking-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    transform: scale(1.02);
    animation: qd-hero-zoom 12s ease-out forwards;
}

.qd-booking-hero-overlay {
    position: absolute;
    inset: 0;
    /* Match Figma 970:9613 top gradient so transparent nav stays readable */
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.12) 100%);
}

.qd-booking-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    /* Nav sits over hero; keep title clear of the pill navbar */
    padding: 132px 0 0;
}

.qd-booking-hero-title {
    margin: 0;
    font-size: 44px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
    animation: qd-fade-up 0.7s ease both;
}

.qd-booking-hero-subtitle {
    margin: 8px 0 0;
    max-width: 583px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    animation: qd-fade-up 0.7s ease 0.12s both;
}

.qd-booking-body {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 48px));
    /* Sit below hero — no negative pull into the image */
    margin: 28px auto 40px;
    padding: 0;
}

.qd-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 386px;
    gap: 28px;
    align-items: start;
    justify-content: stretch;
}

.qd-booking-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.qd-booking-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 22px 22px 20px;
    box-shadow: none;
}

.qd-booking-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.qd-booking-card-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.qd-booking-card-copy h2 {
    margin: 0;
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
    color: var(--qd-book-ink);
}

.qd-booking-card-copy p {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 16px;
    color: var(--qd-book-muted);
    font-weight: 500;
}

.qd-booking-optional {
    color: var(--qd-book-muted);
    font-weight: 500;
}

.qd-booking-card-icon {
    width: 41px;
    height: 41px;
    border-radius: 999px;
    background: rgba(0, 123, 234, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qd-booking-edit-link {
    border: 0;
    background: transparent;
    color: var(--qd-book-blue);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    padding-top: 2px;
}

.qd-booking-edit-link:hover {
    text-decoration: underline;
}

.qd-booking-clinic-row {
    display: grid;
    grid-template-columns: 114px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.qd-booking-clinic-thumb {
    width: 114px;
    height: 85px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f7;
}

.qd-booking-clinic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qd-booking-clinic-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 23px;
    font-weight: 700;
}

.qd-booking-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 17px;
    color: #111;
}

.qd-booking-meta img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.qd-booking-clinic-stats {
    display: flex;
    align-items: stretch;
    gap: 18px;
    padding-left: 18px;
    border-left: 1px solid var(--qd-book-border);
    min-width: 220px;
}

.qd-booking-stat-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #111;
    font-size: 13px;
    line-height: 25px;
    font-weight: 500;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--qd-book-blue);
    width: 100%;
}

.qd-booking-stat p {
    margin: 0;
    font-size: 13px;
    line-height: 25px;
    font-weight: 400;
    color: #111;
    white-space: nowrap;
}

.qd-booking-stat-divider {
    width: 1px;
    background: var(--qd-book-border);
    align-self: stretch;
}

.qd-booking-scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

/* Figma 970:9811 / 970:10089 — full-bleed peek strip, arrows overlay the edge */
.qd-booking-scroll-wrap--peek {
    display: block;
    margin-right: -6px;
}

/* Shared horizontal strip — same scroller UX as Select Date & Time (arrows, no native bar) */
.qd-booking-scroll,
.qd-booking-date-strip {
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    flex: 1;
    min-width: 0;
    padding: 2px 1px 4px;
    margin: -2px -1px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.qd-booking-scroll--services {
    gap: 8px;
}

.qd-booking-scroll--doctors {
    gap: 11px;
}

.qd-booking-date-strip {
    gap: 11px;
}

.qd-booking-scroll::-webkit-scrollbar,
.qd-booking-date-strip::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.qd-booking-scroll-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 0;
    background: #007eef;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 12px;
    z-index: 10;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 123, 234, 0.28);
    transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.qd-booking-scroll-btn i,
.qd-booking-scroll-btn img {
    pointer-events: none;
    display: block;
}

.qd-booking-scroll-btn img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

/* icon-scroll-arrow.svg already points left — flip only next */
.qd-booking-scroll-btn--prev img {
    transform: none;
}

.qd-booking-scroll-btn--next img {
    transform: scaleX(-1);
}

.qd-booking-scroll-btn:hover {
    background: #0069c8;
}

.qd-booking-scroll-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.qd-booking-scroll-wrap:not(.qd-booking-scroll-wrap--peek) .qd-booking-scroll-btn--prev {
    margin-right: 10px;
}

.qd-booking-scroll-wrap:not(.qd-booking-scroll-wrap--peek) .qd-booking-scroll-btn--next {
    margin-left: 10px;
}

/* Overlay arrows — cards stay full-bleed; arrow floats on the edge (Figma date strip) */
.qd-booking-scroll-wrap--peek .qd-booking-scroll,
.qd-booking-scroll-wrap--peek .qd-booking-date-strip,
.qd-booking-scroll-wrap--peek .qd-doc-services-track,
.qd-booking-scroll-wrap--peek .qd-doc-reviews-track {
    width: 100%;
}

.qd-booking-scroll-wrap--peek .qd-booking-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.qd-booking-scroll-wrap--peek .qd-booking-scroll-btn--prev {
    left: 4px;
}

.qd-booking-scroll-wrap--peek .qd-booking-scroll-btn--next {
    right: 4px;
}

/* Figma 970:9812 / 970:10090 — 207×84 service & doctor pick cards */
#qd-service-card .qd-service-card,
#qd-doctor-card .qd-doctor-card,
#qd-viewall-grid .qd-service-card,
#qd-viewall-grid .qd-doctor-card {
    position: relative;
    flex: 0 0 207px;
    width: 207px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    height: 84px;
    min-height: 84px;
    max-height: 84px;
    margin: 0;
    padding: 7px;
    border: 0.9px solid rgba(0, 0, 0, 0.1);
    border-radius: 11px;
    background: #fff;
    color: #111;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    box-shadow: none;
    transform: none;
    overflow: visible;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#qd-service-card .qd-service-card:hover,
#qd-doctor-card .qd-doctor-card:hover,
#qd-viewall-grid .qd-service-card:hover,
#qd-viewall-grid .qd-doctor-card:hover {
    background: #fff;
    color: #111;
    border-color: #93c5fd;
    transform: none;
    box-shadow: none;
}

/* Figma 970:9812 / 970:10090 — selected = blue border + filled check */
#qd-service-card .qd-service-card.is-selected,
#qd-doctor-card .qd-doctor-card.is-selected,
#qd-viewall-grid .qd-service-card.is-selected,
#qd-viewall-grid .qd-doctor-card.is-selected {
    border-color: #007bea;
    box-shadow: none;
}

/* Figma 970:9813 / 970:9833 — 61×68 thumb, tooth cropped in 47×56 viewport */
.qd-service-thumb {
    position: relative;
    width: 61px;
    height: 68px;
    border-radius: 8px;
    background: #cfe8ff;
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}

.qd-service-thumb-clip {
    position: absolute;
    left: 7px;
    top: 6px;
    width: 47px;
    height: 56px;
    overflow: hidden;
    pointer-events: none;
}

.qd-service-thumb-clip img {
    position: absolute;
    left: -42.86%;
    top: -0.78%;
    width: 182.86%;
    height: 101.56%;
    max-width: none;
    object-fit: unset;
    display: block;
}

.qd-service-copy,
.qd-doctor-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
    margin: 0;
}

.qd-service-copy {
    width: 124px;
    max-width: 124px;
}

.qd-doctor-copy {
    width: 147px;
    max-width: calc(100% - 68px);
}

.qd-doctor-name {
    margin: 0;
    padding-right: 18px;
    font-size: 12.66px;
    line-height: 12px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Figma 970:9816 — single-line title; leave room for radio/check */
#qd-service-card .qd-service-name,
#qd-viewall-grid .qd-service-name {
    margin: 0;
    padding-right: 18px;
    font-size: 12.66px;
    line-height: 12px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Figma service desc wraps to 2 lines (970:9817) */
#qd-service-card .qd-service-desc,
#qd-viewall-grid .qd-service-desc {
    margin: 0;
    font-size: 11.6px;
    line-height: 15px;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.6);
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-width: 100%;
    text-overflow: ellipsis;
}

.qd-doctor-spec {
    font-size: 11.6px;
    line-height: 16.5px;
    font-weight: 400;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.qd-doctor-exp {
    font-size: 10.5px;
    letter-spacing: -0.15px;
    line-height: 14px;
    font-weight: 400;
    color: rgba(17, 17, 17, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Figma radio / check — empty #cfcfcf ring, selected solid #007bea */
.qd-service-check {
    position: absolute;
    top: 9px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #cfcfcf;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    box-sizing: border-box;
    padding: 0;
}

.qd-service-check img {
    opacity: 0;
    width: 14px;
    height: 14px;
    display: block;
}

#qd-service-card .qd-service-card.is-selected .qd-service-check,
#qd-doctor-card .qd-doctor-card.is-selected .qd-service-check,
#qd-viewall-grid .qd-service-card.is-selected .qd-service-check,
#qd-viewall-grid .qd-doctor-card.is-selected .qd-service-check {
    border-color: #007bea;
    background: #007bea;
}

#qd-service-card .qd-service-card.is-selected .qd-service-check img,
#qd-doctor-card .qd-doctor-card.is-selected .qd-service-check img,
#qd-viewall-grid .qd-service-card.is-selected .qd-service-check img,
#qd-viewall-grid .qd-doctor-card.is-selected .qd-service-check img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.qd-doctor-avatar {
    width: 61px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f7;
    flex-shrink: 0;
}

.qd-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qd-doctor-avatar--any {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qd-book-blue);
    background: #cfe8ff;
    font-size: 22px;
}

/* Doctor strip gap matches Figma 970:10089 (11px) */
#doctors-grid.qd-booking-scroll {
    gap: 11px;
}

#qd-doctor-card .qd-booking-card-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#qd-doctor-card .qd-booking-card-copy h2 {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: #111;
}

#qd-doctor-card .qd-booking-card-copy p {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: rgba(20, 18, 25, 0.5);
}

/* SVG already includes the circular badge (Figma 970:10121) */
#qd-service-card .qd-booking-card-icon,
#qd-doctor-card .qd-booking-card-icon {
    background: transparent;
    padding: 0;
}

#qd-service-card .qd-booking-card-icon img,
#qd-doctor-card .qd-booking-card-icon img {
    width: 41px;
    height: 41px;
    display: block;
}

.qd-booking-date-wrap {
    margin-bottom: 18px;
}

.qd-date-pill {
    flex: 0 0 121px;
    scroll-snap-align: start;
    border: 1.5px solid var(--qd-book-border);
    border-radius: 10px;
    background: #fff;
    min-height: 44px;
    padding: 7px 10px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qd-date-pill.is-selected {
    background: var(--qd-book-blue);
    border-color: var(--qd-book-blue);
    color: #fff;
}

.qd-date-pill.is-closed {
    opacity: 0.55;
}

.qd-date-day {
    display: block;
    font-size: 12px;
    line-height: 12px;
    font-weight: 700;
}

.qd-date-status {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 17px;
    font-weight: 600;
    color: var(--qd-book-blue);
}

.qd-date-pill.is-selected .qd-date-status {
    color: rgba(255, 255, 255, 0.95);
}

/* legacy alias kept for any leftover markup */
.qd-booking-date-next {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 0;
    background: var(--qd-book-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 12px;
}

.qd-viewall-panel {
    width: min(860px, 100%);
}

.qd-viewall-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 14px;
    padding: 11px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #f8fafc;
    box-sizing: border-box;
    cursor: text;
}

.qd-viewall-search:focus-within {
    background: #fff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(0, 123, 234, 0.12);
}

.qd-viewall-search i {
    color: #94a3b8;
    font-size: 14px;
    flex-shrink: 0;
}

.qd-viewall-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    padding: 0;
}

.qd-viewall-search input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.qd-viewall-empty {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-align: center;
}

.qd-viewall-scroll {
    max-height: min(58vh, 480px);
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #c5cdd6 transparent;
}

.qd-viewall-scroll.is-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qd-viewall-scroll.is-empty {
    display: none;
}

.qd-viewall-scroll::-webkit-scrollbar {
    width: 6px;
}

.qd-viewall-scroll::-webkit-scrollbar-thumb {
    background: #c5cdd6;
    border-radius: 999px;
}

.qd-viewall-scroll .qd-viewall-item {
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.qd-viewall-scroll .qd-viewall-item.is-filtered-out {
    display: none !important;
}

@media (max-width: 768px) {
    .qd-viewall-scroll.is-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .qd-viewall-scroll,
    .qd-viewall-scroll.is-services {
        grid-template-columns: 1fr;
        max-height: min(62vh, 520px);
    }

    .qd-booking-scroll-btn--prev {
        margin-right: 6px;
    }

    .qd-booking-scroll-btn--next {
        margin-left: 6px;
    }
}

.qd-booking-slots-head {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: var(--qd-book-ink);
    margin: 0 0 14px;
    padding-top: 14px;
    border-top: 1px solid var(--qd-book-border);
}

.qd-booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 11px;
}

.qd-slot-pill {
    border: 1.5px solid var(--qd-book-border);
    border-radius: 10px;
    background: #fff;
    min-height: 44px;
    padding: 7px 8px;
    font-family: inherit;
    font-size: 12px;
    line-height: 12px;
    font-weight: 700;
    color: var(--qd-book-ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qd-slot-pill:hover:not(.is-booked) {
    border-color: var(--qd-book-blue);
}

.qd-slot-pill:not(.is-booked):not(.is-selected) {
    border-color: rgba(0, 123, 234, 0.35);
}

.qd-slot-pill.is-selected {
    background: var(--qd-book-blue);
    border-color: var(--qd-book-blue);
    color: #fff;
}

.qd-slot-pill.is-booked {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-color: transparent;
}

.qd-slot-pill.is-booked small {
    font-size: 11px;
    font-weight: 600;
}

.qd-booking-summary {
    position: sticky;
    top: 88px;
    width: 100%;
    max-width: 386px;
    justify-self: end;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
}

.qd-booking-summary-media {
    height: 137px;
    overflow: hidden;
    background: #e5e7eb;
}

.qd-booking-summary-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qd-booking-summary-body {
    padding: 24px 20px 20px;
}

.qd-booking-summary-body h3 {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
}

.qd-booking-summary-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qd-booking-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.qd-booking-summary-icon {
    width: 41px;
    height: 41px;
    border-radius: 999px;
    background: rgba(0, 123, 234, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qd-booking-summary-list strong {
    display: block;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: var(--qd-book-ink);
}

.qd-booking-summary-sub {
    display: block;
    font-size: 13px;
    line-height: 17px;
    color: var(--qd-book-muted);
    font-weight: 500;
}

.qd-booking-cta {
    width: 100%;
    border: 0;
    border-radius: 50px;
    background: var(--qd-book-blue);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    min-height: 48px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.qd-booking-cta:hover:not(:disabled) {
    background: #0069c8;
    transform: translateY(-1px);
}

.qd-booking-cta:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.qd-booking-cta--inline {
    width: auto;
    min-width: 180px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
}

.qd-booking-loading,
.qd-booking-empty {
    padding: 24px 12px;
    text-align: center;
    color: var(--qd-book-muted);
    font-size: 14px;
}

.qd-booking-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.qd-booking-loading.hidden,
.qd-booking-empty.hidden,
.qd-skeleton-strip.hidden,
.qd-skeleton-slots.hidden,
.qd-booking-slots-grid.hidden,
.is-skeleton-pending {
    display: none !important;
}

/* Booking skeleton loaders — match service / doctor / slot layouts */
@keyframes qd-skeleton-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.qd-skeleton {
    background: linear-gradient(90deg, #e8eef4 0%, #f4f7fa 45%, #e8eef4 90%);
    background-size: 200% 100%;
    animation: qd-skeleton-shimmer 1.15s ease-in-out infinite;
    border-radius: 6px;
}

.qd-skeleton-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 11px;
    overflow: hidden;
    padding: 2px 0;
    pointer-events: none;
}

.qd-skeleton-card {
    position: relative;
    flex: 0 0 207px;
    width: 207px;
    height: 84px;
    min-height: 84px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border: 0.9px solid rgba(0, 0, 0, 0.08);
    border-radius: 11px;
    background: #fff;
    box-sizing: border-box;
}

.qd-skeleton-thumb {
    width: 61px;
    height: 68px;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

.qd-skeleton-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
    padding-right: 14px;
}

.qd-skeleton-line {
    display: block;
    height: 10px;
    border-radius: 4px;
}

.qd-skeleton-line--title {
    width: 78%;
    height: 12px;
}

.qd-skeleton-line--desc {
    width: 92%;
    height: 9px;
}

.qd-skeleton-line--desc-short {
    width: 62%;
    height: 9px;
}

.qd-skeleton-line--meta {
    width: 70%;
    height: 9px;
}

.qd-skeleton-line--meta-short {
    width: 88%;
    height: 8px;
}

.qd-skeleton-radio {
    position: absolute;
    top: 9px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
}

.qd-skeleton-date {
    flex: 0 0 121px;
    width: 121px;
    min-height: 44px;
    padding: 9px 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qd-skeleton-line--date {
    width: 58%;
    height: 11px;
}

.qd-skeleton-line--date-sub {
    width: 78%;
    height: 9px;
}

.qd-skeleton-slots {
    pointer-events: none;
}

.qd-skeleton-slot {
    min-height: 44px;
    border-radius: 10px;
    border: 1.5px solid transparent;
}

.qd-booking-empty h4 {
    margin: 0 0 6px;
    color: #374151;
    font-size: 15px;
}

.qd-booking-empty p {
    margin: 0;
    font-size: 13px;
}

.qd-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.qd-booking-modal.hidden {
    display: none !important;
}

.qd-booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.qd-booking-modal-panel {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(90vh, 860px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    padding: 28px 24px 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

/* Figma booking checkout modal (887:3716 / 970:8913 / 970:9456) */
.qd-booking-modal-panel.qd-auth-checkout-panel {
    width: min(440px, 100%);
    max-height: min(92vh, 760px);
    padding: 18.86px;
    border-radius: 22px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.qd-auth-hero {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0b1f33;
}

.qd-auth-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qd-auth-hero-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 175px;
    height: auto;
    pointer-events: none;
}

.qd-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease;
}

.qd-auth-close:hover {
    background: #f8fafc;
}

.qd-auth-close img {
    width: 12px;
    height: 12px;
    display: block;
}

.qd-auth-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.qd-auth-step.hidden {
    display: none !important;
}

.qd-auth-person-heading {
    display: none;
}

.qd-auth-tabs-wrap {
    width: 100%;
    border-bottom: 1px solid #EEF2F6;
    padding-bottom: 12px;
}

.qd-auth-tabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qd-auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #828282;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.qd-auth-tab:hover:not(.is-active) {
    color: #111827;
    background: #F3F4F6;
}

.qd-auth-tab.is-active {
    background: #E0F2FE;
    color: #0080FF;
    font-weight: 600;
}

.qd-auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.qd-auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.qd-auth-label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111111;
    line-height: 1.25;
}

.qd-auth-label span {
    color: #ef4444;
    margin-left: 2px;
}

.qd-auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
    cursor: text;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qd-auth-input-wrap:focus-within {
    border-color: #0080FF;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12);
}

.qd-auth-input-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.qd-auth-input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #111111;
    padding: 0;
    height: 100%;
}

.qd-auth-input::placeholder {
    color: #9CA3AF;
}

.qd-auth-input-wrap.is-readonly {
    background: #F9FAFB;
    border-color: #E5E7EB;
    cursor: default;
}

.qd-auth-input-wrap.is-readonly:focus-within {
    border-color: #E5E7EB;
    box-shadow: none;
}

.qd-auth-input.is-readonly,
.qd-auth-input:disabled {
    color: #4B5563;
    cursor: default;
}

.qd-auth-error {
    margin: 0;
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

.qd-auth-primary-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 58px;
    background: #0080FF;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    transition: background-color 0.15s ease;
}

.qd-auth-primary-btn:hover:not(:disabled) {
    background: #0070e0;
}

.qd-auth-primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.qd-auth-primary-btn--inline {
    width: auto;
    min-width: 180px;
    margin-top: 0;
    padding: 0 20px;
}

.qd-auth-otp-row {
    display: flex;
    gap: 13px;
    align-items: center;
    width: 100%;
}

.qd-auth-otp-digit {
    flex: 1 1 0;
    width: 56.7px;
    max-width: 56.7px;
    height: 61.56px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 9.72px;
    text-align: center;
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    color: #111;
    outline: none;
    background: #fff;
}

.qd-auth-otp-digit:focus {
    border-color: #007bea;
    box-shadow: 0 0 0 3px rgba(0, 123, 234, 0.12);
}

.qd-auth-otp-digit.is-invalid {
    border-color: #e11d48;
}

.qd-auth-resend {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #828282;
    text-align: left;
}

.qd-auth-resend-btn {
    border: 0;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 123, 234, 0.4);
    cursor: pointer;
}

.qd-auth-resend-btn:hover:not(:disabled) {
    color: #007bea;
}

.qd-auth-resend-btn:disabled {
    cursor: default;
}

.qd-auth-change-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #007bea;
    cursor: pointer;
    width: fit-content;
}

.qd-auth-members {
    margin-top: 0;
}

.qd-auth-members.hidden {
    display: none !important;
}

.qd-booking-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
}

.qd-booking-modal-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
}

.qd-booking-modal-sub {
    margin: 0 0 20px;
    color: var(--qd-book-muted);
    font-size: 14px;
}

.qd-booking-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #374151;
}

.qd-booking-field-label span {
    color: #ef4444;
}

.qd-booking-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    background: #fff;
}

.qd-booking-input:focus {
    border-color: var(--qd-book-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 234, 0.15);
}

.qd-booking-textarea {
    resize: none;
    min-height: 96px;
}

.qd-booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.qd-booking-form-full {
    grid-column: 1 / -1;
}

.qd-booking-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qd-member-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.qd-member-select {
    width: 100%;
    height: 46px;
    padding: 0 36px 0 14px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    appearance: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qd-member-select:focus {
    border-color: #0080FF;
    box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.12);
}

.qd-add-member-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: fit-content;
    margin-top: 0;
    border: 0;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #0080FF;
    cursor: pointer;
}

.qd-add-member-btn:hover {
    text-decoration: underline;
}

.qd-add-member-btn i {
    font-size: 11px;
}

/* Add Family Member modal — matches booking checkout UI */
.qd-fm-panel {
    width: 100%;
    max-width: 32rem;
    /* matches previous max-w-lg */
    border-radius: 24px;
    padding: 0;
    box-shadow:
        0 3.14px 19.64px rgba(33, 33, 33, 0.08),
        0 3.14px 2.36px rgba(33, 33, 33, 0.04);
}

.qd-fm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 24px 0;
}

.qd-fm-header-copy {
    min-width: 0;
}

.qd-fm-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
}

.qd-fm-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #828282;
    line-height: 1.35;
}

.qd-fm-close {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.qd-fm-close:hover {
    background: #f3f4f6;
    color: #111;
}

.qd-fm-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
}

.qd-fm-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qd-fm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.qd-fm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.qd-fm-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}

.qd-fm-label span {
    color: #ef4444;
}

.qd-fm-label em {
    font-style: normal;
    font-weight: 500;
    color: #828282;
    font-size: 12px;
}

.qd-fm-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #111;
    outline: none;
    box-sizing: border-box;
}

.qd-fm-input:focus {
    border-color: #007bea;
    box-shadow: 0 0 0 3px rgba(0, 123, 234, 0.12);
}

.qd-fm-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.qd-fm-textarea {
    height: auto;
    min-height: 80px;
    padding: 12px 14px;
    resize: none;
    line-height: 1.4;
}

.qd-fm-error {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #e11d48;
}

.qd-fm-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-top: 4px;
}

.qd-fm-btn-secondary {
    flex: 1;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 58px;
    background: #fff;
    color: #374151;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.qd-fm-btn-secondary:hover {
    background: #f9fafb;
}

.qd-fm-btn-primary {
    flex: 1.4;
    height: 44px;
    border: 0;
    border-radius: 58px;
    background: #007bea;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qd-fm-btn-primary:hover {
    background: #0069c7;
}

.qd-fm-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .qd-fm-grid {
        grid-template-columns: 1fr;
    }

    .qd-fm-actions {
        flex-direction: column-reverse;
    }

    .qd-fm-btn-secondary,
    .qd-fm-btn-primary {
        width: 100%;
        flex: none;
    }
}

.qd-booking-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.qd-booking-btn-ghost {
    border: 0;
    background: transparent;
    color: #4b5563;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.qd-booking-review {
    border: 1px solid var(--qd-book-border);
    border-radius: 14px;
    padding: 8px 16px;
    background: #fafafa;
}

.qd-booking-review-row,
.qd-booking-review-fee {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--qd-book-border);
}

.qd-booking-review-fee {
    border-bottom: 0;
}

.qd-booking-review-row span,
.qd-booking-review-fee span {
    font-size: 12px;
    color: var(--qd-book-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.qd-booking-review-row strong,
.qd-booking-review-fee strong {
    font-size: 15px;
    font-weight: 700;
}

.qd-booking-review-row em,
.qd-booking-review-fee em {
    font-style: normal;
    font-size: 12px;
    color: var(--qd-book-blue);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes qd-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes qd-hero-zoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1.02);
    }
}

@media (max-width: 1200px) {
    .qd-booking-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qd-booking-summary {
        position: static;
        width: 100%;
        /* Keep summary after selections so the booking flow reads top-to-bottom */
        order: 2;
    }

    .qd-booking-main {
        order: 1;
    }

    .qd-booking-slots-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .qd-booking-clinic-row {
        grid-template-columns: 114px minmax(0, 1fr);
    }

    .qd-booking-clinic-stats {
        grid-column: 1 / -1;
        border-left: 0;
        padding-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--qd-book-border);
        min-width: 0;
        justify-content: flex-start;
        gap: 24px;
    }

    .qd-booking-slots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #qd-service-card .qd-service-card,
    #qd-doctor-card .qd-doctor-card,
    #qd-viewall-grid .qd-service-card,
    #qd-viewall-grid .qd-doctor-card {
        flex-basis: 188px;
        width: 188px;
    }
}

@media (max-width: 480px) {
    .qd-booking-modal-panel.qd-auth-checkout-panel {
        padding: 14px;
        gap: 12px;
    }

    .qd-auth-hero {
        height: 140px;
    }

    .qd-auth-otp-row {
        gap: 6px;
    }

    .qd-auth-otp-digit {
        width: 44px;
        max-width: 44px;
        height: 50px;
        font-size: 18px;
    }

    .qd-auth-resend,
    .qd-auth-resend-btn,
    .qd-auth-change-number {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .qd-booking-hero {
        height: 220px;
    }

    .qd-booking-hero-inner {
        padding-top: 100px;
        width: calc(100% - 32px);
    }

    .qd-booking-hero-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .qd-booking-hero-subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .qd-booking-body {
        width: calc(100% - 32px);
        margin-top: 20px;
        margin-bottom: 88px;
    }

    .qd-booking-card {
        padding: 16px;
        border-radius: 16px;
    }

    body:has(.qd-booking-page) #site-footer {
        padding-bottom: 96px;
    }

    .qd-booking-card-copy h2 {
        font-size: 16px;
    }

    .qd-booking-clinic-row {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
    }

    .qd-booking-clinic-thumb {
        width: 88px;
        height: 66px;
    }

    .qd-booking-clinic-info h3 {
        font-size: 16px;
        line-height: 20px;
    }

    .qd-booking-form-grid {
        grid-template-columns: 1fr;
    }

    .qd-booking-modal-panel {
        padding: 22px 16px 18px;
    }

    .qd-booking-slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .qd-date-pill {
        flex-basis: 108px;
    }

    .qd-booking-summary {
        border-radius: 16px;
    }

    .qd-booking-mobile-cta {
        display: block;
    }
}

/* Sticky mobile book bar — mirrors summary CTA */
.qd-booking-mobile-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

.qd-booking-mobile-cta .qd-booking-cta {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {

    .qd-booking-hero-img,
    .qd-booking-hero-title,
    .qd-booking-hero-subtitle {
        animation: none !important;
    }
}

/* ── Appointment Confirmed / booking-success (Figma 970:8038) ── */
/* Hero is 346px; cards start at y:402 → 56px gap on the page gray (no hero overlap). */
.qd-success-page {
    background: #f3f5f4;
}

.qd-success-page .qd-success-body {
    position: relative;
    z-index: 2;
    margin-top: 56px;
    margin-bottom: 80px;
}

.qd-success-layout {
    display: grid;
    grid-template-columns: minmax(0, 818px) 386px;
    gap: 36px;
    align-items: start;
    justify-content: space-between;
}

.qd-success-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.qd-success-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.qd-success-card--patient {
    padding: 24px;
}

.qd-success-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #eefff2;
    border-radius: 20px;
    padding: 20px;
}

.qd-success-banner-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: block;
}

.qd-success-banner-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.qd-success-banner-copy h2 {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 20px;
    color: #111;
}

.qd-success-banner-id {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    color: rgba(20, 18, 25, 0.5);
}

.qd-success-banner-note {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    color: rgba(20, 18, 25, 0.5);
}

.qd-success-patient-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 24px;
}

.qd-success-avatar {
    flex-shrink: 0;
    width: 152px;
    height: 152px;
    border-radius: 20px;
    background: #f7ebdf;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.qd-success-avatar img {
    width: 135px;
    height: 133px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

.qd-success-patient-meta {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.qd-success-fields {
    display: flex;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.qd-success-field {
    flex: 1 1 140px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.qd-success-field--last {
    border-right: 0;
    padding-right: 0;
}

.qd-success-field-label {
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: rgba(17, 17, 17, 0.6);
}

.qd-success-field-value {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 16.6px;
    line-height: 17px;
    color: #111;
    word-break: break-word;
}

.qd-success-service-details {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qd-success-service-details p {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 20.6px;
    color: #111;
}

.qd-success-card--help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    flex-wrap: wrap;
}

.qd-success-help-copy h3 {
    margin: 0 0 4px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 20px;
    color: #111;
}

.qd-success-help-copy p {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 20.6px;
    color: #111;
}

.qd-success-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: 1px solid #444;
    border-radius: 58px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.qd-success-help-btn:hover {
    background: #f5f5f5;
    color: #111;
}

.qd-success-sidebar {
    min-width: 0;
}

.qd-success-card--summary {
    padding: 16px 0 24px;
    overflow: hidden;
}

.qd-success-map-wrap {
    position: relative;
    width: calc(100% - 40px);
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.qd-success-map {
    display: block;
    width: 100%;
    height: 201px;
    object-fit: cover;
    border-radius: 20px;
}

.qd-success-map-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #d5ebff;
    border-radius: 0 0 20px 20px;
}

.qd-success-map-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.qd-success-map-copy strong {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 14.66px;
    line-height: 14px;
    color: #111;
}

.qd-success-map-copy span {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 14px;
    color: #111;
}

.qd-success-direction-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: #007bea;
    border-radius: 8px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 14.66px;
    line-height: 14px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.qd-success-direction-btn:hover {
    background: #0069c8;
    color: #fff;
}

.qd-success-direction-btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.qd-success-summary-body {
    width: calc(100% - 40px);
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qd-success-summary-body>h3 {
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #111;
}

.qd-success-summary-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.qd-success-summary-row--last {
    border-bottom: 0;
    padding-bottom: 0;
}

.qd-success-summary-row img {
    flex-shrink: 0;
    width: 41px;
    height: 41px;
    display: block;
}

.qd-success-summary-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.qd-success-summary-row strong {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 14.66px;
    line-height: 18px;
    color: #111;
}

.qd-success-summary-row span {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    font-size: 13.6px;
    line-height: 17px;
    color: #111;
    word-break: break-word;
}

.qd-success-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.qd-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 58px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.qd-success-btn--cancel {
    flex: 0 0 124px;
    width: 124px;
    border: 1px solid #444;
    color: #444;
    background: transparent;
}

.qd-success-btn--cancel:hover {
    background: #f5f5f5;
    color: #111;
}

.qd-success-btn--reschedule {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #007bea;
    color: #007bea;
    background: transparent;
}

.qd-success-btn--reschedule:hover {
    background: rgba(0, 123, 234, 0.06);
    color: #0069c8;
}

.qd-success-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .qd-success-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qd-success-sidebar {
        order: 2;
        max-width: 480px;
    }
}

@media (max-width: 640px) {
    .qd-success-page .qd-success-body {
        margin-top: 24px;
        margin-bottom: 48px;
    }

    .qd-success-card--patient,
    .qd-success-card--help {
        padding: 16px;
    }

    .qd-success-banner {
        padding: 16px;
        border-radius: 16px;
    }

    .qd-success-banner-copy h2 {
        font-size: 20px;
        line-height: 24px;
    }

    .qd-success-patient-row {
        flex-direction: column;
        align-items: stretch;
    }

    .qd-success-avatar {
        width: 120px;
        height: 120px;
    }

    .qd-success-fields {
        gap: 16px;
    }

    .qd-success-field {
        flex: 1 1 100%;
        border-right: 0;
        padding-right: 0;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .qd-success-field--last {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .qd-success-card--help {
        flex-direction: column;
        align-items: flex-start;
    }

    .qd-success-map {
        height: 180px;
    }

    .qd-success-map-bar {
        flex-wrap: wrap;
    }

    .qd-success-actions {
        flex-direction: column;
    }

    .qd-success-btn--cancel,
    .qd-success-btn--reschedule {
        width: 100%;
        flex: none;
    }
}

/* ==========================================================================
   DOCTOR PROFILE PAGE (Figma 970:10168)
   ========================================================================== */
.qd-doc-page {
    background-color: #f4f6f8;
    min-height: 100vh;
}

.qd-doc-body {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 0 80px;
}

.qd-doc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 386px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .qd-doc-layout {
        grid-template-columns: 1fr;
    }
}

/* Left main column */
.qd-doc-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qd-doc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px -2px rgba(17, 24, 39, 0.03);
}

@media (max-width: 640px) {
    .qd-doc-card {
        padding: 20px;
        border-radius: 18px;
    }
}

/* 1. Doctor Profile Hero Card */
.qd-doc-intro {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

@media (max-width: 640px) {
    .qd-doc-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.qd-doc-avatar-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #f1f5f9;
}

@media (max-width: 640px) {
    .qd-doc-avatar-wrap {
        width: 180px;
        height: 180px;
    }
}

.qd-doc-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.qd-doc-rating-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qd-doc-rating-badge svg {
    width: 14px;
    height: 14px;
    color: #f59e0b;
    fill: #f59e0b;
}

.qd-doc-info {
    flex: 1;
    min-width: 0;
}

.qd-doc-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .qd-doc-name-row {
        justify-content: center;
    }
}

.qd-doc-name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qd-doc-name {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: #111827;
}

.qd-doc-verified-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.qd-doc-exp-badge {
    background: #007bea;
    color: #ffffff;
    border-radius: 12px;
    padding: 6px 14px;
    text-align: center;
    line-height: 1.25;
    flex-shrink: 0;
}

.qd-doc-exp-badge-years {
    font-size: 13px;
    font-weight: 700;
    display: block;
}

.qd-doc-exp-badge-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.92;
    display: block;
}

.qd-doc-speciality {
    margin: 6px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.qd-doc-qualifications {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.qd-doc-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 18px 0 16px;
    border: none;
}

.qd-doc-about-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.qd-doc-about-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
}

/* Stat row */
.qd-doc-stats {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .qd-doc-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.qd-doc-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.qd-doc-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: #e5e7eb;
}

@media (max-width: 640px) {
    .qd-doc-stat-item::after {
        display: none;
    }
}

.qd-doc-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eaf5fe;
    color: #007bea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qd-doc-stat-icon svg {
    width: 20px;
    height: 20px;
}

.qd-doc-stat-info {
    min-width: 0;
}

.qd-doc-stat-val {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qd-doc-stat-lbl {
    margin: 2px 0 0;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2. Services Card */
.qd-doc-section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.qd-doc-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eaf5fe;
    color: #007bea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qd-doc-section-icon svg {
    width: 22px;
    height: 22px;
}

.qd-doc-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.qd-doc-section-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.qd-doc-services-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.qd-doc-services-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.qd-doc-service-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    max-width: 240px;
    flex-shrink: 0;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #73b9f8;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qd-doc-service-card:hover {
    border-color: #007bea;
    box-shadow: 0 4px 14px rgba(0, 123, 234, 0.12);
    transform: translateY(-1px);
}

.qd-doc-service-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #ddf2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qd-doc-service-icon-box img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.qd-doc-service-content {
    min-width: 0;
    flex: 1;
}

.qd-doc-service-name {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qd-doc-service-desc {
    margin: 2px 0 0;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3. Happy Patients Card */
.qd-doc-reviews-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.qd-doc-reviews-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.qd-doc-review-card {
    min-width: 300px;
    max-width: 340px;
    flex-shrink: 0;
    padding: 18px 20px;
    background: #f8fafc;
    border: none;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.qd-doc-review-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

.qd-doc-review-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.qd-doc-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.qd-doc-review-quote {
    margin: 0;
    font-size: 13px;
    font-weight: 450;
    color: #334155;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.qd-doc-review-bot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 0;
    border: none;
    border-top: none;
}

.qd-doc-review-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 12.5px;
    line-height: 1;
}

.qd-doc-review-stars .star-filled {
    color: #f59e0b;
}

.qd-doc-review-stars .star-empty {
    color: #cbd5e1;
}

.qd-doc-review-sep {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1;
}

.qd-doc-review-author {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.qd-vote-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 9999px;
    background: #ffffff;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
    line-height: 1.4;
}

.qd-vote-btn:hover {
    color: #0284c7;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.18);
    transform: translateY(-1px);
}

.qd-vote-btn--static {
    cursor: default;
}

.qd-vote-btn--static:hover {
    color: #64748b;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transform: none;
}

/* Right Column: Book Appointment - Clinic Visits */
.qd-doc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    border-radius: 22px;
    background: #fff;
}

.qd-doc-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qd-doc-side-title-wrap {
    min-width: 0;
}

.qd-doc-side-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.qd-doc-side-sub {
    margin: 2px 0 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
}

.qd-doc-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qd-doc-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qd-doc-arrow-btn {
    background: #007bea;
    color: #ffffff;
}

.qd-doc-arrow-btn:hover:not(:disabled) {
    background: #0066c4;
}

.qd-doc-arrow-btn:disabled {
    background: #d1d5db;
    cursor: default;
}

.qd-doc-clinics-track {
    display: flex;
    gap: 12px;
}

.qd-doc-clinics-track.is-scrollable {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.qd-doc-sidebar .qd-doc-clinics-track.is-scrollable {
    margin-right: -20px;
    padding-right: 20px;
}

.qd-doc-clinics-track.is-scrollable::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.qd-doc-clinics-track.is-single {
    overflow: visible;
}

.qd-doc-clinics-track.is-single .qd-doc-clinic-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
}

.qd-doc-clinic-card {
    box-sizing: border-box;
    flex: 0 0 min(306px, 100%);
    min-width: 0;
    scroll-snap-align: start;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.03);
    transition: all 0.2s ease;
}

.qd-doc-clinic-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.qd-doc-clinic-img-box {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
}

.qd-doc-clinic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qd-doc-clinic-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.qd-doc-clinic-rating svg {
    width: 13px;
    height: 13px;
    color: #f59e0b;
    fill: #f59e0b;
}

.qd-doc-clinic-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffffff;
    color: #007bea;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qd-doc-clinic-badge svg {
    width: 13px;
    height: 13px;
}

.qd-doc-clinic-name {
    margin: 12px 0 10px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qd-doc-clinic-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.qd-doc-clinic-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #4b5563;
}

.qd-doc-clinic-row svg,
.qd-doc-clinic-row img {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #007bea;
}

.qd-doc-clinic-row span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qd-doc-clinic-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.qd-doc-btn-view {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    background: transparent;
    border: 1.5px solid #111827;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qd-doc-btn-view:hover {
    background: #f3f4f6;
    color: #111827;
}

.qd-doc-btn-book {
    flex: 1.25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: #007bea;
    border: 1.5px solid #007bea;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qd-doc-btn-book:hover {
    background: #0066c4;
    border-color: #0066c4;
    color: #ffffff;
}

.qd-doc-booking-unavailable {
    display: flex;
    flex: 1.25;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 9999px;
    font-size: 12px;
    text-align: center;
}

.qd-doc-visiting-hours {
    margin-bottom: 12px;
    color: #475569;
    font-size: 12px;
}

.qd-doc-visiting-hours summary {
    cursor: pointer;
    font-weight: 600;
}

.qd-doc-visiting-hours ul {
    padding-left: 16px;
    margin: 6px 0 0;
}

/* ==========================================================================
   Clinic Page Figma Exact Match (node-id=1310-1881 / 1310-1902)
   ========================================================================== */
.qd-clinic-hero-figma {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: stretch;
    background-color: #0b0f19;
    overflow: hidden;
    color: #ffffff;
}

.qd-clinic-hero-figma .qd-clinic-hero-bg {
    position: absolute;
    inset: 0;
}

.qd-clinic-hero-figma .qd-clinic-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.qd-clinic-hero-figma .qd-clinic-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.75) 0%, rgba(11, 15, 25, 0.48) 45%, rgba(11, 15, 25, 0.88) 100%);
}

.qd-clinic-hero-figma .qd-clinic-hero-inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: min(1240px, calc(100% - 48px));
    max-width: 1240px;
    margin: 0 auto;
    padding: 170px 0 40px;
}

.qd-clinic-hero-figma .qd-clinic-hero-inner h1 {
    padding: 0;
}

@media (max-width: 640px) {
    .qd-clinic-hero-figma .qd-clinic-hero-inner {
        padding-top: 130px;
        padding-bottom: 28px;
    }
}

.qd-btn-book-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 24px;
    background-color: #0080ff;
    color: #ffffff !important;
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 128, 255, 0.35);
}

.qd-btn-book-cta:hover {
    background-color: #006ee6;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 128, 255, 0.45);
}

.qd-btn-book-cta .arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: #ffffff;
    color: #0080ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.qd-btn-book-cta:hover .arrow-circle {
    transform: translate(2px, -2px);
}

.qd-hero-gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qd-hero-gallery-thumb {
    width: 140px;
    height: 95px;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    background-color: #1e293b;
    flex-shrink: 0;
}

.qd-hero-gallery-thumb:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.qd-hero-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Badge Pill Card */
.qd-feature-pill-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 20px;
    transition: all 0.25s ease;
}

.qd-feature-pill-card:hover {
    border-color: #0080ff;
    box-shadow: 0 8px 20px rgba(0, 128, 255, 0.08);
    transform: translateY(-2px);
}

/* Specialist Doctor Card */
.qd-doctor-figma-card {
    position: relative;
    border-radius: 22px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.qd-doctor-figma-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.qd-doctor-figma-card .doc-rating-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.qd-doctor-figma-card .doc-img-wrap {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: #EDF2F7;
}

.qd-doctor-figma-card .doc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.qd-doctor-figma-card:hover .doc-img {
    transform: scale(1.04);
}

.qd-doctor-figma-card .doc-overlay-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: #0080FF;
    border-radius: 18px;
    padding: 16px;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 128, 255, 0.3);
}

.qd-doctor-figma-card .doc-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.qd-doctor-figma-card .doc-spec {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    margin-top: 2px;
}

.qd-doctor-figma-card .doc-exp {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

.qd-doctor-figma-card .doc-book-btn {
    margin-top: 10px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.qd-doctor-figma-card .doc-book-btn:hover {
    background: #ffffff;
    color: #0080FF;
    border-color: #ffffff;
}

/* Service Card Figma 01-08 */
.qd-service-figma-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.qd-service-figma-card:hover {
    border-color: #0080FF;
    box-shadow: 0 10px 24px rgba(0, 128, 255, 0.08);
    transform: translateY(-2px);
}

.qd-service-figma-blue-card {
    background: linear-gradient(130deg, #0080FF 0%, #006ee6 100%);
    border-radius: 20px;
    padding: 26px 24px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 256px;
    box-shadow: 0 12px 28px rgba(0, 128, 255, 0.25);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
}

.qd-service-figma-blue-card:hover {
    transform: translateY(calc(var(--card-y, 0px) - 5px)) scale(1.015) !important;
    box-shadow: 0 16px 36px rgba(0, 128, 255, 0.35) !important;
}


/* ==========================================================================
   Legal and CMS pages (frontend::legal.page)
   ========================================================================== */

.qd-legal-content { color: #334155; font-size: 16px; line-height: 1.7; }
.qd-legal-content h2 { color: #0f172a; font-size: 1.375rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.qd-legal-content h3 { color: #0f172a; font-size: 1.125rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.qd-legal-content p { margin: 0 0 1rem; }
.qd-legal-content ul, .qd-legal-content ol { margin: 0 0 1rem 1.5rem; }
.qd-legal-content ul { list-style: disc; }
.qd-legal-content ol { list-style: decimal; }
.qd-legal-content li { margin-bottom: 0.375rem; }
.qd-legal-content a { color: #1742ff; text-decoration: underline; }

/* ==========================================================================
   Desktop Transparent Overlay Scrollbar (No background track / gutter)
   ========================================================================== */
@media (min-width: 768px) {
    html.qd-overlay-scrollbar:not(.is-mobile-app),
    html.qd-overlay-scrollbar:not(.is-mobile-app) body {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    html.qd-overlay-scrollbar:not(.is-mobile-app)::-webkit-scrollbar,
    html.qd-overlay-scrollbar:not(.is-mobile-app) body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .qd-overlay-scrollbar-track {
        position: fixed;
        top: 6px;
        bottom: 6px;
        right: 3px;
        width: 10px;
        z-index: 9998;
        background: transparent;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .qd-overlay-scrollbar-track.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .qd-overlay-scrollbar-thumb {
        position: absolute;
        top: 0;
        right: 1px;
        width: 5px;
        min-height: 36px;
        border-radius: 9999px;
        background: rgba(100, 116, 139, 0.48);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
        cursor: pointer;
        transition: width 0.15s ease, background-color 0.15s ease;
        will-change: transform;
    }

    .qd-overlay-scrollbar-track:hover .qd-overlay-scrollbar-thumb,
    .qd-overlay-scrollbar-track.is-dragging .qd-overlay-scrollbar-thumb {
        width: 7px;
        background: rgba(0, 128, 255, 0.85);
    }
}

@media (max-width: 767.98px), (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    .qd-overlay-scrollbar-track {
        display: none !important;
    }
}

html.is-mobile-app .qd-overlay-scrollbar-track {
    display: none !important;
}
