/* Clinic Appointment Booking & Clinic Marketing landing pages — visual styling
   matched against Figma file csg7pa7BvRoSRPIwBLSvL9 (booking: 2:1477/2:1756,
   marketing: 2:1994/2:2308). Desktop-first, 767px mobile breakpoint per the
   site convention. */

.clinic-page {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #212121;
    overflow-x: hidden;
    /* The site's header (.header_area) is position:absolute, top:0, so it
       overlays whatever comes right after it instead of pushing it down.
       Reserve its real height (measured 96px, desktop and mobile alike)
       so the hero's H1/subhead aren't covered. */
    padding-top: 96px;
}

.clinic-page[dir="rtl"] {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

.clinic-section {
    padding: 64px 89px;
}

.clinic-section--tight-top {
    padding-top: 72px;
    padding-bottom: 88px;
}

.clinic-h2 {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.4;
    color: #212121;
    margin-bottom: 32px;
}

.clinic-body {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: #5f6b7a;
}

/* ---------- Hero ---------- */

.clinic-hero {
    display: flex;
    align-items: center;
    gap: 56px;
}

.clinic-hero--navy {
    background: linear-gradient(151.7deg, #0b1b33 0%, #14315c 71.4%);
    color: #fff;
}

.clinic-hero--sky {
    background: linear-gradient(180deg, #c0e1ff 0%, #ffffff 100%);
}

.clinic-hero__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.clinic-hero__h1 {
    font-weight: 700;
    font-size: 44px;
    line-height: 1.4;
    color: #212121;
    width: 100%;
}

.clinic-hero--navy .clinic-hero__h1 {
    color: #ffffff;
    font-size: 40px;
}

.clinic-hero__subhead {
    font-weight: 400;
    font-size: 19px;
    line-height: 1.75;
    color: #5f6b7a;
    width: 100%;
}

.clinic-hero--navy .clinic-hero__subhead {
    color: #c9d8ec;
}

.clinic-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.clinic-btn-primary {
    background: #0994fd;
    border: none;
    border-radius: 10px;
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity .15s ease;
}

.clinic-btn-primary:hover {
    opacity: .9;
    color: #fff;
}

.clinic-btn-secondary {
    background: #fff;
    border: 1.5px solid #0994fd;
    border-radius: 10px;
    color: #0994fd !important;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background .15s ease;
}

.clinic-btn-secondary:hover {
    background: #f4faff;
    color: #0994fd;
}

.clinic-hero__visual {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

/* WhatsApp phone mockup (coded, no raster asset per Figma) */
.clinic-phone {
    width: 280px;
    background: #0f172a;
    border-radius: 42px;
    padding: 10px;
    box-shadow: 0 24px 48px rgba(8, 51, 115, .22);
}

.clinic-phone__screen {
    background: #ece5dd;
    border-radius: 34px;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.clinic-phone__header {
    background: #075e54;
    color: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}

.clinic-phone__title {
    font-weight: 600;
    font-size: 12px;
    color: #fff;
}

.clinic-phone__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: #0994fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.clinic-phone__sub {
    font-size: 9px;
    color: #cfe9e4;
    font-weight: 400;
}

.clinic-phone__header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.clinic-phone__call-icon {
    color: #fff;
    font-size: 14px;
    opacity: .9;
}

.clinic-bubble__label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
}

/* Voice-message bubble: play button + waveform + duration */
.clinic-voice-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
}

.clinic-voice-bubble__play {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00a884;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 9px;
}

.clinic-voice-bubble__wave {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    height: 16px;
}

.clinic-voice-bubble__wave span {
    display: inline-block;
    width: 2px;
    background: #4a9b8e;
    border-radius: 1px;
}

.clinic-voice-bubble__duration {
    font-size: 8.5px;
    color: #4a7a70;
    flex-shrink: 0;
}

.clinic-phone__body {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.clinic-phone__divider {
    align-self: center;
    background: rgba(255, 255, 255, .6);
    color: #6b7c85;
    font-size: 9px;
    font-weight: 500;
    border-radius: 10px;
    padding: 2px 10px;
    margin-bottom: 2px;
}

.clinic-bubble {
    max-width: 85%;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 10.5px;
    line-height: 1.4;
    color: #212121;
    background: #fff;
    align-self: flex-start;
}

.clinic-bubble--out {
    background: #dcf8c6;
    align-self: flex-end;
}

.clinic-bubble__label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #0994fd;
    font-weight: 600;
    font-size: 9.5px;
    margin-bottom: 3px;
}

.clinic-bubble__time {
    font-size: 7.5px;
    color: #8696a0;
    display: block;
    margin-top: 3px;
}

.clinic-pill {
    display: inline-block;
    background: #eaf5ff;
    color: #0994fd;
    font-weight: 600;
    font-size: 8.5px;
    border-radius: 20px;
    padding: 3px 10px;
    align-self: flex-start;
}

.clinic-phone__input {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clinic-phone__input-field {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 9.5px;
    color: #94a3b8;
}

.clinic-phone__mic {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #00a884;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* Campaign results stat card (marketing hero) */
.clinic-stat-card {
    width: 280px;
    min-height: 420px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(8, 51, 115, .14);
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: #212121;
    align-self: flex-end;
    margin-top: -40px;
}

.clinic-stat-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.clinic-stat-card__header > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clinic-stat-card__title {
    font-weight: 700;
    font-size: 15px;
}

.clinic-stat-card__subtitle {
    font-weight: 400;
    font-size: 10.5px;
    color: #5f6b7a;
}

.clinic-stat-card__badge {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    font-weight: 600;
    font-size: 10px;
    border-radius: 20px;
    padding: 3px 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.clinic-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.clinic-stat-tile {
    background: #f4faff;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clinic-stat-tile__label {
    font-size: 10.5px;
    color: #5f6b7a;
}

.clinic-stat-tile__value {
    font-family: 'Noto Sans Arabic', 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #212121;
}

.clinic-stat-tile__value--accent {
    color: #0994fd;
}

.clinic-stat-chart__title {
    font-weight: 600;
    font-size: 11px;
    color: #212121;
    margin-bottom: 2px;
}

.clinic-stat-chart {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 90px;
}

.clinic-stat-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.clinic-stat-bar {
    width: 100%;
    max-width: 34px;
    background: #bfe0ff;
    border-radius: 6px 6px 0 0;
}

.clinic-stat-bar--accent {
    background: #0994fd;
}

.clinic-stat-bar-label {
    font-size: 8.5px;
    color: #5f6b7a;
}

/* ---------- Problem / pain-points cards ---------- */

.clinic-panel {
    background: linear-gradient(180deg, #c0e1ff 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 40px;
}

.clinic-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.clinic-card {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(10, 51, 102, .08);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clinic-card--problem {
    border-radius: 12px;
    border-top: 4px solid #ef4444;
    box-shadow: 0 6px 20px rgba(153, 26, 26, .06);
}

.clinic-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #eaf5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #0994fd;
}

.clinic-icon-box--circle {
    border-radius: 40px;
}

.clinic-icon-box--danger {
    background: #fee2e2;
    color: #ef4444;
}

.clinic-card__title {
    font-weight: 700;
    font-size: 22px;
    color: #212121;
}

.clinic-card__body {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: #5f6b7a;
}

/* ---------- Steps ---------- */

.clinic-step-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0994fd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans Arabic', 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.clinic-hero--navy ~ .clinic-section .clinic-step-badge,
.clinic-page--marketing .clinic-step-badge {
    background: #0b1b33;
}

.clinic-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.clinic-step-icon {
    font-size: 24px;
    color: #0994fd;
}

.clinic-card--bordered {
    background: #f4faff;
    border: 1px solid #e3ecf5;
    border-radius: 20px;
    box-shadow: none;
}

/* ---------- Specialties / chips ---------- */

.clinic-chip-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.clinic-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e3ecf5;
    border-radius: 40px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 16px;
    color: #212121;
}

.clinic-chip--filled {
    background: #0994fd;
    border: none;
    color: #fff;
}

.clinic-specialty-panel {
    background: #f4faff;
    border: 1px solid #e3ecf5;
    border-radius: 24px;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.clinic-specialty-panel--outlined {
    background: #fff;
    border: 1.5px solid #0994fd;
}

/* ---------- FAQ / accordion ---------- */

.clinic-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clinic-faq-item {
    background: #fff;
    border: 1px solid #e3ecf5;
    border-radius: 16px;
    padding: 24px 28px;
}

.clinic-faq-item--plain {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e3ecf5;
    padding: 24px 0;
}

.clinic-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    font-size: 19px;
    line-height: 1.5;
    color: #0b1b33;
    cursor: pointer;
}

/* The site's global `* { font-weight: 400 }` reset directly matches this nested
   span and wins over inheriting .clinic-faq-question's 600, so it needs its own
   explicit weight/size/color rather than relying on the parent. */
.clinic-faq-question > span {
    font-weight: 600;
    font-size: 19px;
    color: #0b1b33;
}

.clinic-faq-chevron {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf5ff;
    color: #0994fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.clinic-faq-item.is-open .clinic-faq-chevron {
    transform: rotate(180deg);
}

.clinic-faq-answer {
    margin-top: 10px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    color: #5f6b7a;
}

/* ---------- Closing band ---------- */

.clinic-closing-band {
    border-radius: 28px;
    padding: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.clinic-closing-band--blue {
    background: linear-gradient(90deg, #0994fd 0%, #056bd9 100%);
}

.clinic-closing-band--navy {
    background: linear-gradient(167.8deg, #0b1b33 0%, #14315c 71.4%);
}

.clinic-closing-band__h2 {
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    color: #fff;
}

.clinic-closing-band__subtext {
    font-weight: 400;
    font-size: 19px;
    line-height: 1.7;
    color: #e3f1ff;
}

.clinic-closing-band .clinic-btn-primary {
    background: #fff;
    color: #0994fd !important;
}

/* Marketing's closing band is navy, not the booking page's blue — the CTA there keeps the
   default blue-bg/white-text look instead of inverting (per Figma + the user's reference image). */
.clinic-closing-band--navy .clinic-btn-primary {
    background: #0994fd;
    color: #fff !important;
}

/* Booking's closing "CTA banner" is left-aligned in Figma (headline, subtext, button all starting
   from the left edge), unlike marketing's centered closing band. */
.clinic-closing-band--blue {
    text-align: start;
    align-items: flex-start;
}

/* ---------- Responsive (767px breakpoint, site convention) ---------- */

@media (max-width: 767px) {
    .clinic-section {
        padding: 36px 24px;
    }

    .clinic-hero {
        flex-direction: column;
        gap: 20px;
    }

    .clinic-hero__h1 {
        font-size: 26px;
        line-height: 1.45;
    }

    .clinic-hero--navy .clinic-hero__h1 {
        font-size: 24px;
    }

    .clinic-hero__subhead {
        font-size: 15px;
    }

    .clinic-hero__ctas .clinic-btn-primary,
    .clinic-hero__ctas .clinic-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }

    .clinic-phone {
        width: 260px;
    }

    .clinic-hero__visual {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 16px;
    }

    .clinic-stat-card {
        width: 100%;
        max-width: 320px;
        align-self: center;
        margin-top: 0;
    }

    .clinic-h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .clinic-cards {
        flex-direction: column;
    }

    .clinic-card {
        padding: 24px 20px;
    }

    .clinic-panel {
        padding: 20px 16px;
    }

    .clinic-specialty-panel {
        padding: 24px 20px;
    }

    .clinic-chip-row {
        flex-direction: column;
        align-items: stretch;
    }

    .clinic-closing-band {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .clinic-closing-band__h2 {
        font-size: 24px;
    }

    .clinic-closing-band .clinic-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Video modal (was entirely unstyled — root cause of the
   "broken iframe" report: the frame-wrap collapsed to 0 height) ---------- */

.clinic-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.clinic-video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 27, 51, .75);
}

.clinic-video-modal__dialog {
    position: relative;
    max-width: 900px;
    width: 90vw;
    margin: 5vh auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.clinic-video-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.clinic-video-modal__frame-wrap {
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio without the aspect-ratio property, for wider browser support */
    padding-top: 56.25%;
}

.clinic-video-modal__frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767px) {
    .clinic-video-modal__dialog {
        width: 94vw;
        margin: 10vh auto;
    }
}

/* ---------- FAQ expand/collapse ---------- */

.clinic-faq-answer {
    overflow: hidden;
    max-height: 500px;
    transition: max-height .25s ease, opacity .2s ease, margin-top .2s ease;
}

.clinic-faq-item:not(.is-open) .clinic-faq-answer {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ---------- Contact Us popup (was entirely unstyled — the reported
   "not working" bug: no overlay/dialog positioning at all, so the markup
   rendered as plain unstyled inline content instead of a modal) ---------- */

.clinic-contact-popup {
    position: fixed;
    inset: 0;
    z-index: 1100;
}

.clinic-contact-popup:not(.is-open) {
    display: none;
}

.clinic-contact-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 27, 51, .6);
    opacity: 0;
    transition: opacity .25s ease;
}

.clinic-contact-popup.is-open .clinic-contact-popup__overlay {
    opacity: 1;
}

.clinic-contact-popup__dialog {
    position: relative;
    max-width: 480px;
    width: 90vw;
    margin: 5vh auto;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 30px 70px rgba(8, 51, 115, .3);
    /* Bouncy, smooth entrance: overshoot easing (a spring-like "backOut" curve)
       on transform, so the dialog pops in and settles rather than just fading. */
    transform: scale(.82) translateY(28px);
    opacity: 0;
    transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease;
}

.clinic-contact-popup.is-open .clinic-contact-popup__dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.clinic-contact-popup__dialog h3 {
    font-weight: 700;
    font-size: 22px;
    color: #212121;
    margin: 0 0 10px;
}

.clinic-contact-popup__dialog > p {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #5f6b7a;
    margin: 0 0 20px;
}

.clinic-contact-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f4faff;
    color: #5f6b7a;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.clinic-contact-popup[dir="rtl"] .clinic-contact-popup__close {
    right: auto;
    left: 14px;
}

.clinic-contact-popup__dialog label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #212121;
    margin: 14px 0 6px;
}

.clinic-contact-popup__dialog input[type="text"],
.clinic-contact-popup__dialog input[type="tel"],
.clinic-contact-popup__dialog textarea {
    width: 100%;
    border: 1px solid #e3ecf5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #212121;
    background: #f4faff;
    transition: border-color .15s ease;
}

.clinic-contact-popup__dialog input:focus,
.clinic-contact-popup__dialog textarea:focus {
    outline: none;
    border-color: #0994fd;
    background: #fff;
}

.clinic-contact-popup__dialog textarea {
    min-height: 72px;
    resize: vertical;
}

.clinic-contact-popup__dialog button#clinic_contact_submit {
    width: 100%;
    justify-content: center;
    margin-top: 22px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.clinic-contact-popup__dialog #clinic_contact_whatsapp {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #00a884;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.clinic-contact-popup__dialog #clinic_contact_whatsapp:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .clinic-contact-popup__dialog {
        width: 94vw;
        padding: 28px 22px;
        margin: 4vh auto;
    }
}
