/* ==========================================================
   Product Page - Hospital Management System (hms.html)
   ========================================================== */

.hms-page {
    --hms-blue: #0b63e5;
    --hms-teal: #14c2b0;
    --hms-gradient: linear-gradient(90deg, #0b63e5 0%, #14c2b0 100%);
    --hms-dark: #161C2D;
    --hms-text: #343d48;
    --hms-muted: #5f6672;
    --hms-border: #0000001F;
    font-family: "Poppins", sans-serif;
    color: #000;
}

.hms-page p {
    color: var(--hms-text);
}

h1,
h2,
h3,
h4 {
    font-family: "Poppins", sans-serif;
    color: #000;
}

.hms-container {
    max-width: 1430px;
    padding-left: 15px;
    padding-right: 15px;
}


.hms-gradient-text {
    background: var(--hms-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hms-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hms-section-head {
    max-width: 920px;
    margin: 0 auto 50px;
}

.hms-caption {
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #00000094;
    margin-bottom: 25px;
}

.hms-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--hms-blue);
}

/* ---------- Buttons ---------- */
.hms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--hms-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    min-width: 268px;
    padding: 15px 22px;
    border-radius: 12px;
    border: 0;
    transition: all 0.4s;
    line-height: normal;
}

.hms-btn:hover {
    color: #fff;
    box-shadow: 0 10px 25px rgba(11, 99, 229, 0.3);
    transform: translateY(-2px);
}


.hms-btn-icon span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--hms-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.hms-btn-white {
    display: inline-block;
    min-width: 250px;
    text-align: center;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    padding: 13px 15px;
    border-radius: 30px;
    transition: all 0.4s;
    box-shadow: 0px 8px 24px 0px #3C53870F;
    box-shadow: 0px 1px 2px 0px #3C53870F;
}

.hms-btn-white:hover {
    background: var(--hms-dark);
    color: #fff;
}

/* ---------- Hero ---------- */
.hms-hero {
    position: relative;
    background: #FAFAF7;
    overflow: hidden;
}

/* Soft glow blobs */
.hms-hero::before,
.hms-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hms-hero::before {
    top: 10%;
    right: -60px;
    width: 260px;
    height: 300px;
    background: rgba(11, 99, 229, 0.16);
}

.hms-hero::after {
    bottom: 20%;
    left: -60px;
    width: 240px;
    height: 320px;
    background: rgba(20, 194, 176, 0.14);
}

.hms-hero-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 30px;
}

.hms-hero-title .hms-gradient-text {
    display: block;
    background: linear-gradient(90deg, #0967E1 0%, #10C9B0 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hms-hero-text {
    max-width: 640px;
    margin-bottom: 25px;
}

.hms-hero .hms-btn {
    min-width: auto;
    padding: 10px 22px;
}

.hms-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--hms-border);
}

.hms-hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #000000C7;
    white-space: nowrap;
}

.hms-hero-points i {
    color: var(--hms-blue);
}

.hms-hero-media {
    border: 1px solid #4775B2;
    border-radius: 10px;
    overflow: hidden;
}

.hms-hero-media {
    position: relative;
    aspect-ratio: 688 / 451;
}

.hms-hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hms-video-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 70px;
    height: 70px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.hms-hero-media:hover .hms-video-toggle,
.hms-hero-media.is-paused .hms-video-toggle,
.hms-video-toggle:focus-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hms-hero-modules {
    padding-bottom: 0px;
}

.hms-dashboard-img img {
    border-radius: 14px;
    width: 100%;
}

.hms-module-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hms-module {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hms-module.is-right {
    justify-content: flex-end;
    text-align: right;
}

.hms-module-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: #e9f1fb;
}

.hms-module-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.hms-module-text {
    max-width: 150px;
}

.hms-page .hms-module-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.hms-page .hms-module-text p {
    font-size: 11px;
    line-height: 1.5;
    color: var(--hms-muted);
}

.bg-pink {
    background: #FE2F90;
}

.bg-red {
    background: #FD5C5C;
}

.bg-blue {
    background: #0170F8;
}

.bg-orange {
    background: #FDA208;
}

.bg-gray {
    background: #637D83;
}

.bg-green {
    background: #04B673;
}

.bg-purple {
    background: #8F25FC;
}

.bg-yellow {
    background: #F9C419;
}

.text-pink {
    color: #FE2F90;
}

.text-red {
    color: #FD5C5C;
}

.text-blue {
    color: #0170F8;
}

.text-orange {
    color: #FDA208;
}

.text-gray {
    color: #637D83;
}

.text-green {
    color: #04B673;
}

.text-purple {
    color: #8F25FC;
}

.text-yellow {
    color: #F9C419;
}

.hms-heartbeat {
    display: block;
    width: 100%;
    height: 90px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.hms-heartbeat polyline {
    vector-effect: non-scaling-stroke;
}

/* A short bright segment runs left to right along the line, like an ECG trace */
.hms-heartbeat-pulse {
    stroke-dasharray: 120 880;
    stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 2px rgba(30, 136, 229, 0.6));
    animation: hmsHeartbeat 4s linear infinite;
}

@keyframes hmsHeartbeat {
    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hms-heartbeat-pulse {
        animation: none;
        display: none;
    }
}

/* Back to top: HMS blue, and not clickable while hidden */
.back-to-top.hms {
    background: #0967E1;
    border-color: #0967E1;
    z-index: 99;
    visibility: hidden;
}

.back-to-top.hms.show {
    visibility: visible;
}

.back-to-top.hms:hover {
    transform: translateY(-3px);
}

/* ---------- What is HMS ---------- */
.hms-about {
    background: #F9F9F9;
}

.hms-about-text {
    margin-bottom: 35px;
}


.hms-about-img img {
    width: 100%;
    border-radius: 10px;
}

/* ---------- Role based access ---------- */
.hms-role-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    overflow-x: auto;
    margin-bottom: 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.hms-role-tabs.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.hms-role-tabs.is-dragging .nav-link {
    cursor: grabbing;
}

.hms-role-tabs .nav-link {
    width: 132px;
    flex-shrink: 0;
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; */
    gap: 8px;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    position: relative;
    transition: all 0.3s;
}

.hms-role-tabs .nav-link img {
    height: 100%;
    width: 100%;
}

.hms-role-tabs .nav-link:hover img,
.hms-role-tabs .nav-link.active img {
    filter: none;
}

.hms-role-tabs .nav-link span {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 500;
}

.hms-role-tabs .nav-link .active-img {
    display: none;
}

.hms-role-tabs .nav-link.active .active-img {
    display: block;
}

.hms-role-tabs .nav-link.active .inactive-img {
    display: none;
}

/* .hms-role-tabs .nav-link.active {
    border: 2px solid var(--hms-blue);
}

.hms-role-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 7px;
    height: 4px;
    border-radius: 4px;
    background: var(--hms-blue);
} */

.hms-role-intro {
    margin-bottom: 50px;
}

.hms-page .hms-role-title {
    font-size: 18px;
    font-weight: 600;
    background: var(--hms-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    display: inline-block;
}

.hms-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hms-chips li {
    font-size: 13px;
    color: #979797;
    padding: 4px 10px;
    border: 1px solid #9797974D;
    border-radius: 30px;
}


.hms-screen img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 13.75px 27.5px 0px #0011472E;
}

.hms-page .hms-feature-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #161C2D;
}

.hms-plus-list {
    margin-top: 40px;
}

.hms-plus-list li {
    position: relative;
    padding-left: 20px;
    color: var(--hms-text);
}

.hms-plus-list li+li {
    margin-top: 14px;
}

.hms-plus-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--hms-blue);
    font-weight: 600;
}

/* ---------- Personalized demo ---------- */

.hms-demo p {
    max-width: 720px;
    margin-bottom: 30px;
}

.hms-demo-img {
    display: block;
    margin-left: auto;
}

/* ---------- How it works ---------- */
.hms-page .hms-workflow-text {
    margin-top: 10px;
}

.hms-step-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-top: 1px solid #e3e3e3;
    margin-bottom: 50px;
    scrollbar-width: thin;
}

.hms-step-tabs .nav-item {
    flex: 1 0 auto;
}

.hms-step-tabs .nav-link {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 14px;
    padding: 25px 18px 0px;
    font-size: 15px;
    font-weight: 500;
    color: #00000066;
    background: none;
    border: 0;
    border-top: 2px solid transparent;
    margin-top: -1px;
    white-space: nowrap;
}

.hms-step-tabs .nav-link i {
    font-size: 26px;
    color: #b3b3b3;
}

.hms-step-tabs .nav-link.active {
    color: #000;
    border-top-color: #1774b8;
}

.hms-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.hms-step-tabs .nav-link svg {
    opacity: 0.2;
}

.hms-step-tabs .nav-link svg g {
    opacity: 1;
}

.hms-step-tabs .nav-link svg path {
    stroke: #000;
}

.hms-step-tabs .nav-link.active svg {
    opacity: 1;
}

.hms-step-tabs .nav-link.active svg path {
    stroke: url(#hmsStepGradient);
}

.hms-step-no {
    display: inline-block;
    font-size: 54px;
    line-height: 1;
    background: var(--hms-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    color: transparent;
}

.hms-page .hms-step-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hms-page .hms-step-content p {
    max-width: 460px;
}

.hms-step-img {
    background: #EBF3FD69;
    border-radius: 14px;
    overflow: hidden;
}

.hms-step-img img {
    width: 100%;
}

@media (min-width: 768px) {
    .hms-step-pin {
        padding-top: 20px;
    }

    /* Panes share one grid cell and crossfade, so the height never jumps */
    .hms-step-content {
        display: grid;
        overflow-x: clip;
    }

    /* Panes after the active one wait on the right, panes before it on the left,
       so steps slide in from the side in the scroll direction */
    .hms-step-content>.tab-pane {
        display: block;
        grid-area: 1 / 1;
        opacity: 0;
        visibility: hidden;
        transform: translate3d(80px, 0, 0);
        transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.7s;
        will-change: transform, opacity;
    }

    .hms-step-content>.tab-pane.is-before {
        transform: translate3d(-80px, 0, 0);
    }

    /* JS sets is-current as soon as the step changes, so the outgoing and
       incoming panes slide together instead of waiting on Bootstrap's fade */
    .hms-step-content>.tab-pane.is-current {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .hms-step-tabs .nav-link,
    .hms-step-tabs .nav-link svg {
        transition: color 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
    }
}

/* ---------- Feature listing ---------- */
.hms-features {
    background: var(--hms-dark);
}

.hms-features-head {
    margin-bottom: 50px;
}

.hms-page .hms-features-head p {
    color: #b8bcc8;
}

.hms-feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 45px 30px;
    position: sticky;
    /* Each card sticks a little lower than the one before, so the stacked edges stay visible */
    top: calc(140px + var(--stack-index, 0) * 18px);
    box-shadow: 0px -4px 15px 0px #0000001F;
    transform-origin: center top;
    will-change: transform;
}

/* Darkens a card as the next one slides over it (opacity set from JS) */
.hms-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #000;
    opacity: var(--stack-shade, 0);
    pointer-events: none;
}


.hms-feature-card+.hms-feature-card {
    margin-top: 50px;
}

.hms-page .hms-feature-card-title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hms-feature-card-title span {
    color: var(--hms-blue);
}

.hms-dot-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.hms-dot-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 16px;
    border: 1px solid #97979733;
    border-radius: 30px;
    line-height: normal;
}

.hms-dot-list li::before {
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--dot, #1c9bf0);
}

.dot-blue {
    --dot: #1c9bf0;
}

.dot-lavender {
    --dot: #a78bfa;
}

.dot-orange {
    --dot: #ffa726;
}

.dot-purple {
    --dot: #b06cf2;
}

.dot-pink {
    --dot: #f57fa8;
}

.dot-green {
    --dot: #3fbf5c;
}

.dot-navy {
    --dot: #2152f3;
}

.dot-rose {
    --dot: #e0507c;
}

.dot-sand {
    --dot: #e8bd7a;
}

.dot-teal {
    --dot: #14c2a6;
}

.dot-violet {
    --dot: #8b2fd8;
}

.dot-red-orange {
    --dot: #f4511e;
}

.dot-gray {
    --dot: #9e9e9e;
}

.dot-mauve {
    --dot: #d48aac;
}

.dot-brick {
    --dot: #d9734e;
}

/* ---------- Why choose ---------- */

.hms-why-item {
    display: flex;
    gap: 15px;
}

.hms-why-icon {
    font-size: 40px;
    line-height: 1;
    background: var(--hms-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    width: 56px;
}

.hms-page .hms-why-item h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #202020;
}

.hms-page .hms-why-item p {
    color: #615E5B;
}


.hms-cta {
    border-radius: 20px;
    background-color: #0b5fe0;
    padding: 50px 20px;
    display: flex;
    align-items: center;
}


.hms-page .hms-cta p {
    color: #fff;
    margin-bottom: 20px;
}

/* ---------- Testimonials ---------- */
.hms-testimonials {
    background: #0967E112;
}

/* Equal-height slides: every slide stretches to the tallest card */
.hms-testimonial-slide .owl-stage {
    display: flex;
}

.hms-testimonial-slide .owl-item {
    display: flex;
}

.hms-testimonial-slide .item {
    display: flex;
    width: 100%;
}

.hms-testimonial-card,
.hms-video-card {
    width: 100%;
    /* Lets the clamped review wrap instead of widening the card */
    min-width: 0;
    min-height: 400px;
    border-radius: 10px;
}

.hms-testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 35px;
    border: 1px solid #BFD7F5;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hms-testimonial-card:hover {
    border-color: var(--hms-blue);
    box-shadow: 0 12px 30px rgba(11, 99, 229, 0.08);
}

.hms-quote-icon {
    position: absolute;
    top: 30px;
    right: 35px;
    font-size: 40px;
    color: #E3EDFB;
}

.hms-stars {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.hms-stars i {
    background: var(--hms-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
}

.hms-review {
    margin-bottom: 25px;
}

.hms-page .hms-testimonial-card .hms-review-text {
    margin-bottom: 0;
}

.hms-review-text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hms-read-more {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hms-blue);
    font-weight: 600;
}

.hms-read-more:hover,
.hms-read-more:focus-visible {
    text-decoration: underline;
}

/* Client details sit at the bottom so every card lines up */
.hms-client {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid #E6EDF7;
}

/* Owl sets slide images to full width; keep the avatar round and small */
.hms-page .hms-client img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #dfe6f1;
}

.hms-page .hms-client h3,
.hms-page .hms-video-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.hms-page .hms-client span {
    color: var(--hms-muted);
}

.hms-video-card {
    position: relative;
    overflow: hidden;
    background-color: var(--hms-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px;
    cursor: pointer;
}

.hms-video-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    transition: background 0.3s;
}

.hms-video-card:hover::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.88) 100%);
}

.hms-video-card:focus-visible {
    outline: 3px solid var(--hms-blue);
    outline-offset: 3px;
}

.hms-video-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 1;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.hms-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    padding-left: 4px;
    z-index: 1;
    transition: all 0.3s;
}

.hms-video-card:hover .hms-play-btn,
.hms-play-btn:hover {
    background: #fff;
    color: var(--hms-blue);
    transform: translate(-50%, -50%) scale(1.08);
}

/* Testimonial video popup */
.hms-video-modal .modal-content {
    position: relative;
    background: #fff;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.hms-video-modal video {
    display: block;
    width: 100%;
    max-height: 85vh;
    background: #fff;
}

.hms-video-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 56px;
    height: 56px;
    border: 0;
    background: #000;
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hms-video-modal-close:hover {
    background: var(--hms-blue);
}

.modal-backdrop.show {
    opacity: 0.75;
}

@media (max-width: 575px) {
    .hms-video-modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.hms-video-info {
    position: relative;
    z-index: 1;
    color: #fff;
}

.hms-video-info .hms-stars {
    margin-bottom: 10px;
}

.hms-page .hms-video-info h3 {
    color: #fff;
    margin-bottom: 4px;
}

.hms-page .hms-video-info span {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

/* Full review popup */
.hms-review-modal .modal-body {
    padding: 50px 45px 45px;
}

.hms-page .hms-review-modal .hms-review-text {
    margin-bottom: 0;
    white-space: pre-line;
}

.hms-review-modal .hms-client {
    margin-top: 25px;
}

@media (max-width: 575px) {
    .hms-review-modal .modal-body {
        padding: 45px 20px 25px;
    }
}

/* ---------- Blogs ---------- */
.hms-blog-caption {
    display: block;
    font-size: 16px;
    color: var(--hms-blue);
    margin-bottom: 10px;
}


.hms-arrow-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--hms-blue);
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.hms-arrow-btn:hover {
    background: var(--hms-blue);
    border-color: var(--hms-blue);
    color: #fff;
}

.hms-blog-card {
    display: block;
    color: #000;
}

.hms-blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 30px;
    background: #e9f1fb;
    transition: opacity 0.3s;
}

.hms-blog-card:hover img {
    opacity: 0.85;
}

.hms-blog-tag {
    display: inline-block;
    font-size: 14px;
    color: var(--hms-blue);
    padding: 4px 20px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.hms-page .hms-blog-card h3 {
    font-size: 16px;
    font-weight: 600;
    max-width: 400px;
    margin-bottom: 20px;
    line-height: 26px;
}

.hms-blog-card:hover h3 {
    color: var(--hms-blue);
}

.hms-blog-date {
    font-size: 15px;
    color: #666;
}

/* ---------- FAQ ---------- */
.hms-faq {
    background: #f5f6fa;
}

.hms-faq .hms-section-head {
    max-width: none;
    margin-bottom: 35px;
}

.hms-faq-caption {
    display: block;
    color: #ffa800;
    font-size: 16px;
    margin-bottom: 15px;
}

.hms-faq-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 0;
}

.hms-faq-accordion .accordion-item {
    border: 1px solid #fcecd2;
    border-radius: 4px;
    overflow: hidden;
}

.hms-faq-accordion .accordion-item+.accordion-item {
    margin-top: 30px;
}

.hms-faq-accordion .accordion-button {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    padding: 18px 20px;
    background: #fff;
    box-shadow: none;
}

.hms-faq-accordion .accordion-button::after {
    content: "\2212";
    background: none;
    transform: none;
    width: auto;
    height: auto;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    color: #ffa800;
}

.hms-faq-accordion .accordion-button:not(.collapsed)::after {
    content: "+";
}

.hms-faq-accordion .accordion-body {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 27px;
    color: #555;
    padding: 0 20px 20px;
    max-width: 1200px;
}

/* ---------- Let's Talk popup ----------
   Uses the global .lets-talk-modal sizing/breakpoints (main.css + responsive.css);
   only the HMS-specific header and fields are styled here. */
.hms-talk-modal .modal-content {
    border: 0;
    border-radius: 10px;
}

.hms-talk-modal .evolution-form-content {
    border-radius: 10px;
}

.hms-talk-modal .business-evolution-form .hms-talk-close {
    top: 25px;
    right: 25px;
    opacity: 1;
}

.hms-talk-caption {
    display: block;
    color: #ffa800;
    font-size: 15px;
    margin-bottom: 4px;
    padding-right: 30px;
}

.hms-talk-title {
    font-family: "DM Sans", sans-serif !important;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
}

.hms-talk-subtitle {
    font-size: 14px;
    color: #6b6b6b;
    margin-bottom: 0;
}

/* Role + country dropdowns */
.hms-dropdown {
    position: relative;
}

.hms-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 0 0 10px;
    border: 0;
    background: none;
    font-size: 14px;
    color: #000;
    text-align: left;
}

.hms-role-select .hms-dropdown-trigger {
    border-bottom: 1px solid #c5c5c5;
}

.hms-dropdown-trigger:focus-visible {
    outline: 0;
    border-bottom-color: #ffa800;
}

.hms-dropdown-trigger:disabled {
    cursor: not-allowed;
}

.hms-dropdown-trigger:disabled svg {
    opacity: 0.5;
}

.hms-dropdown-trigger .is-placeholder {
    color: #565656b2;
}

.hms-dropdown-trigger svg {
    flex-shrink: 0;
    color: #ffa800;
    transition: transform 0.2s;
}

.hms-dropdown-trigger.is-open svg {
    transform: rotate(180deg);
}

.hms-country-select .hms-dropdown-trigger {
    width: auto;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
}

.hms-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10;
    max-height: 224px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.hms-country-select .hms-dropdown-menu {
    right: auto;
    width: 300px;
    max-width: calc(100vw - 64px);
}

.hms-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 14px;
    border: 0;
    background: none;
    font-size: 14px;
    color: #212529;
    text-align: left;
    transition: background-color 0.12s;
}

.hms-dropdown-menu button:hover,
.hms-dropdown-menu button:focus-visible {
    outline: 0;
    background-color: #f8f9fa;
}

.hms-dropdown-menu .is-selected button {
    background-color: rgba(255, 168, 0, 0.1);
    color: #ffa800;
}

.hms-dropdown-flag {
    font-size: 18px;
    line-height: 1;
}

.hms-dropdown-check {
    margin-left: auto;
    font-size: 12px;
}

/* Phone: country picker | dial code | number */
.hms-phone-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #c5c5c5;
    padding-bottom: 10px;
}

.hms-phone-code {
    font-size: 14px;
    color: #000;
    padding-left: 10px;
    margin-left: 10px;
    border-left: 1px solid #c5c5c5;
}

.hms-talk-modal .contact-form-box .form-group .hms-phone-row .form-control {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 0 0 8px;
}

.hms-talk-modal .contact-form-box .hms-talk-textarea {
    resize: vertical;
    min-height: 34px;
}

/* Validation states (mirrors the Contact Us form) */
.hms-talk-modal .contact-form-box .form-group .form-control.hms-field-invalid,
.hms-role-select.hms-field-invalid .hms-dropdown-trigger,
.hms-phone-row.hms-field-invalid {
    border-bottom-color: #dc3545;
}

.hms-field-error {
    margin-top: 4px;
    font-size: 13px;
}

.hms-retry-btn {
    padding: 0;
    border: 0;
    background: none;
    color: #ffa800;
    font-weight: 600;
    text-decoration: underline;
}

.hms-textarea-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}

.hms-textarea-meta .hms-field-error {
    margin-top: 0;
}

.hms-char-count {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
}

.hms-char-count.is-short {
    color: #dc3545;
}

.hms-talk-submit {
    min-width: 144px;
    margin-top: 22px;
    padding: 11px 28px;
    background: #fbb02d;
    border: 1px solid #fbb02d;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    transition: all 0.3s;
}

.hms-talk-submit:hover {
    background: transparent;
}

.hms-talk-submit:disabled {
    background: #fbb02d;
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .hms-talk-title {
        font-size: 22px;
    }
}

@media (max-width: 575px) {
    /* Let the global orange round close button take over on phones */
    .hms-talk-modal .business-evolution-form .hms-talk-close {
        top: -8px;
        right: -4px;
    }

    .hms-talk-caption {
        font-size: 13px;
    }

    .hms-talk-title {
        font-size: 19px;
    }

    .hms-talk-subtitle {
        font-size: 13px;
    }

    .hms-talk-submit {
        width: 100%;
    }
}

/* ---------- Contact ---------- */
.hms-contact {
    padding: 100px 0 0;
    margin-bottom: -170px;
    position: relative;
    z-index: 2;
}

.hms-contact-box {
    background: #fff;
    padding: 45px 28px 32px 55px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.hms-contact-switch {
    display: flex;
    max-width: 333px;
    padding: 7px;
    border-radius: 40px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(255, 168, 0, 0.25);
    border: 1px solid #eee;
    margin-bottom: 40px;
}

.hms-contact-switch .nav-item {
    flex: 1;
}

.hms-contact-switch .nav-link {
    width: 100%;
    border: 0;
    border-radius: 30px;
    padding: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    background: none;
}

.hms-contact-switch .nav-link.active {
    background: #fbb02d;
    font-weight: 600;
}

.hms-contact-list li {
    padding: 20px 0;
    border-bottom: 2px dashed #ddd;
    max-width: 335px;
}

.hms-contact-list a {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
    color: #000;
}

.hms-contact-list a span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.hms-contact-list .icon-mail {
    color: #ea4335;
}

.hms-contact-list .icon-whatsapp {
    color: #25a640;
}

.hms-contact-list .icon-phone {
    color: #1c7ff2;
}

.hms-contact-list .icon-teams {
    color: #5059c9;
}

.hms-page .hms-follow-title {
    font-size: 16px;
    font-weight: 400;
    margin: 30px 0 18px;
}

.hms-social {
    display: flex;
    gap: 25px;
}

.hms-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    transition: transform 0.3s;
}

.hms-social a:hover {
    transform: translateY(-3px);
}

.hms-social .facebook {
    background: #1877f2;
}

.hms-social .linkedin {
    background: #0a85c9;
}

.hms-social .instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.hms-social .twitter {
    background: #000;
}

.hms-contact-form {
    height: 100%;
    border: 1px solid #aaa;
    border-radius: 6px;
    background: #fcfafa;
    padding: 35px 25px 40px;
    font-family: "DM Sans", sans-serif;
}

.hms-form-caption {
    display: block;
    color: #ffa800;
    font-size: 16px;
    margin-bottom: 8px;
}

.hms-form-title {
    font-family: "DM Sans", sans-serif !important;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hms-field {
    border-bottom: 1px solid #ccc;
    margin-bottom: 18px;
}

.hms-field .form-control,
.hms-field .form-select {
    border: 0;
    border-radius: 0;
    background-color: transparent;
    padding: 12px 0 8px;
    font-size: 14px;
    box-shadow: none;
}

.hms-field .form-select {
    background-position: right 0 center;
    background-size: 18px 14px;
    color: #555;
}

.hms-field textarea {
    resize: vertical;
}

.hms-phone-field {
    display: flex;
    align-items: center;
}

.hms-phone-field .form-select {
    width: 72px;
    flex-shrink: 0;
    font-weight: 600;
    color: #000;
    padding-right: 26px;
    background-position: right 4px center;
}

.hms-dial-code {
    font-size: 14px;
    padding: 0 14px;
    margin: 0 4px 0 10px;
    border-left: 1px solid #ccc;
}

.hms-submit-btn {
    min-width: 200px;
    background: #fbb02d;
    border: 1px solid #fbb02d;
    border-radius: 4px;
    padding: 13px 30px;
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin-top: 15px;
    transition: all 0.3s;
}

.hms-submit-btn:hover {
    background: transparent;
}

/* The contact box overlaps the top of the site footer */
.hms-page+.site-footer {
    padding-top: 270px;
}

.hms-feature-card img {
    object-fit: contain;
}

/* ==========================================================
   Responsive
   ========================================================== */


@media (min-width: 1200px) {
    .full-container {
        padding-inline-start: calc((100vw - 1140px) / 2);
        max-width: 100%;
    }
}

@media (min-width: 1400px) {
    .full-container {
        padding-inline-start: calc((100vw - 1400px) / 2);
        max-width: 100%;
    }
}

@media screen and (min-width:1200px) {
    .chosen-banner-img {
        position: absolute;
        right: 145px;
        bottom: 0;
        max-width: 867px;
    }
}

@media (max-width: 1399px) {
    .hms-feature-card {
        top: calc(90px + var(--stack-index, 0) * 18px);
    }

    .hms-feature-card+.hms-feature-card {
        margin-top: 40px;
    }

    .hms-hero-text {
        margin-bottom: 20px;
    }

    .hms-role-tabs {
        margin-bottom: 30px;
        gap: 18px;
    }

    .hms-role-tabs .nav-link {
        width: 128px;
    }

    .hms-eyebrow {
        margin-bottom: 15px;
    }

    .hms-testimonial-card,
    .hms-video-card {
        padding: 30px;
    }

    .hms-quote-icon {
        right: 30px;
    }

    .hms-page .hms-blog-card h3 {
        margin-bottom: 15px;
    }

    .hms-step-no {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .hms-page .hms-step-title {
        font-size: 26px;
    }

    .hms-title {
        font-size: 36px;
    }

    .hms-page .hms-feature-card-title {
        font-size: 28px;
    }

    .hms-page .hms-module-title {
        font-size: 12px;
    }

    .hms-page .hms-module-text p {
        font-size: 10px;
    }

    .hms-module-icon {
        width: 35px;
        height: 35px;
    }

    .hms-module-img {
        width: 80px;
        height: 65px;
    }

    .hms-hero-title {
        font-size: 50px;
        margin-bottom: 20px;
    }

    .hms-hero-points {
        margin-top: 20px;
    }


    .hms-dot-list li {
        padding: 8px 12px;
        font-size: 14px;
    }

    .hms-hero-points li {
        font-size: 13px;
    }

    .hms-page .hms-feature-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .hms-plus-list {
        margin-top: 30px;
    }
}

@media (max-width: 1199px) {
    .hms-hero-modules {
        padding-top: 70px;
    }

    .hms-module-text {
        max-width: none;
    }

    .hms-dot-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hms-contact-box {
        padding: 35px 25px;
    }
}

@media (max-width: 991px) {
    .hms-why-icon svg {
        max-width: 40px;
    }

    .hms-why-icon {
        width: 40px;
    }

    .hms-page .hms-why-item h3 {
        font-size: 16px;
    }

    .hms-btn-white {
        min-width: 180px;
    }

    .hms-cta {
        padding: 30px 20px;
    }

    .hms-page .hms-workflow-text {
        margin-top: 0;
    }

    .hms-role-tabs {
        gap: 15px;
    }

    .hms-title {
        margin-bottom: 15px;
    }

    .hms-about-text {
        margin-bottom: 25px;
    }

    .hms-heartbeat {
        height: 70px;
        margin-top: 30px;
    }

    .hms-btn {
        min-width: auto;
    }

    .hms-module-list {
        padding-left: 15px;
        border-left: 1px solid #ddd;
    }

    .hms-hero-media {
        margin-top: 10px;
        aspect-ratio: auto;
    }

    .hms-feature-card {
        padding: 35px 25px;
        position: relative;
        top: auto;
    }

    .hms-feature-card+.hms-feature-card {
        margin-top: 30px;
    }

    .hms-page .hms-feature-card-title {
        font-size: 26px;
    }

    .hms-plus-list {
        margin-top: 25px;
    }

    .hms-role-intro {
        margin-bottom: 40px;
    }

    .hms-demo-img {
        margin: 0 auto;
        max-height: 420px;
    }

    .hms-step-tabs {
        margin-bottom: 40px;
    }


    .hms-contact {
        margin-bottom: -120px;
    }

    .hms-page+.site-footer {
        padding-top: 200px;
    }

}

@media (max-width: 767px) {
    .hms-step-no {
        font-size: 44px;
        margin-bottom: 15px;
    }

    /* Workflow: no tabs on mobile, show every step stacked */
    .hms-step-tabs {
        display: none;
    }

    .hms-step-content>.tab-pane {
        display: block;
        opacity: 1;
        background-color: #F9F9F9;
        padding: 20px 15px;
        border-radius: 10px;
    }

    .hms-step-content>.tab-pane+.tab-pane {
        margin-top: 25px;
    }

    .hms-module-list {
        padding-left: 0;
        border-left: 0;
    }

    .hms-role-tabs .nav-link {
        width: 108px;
        font-size: 14px;
    }

    .hms-dot-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hms-page .hms-feature-card-title {
        font-size: 22px;
    }

    .hms-why-icon {
        font-size: 32px;
        width: 42px;
    }

    .hms-page .hms-why-item h3 {
        font-size: 18px;
    }

    .hms-page .hms-cta p {
        font-size: 15px;
    }

    .hms-btn-white {
        min-width: 0;
    }

    .hms-stars {
        font-size: 18px;
        gap: 8px;
        margin-bottom: 20px;
    }

    .hms-page .hms-client h3,
    .hms-page .hms-video-info h3 {
        font-size: 18px;
    }

    .hms-client {
        gap: 14px;
    }

    .hms-page .hms-client img {
        width: 56px;
        height: 56px;
    }


    .hms-faq-title {
        font-size: 20px;
    }

    .hms-faq-accordion .accordion-item+.accordion-item {
        margin-top: 15px;
    }

    .hms-contact {
        padding-top: 60px;
    }

    .hms-contact-box {
        padding: 25px 16px;
    }

    .hms-contact-form {
        padding: 25px 16px;
    }

    .hms-contact-list a {


        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .hms-page .hms-feature-card-title {
        margin-bottom: 15px;
    }

    .hms-hero-title {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .hms-hero-text {
        margin-bottom: 20px;
    }

    .hms-hero .hms-btn {
        padding: 8px 20px;
        gap: 18px;
    }

    .hms-btn {
        font-size: 14px;
    }

    .hms-hero-media {
        margin-top: 0;
    }

    .hms-heartbeat {
        display: none;
    }

    .hms-page .hms-module-title {
        font-size: 14px;
    }

    .hms-page .hms-module-text p {
        font-size: 11px;
    }

    .hms-module {
        gap: 10px;
    }

    .hms-title {
        font-size: 26px;
    }

    .hms-about-text {
        margin-bottom: 20px;
    }

    .hms-roles .hms-title br {
        display: none;
    }

    .hms-role-tabs .nav-link {
        width: 90px;
        min-height: auto;
        font-size: 11px;
    }

    .hms-role-tabs .nav-link span {
        bottom: 30px;
    }

    .hms-role-tabs {
        gap: 12px;
        margin-bottom: 20px;
    }

    .hms-role-intro {
        margin-bottom: 20px;
    }

    .hms-chips li {
        font-size: 11px;
    }

    .hms-page .hms-step-title,
    .hms-page .hms-feature-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .hms-plus-list li+li {
        margin-top: 10px;
    }

    .hms-plus-list li {
        font-size: 14px;
    }

    .hms-plus-list {
        margin-top: 20px;
    }

    .hms-roles .hms-btn,
    .hms-demo .hms-btn {
        width: 100%;
    }

    .hms-eyebrow::before {
        width: 20px;
    }

    .hms-demo p {
        margin-bottom: 20px;
    }

    .hms-step-tabs .nav-link {
        gap: 10px;
        padding: 15px 15px 0px;
        font-size: 14px;
    }

    .hms-step-no {
        font-size: 36px;
    }

    .hms-feature-card {
        padding: 15px;
    }

    .hms-dot-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hms-dot-list li {
        padding: 6px 11px;
        font-size: 12px;
    }

    .hms-dot-list li::before {
        width: 8px;
        height: 8px;
    }

    .hms-feature-card img {
        max-width: 200px;
    }

    .hms-feature-card+.hms-feature-card {
        margin-top: 20px;
    }

    .hms-page .hms-feature-card-title {
        font-size: 18px;
    }

    .hms-page .hms-why-item h3 {
        font-size: 15px;
    }

    .hms-why-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(90deg, rgba(9, 103, 225, 0.0784314) 0%, rgba(16, 201, 176, 0.0784314) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hms-why-icon svg {
        max-width: 25px;
    }

    .hms-cta {
        padding: 20px 15px;
    }

    .hms-btn-white {
        width: 100%;
        font-size: 14px;
        padding: 10px 15px;
    }

    .hms-cta-content {
        text-align: center;
    }

    .hms-cta-content .hms-title {
        margin-bottom: 15px !important;
    }

    .hms-testimonial-card,
    .hms-video-card {
        min-height: 340px;
        padding: 25px 20px;
    }

    .hms-quote-icon {
        top: 22px;
        right: 20px;
        font-size: 32px;
    }

    .hms-video-badge {
        top: 18px;
        left: 18px;
        font-size: 13px;
    }

    .hms-stars i {
        font-size: 16px;
    }

    .hms-stars {
        gap: 7px;
        margin-bottom: 15px;
    }

    .hms-review {
        margin-bottom: 20px;
    }

    .hms-client {
        padding-top: 20px;
    }

    .hms-page .hms-client img {
        width: 48px;
        height: 48px;
    }

    .hms-page .hms-client h3,
    .hms-page .hms-video-info h3 {
        font-size: 16px;
    }

    .hms-page .hms-client span,
    .hms-page .hms-video-info span {
        font-size: 13px;
    }

    .hms-client {
        gap: 12px;
    }

    .hms-blog-card img {
        height: 180px;
        margin-bottom: 20px;
    }



    .hms-play-btn {
        width: 60px;
        height: 60px;
    }

    .hms-arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .hms-blog-caption {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .hms-page .hms-blog-card h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .hms-blog-date {
        font-size: 13px;
    }

    .hms-eyebrow {
        gap: 6px;
        font-size: 10px;
    }

    .hms-hero-points {
        margin-top: 20px;
    }
}