/* How It Works page redesign (2026-09 UI refresh) - pill toggle, numbered
   step cards with a dashed connector, and a closing CTA banner. Same
   reasoning as jp-tenders.css: justprocure-marketing.min.css only compiles
   Bootstrap classes already referenced elsewhere, so these new patterns
   live in their own hand-authored file. */

:root {
    --jp-teal: #1fa391;
    --jp-teal-dark: #158577;
    --jp-teal-tint: #e4f3ef;
    --jp-ink: #101E36;
    --jp-muted: #6b7684;
}

/* ---- pill toggle ---- */
.jp-hiw-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid #e4e8ed;
    border-radius: 999px;
    padding: .3rem;
    gap: .25rem;
}

.jp-hiw-toggle button {
    border: none;
    background: transparent;
    padding: .6rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9375rem;
    color: var(--jp-ink);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.jp-hiw-toggle button.active {
    background: var(--jp-teal);
    color: #fff;
}

/* ---- step list: numbered dot + dashed connector, mirrors .jp-stepper's
   technique (see jp-tenders.css) but reskinned for a static info page ---- */
.jp-hiw-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jp-hiw-item {
    position: relative;
    padding: 0 0 1.5rem 3.35rem;
}

.jp-hiw-item:last-child {
    padding-bottom: 0;
}

.jp-hiw-item::before {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 2.75rem;
    bottom: -.25rem;
    border-left: 2px dashed #bfe3da;
}

.jp-hiw-item:last-child::before {
    display: none;
}

.jp-hiw-item__dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--jp-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .875rem;
}

.jp-hiw-item__card {
    background: #fff;
    border: 1px solid #e4e8ed;
    border-radius: .75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 1px 2px rgba(16, 30, 54, .04);
    height: 100%;
}

.jp-hiw-item__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .65rem;
    background: var(--jp-teal-tint);
    color: var(--jp-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.jp-hiw-item__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-weight: 700;
    color: var(--jp-ink);
    margin-bottom: .35rem;
}

.jp-hiw-item__text {
    color: var(--jp-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.jp-hiw-item__tag {
    font-size: .6875rem;
    font-weight: 600;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: var(--jp-teal-tint);
    color: #1d6e5c;
    white-space: nowrap;
}

/* ---- closing CTA banner ---- */
.jp-hiw-cta {
    background: linear-gradient(135deg, #e9f5f1 0%, #eaf6f2 100%);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.jp-hiw-cta__icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: #fff;
    color: var(--jp-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 1px 3px rgba(16, 30, 54, .08);
}

.jp-hiw-cta__icon i.ti-circle-check {
    position: absolute;
    right: -.4rem;
    bottom: -.4rem;
    font-size: 1.35rem;
    color: var(--jp-teal);
    background: #fff;
    border-radius: 50%;
}

.jp-hiw-cta__divider {
    width: 1px;
    align-self: stretch;
    background: #cfe6df;
}

.jp-hiw-cta__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--jp-ink);
    margin-bottom: .25rem;
}

.jp-hiw-cta__text {
    color: var(--jp-muted);
    font-size: .9375rem;
    margin-bottom: 1.1rem;
}

@media (max-width: 767px) {
    .jp-hiw-cta {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .jp-hiw-cta__divider {
        display: none;
    }
}
