/* ==========================================================================
   XlabMW — Appointments listing + call request
   ========================================================================== */

.xap,
.xap-call-banner,
.xap-call-btn {
    --xap-accent: var(--main-color-one, #6c4dd4);
    --xap-accent-2: var(--main-color-two, #5580ff);
    --xap-ink: #11131a;
    --xap-muted: #6b7288;
    --xap-line: #eceff5;
    --xap-ease: cubic-bezier(.22, 1, .36, 1);
}

.xap {
    background: #f6f7fb;
    padding-bottom: clamp(64px, 8vw, 110px);
}

.xap-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background-color: #0c1220;
    background-image: var(--xap-hero-image);
    background-size: cover;
    background-position: 68% center;
}

.xap-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8, 14, 28, .82) 0%, rgba(8, 14, 28, .52) 48%, rgba(8, 14, 28, .28) 100%),
        linear-gradient(180deg, rgba(8, 14, 28, .2), rgba(8, 14, 28, .46));
}

.xap-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .7fr);
    gap: 32px;
    align-items: end;
    min-height: 460px;
    padding: 168px 0 108px;
}

.xap-hero__eyebrow {
    margin: 0 0 14px;
    color: #c4b4ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
    line-height: 1.4;
    text-transform: uppercase;
}

.xap-hero__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.xap-hero__lead {
    max-width: 560px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
    line-height: 1.65;
}

.xap-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.xap-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 600;
}

.xap-hero__meta i {
    color: #c4b4ff;
}

.xap-hero__panel {
    justify-self: end;
    width: min(100%, 360px);
    padding: 28px 26px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    background: rgba(12, 18, 34, .55);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
}

.xap-hero__panel-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 16px;
    background: var(--xap-accent);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 12px 24px rgba(108, 77, 212, .35);
}

.xap-hero__panel h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.xap-hero__panel p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.6;
}

button.xap-call-btn,
.xap-call-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    margin: 0;
    padding: 10px 12px 10px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--xap-accent);
    background-color: var(--xap-accent);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .2s var(--xap-ease), transform .2s var(--xap-ease), box-shadow .2s var(--xap-ease);
}

.xap-call-btn:hover,
.xap-call-btn:focus-visible {
    background: var(--xap-accent-2);
    color: #fff;
    outline: none;
    box-shadow: 0 12px 24px rgba(85, 128, 255, .28);
}

.xap-call-btn i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--xap-accent);
    font-size: 13px;
}

.xap-call-btn--block,
.xap-book-btn {
    width: 100%;
    justify-content: space-between;
}

a.xap-book-btn,
.xap-book-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 12px 10px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--xap-accent);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s var(--xap-ease), box-shadow .2s var(--xap-ease);
}

.xap-book-btn:hover,
.xap-book-btn:focus-visible {
    background: var(--xap-accent-2);
    color: #fff;
    outline: none;
    box-shadow: 0 12px 24px rgba(85, 128, 255, .28);
}

.xap-book-btn i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--xap-accent);
    font-size: 13px;
}

button.xap-call-btn.xap-call-btn--alt,
.xap-call-btn--alt {
    background: #f4f1ff;
    background-color: #f4f1ff;
    color: var(--xap-accent);
    box-shadow: none;
}

.xap-call-btn--alt:hover,
.xap-call-btn--alt:focus-visible {
    background: var(--xap-accent);
    background-color: var(--xap-accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(108, 77, 212, .22);
}

.xap-call-btn--alt i {
    background: #fff;
    color: var(--xap-accent);
}

.xap-toolbar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: -42px;
    margin-bottom: 42px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(17, 19, 26, .06);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(17, 19, 26, .1);
}

.xap-filters {
    display: flex;
    flex: 1 1 calc(100% - 420px);
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.xap-chip {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: transparent;
    color: #4b5568;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s var(--xap-ease), color .2s var(--xap-ease);
}

.xap-chip:hover,
.xap-chip:focus-visible {
    background: #f4f1ff;
    color: var(--xap-accent);
    outline: none;
}

.xap-chip.is-active {
    background: var(--xap-accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(108, 77, 212, .28);
}

.xap-toolbar-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.xap-search,
.xap-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a0b4;
}

.xap-search {
    min-width: 180px;
    padding: 0 4px 0 12px;
}

.xap-search input,
.xap-sort select {
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--xap-ink);
    font-size: 14px;
    outline: none;
}

.xap-search input {
    width: 170px;
}

.xap-search button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f4f1ff;
    color: var(--xap-accent);
}

.xap-sort select {
    max-width: 150px;
    padding-right: 8px;
}

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

.xap-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 19, 26, .05);
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(17, 19, 26, .06);
    transition: transform .35s var(--xap-ease), box-shadow .35s var(--xap-ease);
}

.xap-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(17, 19, 26, .12);
}

.xap-card__media {
    position: relative;
    display: block;
    height: 198px;
    overflow: hidden;
    background: #dfe3ee;
}

.xap-card__media img,
.xap-card__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--xap-ease);
}

.xap-card:hover .xap-card__media img {
    transform: scale(1.05);
}

.xap-card__fallback {
    background:
        radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--xap-accent) 45%, #fff), transparent 42%),
        linear-gradient(160deg, #1d2233, #11131a);
}

.xap-card__cat {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--xap-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.xap-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 24px 24px 22px;
}

.xap-card__designation {
    color: var(--xap-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.xap-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.25;
}

.xap-card__title a {
    color: var(--xap-ink);
}

.xap-card__title a:hover {
    color: var(--xap-accent);
}

.xap-card__location,
.xap-card__excerpt {
    margin: 0;
    color: var(--xap-muted);
    font-size: 15px;
    line-height: 1.6;
}

.xap-card__location i {
    margin-right: 6px;
    color: var(--xap-accent);
}

.xap-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 8px;
}

.xap-card__pills span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f4f1ff;
    color: #4b5568;
    font-size: 12px;
    font-weight: 700;
}

.xap-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.xap-card__more {
    color: var(--xap-muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.xap-card__more:hover {
    color: var(--xap-accent);
}

.xap-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 48px 24px;
    border-radius: 24px;
    background: #fff;
    color: var(--xap-muted);
    font-size: 16px;
    text-align: center;
}

.xap-pager {
    margin-top: 36px;
    text-align: center;
}

.xap-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 56px;
    padding: 42px 40px;
    border-radius: 28px;
    color: #fff;
    background: #081428 url("../img/xlab/support-calls.webp") 70% center / cover no-repeat;
}

.xap-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(8, 16, 36, .82), rgba(8, 16, 36, .42) 70%, rgba(8, 16, 36, .28));
}

.xap-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.xap-cta h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.xap-cta p {
    margin: 0;
    max-width: 520px;
    color: rgba(226, 234, 248, .84);
}

.xap-call-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 28px;
    padding: 22px 24px;
    border: 1px solid #e6eaf2;
    border-radius: 18px;
    background: #f8f7ff;
}

.xap-call-banner h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: var(--xap-ink);
}

.xap-call-banner p {
    margin: 0;
    color: var(--xap-muted);
    font-size: 15px;
}

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

@media (max-width: 1199px) {
    .xap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .xap-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 148px 0 96px;
    }

    .xap-hero__panel {
        justify-self: stretch;
        width: auto;
    }

    .xap-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }

    .xap-filters,
    .xap-toolbar-tools {
        flex: 1 1 auto;
        width: 100%;
        margin-left: 0;
    }

    .xap-search {
        flex: 1;
        min-width: 0;
    }

    .xap-search input {
        width: 100%;
    }

    .xap-cta__inner,
    .xap-call-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .xap-hero__title {
        font-size: 34px;
    }

    .xap-hero__lead {
        font-size: 16px;
    }

    .xap-grid {
        grid-template-columns: 1fr;
    }

    .xap-toolbar {
        margin-top: -28px;
    }

    .xap-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .xap-card__more {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .xap-card,
    .xap-card__media img,
    .xap-chip,
    .xap-call-btn {
        transition: none;
    }
}

.appointment-details-item .bottom-part .nav-tabs a.nav-link.active,
.appointment-details-item .bottom-part .nav-tabs a.nav-link.active:hover,
.appointment-details-item .bottom-part .nav-tabs a.nav-link.active:focus,
.appointment-details-item .bottom-part .nav-tabs a.nav-link.active:focus-visible,
.appointment-details-item .bottom-part .nav-tabs a.nav-link.active:active {
    background-color: var(--main-color-one, #6c4dd4) !important;
    color: #fff !important;
}

.appointment-details-item .bottom-part .nav-tabs a.nav-link.active:before,
.appointment-details-item .bottom-part .nav-tabs a.nav-link.active:after {
    content: none !important;
    display: none !important;
}
