/* Telemedicine page (new layout)
   Same patterns as Calendar, Online Booking and Client Management.
   (Replaces the old features-template styles; a backup of those was kept.) */

.tm-page {
    --tm-ink: #111827;
    --tm-text: #58616f;
    --tm-muted: #7b8492;
    --tm-border: #e8edef;
    --tm-teal: #137f8c;
    --tm-gold: #d99a2b;
    background: #ffffff;
    color: var(--tm-ink);
    float: left;
    overflow: hidden;
    width: 100%;
}

header {
    background-color: #001d33;
}

.tm-page * {
    box-sizing: border-box;
}

.tm-page ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-container {
    margin: 0 auto;
    max-width: 1210px;
    padding: 0 24px;
    width: 100%;
}

.tm-section {
    padding: 72px 0;
}

.tm-nowrap {
    white-space: nowrap;
}

/* Type */
.tm-page h1,
.tm-page h2,
.tm-page h3 {
    color: var(--tm-ink);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.tm-page h1 {
    font-size: 56px;
    line-height: 1.05;
}

.tm-page h2 {
    font-size: 38px;
    line-height: 1.16;
    text-wrap: balance;
}

.tm-page h3 {
    font-size: 21px;
    line-height: 1.3;
}

.tm-page p {
    color: var(--tm-text);
    font-size: 17px;
    line-height: 1.58;
    margin: 0;
}

.tm-eyebrow {
    color: #58616f !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.4 !important;
    margin: 0 0 12px !important;
}

/* Hero */
.tm-hero {
    background:
        radial-gradient(circle at 10% 28%, rgba(167, 234, 242, 0.55), transparent 28%),
        radial-gradient(circle at 88% 34%, rgba(255, 205, 116, 0.34), transparent 30%),
        linear-gradient(145deg, #f4fbfc 0%, #ffffff 50%, #fff8ec 100%);
    padding: 126px 0 72px;
    position: relative;
}

.tm-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    bottom: 0;
    content: "";
    height: 120px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.tm-hero > .tm-container {
    position: relative;
    z-index: 1;
}

.tm-hero-grid {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.tm-hero-copy {
    min-width: 0;
}

.tm-lede {
    margin-top: 18px !important;
    max-width: 36em;
}

.tm-hero-copy h1 + .tm-lede {
    margin-top: 22px !important;
}

/* Common visits: soft green panel with a green edge, teal checks */
/* .tm-page .tm-uses beats the general ".tm-page ul" reset, so the padding applies */
.tm-page .tm-uses {
    background: linear-gradient(90deg, #eef8e6 0%, rgba(238, 248, 230, 0.4) 100%);
    border-left: 3px solid #78bd42;
    border-radius: 4px 14px 14px 4px;
    display: grid;
    gap: 10px 28px;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    margin-top: 28px !important;
    max-width: 100%;
    padding: 16px 22px;
    width: fit-content;
}

.tm-uses li,
.tm-check li {
    color: var(--tm-ink);
    font-size: 16px;
    line-height: 1.45;
    padding-left: 26px;
    position: relative;
}

.tm-uses li::before {
    border: solid var(--tm-teal);
    border-width: 0 1.75px 1.75px 0;
    content: "";
    height: 11px;
    left: 5px;
    position: absolute;
    top: 0.3em;
    transform: rotate(45deg);
    width: 5.5px;
}

/* Framed landscape photo + floating cards */
.tm-visual {
    min-width: 0;
    position: relative;
}

.tm-frame {
    aspect-ratio: 3 / 2;
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(42, 64, 82, 0.1);
    overflow: hidden;
    padding: 10px;
    width: 100%;
}

.tm-frame img {
    border-radius: 12px;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.tm-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(17, 24, 39, 0.04),
        0 18px 36px -12px rgba(30, 60, 80, 0.28);
    display: flex;
    font-family: 'Roboto', sans-serif;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    position: absolute;
    z-index: 2;
}

.tm-card-tl { left: -26px; top: -22px; }
.tm-card-br { bottom: -24px; right: -20px; }
.tm-card-tr { right: -22px; top: -22px; }
.tm-card-bl { bottom: -24px; left: -24px; }

.tm-card-icon {
    align-items: center;
    background: #e3f4f6;
    border-radius: 10px;
    color: var(--tm-teal);
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
}

.tm-card-icon-gold {
    background: #fdf3df;
    color: #c27a12;
}

.tm-card-icon-green {
    background: #eef8e6;
    color: #4fa82a;
}

.tm-card-icon svg,
.tm-icon svg {
    display: block;
}

.tm-card-body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.tm-card-body strong {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.tm-card-body small {
    align-items: center;
    color: #7b8492;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
}

.tm-live {
    background: #e2453c;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(226, 69, 60, 0.18);
    display: inline-block;
    height: 7px;
    width: 7px;
}

/* Everything Connected */
.tm-heading {
    margin: 0 auto 36px;
    max-width: 820px;
    text-align: center;
}

.tm-page .tm-subline {
    color: #c27a12;
    font-size: 20px;
    font-weight: 500;
    margin-top: 10px;
}

.tm-heading p:not(.tm-subline) {
    margin: 18px auto 0;
    max-width: 44em;
}

.tm-organized {
    background: #f8f6f2;
    border-radius: 24px;
    padding: 34px 34px 28px;
    text-align: center;
}

.tm-organized h3 {
    font-size: 22px;
    margin-bottom: 24px;
    text-wrap: balance;
}

.tm-organized-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm-mini {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(30, 43, 56, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px;
    text-align: left;
}

.tm-icon {
    color: var(--tm-gold);
    display: block;
}

.tm-page .tm-mini p {
    color: var(--tm-text);
    font-size: 15px;
    line-height: 1.5;
}

.tm-page .tm-mini p strong {
    color: var(--tm-ink);
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 16.5px;
    font-weight: 700 !important;
    line-height: 1.35;
    margin-bottom: 4px;
}

/* Green icons here, matching this page's green accent */
.tm-mini .tm-icon {
    color: #5aa62b;
}

/* Deliver Care Beyond */
.tm-split {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.tm-copy {
    min-width: 0;
}

.tm-copy p {
    margin-top: 20px;
    max-width: 36em;
}

/* Final CTA (shared panel) */
.tm-final-cta {
    padding: 24px 0 40px;
}

.tm-cta-panel {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(242, 180, 30, 0.22), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(41, 184, 199, 0.22), transparent 55%),
        linear-gradient(135deg, #fffaf2 0%, #f1fbfc 100%);
    border: 1px solid #e6edf2;
    border-radius: 28px;
    margin: 0 auto;
    max-width: 1000px;
    padding: 80px 64px;
    text-align: center;
}

.tm-page .tm-cta-eyebrow {
    color: #b0620f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.tm-page .tm-cta-panel h2 {
    font-size: 44px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.tm-page .tm-cta-lead {
    color: var(--tm-ink);
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    margin: 0 auto;
    max-width: 640px;
}

.tm-cta-btn {
    align-items: center;
    background: linear-gradient(90deg, #e35d24 0%, #f2b41e 100%);
    border-radius: 999px;
    box-shadow: 0 14px 28px -12px rgba(227, 93, 36, 0.55);
    color: #ffffff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    margin-top: 28px;
    min-height: 56px;
    padding: 16px 34px;
    text-decoration: none;
    transition: box-shadow 160ms ease;
}

.tm-cta-btn:hover,
.tm-cta-btn:focus {
    box-shadow: 0 18px 32px -12px rgba(227, 93, 36, 0.65);
    color: #ffffff;
    text-decoration: none;
}

.tm-cta-btn:focus-visible {
    box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px rgba(19, 127, 140, 0.55);
    outline: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .tm-page h1 {
        font-size: 50px;
    }

    .tm-hero-grid,
    .tm-split {
        gap: 44px;
    }

    .tm-card-tl,
    .tm-card-bl { left: -12px; }

    .tm-card-br,
    .tm-card-tr { right: -12px; }
}

@media (max-width: 991px) {
    .tm-hero {
        padding: 112px 0 64px;
    }

    .tm-hero-grid,
    .tm-split {
        grid-template-columns: 1fr;
    }

    .tm-hero-copy {
        text-align: center;
    }

    .tm-lede,
    .tm-page .tm-uses {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .tm-page .tm-uses {
        text-align: left;
    }

    .tm-visual {
        margin: 24px auto 0;
        max-width: 640px;
        width: 100%;
    }

    .tm-copy {
        margin: 0 auto;
        max-width: 640px;
        order: -1;
        text-align: center;
    }

    .tm-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .tm-section {
        padding: 62px 0;
    }

    .tm-organized-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-cta-panel {
        padding: 64px 48px;
    }

    .tm-page .tm-cta-panel h2 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .tm-container {
        padding: 0 18px;
    }

    .tm-page h1 {
        font-size: 40px;
    }

    .tm-page h2 {
        font-size: 31px;
    }

    .tm-page p {
        font-size: 16px;
    }
}

/* Phones: cards stack above and below the photo */
@media (max-width: 575px) {
    .tm-hero {
        padding: 96px 0 40px;
    }

    .tm-page h1 {
        font-size: 34px;
    }

    .tm-page h2 {
        font-size: 28px;
    }

    .tm-section {
        padding: 52px 0;
    }

    .tm-page .tm-uses {
        grid-template-columns: 1fr;
    }

    .tm-visual {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .tm-card {
        inset: auto;
        margin: 0 auto;
        max-width: 300px;
        position: relative;
        width: 100%;
    }

    .tm-card-tl,
    .tm-card-tr { order: 1; }

    .tm-frame { order: 2; }

    .tm-card-br,
    .tm-card-bl { order: 3; }

    .tm-organized {
        padding: 26px 16px 22px;
    }

    .tm-organized-grid {
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-mini {
        padding: 18px 14px;
    }

    .tm-page .tm-mini p {
        font-size: 13.5px;
    }

    .tm-page .tm-mini p strong {
        font-size: 15px;
    }


    .tm-nowrap {
        white-space: normal;
    }

    .tm-final-cta {
        padding: 10px 0 24px;
    }

    .tm-cta-panel {
        border-radius: 22px;
        padding: 48px 22px;
    }

    .tm-page .tm-cta-panel h2 {
        font-size: 28px;
    }
}

/* Zoom logo in the hero's video card */
.tm-zoom {
    display: block;
    flex: 0 0 40px;
    height: 40px;
    width: 40px;
}

/* Deliver Care Beyond: thin teal checks */
.tm-page .tm-checks {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.tm-checks li {
    color: var(--tm-ink);
    font-size: 17px;
    line-height: 1.5;
    padding-left: 28px;
    position: relative;
}

.tm-checks li::before {
    border: solid var(--tm-teal);
    border-width: 0 1.75px 1.75px 0;
    content: "";
    height: 11px;
    left: 5px;
    position: absolute;
    top: 0.32em;
    transform: rotate(45deg);
    width: 5.5px;
}

@media (max-width: 991px) {
    .tm-page .tm-checks {
        display: inline-grid;
        text-align: left;
    }
}

/* Phones: floating cards overlap the photo's corners where they clear faces and screens */
@media (max-width: 575px) {
    .tm-visual {
        display: block;
        padding: 34px 0 34px;
        position: relative;
    }

    .tm-card {
        margin: 0;
        max-width: 250px;
        position: absolute;
        width: auto;
    }

    .tm-card-tl,
    .tm-card-tr {
        bottom: auto;
        left: auto;
        right: -4px;
        top: 0;
    }

    .tm-card-br,
    .tm-card-bl {
        bottom: 0;
        left: -4px;
        right: auto;
        top: auto;
    }

    /* "One System" cards: one per row, icon beside the title */
    .tm-organized-grid {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .tm-mini {
        align-items: flex-start;
        flex-direction: row;
        gap: 14px;
        padding: 16px 18px;
    }

    .tm-mini .tm-icon {
        flex: 0 0 auto;
        padding-top: 2px;
    }

    .tm-page .tm-mini p {
        font-size: 14.5px;
    }

    .tm-page .tm-mini p strong {
        font-size: 16px;
    }
}

/* Phones: tighter overlay cards that sit half on the frame edge, one-line subtitles */
@media (max-width: 575px) {
    .tm-card {
        gap: 10px;
        max-width: none;
        padding: 9px 14px 9px 9px;
    }

    .tm-card .tm-zoom,
    .tm-card .tm-card-icon {
        flex: 0 0 34px;
        height: 34px;
        width: 34px;
    }

    .tm-card-body strong {
        font-size: 13px;
    }

    .tm-card-body small {
        font-size: 11px;
        white-space: nowrap;
    }

    .tm-card-tl,
    .tm-card-tr {
        right: 10px;
    }

    .tm-card-br,
    .tm-card-bl {
        left: 10px;
    }
}
