body.popupOpen {
    overflow: hidden;
}

.physicianPopup,
.popupBackdrop {
    display: none;
}

.popupBackdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
    backdrop-filter: blur(2px);
}

.popupBackdrop.active {
    opacity: 1;
    visibility: visible;
}

.physicianPopup {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    width: min(780px, calc(100% - 30px));
    max-height: calc(100vh - 40px);
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.popupInner {
    position: relative;
    width: 100%;
    min-height: 390px;
    max-height: calc(100vh - 40px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #0b3d5c;
}

.popupOverlay {
    display: none;
}

.popupDoctor {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 43%;
    z-index: 2;
    overflow: hidden;
    background: #eaf1f4;
    clip-path: polygon(0 0,
            82% 0,
            100% 50%,
            82% 100%,
            0 100%);
}

.popupDoctor img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center bottom;
}

.popupContent {
    position: relative;
    z-index: 3;
    width: 62%;
    margin-left: 38%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 55px 45px 45px 65px;
    box-sizing: border-box;
    text-align: left;
    color: #fff;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.popupContent::-webkit-scrollbar {
    width: 6px;
}

.popupContent::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

.popupContent::-webkit-scrollbar-thumb {
    background: #9bd438;
    border-radius: 10px;
}

.popupIntro {
    display: block;
    margin: 0 0 6px;
    color: #9bd438;
    font: 700 13px/18px var(--headingFont, Arial, sans-serif);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.popupContent h2 {
    margin: 0;
    color: #fff;
    font: 700 clamp(28px, 4vw, 35px)/1.1 var(--headingFont, Arial, sans-serif);
    letter-spacing: -0.5px;
    padding: 0;
}

.popupContent h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    margin: 18px 0 22px;
    background: #9bd438;
    border-radius: 5px;
}

.popupContent h3 {
    margin: 0 0 10px;
    color: #fff;
    font: 700 16px/22px var(--headingFont, Arial, sans-serif);
}

.popupContent p {
    margin: 0 0 28px;
    color: #fff;
    font: 400 15px/22px var(--siteFont, Arial, sans-serif);
    opacity: 0.95;
}

.popupBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 25px;
    border-radius: 5px;
    background: #9bd438;
    color: #fff;
    text-decoration: none;
    font: 700 15px/20px var(--headingFont, Arial, sans-serif);
    box-sizing: border-box;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.popupBtn:hover,
.textMain .popupBtn:hover {
    background: #b0e84c;
    text-decoration: none;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}

.popupClose {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 20;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 50%;
    color: #fff;
    font: 300 22px/28px Arial, sans-serif;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.popupClose:hover {
    background: #9bd438;
    color: #fff;
    transform: rotate(90deg);
}

.popupClose:focus-visible,
.popupBtn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Message bar */
.meesageBar {
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
    background: #fff1d5;
}

.messageIntra {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 6px 0px 6px 0px;
    box-sizing: border-box;
}

/* Heading */
.messageHead {
	position: relative;
	margin: 0 0 7px;
	padding-left: 56px;
	color: #0b3d5c;
	font: 600 23px/30px var(--headingFont);
}

/* Sleek notification icon */
.messageHead::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d69b22;
    border-radius: 50%;
    color: #fff;
    font: 700 27px/28px Arial, sans-serif;
    box-shadow: 0 2px 5px rgba(214, 155, 34, 0.2);
}

/* Message */
.messageIntra p {
	margin: 0;
	padding-left: 56px;
	color: #53616a;
	font: 400 15px/26px var(--siteFont,Arial,sans-serif);
}

/* Know More */
.messageIntra p a.knowMore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0b3d5c;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.messageIntra p a.knowMore::after {
    content: "→";
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.messageIntra p a.knowMore:hover {
    color: #a97510;
    border-color: #0b3d5c;
}

.messageIntra p a.knowMore:hover::after {
    transform: translateX(4px);
}

/* Close button */
.messageClose {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #718089;
    font: 400 21px/26px Arial, sans-serif;
    cursor: pointer;
    z-index: 5;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.messageClose:hover {
    background: #0b3d5c;
    color: #fff;
    transform: rotate(90deg);
}

.messageClose:focus-visible {
    outline: 2px solid #d69b22;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .meesageBar {
        padding: 10px 15px;
    }

    .messageIntra {
        padding: 6px 45px 6px 18px;
    }

    .messageHead {
        padding-left: 44px;
        font-size: 16px;
        line-height: 21px;
    }

    .messageHead::before {
        width: 32px;
        height: 32px;
        font-size: 24px;
        line-height: 30px;
    }

    .messageIntra p {
        padding-left: 44px;
        font-size: 14px;
        line-height: 21px;
    }
}

@media (max-width: 600px) {
    .physicianPopup {
        width: calc(100% - 30px);
        max-height: calc(100vh - 30px);
        border-radius: 20px;
    }

    /* Main popup */
    .popupInner {
        display: flex;
        flex-direction: column;
        min-height: auto;
        max-height: calc(100vh - 30px);
        overflow: hidden;
        background: #0b3d5c;
    }

    .popupDoctor {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        height: 260px;
        flex: 0 0 260px;
        background: #eaf1f4;
        clip-path: none;
        overflow: hidden;
    }

    /* Full image */
    .popupDoctor img {
        position: absolute;
        left: 50%;
        top: 0;
        width: 100%;
        height: 100%;
        transform: translateX(-50%);
        object-fit: contain;
        object-position: center bottom;
        display: block;
    }

    .popupContent {
        width: 100%;
        margin: 0;
        max-height: calc(100vh - 290px);
        overflow-y: auto;
        padding: 30px 30px 35px;
        box-sizing: border-box;
        text-align: center;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Scrollbar */
    .popupContent::-webkit-scrollbar {
        width: 5px;
    }

    .popupContent::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08);
    }

    .popupContent::-webkit-scrollbar-thumb {
        background: #9bd438;
        border-radius: 10px;
    }

    .popupIntro {
        margin-bottom: 5px;
        font-size: 11px;
        line-height: 16px;
        letter-spacing: 2px;
    }

    .popupContent h2 {
        font-size: 28px;
        line-height: 32px;
        letter-spacing: -0.3px;
    }

    .popupContent h2::after {
        width: 50px;
        height: 4px;
        margin: 14px auto 20px;
    }

    .popupContent h3 {
        margin: 0 0 12px;
        font-size: 14px;
        line-height: 20px;
    }

    .popupContent p {
        margin: 0 0 22px;
        font-size: 14px;
        line-height: 20px;
    }

    .popupBtn {
        width: 100%;
        min-height: 46px;
        padding: 0 15px;
        font-size: 14px;
    }

    .popupClose {
        top: 9px;
        right: 9px;
        width: 29px;
        height: 29px;
        font-size: 20px;
        line-height: 27px;
        background: rgba(0, 0, 0, 0.45);
    }

    .desktopOnly {
        display: none;
    }

    .meesageBar {
        padding: 8px 10px;
    }

    .messageIntra {
        padding: 8px 40px 8px 14px;
    }

    .messageHead {
        margin-bottom: 6px;
        padding-left: 38px;

        font-size: 15px;
        line-height: 21px;
    }

    .messageHead::before {
        width: 28px;
        height: 28px;

        font-size: 21px;
        line-height: 27px;
    }

    .messageIntra p {
        padding-left: 38px;

        font-size: 13px;
        line-height: 20px;
    }

    .messageIntra p a.knowMore {
        margin-left: 4px;
        gap: 5px;
        font-size: 13px;
    }

    .messageIntra p a.knowMore::after {
        font-size: 16px;
    }

    .messageClose {
        top: 6px;
        right: 6px;

        width: 26px;
        height: 26px;

        font-size: 19px;
        line-height: 24px;
    }
}

@media (max-width: 400px) {
    .physicianPopup {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 17px;
    }

    .popupInner {
        max-height: calc(100vh - 16px);
    }

    /* Doctor */
    .popupDoctor {
        height: 220px;
        flex-basis: 220px;
    }

    /* Content */
    .popupContent {
        max-height: calc(100vh - 236px);
        padding: 25px 20px 28px;
    }

    .popupIntro {
        font-size: 10px;
        line-height: 15px;
        letter-spacing: 1.7px;
    }

    .popupContent h2 {
        font-size: 24px;
        line-height: 28px;
    }

    .popupContent h3 {
        font-size: 13px;
        line-height: 19px;
    }

    .popupContent p {
        font-size: 13px;
        line-height: 19px;
        margin-bottom: 18px;
    }

    .popupBtn {
        min-height: 44px;
        font-size: 13px;
    }

    .popupClose {
        width: 27px;
        height: 27px;
        font-size: 18px;
        line-height: 25px;
    }

    .meesageBar {
        padding: 6px 8px;
    }

    .messageIntra {
        padding: 8px 36px 8px 12px;
    }

    .messageHead {
        padding-left: 35px;

        font-size: 14px;
        line-height: 20px;
    }

    .messageHead::before {
        width: 26px;
        height: 26px;

        font-size: 19px;
        line-height: 25px;
    }

    .messageIntra p {
        padding-left: 35px;

        font-size: 12px;
        line-height: 19px;
    }

    .messageClose {
        width: 24px;
        height: 24px;

        font-size: 18px;
        line-height: 22px;
    }
}

@media (max-width: 340px) {
    .popupDoctor {
        height: 200px;
        flex-basis: 200px;
    }

    .popupContent {
        max-height: calc(100vh - 216px);
        padding: 22px 16px 25px;
    }

    .popupContent h2 {
        font-size: 22px;
        line-height: 26px;
    }

    .popupContent h3 {
        font-size: 12px;
        line-height: 18px;
    }

    .popupContent p {
        font-size: 12px;
        line-height: 18px;
    }
}

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

    .popupBackdrop,
    .popupBtn,
    .popupClose {
        transition: none;
    }
}
