/* Healthcare page: appointment booking demo, blister-pack features, heart-monitor steps and page skin. Prefix hc-. */
:root { --hc-blue: #1667c7; --hc-deep: #0c2f5c; --hc-mint: #e3f6f1; --hc-teal: #13a89e; --hc-coral: #ff6b5b; --hc-ink: #10233f; --hc-muted: #566781; --hc-line: rgba(16, 35, 63, .12); --hc-soft: #f2f7fd; }

/* ---- Appointment booking ---- */
.hc-book { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; margin-top: 28px; }
.hc-label { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 14px; font-weight: 700; color: var(--hc-ink); }
.hc-label:first-child { margin-top: 0; }
.hc-label i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--hc-blue); color: #fff; font-style: normal; font-size: 12px; }
.hc-deps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hc-deps button, .hc-days button, .hc-slots button { font: inherit; color: var(--hc-ink); background: #fff; border: 1.5px solid var(--hc-line); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.hc-deps button { text-align: left; padding: 12px 14px; border-radius: 14px; display: grid; gap: 2px; }
.hc-deps b { font-size: 15px; }
.hc-deps small { font-size: 13px; color: var(--hc-muted); }
.hc-deps button:hover, .hc-days button:hover, .hc-slots button:hover:not(:disabled) { border-color: var(--hc-blue); }
.hc-deps button[aria-checked="true"] { border-color: var(--hc-blue); background: var(--hc-soft); box-shadow: 0 10px 20px -16px rgba(22, 103, 199, .8); }
.hc-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hc-days button { flex: none; width: 62px; padding: 8px 0; border-radius: 14px; display: grid; justify-items: center; gap: 2px; }
.hc-days small { font-size: 12px; color: var(--hc-muted); }
.hc-days b { font-size: 19px; }
.hc-days button[aria-checked="true"] { background: var(--hc-blue); border-color: var(--hc-blue); color: #fff; }
.hc-days button[aria-checked="true"] small { color: #d6e6fb; }
.hc-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hc-slots button { min-height: 44px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.hc-slots button[aria-checked="true"] { background: var(--hc-teal); border-color: var(--hc-teal); color: #fff; }
.hc-slots button:disabled { color: #a3adbd; background: repeating-linear-gradient(-45deg, #f6f8fb 0 6px, #eef2f7 6px 12px); text-decoration: line-through; cursor: not-allowed; }

.hc-ticket { position: relative; overflow: hidden; padding: 24px 24px 22px; border-radius: 22px; background: linear-gradient(160deg, var(--hc-deep), #12447f); color: #eaf2fd; box-shadow: 0 34px 56px -32px rgba(12, 47, 92, .75); }
.hc-ticket::before, .hc-ticket::after { content: ""; position: absolute; top: 118px; width: 26px; height: 26px; border-radius: 50%; background: var(--sv-bg, #fff); }
.hc-ticket::before { left: -13px; } .hc-ticket::after { right: -13px; }
.hc-ticket-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; }
.hc-live { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #b9d4f6; font-size: 12px; opacity: .5; transition: opacity .3s, background .3s, color .3s; }
.hc-ticket.ready .hc-live { opacity: 1; background: var(--hc-teal); color: #fff; }
.hc-token { margin: 20px 0 18px; padding-bottom: 18px; border-bottom: 2px dashed rgba(255, 255, 255, .25); }
.hc-token small { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #9fbde3; }
.hc-token b { display: block; font-size: 48px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.hc-ticket.ready .hc-token b { animation: hc-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hc-pop { 0% { transform: scale(.6); opacity: 0; } }
.hc-ticket dl { margin: 0; display: grid; gap: 12px; }
.hc-ticket dl div { display: flex; justify-content: space-between; gap: 12px; }
.hc-ticket dt { font-size: 13px; color: #9fbde3; }
.hc-ticket dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; }
.hc-remind { margin: 18px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 13px; color: #cfe0f7; }
.hc-pulse { display: block; margin-top: 12px; height: 28px; }
.hc-pulse svg { width: 100%; height: 100%; }
.hc-pulse polyline { fill: none; stroke: var(--hc-coral); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: hc-beat 2.4s linear infinite; }
@keyframes hc-beat { to { stroke-dashoffset: -260; } }

/* ---- Blister pack ---- */
.hc-pack-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 28px; }
.hc-pack { position: relative; padding: 22px 22px 18px; border-radius: 22px; background: linear-gradient(135deg, #f4f6f9 0%, #dfe5ec 45%, #f7f9fb 55%, #d5dce5 100%); box-shadow: inset 0 1px 0 #fff, 0 30px 50px -32px rgba(16, 35, 63, .55); transform: perspective(1200px) rotateX(10deg) rotateZ(-2deg); }
.hc-pack-label, .hc-pack-foot { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7c8aa0; }
.hc-pack-foot { margin-top: 12px; text-align: center; letter-spacing: .02em; text-transform: none; font-weight: 600; }
.hc-blisters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.hc-blister { --c1: #1667c7; --c2: #e8f0fb; display: grid; justify-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 16px; border: 0; cursor: pointer; font: inherit; background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 60%, rgba(200, 210, 222, .6)); box-shadow: inset 0 2px 6px rgba(255, 255, 255, .9), inset 0 -6px 12px rgba(120, 140, 165, .25), 0 4px 10px -6px rgba(16, 35, 63, .35); transition: transform .3s; }
.hc-blister:hover { transform: translateY(-2px); }
.hc-blister:focus-visible { outline: 3px solid var(--hc-blue); outline-offset: 3px; }
.hc-capsule { position: relative; width: 70px; height: 30px; border-radius: 15px; overflow: hidden; background: linear-gradient(90deg, var(--c1) 0 50%, var(--c2) 50%); box-shadow: inset 0 -5px 8px rgba(0, 0, 0, .15), inset 0 4px 6px rgba(255, 255, 255, .55); transform: rotate(-18deg); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.hc-capsule i { position: absolute; left: 10px; right: 10px; top: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.hc-blister small { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--hc-ink); text-align: center; }
.hc-blister[aria-pressed="true"] { background: radial-gradient(ellipse at 50% 35%, #fff, #eef3f9); box-shadow: inset 0 0 0 2px var(--c1), 0 12px 22px -14px rgba(16, 35, 63, .5); }
.hc-blister[aria-pressed="true"] .hc-capsule { transform: rotate(-18deg) translateY(-8px) scale(1.12); }
.p1 { --c1: #13a89e; --c2: #e1f6f3; } .p2 { --c1: #ff6b5b; --c2: #ffeae7; } .p3 { --c1: #7a5af5; --c2: #efeafe; } .p4 { --c1: #f2a516; --c2: #fff3d9; } .p5 { --c1: #0c2f5c; --c2: #e3eaf5; }
.hc-rx-card { --c1: #1667c7; position: relative; padding: 28px 28px 30px; border-radius: 18px; background: #fff; border: 1px solid var(--hc-line); border-top: 6px solid var(--c1); box-shadow: 0 26px 44px -32px rgba(16, 35, 63, .55); animation: hc-in .4s ease; }
.hc-rx-card::after { content: "℞"; position: absolute; right: 22px; top: 14px; font-size: 54px; font-family: Georgia, serif; color: color-mix(in srgb, var(--c1) 14%, transparent); }
.hc-rx-card small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c1); }
.hc-rx-card h3 { margin: 8px 0 10px; font-size: 24px; color: var(--hc-ink); }
.hc-rx-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--hc-muted); }
@keyframes hc-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- Heart-monitor steps ---- */
.hc-ecg { margin-top: 30px; }
.hc-monitor { position: relative; padding: 14px 18px 8px; border-radius: 18px; background: #0b1b30; background-image: linear-gradient(rgba(19, 168, 158, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 168, 158, .08) 1px, transparent 1px); background-size: 20px 20px; box-shadow: inset 0 0 0 2px #17304f, 0 26px 44px -30px rgba(11, 27, 48, .8); }
.hc-monitor-top { display: flex; justify-content: space-between; font-size: 13px; color: #7fa6c9; }
.hc-monitor-top b { color: #e7f2ff; font-weight: 700; }
.hc-monitor-top i { font-style: normal; color: #3fe0b0; }
.hc-monitor svg { display: block; width: 100%; height: 110px; }
.hc-trace { fill: none; stroke: #3fe0b0; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px rgba(63, 224, 176, .7)); transition: stroke-dashoffset 2.6s linear; }
.hc-ecg.in .hc-trace { stroke-dashoffset: 0; }
.hc-ecg-steps { --n: 4; list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
.hc-ecg-steps li { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--hc-line); opacity: .35; transform: translateY(8px); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * .65s + .3s); }
.hc-ecg.in .hc-ecg-steps li { opacity: 1; transform: none; }
.hc-ecg-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--hc-mint); color: var(--hc-teal); font-weight: 800; }
.hc-ecg-steps h3 { margin: 12px 0 6px; font-size: 18px; color: var(--hc-ink); }
.hc-ecg-steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--hc-muted); }

/* ---- Page skin: shared sections on this page take the clinical blue and mint look. ---- */
body:has(.hc-book-sec) main .sv-phero.style-light { background: radial-gradient(800px 380px at 85% 10%, #d9f1ec 0%, transparent 60%), linear-gradient(160deg, #f2f7fd 0%, #fff 70%); }
body:has(.hc-book-sec) main .sv-phero h1, body:has(.hc-book-sec) main .sv-title { color: var(--hc-ink); }
body:has(.hc-book-sec) main .sv-phero-stats li { background: #fff; border-color: #cfe1f5 !important; }
body:has(.hc-book-sec) main .sv-phero-stats li strong { color: var(--hc-blue) !important; }
body:has(.hc-book-sec) main :is(.sv-btn, a.btn-dark) { background: var(--hc-deep) !important; border-color: var(--hc-deep) !important; }
body:has(.hc-book-sec) main .sv-intro { background: var(--hc-soft) !important; color: var(--hc-ink) !important; border-color: #d3e3f6 !important; }
body:has(.hc-book-sec) main .sv-contact-big { color: var(--hc-teal) !important; }

@media (max-width: 900px) {
    .hc-book, .hc-pack-wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .hc-ticket { max-width: 380px; width: 100%; margin: 0 auto; }
    .hc-ecg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-pack { transform: none; }
}
@media (max-width: 560px) {
    .hc-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hc-blisters { gap: 10px; }
    .hc-capsule { width: 56px; height: 24px; }
    .hc-blister small { font-size: 12px; }
    .hc-ecg-steps { grid-template-columns: minmax(0, 1fr); }
    .hc-monitor svg { height: 80px; }
}
.hc-book [hidden], .hc-pack-wrap [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    .hc-pulse polyline, .hc-token b { animation: none; }
    .hc-trace, .hc-ecg-steps li { transition: none; }
}
