﻿
.medical-care-page {
    --mc-red: #bf1e2e;
    --mc-red-dark: #931724;
    --mc-ink: #1d2f42;
    --mc-soft: #f4f7fa;
    --mc-line: rgba(29, 47, 66, 0.12);
    margin-top: clamp(1.2rem, 2.8vw, 2.4rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    color: var(--mc-ink);
}

.medical-care-page h2,
.medical-care-page h3 {
    margin: 0;
    color: #12283d;
}

.medical-care-page p {
    color: #32485f;
}

.medical-care-page ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 1.2rem;
}

.medical-care-page ul ul {
    list-style-type: circle;
    margin-top: 0.35rem;
    padding-left: 1.2rem;
}

.mc-intro-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--mc-line);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(17, 40, 62, 0.08);
    padding: clamp(1rem, 2.6vw, 2rem);
}

.mc-intro-card h2 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin-bottom: 0.65rem;
}

.mc-intro-card p {
    margin-bottom: 1rem;
}

.mc-intro-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.mc-btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, filter 0.18s ease;
}

.mc-btn:hover,
.mc-btn:focus-visible {
    transform: translateY(-1px);
}

.mc-btn-primary {
    background-color: var(--mc-red);
    background: linear-gradient(135deg, var(--mc-red) 0%, var(--mc-red-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    padding: 0.6rem 1.1rem;
}

.mc-btn-primary:hover,
.mc-btn-primary:focus-visible {
    background-color: var(--mc-red);
    background: linear-gradient(135deg, var(--mc-red) 0%, var(--mc-red-dark) 100%);
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.mc-location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.mc-location-links a {
    border: 1px solid rgba(191, 30, 46, 0.3);
    border-radius: 999px;
    padding: 0.24rem 0.65rem;
    font-size: 0.88rem;
    color: var(--mc-red);
    text-decoration: none;
    background: rgba(191, 30, 46, 0.06);
}

.mc-location-links a:hover,
.mc-location-links a:focus-visible {
    background: rgba(191, 30, 46, 0.12);
}

.mc-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.9rem, 2.4vw, 1.6rem);
    margin-top: clamp(1rem, 2.2vw, 1.6rem);
    align-items: stretch;
}

.mc-split-reverse {
    grid-template-columns: 1fr 1fr;
}

.mc-prevention-layout {
    --mc-prevention-height: 740px;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
}

.mc-card-stack {
    display: grid;
    gap: clamp(0.75rem, 1.8vw, 1.15rem);
}

.mc-prevention-layout .mc-card-stack {
    grid-template-rows: minmax(0, 3fr) minmax(0, 2fr);
    height: var(--mc-prevention-height);
}

.mc-prevention-layout .mc-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mc-card {
    border-radius: 18px;
    padding: clamp(1rem, 2.2vw, 1.6rem);
}

.mc-card-red {
    background: linear-gradient(180deg, #cf2435 0%, #ad1f2e 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(191, 30, 46, 0.27);
}

.mc-card-red h2,
.mc-card-red p,
.mc-card-red li,
.mc-card-red h3 {
    color: #fff;
}

.mc-card-red h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    margin-bottom: 0.65rem;
}

.mc-card-red ul {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}

.mc-card-red li {
    margin-bottom: 0.45rem;
    line-height: 1.45;
}

.mc-card-links {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.mc-btn-light,
.mc-btn-light-outline {
    text-align: center;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font-weight: 700;
    margin: 2rem 4rem;
}

.mc-btn-light {
    width: fit-content;
    place-self: anchor-center;
    background: #fff;
    color: var(--mc-red-dark);
}

.mc-btn-pill {
    border-radius: 16px;
    padding: 0.5rem 2.2rem;
}

.mc-btn-light:hover,
.mc-btn-light:focus-visible {
    background: #f5f8fb;
    color: var(--mc-red-dark);
}

.mc-btn-light-outline {
    border: 2px solid rgba(255, 255, 255, 0.75);
    color: #fff;
    background: transparent;
}

.mc-btn-light-outline:hover,
.mc-btn-light-outline:focus-visible {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mc-small-note {
    margin-bottom: 0;
    font-size: 0.93rem;
    opacity: 0.95;
}

.mc-image-panel {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--mc-line);
    box-shadow: 0 12px 24px rgba(17, 40, 62, 0.11);
    background: #eff3f8;
    min-height: 260px;
}

.mc-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-image-panel-tall {
    min-height: 100%;
}

.mc-prevention-layout .mc-image-panel {
    height: var(--mc-prevention-height);
    min-height: 0;
}

.mc-copy-block {
    margin-top: clamp(1.1rem, 2.2vw, 1.75rem);
}

.mc-provider-directory {
    margin-top: clamp(1.2rem, 2.2vw, 1.9rem);
}

.mc-provider-directory__details {
    display: block;
}

.mc-provider-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1rem, 2.2vw, 1.5rem);
    align-items: center;
    padding: clamp(1.25rem, 2.4vw, 1.8rem);
    border: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, #cf2435 0%, #ad1f2e 100%);
    color: #fff;
    box-shadow: 0 18px 34px rgba(191, 30, 46, 0.24);
    text-align: left;
    cursor: pointer;
    list-style: none;
}

.mc-provider-toggle:hover,
.mc-provider-toggle:focus-visible {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.mc-provider-toggle::-webkit-details-marker {
    display: none;
}

.mc-provider-toggle::marker {
    display: none;
    content: "";
}

.mc-provider-toggle__icon {
    width: clamp(54px, 7vw, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-provider-toggle__icon img {
    width: 100%;
    height: auto;
    display: block;
    filter: none;
}

.mc-provider-toggle__content h2,
.mc-provider-toggle__content p {
    color: #fff;
}

.mc-provider-toggle__content {
    width: 100%;
}

.mc-provider-toggle__title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.45rem;
}

.mc-provider-toggle__title-row h2 {
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.02;
}

.mc-provider-toggle__content p {
    margin: 0;
    font-size: clamp(0.98rem, 1.3vw, 1.12rem);
    line-height: 1.6;
    font-weight: 600;
}

.mc-provider-toggle__arrow {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #fff;
    color: #b71d11;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(77, 7, 1, 0.18);
}

.mc-provider-toggle__arrow-glyph {
    display: block;
    width: 16px;
    height: 16px;
    border-top: 4px solid currentColor;
    border-right: 4px solid currentColor;
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.24s ease;
}

.mc-provider-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease;
    margin-top: 0;
}

.mc-provider-directory__details[open] .mc-provider-panel {
    max-height: 960px;
    opacity: 1;
    margin-top: 0.85rem;
}

.mc-provider-directory__details[open] .mc-provider-toggle__arrow-glyph {
    transform: rotate(135deg);
}

.mc-provider-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 0.85rem;
    padding: 0.35rem 0 0;
    align-items: flex-start;
}

.mc-provider-option {
    display: contents;
}

.mc-provider-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mc-provider-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #23272d;
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    font-weight: 800;
    line-height: 1;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    order: 1;
}

.mc-provider-tab:hover,
.mc-provider-tab:focus-visible {
    background: rgba(18, 40, 61, 0.08);
    color: #111;
}

.mc-provider-tab-input:checked + .mc-provider-tab {
    background: #050505;
    color: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.mc-provider-result-panel {
    display: none;
    order: 2;
    flex: 0 0 100%;
    margin-top: 0.15rem;
}

.mc-provider-tab-input:checked + .mc-provider-tab + .mc-provider-result-panel {
    display: block;
}

.mc-provider-list {
    display: grid;
    gap: 0.65rem;
}

.mc-provider-entry {
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(29, 47, 66, 0.12);
    border-radius: 14px;
    background: #fff;
    color: #173149;
    font-weight: 700;
    line-height: 1.45;
    box-shadow: 0 8px 18px rgba(17, 40, 62, 0.06);
}

.mc-provider-placeholder {
    margin: 0;
    color: #53667a;
    line-height: 1.6;
}

.mc-navigator-card {
    margin-top: 1.25rem;
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--mc-line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(17, 40, 62, 0.08);
}

.mc-navigator-card h3 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.mc-navigator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.mc-navigator-item {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(29, 47, 66, 0.12);
}

.mc-navigator-item p {
    margin: 0.3rem 0 0;
}

.mc-copy-block h2 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
}

.mc-copy-block p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.mc-wide-image {
    margin-top: clamp(1rem, 2vw, 1.5rem);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--mc-line);
    box-shadow: 0 12px 24px rgba(17, 40, 62, 0.1);
    min-height: 220px;
}

.mc-wide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-testing-block {
    margin-top: clamp(1rem, 2.2vw, 1.7rem);
    padding: clamp(1rem, 2vw, 1.6rem);
    border-radius: 18px;
    border: 1px solid var(--mc-line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(17, 40, 62, 0.08);
}

.mc-testing-block h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    margin-bottom: 0.35rem;
}

.mc-testing-lead {
    margin-bottom: 0.9rem;
}

.mc-testing-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.7rem, 2vw, 1.2rem);
    margin-bottom: 1rem;
}

.mc-testing-option {
    text-align: center;
}

.mc-option-image {
    position: relative;
    width: min(270px, 100%);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0 auto 0.55rem;
}

.mc-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-option-image span {
    position: absolute;
    inset: auto auto 0px 0px;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(20, 33, 47, 0.3);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 8.1rem;
}

.mc-testing-option h3 {
    font-size: 1rem;
    margin: 0;
}

.mc-testing-details {
    border-top: 1px solid var(--mc-line);
    padding-top: 0.9rem;
}

.mc-testing-details p {
    margin-bottom: 0.65rem;
    line-height: 1.6;
}

.mc-bottom-cta {
    margin-top: clamp(1rem, 2vw, 1.5rem);
    text-align: center;
}

.mc-bottom-cta .mc-btn {
    max-width: min(100%, 780px);
    white-space: normal;
    line-height: 1.35;
}

.mc-fade {
    opacity: 0;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.mc-fade-left {
    transform: translateX(-36px);
}

.mc-fade-right {
    transform: translateX(36px);
}

.mc-fade-up {
    transform: translateY(26px);
}

.mc-fade.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.mc-rapid-test{
    background: #efefef;
    padding: 1.7rem 2.8rem;
    border-radius: 1.5rem;
}

@media (max-width: 991.98px) {
    .mc-split, .mc-split-reverse {
        grid-template-columns: 1fr;
    }

    .mc-prevention-layout .mc-card-stack {
        grid-template-rows: none;
        height: auto;
    }

    .mc-prevention-layout .mc-card {
        justify-content: flex-start;
        overflow-y: visible;
    }

    .mc-prevention-layout .mc-image-panel {
        height: auto;
        min-height: 240px;
    }

    .mc-testing-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mc-image-panel {
        min-height: 240px;
    }

    .mc-provider-toggle {
        grid-template-columns: 1fr;
    }

    .mc-provider-toggle__icon {
        width: 58px;
    }

    .mc-navigator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}
@media (max-width: 1399.98px) {
    .mc-btn#prep-test-btn {
        font-size: 85%;
    }
}

@media (max-width: 1199.98px) {
    .mc-btn#prep-test-btn {
        font-size: 78%;
    }
}

@media (max-width: 767.98px) {
    .mc-intro-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mc-intro-actions .mc-btn,
    .mc-bottom-cta .mc-btn {
        width: 100%;
    }

    .mc-testing-options {
        grid-template-columns: 1fr;
    }

    .mc-image-panel,
    .mc-wide-image {
        min-height: 200px;
    }

    .mc-option-image {
        width: min(190px, 90%);
    }

    .mc-provider-toggle {
        padding: 1.15rem;
        border-radius: 20px;
        gap: 0.9rem;
    }

    .mc-provider-toggle__title-row {
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.55rem;
    }

    .mc-provider-toggle__title-row h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
        line-height: 1.05;
    }

    .mc-provider-toggle__arrow {
        width: 46px;
        height: 46px;
    }

    .mc-provider-switcher {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.55rem;
        padding-bottom: 0.2rem;
        scrollbar-width: thin;
    }

    .mc-provider-tab {
        font-size: 0.98rem;
        padding: 0.6rem 0.78rem;
        flex: 0 0 auto;
    }

    .mc-navigator-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 991.98px) {
    .mc-provider-toggle {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 1rem;
    }

    .mc-provider-toggle__icon {
        display: none;
    }

    .mc-provider-toggle__content p {
        font-size: 0.98rem;
        line-height: 1.5;
    }

    .mc-provider-toggle__arrow {
        width: 42px;
        height: 42px;
    }

    .mc-provider-toggle__arrow-glyph {
        width: 14px;
        height: 14px;
        border-top-width: 4px;
        border-right-width: 4px;
    }

    .mc-btn-light,
    .mc-btn-light-outline {
        width: 100%;
        margin: 1rem 0 0;
    }

    .mc-btn-light {
        place-self: stretch;
    }

}

@media (prefers-reduced-motion: reduce) {
    .mc-fade,
    .mc-fade-left,
    .mc-fade-right,
    .mc-fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
