/* Shared popup styling extracted from original homepage for all pages. */
/*help botton*/
/* =========================================
   HOW CAN WE HELP - FLOATING BUTTON
========================================= */

.help-fab {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 9999;

    height: 62px;
    min-width: 270px;
    padding: 0 22px;

    background: #123650;
    color: #ffffff;

    border: none;
    border-radius: 999px;

    box-shadow: 0 12px 30px rgba(11, 34, 54, 0.24);

    font-family: inherit;
    font-size: 20px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.help-fab:hover {
    transform: translateY(-2px);
    background: #0d2c43;
    box-shadow: 0 16px 35px rgba(11, 34, 54, 0.30);
}


/* =========================================
   PLUS / CLOSE ICON
========================================= */

.help-fab .help-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    background: #31536d;
    color: #ffffff;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}


/* =========================================
   POPUP CONTAINER
========================================= */

.help-popup {
    position: fixed;

    right: 24px;
    bottom: 98px;

    width: 390px;
    max-width: calc(100vw - 48px);

    background: #ffffff;

    border: 1px solid #e1e5e8;
    border-radius: 24px;

    padding: 24px;

    box-shadow: 0 20px 50px rgba(11, 34, 54, 0.18);

    z-index: 9998;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px) scale(0.98);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}


/* SHOW POPUP */

.help-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}


/* =========================================
   POPUP TITLE
========================================= */

.help-popup h3 {
    margin: 0 0 5px;

    color: #102d43;

    font-family: inherit;
    font-size: 24px;
    font-weight: 500;

    line-height: 1.25;
}


/* SUBTITLE */

.help-popup .help-subtitle {
    margin: 0 0 20px;

    color: #6c7d89;

    font-size: 17px;
    font-weight: 400;

    line-height: 1.4;
}


/* =========================================
   HELP OPTION BUTTONS
========================================= */

.help-option {
    width: 100%;
    min-height: 58px;

    margin-bottom: 12px;
    padding: 0 18px;

    border: none;
    border-radius: 10px;

    background: #f7f5f1;
    color: #123650;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: inherit;
    font-size: 17px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        color 0.25s ease;
}


/* LAST BUTTON */

.help-option:last-child {
    margin-bottom: 0;
}


/* NORMAL BUTTON HOVER */

.help-option:hover {
    background: #eeeae3;
    transform: translateX(2px);
}


/* PRIMARY BUTTON */

.help-option.primary {
    background: #123650;
    color: #ffffff;
}

.help-option.primary:hover {
    background: #0d2c43;
}


/* ARROW */

.help-option .arrow {
    font-size: 21px;
    font-weight: 400;
    line-height: 1;

    transition: transform 0.25s ease;
}

.help-option:hover .arrow {
    transform: translateX(4px);
}


/* =========================================
   LAPTOP / SMALL DESKTOP
========================================= */

@media (max-width: 1200px) {

    .help-fab {
        right: 20px;
        bottom: 20px;

        height: 58px;
        min-width: 250px;

        padding: 0 19px;

        font-size: 18px;
    }

    .help-fab .help-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;

        font-size: 20px;
    }

    .help-popup {
        right: 20px;
        bottom: 90px;

        width: 360px;

        padding: 22px;
    }

    .help-popup h3 {
        font-size: 23px;
    }

    .help-popup .help-subtitle {
        font-size: 16px;
    }

    .help-option {
        min-height: 55px;
        font-size: 16px;
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {

    .help-fab {
        right: 16px;
        bottom: 16px;

        height: 54px;
        min-width: 220px;

        padding: 0 16px;

        font-size: 16px;
        gap: 8px;
    }

    .help-fab .help-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;

        font-size: 18px;
    }

    .help-popup {
        right: 16px;
        bottom: 82px;

        width: 340px;
        max-width: calc(100vw - 32px);

        padding: 20px;

        border-radius: 20px;
    }

    .help-popup h3 {
        font-size: 21px;
    }

    .help-popup .help-subtitle {
        margin-bottom: 17px;

        font-size: 15px;
    }

    .help-option {
        min-height: 52px;

        margin-bottom: 10px;
        padding: 0 15px;

        border-radius: 9px;

        font-size: 15px;
    }

    .help-option .arrow {
        font-size: 19px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .help-fab {
        right: 12px;
        bottom: 12px;

        height: 50px;
        min-width: 195px;

        padding: 0 14px;

        font-size: 15px;
    }

    .help-fab .help-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;

        font-size: 17px;
    }

    .help-popup {
        right: 12px;
        bottom: 73px;

        width: calc(100vw - 24px);
        max-height: calc(100vh - 100px);

        overflow-y: auto;

        padding: 18px;

        border-radius: 18px;
    }

    .help-popup h3 {
        font-size: 20px;
    }

    .help-popup .help-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .help-option {
        min-height: 50px;

        padding: 0 14px;

        font-size: 15px;
    }
}
/*help botton*/

/* Shared layout and help popup. Mobile-only overrides preserve desktop sections. */
html { -webkit-text-size-adjust: 100%; }
body .help-fab, body .help-popup, body .help-popup * { box-sizing: border-box; }
body .help-fab { z-index: 99999; }
body .help-popup { z-index: 99998; }
body .help-popup a.help-option {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 58px; padding: 12px 18px;
  text-decoration: none; cursor: pointer;
  color: #123650; background-color: #f7f5f1;
}
body .help-popup a.help-option.primary { color: #fff; background-color: #123650; }
body .help-popup a.help-option:hover, body .help-popup a.help-option:focus {
  color: #123650; background-color: #eeeae3; text-decoration: none;
}
body .help-popup a.help-option.primary:hover, body .help-popup a.help-option.primary:focus {
  color: #fff; background-color: #0d2c43;
}
body .help-popup:not(.active) { pointer-events: none; }
body .help-popup.active { pointer-events: auto; }
body .help-popup a.help-option:focus-visible, body .help-fab:focus-visible { outline: 3px solid #08a5af; outline-offset: 3px; }
@media (max-width: 991px) {
  /* Inner pages have several distinct templates; adjust layout only on narrow screens. */
  .template-two-medical-page, .template-nine-page, .dm-contact-page,
  .sc-page, .blog-wrapper, .blog-page { max-width: 100%; }
  .template-two-medical-page h1, .template-two-medical-page h2,
  .template-nine-page h1, .template-nine-page h2,
  .dm-contact-page h1, .dm-contact-page h2,
  .sc-page h1, .sc-page h2,
  .blog-wrapper h1, .blog-wrapper h2,
  .blog-page h1, .blog-page h2 {
    max-width: 100%; overflow-wrap: break-word; line-height: 1.25;
  }
  .template-two-medical-page p, .template-nine-page p,
  .dm-contact-page p, .sc-page p, .blog-wrapper p, .blog-page p {
    max-width: 100%; overflow-wrap: break-word;
  }
}
@media (max-width: 767px) {
  .template-two-medical-page .row-gap, .template-nine-page .dm3-facility-section,
  .template-nine-page .dm3-intro-section, .template-nine-page .dm3-journey-section,
  .template-nine-page .dm3-services-section {
    padding-top: 36px !important; padding-bottom: 36px !important;
  }
  .dm-contact-page { padding-top: 36px !important; padding-bottom: 28px !important; }
  .template-two-medical-page h2, .template-nine-page h2,
  .dm-contact-page h2, .sc-page h2 { font-size: clamp(23px, 6vw, 30px) !important; }
  .footer-wrapper .widget-title { line-height: 1.3; margin-bottom: 10px; }
  body .help-fab { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  body .help-popup { right: 12px; bottom: calc(90px + env(safe-area-inset-bottom));
    width: min(390px, calc(100vw - 24px)); max-width: calc(100vw - 24px); }
}
@media (max-width: 380px) {
  body .help-fab { min-width: 0; font-size: 15px; padding: 0 15px; height: 52px; }
  body .help-popup { padding: 18px; }
  body .help-popup h3 { font-size: 21px; }
  body .help-popup .help-subtitle { font-size: 14px; }
  body .help-popup a.help-option { font-size: 15px; min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  body .help-fab, body .help-popup, body .help-option { transition: none !important; }
}
