/* HMS Software (/hms-software) and LMS Software (/lms-software) landing pages.
   Builds on multi_speciality_software.css (.mss-* base: Poppins, palette, titles, panels, buttons) and
   software_hero_cta.css (hero buttons). Only these pages' extras live here, scoped to .slp-page. */

/* Text links inside copy: brand red, underlined, so they read as links (the base removes underlines). */
.slp-page a.slp-link { color: #D92F3A; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.slp-page a.slp-link:hover, .slp-page a.slp-link:focus { color: #B4232D; text-decoration: underline; }

/* ---------- Hero ---------- */
.slp-hero { padding: 48px 0 44px; }
.slp-crumb span { margin: 0 6px; }
.slp-hero-title { font-size: 42px; font-weight: 700; margin-bottom: 16px !important; }
.slp-hero-title span { color: #C9252F; }
.slp-answer {
    max-width: 560px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 6px 18px rgba(55, 48, 48, 0.06);
}
.slp-page .slp-answer p { font-size: 15px; color: #373030; line-height: 1.65; }
.slp-answer strong { color: #373030; }
.slp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.slp-chips li {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.85); font-size: 13px !important; font-weight: 500; color: #373030; line-height: 1.3 !important;
}
.slp-chips i { color: #ED3E48; font-size: 12px; }
/* Transparent illustration straight on the hero gradient (no card frame), like the queue management page. */
.slp-hero-media { display: flex; justify-content: flex-end; }
.slp-hero-media img { display: block; width: 100%; max-width: 680px; height: auto; margin-left: auto; object-fit: contain; }

/* ---------- Section heads ---------- */
.slp-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.slp-head .mss-text { margin: 0 auto; }

/* ---------- Definition / intro ---------- */
.slp-media img { width: 100%; border-radius: 20px; }
.slp-media-shadow img { box-shadow: 0 16px 36px rgba(55, 48, 48, 0.12); }
.slp-def { margin-top: 18px !important; display: grid; gap: 10px; }
.slp-def li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #373030; line-height: 1.55 !important; }
.slp-def li strong { color: #373030; }
.slp-def .mss-check { width: 26px; height: 26px; border-radius: 8px; background: rgba(237, 62, 72, 0.10); color: #ED3E48; font-size: 12px; margin-top: 0; }

/* ---------- Module / benefit cards ---------- */
.slp-band { background: #FFF7F3; border-top: 1px solid #F7E6DC; border-bottom: 1px solid #F7E6DC; }
.slp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.slp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slp-card {
    --tone: #ED3E48; --tone-bg: rgba(237, 62, 72, 0.10);
    height: 100%; padding: 24px 22px; border-radius: 18px; background: #ffffff; border: 1px solid #F1E4E0;
    box-shadow: 0 4px 14px rgba(55, 48, 48, 0.04); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.slp-card:hover { transform: translateY(-4px); border-color: rgba(237, 62, 72, 0.35); box-shadow: 0 14px 30px rgba(237, 62, 72, 0.09); }
.slp-card-icon {
    width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--tone-bg); color: var(--tone); font-size: 20px; margin-bottom: 16px; transition: background 0.3s ease, color 0.3s ease;
}
.slp-card:hover .slp-card-icon { background: var(--tone); color: #ffffff; }
.slp-page h3.slp-card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.slp-page .slp-card p { font-size: 14.5px; color: #666666; line-height: 1.6; }
.slp-tone-blue   { --tone: #2F6FE4 !important; --tone-bg: rgba(47, 111, 228, 0.12) !important; }
.slp-tone-green  { --tone: #13A07A !important; --tone-bg: rgba(19, 160, 122, 0.12) !important; }
.slp-tone-orange { --tone: #E9861A !important; --tone-bg: rgba(233, 134, 26, 0.14) !important; }
.slp-tone-purple { --tone: #7B4FE0 !important; --tone-bg: rgba(123, 79, 224, 0.12) !important; }

/* ---------- Workflow steps ---------- */
.slp-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; counter-reset: slp-step; margin: 0; padding: 0; list-style: none; }
.slp-steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.slp-steps li { position: relative; counter-increment: slp-step; text-align: center; padding: 0 4px; }
/* Connector between two steps: dashes that keep flowing left to right (::after), and a glowing
   pulse (::before) that travels each connector in turn, so the eye follows the patient journey.
   One 6s cycle: connector n carries the pulse during second n, then step n+1 lights up. */
.slp-steps li:not(:last-child)::after,
.slp-steps li:not(:last-child)::before {
    content: ""; position: absolute; left: calc(50% + 36px); right: calc(-50% + 28px); pointer-events: none;
}
.slp-steps li:not(:last-child)::after {
    top: 28px; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(237, 62, 72, 0.45) 0 7px, transparent 7px 13px);
    background-size: 13px 2px;
    animation: slp-dash-flow 0.9s linear infinite;
}
.slp-steps li:not(:last-child)::before {
    top: 21px; height: 16px; opacity: 0;
    background:
        radial-gradient(circle, #ED3E48 0 3.5px, rgba(237, 62, 72, 0.28) 4.5px 7px, transparent 8px) no-repeat,
        linear-gradient(90deg, transparent, rgba(237, 62, 72, 0.55)) no-repeat;
    background-size: 16px 16px, 46px 2px;
    background-position: 0 50%, -46px 50%;
    animation: slp-pulse-travel 6s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
.slp-steps li:nth-child(2)::before { animation-delay: 1s; }
.slp-steps li:nth-child(3)::before { animation-delay: 2s; }
.slp-steps li:nth-child(4)::before { animation-delay: 3s; }
.slp-steps li:nth-child(5)::before { animation-delay: 4s; }
@keyframes slp-dash-flow { to { background-position: 13px 0; } }
@keyframes slp-pulse-travel {
    0%      { opacity: 0; background-position: 0 50%, -46px 50%; }
    2%      { opacity: 1; }
    15%     { opacity: 1; }
    16.6%   { opacity: 0; background-position: 100% 50%, calc(100% - 8px) 50%; }
    100%    { opacity: 0; background-position: 100% 50%, calc(100% - 8px) 50%; }
}
.slp-step-icon {
    position: relative; width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #ffffff; border: 2px solid rgba(237, 62, 72, 0.25); color: #ED3E48; font-size: 21px; transition: background 0.3s ease, color 0.3s ease;
    animation: slp-step-glow 6s ease-out infinite;
}
.slp-steps li:nth-child(2) .slp-step-icon { animation-delay: 1s; }
.slp-steps li:nth-child(3) .slp-step-icon { animation-delay: 2s; }
.slp-steps li:nth-child(4) .slp-step-icon { animation-delay: 3s; }
.slp-steps li:nth-child(5) .slp-step-icon { animation-delay: 4s; }
.slp-steps li:nth-child(6) .slp-step-icon { animation-delay: 5s; }
@keyframes slp-step-glow {
    0%   { border-color: #ED3E48; box-shadow: 0 0 0 0 rgba(237, 62, 72, 0.35); }
    9%   { border-color: #ED3E48; box-shadow: 0 0 0 10px rgba(237, 62, 72, 0); }
    16%  { border-color: rgba(237, 62, 72, 0.25); box-shadow: 0 0 0 0 rgba(237, 62, 72, 0); }
    100% { border-color: rgba(237, 62, 72, 0.25); box-shadow: 0 0 0 0 rgba(237, 62, 72, 0); }
}
.slp-step-icon::after {
    content: counter(slp-step); position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
    background: #ED3E48; color: #ffffff; font-size: 11px; font-weight: 600; line-height: 22px; text-align: center;
}
.slp-steps li:hover .slp-step-icon { background: #ED3E48; color: #ffffff; }
.slp-page h3.slp-step-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.slp-page .slp-steps p { font-size: 13.5px; color: #666666; line-height: 1.55; }
.slp-flow-media { margin-top: 40px; }
.slp-flow-media img { width: 100%; max-width: 980px; margin: 0 auto; }

/* ---------- Buyer checklist ---------- */
.slp-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin-top: 24px !important; }
.slp-checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: #ffffff; border: 1px solid #E3EAF7; }
.slp-checklist .mss-check { width: 28px; height: 28px; border-radius: 8px; margin-top: 2px; }
.slp-checklist strong { display: block; font-size: 15px; color: #373030; margin-bottom: 2px; }
.slp-page .slp-checklist p { font-size: 14px; color: #666666; line-height: 1.55; }

/* ---------- Audience cards ---------- */
.slp-audience .slp-card { display: flex; flex-direction: column; }
.slp-audience .slp-card p { flex: 1 1 auto; }

/* ---------- OPD consultation mockup (HMS "How It Works"), built in HTML so it stays sharp on every screen ---------- */
.slp-opd { position: relative; max-width: 1040px; margin: 48px auto 0; padding: 0 110px 64px 40px; }
.slp-opd-window {
    position: relative; z-index: 2; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0;
    background: #ffffff; border: 3px solid #C9BFF5; border-radius: 26px; overflow: hidden;
    box-shadow: 0 0 0 7px rgba(201, 191, 245, 0.28), 0 30px 60px rgba(79, 58, 180, 0.14);
}
.slp-opd-nav { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 18px 0; background: #FAF9FF; border-right: 1px solid #EEEBFB; }
.slp-opd-logo {
    width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
    background: linear-gradient(135deg, #6E4EF2, #4B32D6); color: #ffffff; font-size: 17px; box-shadow: 0 6px 14px rgba(91, 66, 230, 0.35);
}
.slp-opd-nav > i { color: #7D7A92; font-size: 16px; }
.slp-opd-main { padding: 18px 20px 20px; min-width: 0; }
.slp-opd-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.slp-opd-title { flex-shrink: 0; font-size: 19px; font-weight: 700; color: #1F1A3D; }
.slp-opd-search { flex: 1 1 auto; height: 32px; border-radius: 9px; background: #F4F3FA; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; color: #8E8BA6; font-size: 13px; }
.slp-opd-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #F4F3FA; margin-bottom: 14px; overflow: hidden; }
.slp-opd-tabs span { flex: 1 1 auto; text-align: center; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: #5E5A78; white-space: nowrap; }
.slp-opd-tabs span.is-active { background: #E7E3FF; color: #4B32D6; font-weight: 600; }
.slp-opd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; }
.slp-opd-panel { border: 1px solid #EEEDF4; border-radius: 12px; padding: 12px 14px; background: #ffffff; }
.slp-opd-col { display: flex; flex-direction: column; gap: 12px; }
.slp-opd-label { display: block; font-size: 13.5px; font-weight: 600; color: #1F1A3D; margin: 0 0 6px; }
.slp-opd-field + .slp-opd-label { margin-top: 12px; }
.slp-opd-field {
    display: block; height: 34px; padding: 0 12px; line-height: 32px; border: 1px solid #E2E0EC; border-radius: 8px;
    font-size: 11.5px; color: #9A97AE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slp-opd-field-tall { height: 58px; }
.slp-opd-field.is-typing { color: #3A3555; border-color: #B9AEF7; box-shadow: 0 0 0 3px rgba(110, 78, 242, 0.10); }
.slp-opd-field.is-typing::after { content: ""; display: inline-block; width: 1px; height: 13px; margin-left: 2px; vertical-align: -2px; background: #4B32D6; animation: slp-caret 1s steps(1) infinite; }
@keyframes slp-caret { 50% { opacity: 0; } }
.slp-opd-check { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 10px; border: 1px solid #EEEDF4; border-radius: 9px; font-size: 12px; font-weight: 500; color: #2E2A47; }
.slp-opd-check + .slp-opd-check { margin-top: 8px; }
.slp-opd-box { width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px; border: 1.5px solid #B7B4C8; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: transparent; }
.slp-opd-check.is-checked .slp-opd-box { background: #5B42E6; border-color: #5B42E6; color: #ffffff; }
.slp-opd-tile { margin-left: auto; width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.slp-opd-tile-purple { background: #EEE9FF; color: #5B42E6; }
.slp-opd-tile-blue { background: #E3EEFF; color: #2F6FE4; }
.slp-opd-tile-green { background: #DDF6EE; color: #13A07A; }
.slp-opd-save {
    align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
    background: linear-gradient(135deg, #6E4EF2, #4B32D6); color: #ffffff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 20px rgba(91, 66, 230, 0.28);
}
/* Floating cards on the right */
.slp-opd-cards { position: absolute; z-index: 1; top: 44px; right: 0; display: flex; flex-direction: column; gap: 14px; }
.slp-opd-card {
    width: 180px; height: 82px; border-radius: 18px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 82px; color: #ffffff; font-size: 30px;
    transform: rotate(6deg) translateX(0); box-shadow: 0 16px 30px rgba(55, 48, 48, 0.12); animation: slp-card-float 5s ease-in-out infinite;
}
.slp-opd-card::after { content: ""; flex: 1 1 auto; height: 22px; background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.85)) 0 0 / 100% 7px no-repeat, linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6)) 0 15px / 70% 7px no-repeat; }
.slp-opd-card-purple { background: linear-gradient(135deg, #8E78F7, #6A4FEA); }
.slp-opd-card-blue { background: linear-gradient(135deg, #8EC3FF, #5C9CF5); color: #1F4FB8; animation-delay: -1.6s; }
.slp-opd-card-red { background: linear-gradient(135deg, #FF9AA6, #F2606F); color: #E0293A; animation-delay: -3.2s; }
.slp-opd-card-blue i, .slp-opd-card-red i { background: #ffffff; width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
@keyframes slp-card-float { 0%, 100% { transform: rotate(6deg) translate(0, 0); } 50% { transform: rotate(6deg) translate(6px, -6px); } }
/* Doctor badge, bottom left */
.slp-opd-badge {
    position: absolute; z-index: 3; left: 0; bottom: 0; display: flex; align-items: center; gap: 4px;
    padding: 0 34px 0 0; border-radius: 999px; background: #ffffff; border: 3px solid #C9BFF5;
    box-shadow: 0 0 0 6px rgba(201, 191, 245, 0.28), 0 18px 36px rgba(79, 58, 180, 0.14);
}
.slp-opd-avatar {
    width: 132px; height: 132px; margin: -26px 8px -6px -6px; flex-shrink: 0; border-radius: 50%; border: 3px solid #C9BFF5;
    background: #EEEBFF url("../images/hms-software/hms-opd-consultation-workflow.webp") no-repeat -36px -331px / 960px 480px;
}
.slp-opd-badge-text { display: flex; flex-direction: column; line-height: 1.2; padding: 14px 0; }
.slp-opd-badge-text strong { font-size: 26px; font-weight: 700; color: #1F1A6B; }
.slp-opd-badge-text span { font-size: 19px; font-weight: 600; color: #6A4FEA; }

/* ---------- Buyer's guide visual (HMS): dashboard card with a floating reports card ---------- */
.slp-guide-visual { position: relative; padding: 10px 6px 36px 0; }
.slp-guide-visual::before {
    content: ""; position: absolute; inset: -10px -20px 30px 30px; border-radius: 50%; z-index: 0;
    background: radial-gradient(closest-side, rgba(237, 62, 72, 0.12), rgba(47, 111, 228, 0.08) 55%, transparent 75%);
}
.slp-guide-main {
    position: relative; z-index: 1; padding: 16px; border-radius: 24px; background: #ffffff; border: 1px solid #E3EAF7;
    box-shadow: 0 24px 50px rgba(31, 50, 110, 0.12);
}
.slp-guide-main img { display: block; width: 100%; height: auto; border-radius: 14px; }
.slp-guide-pill {
    position: absolute; z-index: 2; right: 0; bottom: 22px; display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 10px; border-radius: 999px; background: #ffffff; border: 1px solid #E3EAF7;
    box-shadow: 0 14px 30px rgba(31, 50, 110, 0.12); font-size: 13.5px; font-weight: 600; color: #373030; line-height: 1.25;
}
.slp-guide-pill i { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #ED3E48; color: #ffffff; font-size: 14px; }
.slp-guide-pill small { display: block; font-size: 11.5px; font-weight: 500; color: #7A7272; }

/* ---------- Closing CTA ---------- */
.slp-cta-section { padding: 10px 0 70px; }
.slp-cta {
    position: relative; overflow: hidden; padding: 48px 40px; border-radius: 24px; text-align: center;
    background: linear-gradient(120deg, rgba(254, 188, 47, 0.55), rgba(255, 81, 50, 0.55));
}
.slp-cta::before { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; top: -120px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.slp-cta > * { position: relative; }
.slp-cta .mss-title span { color: #C9252F; }
.slp-page .slp-cta .mss-text { max-width: 640px; margin: 0 auto; color: #373030; }
.slp-cta .mss-btns { justify-content: center; }
.slp-btn-light { background: #ffffff !important; color: #ED3E48 !important; }
.slp-btn-light:hover, .slp-btn-light:focus { background: #FFF2F3 !important; }

/* ---------- Responsive (site breakpoints: 1199 / 991 / 767 / 500) ---------- */
@media (max-width: 1199px) {
    .slp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .slp-steps, .slp-steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
    .slp-steps li:nth-child(3n)::after, .slp-steps li:nth-child(3n)::before { display: none; }
    .slp-opd { padding-right: 80px; }
    .slp-opd-cards { right: -6px; }
    .slp-opd-card { width: 120px; height: 70px; padding: 0 0 0 64px; font-size: 24px; }
    .slp-opd-card::after { display: none; }
}
@media (max-width: 991px) {
    .slp-hero { padding: 36px 0 30px; text-align: center; }
    .slp-hero-title { font-size: 34px; }
    .slp-answer { margin: 0 auto; text-align: left; }
    .slp-chips { justify-content: center; }
    .slp-hero-media { margin-top: 26px; }
    .slp-hero-media img { margin: 0 auto; max-width: 560px; }
    .slp-grid, .slp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .slp-media { margin-bottom: 8px; }
    .slp-media img { max-width: 620px; margin: 0 auto; }
    .slp-opd { padding: 0 0 56px; }
    .slp-opd-cards { display: none; }
    .slp-guide-visual { max-width: 560px; margin: 8px auto 0; }
}
@media (max-width: 767px) {
    .slp-hero-title { font-size: 28px; }
    .slp-head { margin-bottom: 26px; }
    .slp-steps, .slp-steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .slp-steps li::after, .slp-steps li::before { display: none; }
    .slp-checklist { grid-template-columns: minmax(0, 1fr); }
    .slp-opd { margin-top: 32px; padding-bottom: 50px; }
    .slp-opd-window { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
    .slp-opd-nav { display: none; }
    .slp-opd-main { padding: 14px 14px 60px; }
    .slp-opd-tabs span:nth-child(n+3) { display: none; }
    .slp-opd-grid { grid-template-columns: minmax(0, 1fr); }
    .slp-opd-badge { left: 50%; transform: translateX(-50%); padding-right: 22px; white-space: nowrap; }
    .slp-opd-avatar { width: 92px; height: 92px; margin: -16px 6px -4px -4px; background-position: -25px -231px; background-size: 669px 334px; }
    .slp-opd-badge-text strong { font-size: 20px; }
    .slp-opd-badge-text span { font-size: 15px; }
    .slp-cta { padding: 36px 20px; }
    .slp-cta-section { padding-bottom: 46px; }
}
@media (max-width: 500px) {
    .slp-hero-title { font-size: 25px; }
    .slp-grid, .slp-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .slp-card { padding: 20px 18px; }
    .slp-guide-visual { padding-bottom: 8px; }
    .slp-guide-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .slp-card, .slp-card-icon, .slp-step-icon { transition: none; }
    .slp-steps li::after, .slp-steps li::before, .slp-step-icon,
    .slp-opd-card, .slp-opd-field.is-typing::after { animation: none !important; }
}
