/* Shared HealthBhi polish, chatbot, and conversion helpers */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.hb-modal-open {
    overflow: hidden;
}

footer {
    overflow-x: clip;
}

.hb-cta-link {
    text-decoration: none;
}

.hb-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.hb-modal-actions .btn,
.hb-modal-actions .book-btn {
    width: 100%;
    min-height: 44px;
}

.hb-modal-actions .hb-whatsapp-btn {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.hb-modal-actions .hb-whatsapp-btn:hover {
    background: #1fb558;
    border-color: #1fb558;
    color: #fff;
}

.hb-detail-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 18px;
}

.hb-detail-item {
    background: #f8fafc;
    border: 1px solid #e6eef7;
    border-radius: 12px;
    padding: 10px 12px;
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.55;
}

.hb-detail-item strong {
    display: block;
    color: #041B4D;
    margin-bottom: 3px;
}

.hb-doctor-profile {
    background: #ffffff;
    border: 1px solid #e5eef7;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(4, 27, 77, 0.06);
    overflow: hidden;
}

.hb-doctor-portrait {
    min-height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #eef3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.hb-doctor-portrait .hb-avatar {
    width: min(240px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 12vw, 7rem);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.18);
}

.hb-profile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hb-profile-meta .hb-meta-card {
    background: #f8fbff;
    border: 1px solid #e3eef9;
    border-radius: 14px;
    padding: 14px;
}

.hb-profile-meta span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hb-profile-meta strong {
    color: #041B4D;
    font-size: 0.92rem;
    line-height: 1.4;
}

.hb-doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.hb-partner-card {
    background: #fff;
    border: 1px solid #e4eaf5;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(4, 27, 77, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hb-partner-card:hover {
    transform: translateY(-4px);
    border-color: #0ea5e9;
    box-shadow: 0 16px 38px rgba(14, 165, 233, 0.12);
}

.hb-partner-card h3 {
    color: #041B4D;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.hb-partner-card .hb-specialty {
    color: #0ea5e9;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.hb-partner-card p {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 8px;
}

.hb-chat-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.34);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1070;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hb-chat-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.42);
}

.hb-chat-launcher i {
    font-size: 1.35rem;
}

.hb-chatbot {
    position: fixed;
    right: 22px;
    bottom: 92px;
    width: min(390px, calc(100vw - 28px));
    max-height: min(680px, calc(100vh - 122px));
    background: #fff;
    border: 1px solid #dfeaf5;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(4, 27, 77, 0.22);
    z-index: 1071;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.hb-chatbot.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.hb-chat-head {
    background: linear-gradient(135deg, #041B4D 0%, #0ea5e9 100%);
    color: #fff;
    padding: 18px 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hb-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hb-chat-title .hb-chat-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hb-chat-title h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
}

.hb-chat-title p {
    color: rgba(255,255,255,0.78);
    font-size: 0.76rem;
    margin: 2px 0 0;
}

.hb-chat-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hb-chat-body {
    padding: 16px;
    overflow-y: auto;
    background: #f7fbff;
}

.hb-msg {
    max-width: 92%;
    border-radius: 16px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 0.84rem;
    line-height: 1.55;
}

.hb-msg.bot {
    background: #fff;
    color: #314155;
    border: 1px solid #e4edf7;
    border-bottom-left-radius: 6px;
}

.hb-msg.user {
    background: #0ea5e9;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 6px;
}

.hb-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.hb-chip {
    border: 1px solid #cfe6f7;
    background: #fff;
    color: #041B4D;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hb-chip:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #fff;
}

.hb-lead-form {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.hb-lead-form input,
.hb-lead-form textarea {
    width: 100%;
    border: 1px solid #dce8f4;
    border-radius: 12px;
    background: #fff;
    color: #041B4D;
    padding: 11px 12px;
    font-size: 0.84rem;
    outline: none;
}

.hb-lead-form textarea {
    min-height: 74px;
    resize: vertical;
}

.hb-lead-form input:focus,
.hb-lead-form textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.hb-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.hb-chat-primary,
.hb-chat-secondary {
    border: none;
    border-radius: 12px;
    padding: 11px 13px;
    font-weight: 800;
    font-size: 0.82rem;
}

.hb-chat-primary {
    background: #0ea5e9;
    color: #fff;
}

.hb-chat-secondary {
    background: #eaf3fb;
    color: #041B4D;
}

.hb-chat-inputbar {
    border-top: 1px solid #e3edf7;
    padding: 12px;
    display: flex;
    gap: 8px;
    background: #fff;
}

.hb-chat-inputbar input {
    flex: 1;
    border: 1px solid #dce8f4;
    border-radius: 999px;
    padding: 11px 14px;
    font-size: 0.84rem;
    outline: none;
}

.hb-chat-inputbar button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
}

@media (max-width: 576px) {
    .hb-chatbot {
        right: 12px;
        left: 12px;
        bottom: 84px;
        width: auto;
        max-height: min(620px, calc(100vh - 104px));
        border-radius: 18px;
    }

    .hb-chat-launcher {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }

    .hb-modal-actions,
    .hb-form-actions,
    .hb-profile-meta {
        grid-template-columns: 1fr;
    }

    .hb-chat-head {
        padding: 15px;
    }
}

.navbar.sticky-top {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(207, 230, 247, 0.85);
}

.navbar.sticky-top .navbar-collapse {
    border-radius: 24px;
}

.navbar.sticky-top .nav-link {
    font-weight: 700;
}

.hero-section,
.second-hero-section,
.professionals-section,
.process-section,
.testimonials-section,
.blog-section {
    overflow: clip;
}

.feature-card,
.doctor-card,
.review-card,
.blog-card,
.doctor-card-full,
.surgery-card,
.step-card,
.why-card,
.hb-partner-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.feature-card:hover,
.doctor-card:hover,
.review-card:hover,
.blog-card:hover,
.doctor-card-full:hover {
    transform: translateY(-6px);
}

.why-choose-section .features-container {
    gap: 22px;
    align-items: stretch;
}

.why-choose-section .feature-card {
    min-height: 144px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.myDoctorSwiper,
.hb-review-swiper,
.hb-home-hero-swiper {
    overflow: visible;
}

.doctor-card {
    border: 1px solid #e1ebf5;
}

.doctor-card .doc-img-wrapper img {
    height: 190px !important;
    object-position: center top !important;
}

.hb-doctor-qualification,
.hb-doctor-procedure {
    font-size: 0.74rem;
    line-height: 1.65;
    color: #64748b;
}

.hb-process-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(46%) sepia(95%) saturate(1490%) hue-rotate(170deg) brightness(100%) contrast(97%);
}

.hb-process-fa {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 3rem;
}

.hexagon {
    background: linear-gradient(135deg, #eff8ff 0%, #ffffff 100%);
    border: 1px solid #dbe8f4;
}

.second-hero-section .bg-dark-blue {
    padding-bottom: 64px !important;
}

.form-overlap-container {
    margin-top: -44px !important;
}

.form-overlap-container .rounded-5 {
    border-radius: 30px !important;
}

.testimonials-section .container {
    position: relative;
}

.hb-review-swiper .swiper-slide {
    height: auto;
}

.hb-review-swiper .review-card {
    margin-top: 42px !important;
    height: calc(100% - 42px) !important;
}

.hb-review-swiper-pagination,
.doctor-swiper-pagination {
    position: static !important;
    margin-top: 18px;
    text-align: center;
}

.hb-home-hero-card {
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 44px rgba(3, 18, 56, 0.25);
}

.hb-home-hero-card img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hb-hero-indicators {
    margin-bottom: 14px;
    gap: 8px;
}

.hb-hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.55);
    opacity: 1;
}

.hb-hero-indicators .active {
    width: 28px;
    background: #0ea5e9;
}

.hb-hero-control {
    width: 48px;
    height: 48px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(4, 27, 77, 0.34);
    opacity: 1;
    margin-inline: 16px;
}

.hb-hero-control:hover {
    background: rgba(14, 165, 233, 0.86);
}

.hb-hero-control .carousel-control-prev-icon,
.hb-hero-control .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.hb-surgery-hero-slider {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(3, 18, 56, 0.24);
}

.hb-surgery-hero-slider img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.hb-prefooter {
    padding: 12px 0 0;
    background: transparent;
}

.hb-prefooter-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    background: #fff;
    border: 1px solid #dbe8f4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 54px rgba(4, 27, 77, 0.10);
}

.hb-prefooter-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.hb-prefooter-content {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 100%);
}

.hb-prefooter-tag,
.hb-footer-cta-tag {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hb-prefooter-content h2,
.hb-footer-cta h3 {
    color: #041B4D;
    font-size: clamp(1.6rem, 2.2vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hb-footer-cta h3 {
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.hb-prefooter-content p,
.hb-footer-cta p,
.hb-footer-copy {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
}

.hb-prefooter-content p {
    color: #64748b;
    margin-bottom: 18px;
}

.hb-prefooter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hb-site-footer {
    margin-top: 18px;
    background-color: #041B4D;
    border-top: 4px solid #0ea5e9;
}

.hb-footer-contact .contact-item {
    max-width: 420px;
}

.hb-footer-cta {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
}

.hb-site-footer .row.g-4 {
    --bs-gutter-y: 1.5rem;
}

.hb-site-footer .footer-links li:last-child a {
    padding-bottom: 0;
}

.hb-site-footer .text-white-50,
.hb-site-footer .small {
    line-height: 1.7;
}

.hb-site-footer .border-top {
    margin-top: 22px !important;
    padding-top: 16px !important;
}

.hb-consult-modal {
    position: fixed;
    inset: 0;
    z-index: 1085;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.hb-consult-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.hb-consult-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 27, 77, 0.54);
    backdrop-filter: blur(6px);
}

.hb-consult-dialog {
    position: relative;
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100vh - 34px);
    overflow: auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 32px 70px rgba(4, 27, 77, 0.24);
}

.hb-consult-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 999px;
    background: #eef4fb;
    color: #041B4D;
    z-index: 2;
}

.hb-consult-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.hb-consult-aside {
    padding: 34px 28px;
    background: linear-gradient(160deg, #041B4D 0%, #0a4b86 58%, #0ea5e9 100%);
    color: #fff;
}

.hb-consult-eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hb-consult-aside h3 {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.25;
    font-weight: 800;
}

.hb-consult-aside p {
    color: rgba(255,255,255,0.84);
    line-height: 1.8;
    margin-bottom: 20px;
}

.hb-consult-points {
    display: grid;
    gap: 12px;
}

.hb-consult-points div {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.10);
}

.hb-consult-formwrap {
    padding: 34px 28px;
}

.hb-consult-form {
    display: grid;
    gap: 14px;
}

.hb-consult-form label {
    display: block;
    margin-bottom: 6px;
    color: #041B4D;
    font-size: 0.84rem;
    font-weight: 700;
}

.hb-consult-form input,
.hb-consult-form textarea {
    width: 100%;
    border: 1px solid #dce7f3;
    border-radius: 16px;
    padding: 13px 15px;
    color: #0f172a;
    font-size: 0.94rem;
    background: #f8fbff;
}

.hb-consult-form textarea {
    resize: vertical;
    min-height: 120px;
}

.hb-consult-submit {
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    font-weight: 800;
}

.hb-consult-note {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.6;
}

.hb-consult-success {
    text-align: center;
    padding: 26px 12px 8px;
}

.hb-consult-success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.hb-consult-success h4 {
    margin: 0 0 8px;
    color: #041B4D;
    font-weight: 800;
}

.hb-consult-success p {
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 18px;
}

@media (max-width: 991px) {
    .hb-prefooter-card {
        grid-template-columns: 1fr;
    }

    .hb-prefooter-media img {
        min-height: 240px;
        max-height: 320px;
    }

    .hb-home-hero-card img,
    .hb-surgery-hero-slider img {
        height: 360px;
    }

    .hb-hero-control {
        width: 42px;
        height: 42px;
        margin-inline: 10px;
    }
}

@media (max-width: 768px) {
    .hb-home-hero-card img,
    .hb-surgery-hero-slider img {
        height: 280px;
    }

    .hb-hero-control {
        width: 38px;
        height: 38px;
        margin-inline: 8px;
    }

    .why-choose-section .features-container {
        gap: 18px;
    }

    .why-choose-section .feature-card {
        min-height: auto;
    }

    .doctor-card .doc-img-wrapper img {
        height: 210px !important;
    }

    .hb-prefooter-content {
        padding: 24px 20px;
    }

    .hb-consult-layout {
        grid-template-columns: 1fr;
    }

    .hb-consult-aside,
    .hb-consult-formwrap {
        padding: 24px 20px;
    }

    .hb-consult-dialog {
        width: min(100vw - 18px, 920px);
        border-radius: 22px;
    }
}
