﻿/* ============================================================
   browse-services.css
   Workflow.ng — Browse / Explore Services page.

   Loaded AFTER landing-theme.css (see BrowseServices.cshtml), so it
   inherits every --wf-* token, the .wf-btn-*, .wf-section-title,
   .wf-pill, .oServeContainer .oServe card, .editableContainer /
   .editableDiv search box, .choiceCard / .pill / advSearchModal
   classes etc. straight from the shared theme — nothing here is a
   competing design system, only the page-level layout + the extra
   "Explore Services" hero, category rail, sidebar filters and
   modal skin the reference design adds on top of them.

   Every id/class targeted below (editableContainer, findBiller,
   searchIcon, advServiceSearch, activeResultTitle, totalItems,
   sortServices, paymentRefItemsContainer, paginationContainer,
   advSearchModal, choiceCard, govLevel, pill, stateBlock, lgaBlock,
   stateSelect, lgaSelect, advApply, advReset, page-link, etc.) is
   read directly by browse-services.js / AppNavigation.js — none of
   that markup or behaviour changes, only its appearance.
   ============================================================ */

/* ============================================================
   1. PAGE HERO — "Explore Services"
============================================================ */
.svc-hero {
    position: relative;
    background: var(--wf-bg-soft);
    border-bottom: 1px solid var(--wf-line);
    padding: 38px 0 58px 0;
    overflow: hidden;
}

.svc-breadcrumb {
    font-size: .82rem;
    color: var(--wf-muted);
    margin-bottom: 10px;
}

    .svc-breadcrumb a {
        color: var(--wf-muted);
        text-decoration: none;
        font-weight: 600;
    }

        .svc-breadcrumb a:hover {
            color: var(--wf-primary);
        }

    .svc-breadcrumb .bi {
        font-size: .7rem;
        margin: 0 6px;
        vertical-align: middle;
    }

    .svc-breadcrumb .svc-crumb-current {
        color: var(--wf-ink);
        font-weight: 700;
    }

.svc-hero-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.svc-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--wf-ink);
    margin-bottom: 10px;
}

.svc-hero-sub {
    color: var(--wf-muted);
    font-size: 1.02rem;
    max-width: 520px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* Decorative motif on the right, echoing the reference image's
   dotted-orbit / badge illustration. Purely ornamental — hidden on
   smaller screens so it never competes with the search bar. */
.svc-hero-motif {
    position: relative;
    width: 260px;
    height: 100px;
    flex: 0 0 auto;
    margin-top: 4px;
    display: none;
}

@media (min-width: 992px) {
    .svc-hero-motif {
        display: block;
    }
}

.svc-motif-ring {
    position: absolute;
    border: 1.5px dashed #cfe3da;
    border-radius: 50%;
}

    .svc-motif-ring.r1 {
        width: 140px;
        height: 140px;
        top: -20px;
        right: 60px;
    }

    .svc-motif-ring.r2 {
        width: 90px;
        height: 90px;
        top: 10px;
        right: 10px;
    }

.svc-motif-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wf-accent-light);
    color: var(--wf-primary);
    box-shadow: var(--wf-shadow);
}

    .svc-motif-badge.b1 {
        width: 42px;
        height: 42px;
        font-size: 18px;
        top: -12px;
        right: 130px;
    }

    .svc-motif-badge.b2 {
        width: 30px;
        height: 30px;
        font-size: 14px;
        top: 34px;
        right: 190px;
        background: #fff;
    }

    .svc-motif-badge.b3 {
        width: 36px;
        height: 36px;
        font-size: 15px;
        top: 58px;
        right: 20px;
    }

.svc-motif-search {
    position: absolute;
    top: 8px;
    right: 30px;
    width: 112px;
    height: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--wf-shadow);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
}

    .svc-motif-search .bar {
        flex: 1;
        height: 6px;
        border-radius: 4px;
        background: var(--wf-line);
    }

    .svc-motif-search .bi {
        color: var(--wf-muted);
        font-size: 13px;
    }

/* ============================================================
   2. SEARCH BAR
   Reuses .editableContainer / .editableDiv / .searchIcon /
   .findBiller from landing-theme.css's hero search — restyled here
   into the wider, standalone "search + category + button" bar from
   the reference design (Home's hero keeps its own compact version).
============================================================ */
.svc-search-row {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--wf-line);
    border-radius: 16px;
    box-shadow: var(--wf-shadow);
    padding: 8px;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

    .svc-search-row .editableContainer {
        flex: 1;
        min-width: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        height: 48px;
        display: flex;
        align-items: center;
        padding: 0 6px 0 14px;
        position: relative;
    }

        .svc-search-row .editableContainer .bi-search,
        .svc-search-row .editableContainer .fa-search {
            color: var(--wf-muted);
            margin-right: 10px;
            font-size: .95rem;
        }

    .svc-search-row .editableDiv {
        width: 100%;
        max-width: 100%;
        font-size: .95rem;
        font-weight: 500;
        color: var(--wf-ink);
        outline: none;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

        .svc-search-row .editableDiv::-webkit-scrollbar {
            display: none;
        }

        .svc-search-row .editableDiv:empty:before {
            content: attr(data-placeholder);
            color: #8a9793;
            font-weight: 400;
        }

.svc-search-catselect {
    border: 0;
    border-left: 1px solid var(--wf-line);
    background: transparent;
    color: var(--wf-muted);
    font-weight: 600;
    font-size: .88rem;
    padding: 0 14px;
    min-width: 160px;
}

    .svc-search-catselect:focus {
        outline: none;
    }

.svc-search-row .searchIcon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--wf-primary);
    color: #fff !important;
    font-weight: 700 !important;
    font-size: .92rem !important;
    padding: 0 26px;
    border-radius: 11px !important;
    cursor: pointer;
    transition: background .18s ease;
    white-space: nowrap;
}

    .svc-search-row .searchIcon:hover {
        background: var(--wf-primary-dark);
    }

    .svc-search-row .searchIcon .fa-arrow-right {
        display: none; /* the reference "Search" button has no trailing arrow */
    }

/* Autocomplete flyout (.selectOptionsContainer2 / #appendSelectOptions2,
   populated by browse-services.js's loadSearchServices()/loadServicesTwo()) */
.selectOptionsContainer2 {
    display: none;
    background: #fff;
    z-index: 1200;
    border: 1px solid var(--wf-line) !important;
    box-shadow: var(--wf-shadow) !important;
    max-height: 360px;
    overflow-y: auto;
}

    .selectOptionsContainer2 .clickElement {
        cursor: pointer;
        border-radius: 10px;
        transition: background .15s ease;
    }

        .selectOptionsContainer2 .clickElement:hover {
            background: var(--wf-bg-soft);
        }

.svc-popular-searches {
    margin-top: 10px;
    font-size: .85rem;
    color: var(--wf-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.svc-pop-pill {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--wf-line);
    color: var(--wf-ink);
    font-weight: 600;
    font-size: .82rem;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: all .15s ease;
}

    .svc-pop-pill:hover {
        border-color: var(--wf-primary);
        color: var(--wf-primary);
        background: var(--wf-accent-light);
    }

/* ============================================================
   3. BROWSE BY CATEGORY RAIL
   Mirrors Home.cshtml's .wf-cat-card grid so the two pages share
   one visual language, but laid out as the reference design's
   single-row icon rail (icon-over-label, no counts/borderless feel).
============================================================ */
.svc-categories {
    padding: 18px 0 4px 0;
}

.svc-cat-heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--wf-ink);
    margin-bottom: 12px;
}

.svc-cat-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .svc-cat-rail {
        grid-template-columns: repeat(8, 1fr);
    }
}

.svc-cat-tile {
    background: #fff;
    border: 1px solid var(--wf-line);
    border-radius: 14px;
    padding: 20px 10px 16px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all .2s ease;
    height: 100%;
}

    .svc-cat-tile:hover {
        transform: translateY(-3px);
        box-shadow: var(--wf-shadow);
        border-color: transparent;
    }

    .svc-cat-tile.is-active {
        border-color: var(--wf-primary);
        background: var(--wf-accent-light);
    }

.svc-cat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

/* Tasteful, varied icon tints — same trick the reference design
   uses so the rail doesn't read as one flat block of green. */
.svc-cat-tile:nth-child(8n+1) .svc-cat-icon {
    background: #e6f5ef;
    color: #0e6b4e;
}

.svc-cat-tile:nth-child(8n+2) .svc-cat-icon {
    background: #fdece1;
    color: #d9722c;
}

.svc-cat-tile:nth-child(8n+3) .svc-cat-icon {
    background: #f1ecfb;
    color: #6c4fd1;
}

.svc-cat-tile:nth-child(8n+4) .svc-cat-icon {
    background: #f1ecfb;
    color: #7a4fd1;
}

.svc-cat-tile:nth-child(8n+5) .svc-cat-icon {
    background: #e7f0fd;
    color: #2563eb;
}

.svc-cat-tile:nth-child(8n+6) .svc-cat-icon {
    background: #f1ecfb;
    color: #8b5cf6;
}

.svc-cat-tile:nth-child(8n+7) .svc-cat-icon {
    background: #fdeaea;
    color: #d1443f;
}

.svc-cat-tile:nth-child(8n+8) .svc-cat-icon {
    background: #e7f0fd;
    color: #2563eb;
}

.svc-cat-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--wf-ink);
    line-height: 1.25;
}

/* ============================================================
   4. RESULTS TOOLBAR
============================================================ */
.svc-toolbar {
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.svc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--wf-ink);
    margin: 0;
}

.svc-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex-wrap: wrap;
}

.svc-result-count {
    font-size: .85rem;
    color: var(--wf-muted);
    white-space: nowrap;
}

    .svc-result-count .totalItems {
        color: var(--wf-ink);
        font-weight: 700;
    }

.svc-adv-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--wf-line);
    color: var(--wf-ink);
    font-weight: 700;
    font-size: .85rem;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}

    .svc-adv-trigger:hover {
        border-color: var(--wf-primary);
        color: var(--wf-primary);
        background: var(--wf-accent-light);
    }

    .svc-adv-trigger .bi,
    .svc-adv-trigger .fas {
        color: var(--wf-primary);
    }

.svc-active-scope {
    font-size: .85rem;
    color: var(--wf-muted);
}

    .svc-active-scope .activeResultTitle {
        color: var(--wf-primary);
        font-weight: 700;
    }

    .svc-active-scope .fa-sun {
        color: #f0b23d !important;
        margin-left: 3px;
    }

#sortServices.form-select {
    border: 1px solid var(--wf-line);
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--wf-ink);
    padding: 9px 32px 9px 14px;
    min-width: 170px;
}

    #sortServices.form-select:focus {
        box-shadow: none;
        border-color: var(--wf-primary);
    }

/* ============================================================
   5. RESULTS GRID + SIDEBAR LAYOUT
============================================================ */
.svc-results-row {
    align-items: flex-start;
    margin-top: 22px;
}

.svc-results-col {
    min-width: 0;
}

#paymentRefItemsContainer {
    row-gap: 20px;
}

    /* Section sub-heading browse-services.js inserts between MDA
       groups via jQuery's .append(html) per categoryMap entry —
       left as plain text by the script, styled generically here. */
    #paymentRefItemsContainer > .mt-3.mb-2.fw-bold.text-muted {
        font-size: .95rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--wf-muted) !important;
    }

/* ============================================================
   6. SERVICE CARD
   Same .oServe element/markup produced by browse-services.js's
   loadServices() and home.js's loadRandomServices() — this is the
   ONE definition both pages now share (landing-theme.css's older
   .oServeContainer .oServe rules are superseded by this file, which
   loads after it), matching the reference design's card: category
   tag, title, provider, blurb, price + duration, footer.
============================================================ */
.oServeContainer .oServe,
.oServe {
    position: relative;
    background: #fff;
    border: 1px solid var(--wf-line);
    border-radius: 16px;
    padding: 20px 20px 18px 20px;
    height: 100%;
    min-height: 0;
    cursor: pointer;
    transition: all .2s ease;
    margin-bottom: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

    .oServeContainer .oServe:hover,
    .oServe:hover {
        transform: translateY(-3px);
        box-shadow: var(--wf-shadow);
        border-color: transparent;
    }

/* Category tag — real dedicated element (.oServeCatTag), injected as
   the first child by home.js's loadRandomServices() and
   browse-services.js's loadServices() via the shared
   getServiceCategoryTag() helper (a stable hash of the MDA name, so
   the same provider always gets the same tag + colour on both
   pages). Distinct background/font colour per category, matching
   the reference design's multicoloured chips. */
.oServeCatTag {
    display: inline-block;
    align-self: flex-start;
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .01em;
    padding: 4px 11px;
    border-radius: 20px;
    margin-bottom: 12px;
}

    .oServeCatTag.cat-green {
        background: #e6f5ef;
        color: #0e6b4e;
    }

    .oServeCatTag.cat-orange {
        background: #fdece1;
        color: #c76a1f;
    }

    .oServeCatTag.cat-purple {
        background: #f1ecfb;
        color: #6c4fd1;
    }

    .oServeCatTag.cat-violet {
        background: #f2ebfb;
        color: #8b3fd6;
    }

    .oServeCatTag.cat-blue {
        background: #e7f0fd;
        color: #2563eb;
    }

    .oServeCatTag.cat-red {
        background: #fdeaea;
        color: #d1443f;
    }

    .oServeCatTag.cat-teal {
        background: #e3f6f5;
        color: #0f8e88;
    }

/* .multicolor-dash badge — hidden here; the category tag above
   already carries the category signal the reference design uses, so
   the dot/icon badge from the old home layout would be redundant. */
.oServeContainer .oServe .multicolor-dash,
.oServe .multicolor-dash {
    display: none;
}

.oServeContainer .oServe h4,
.oServe h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--wf-ink);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

/* Provider name under the title (e.g. "Corporate Affairs Commission
   (CAC)"), rendered by both scripts as a plain <p class="smallText"> */
.oServeContainer .oServe .smallText,
.oServe .smallText {
    font-size: .82rem;
    color: var(--wf-muted);
    font-weight: 500;
}

.oServeContainer .oServe > p:not(.smallText),
.oServe > p:not(.smallText) {
    font-size: .87rem;
    color: var(--wf-muted);
    line-height: 1.5;
    margin: 8px 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Fee + duration row — browse-services.js emits raw <span
   style="background:..."> pills; strip the inline pill chrome and
   lay them out as the reference design's price line + duration
   chip + footer divider. */
.oServeContainer .oServe span[style*="background"],
.oServe span[style*="background"] {
    display: inline-block !important;
}

.oServeContainer .oServe span[style*="background:#000000"],
.oServe span[style*="background:#000000"],
.oServeContainer .oServe span[style*="background:#28a778"],
.oServe span[style*="background:#28a778"],
.oServeContainer .oServe span[style*="background:#3a9590"],
.oServe span[style*="background:#3a9590"] {
    background: transparent !important;
    color: var(--wf-ink) !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-top: auto;
    padding-top: 12px !important;
    border-top: 1px solid var(--wf-line);
    width: 100%;
}

.oServeContainer .oServe span[style*="background:#f1f3f5"],
.oServe span[style*="background:#f1f3f5"] {
    background: transparent !important;
    color: var(--wf-muted) !important;
    font-weight: 600 !important;
    font-size: .78rem !important;
    padding: 0 !important;
    border-radius: 0 !important;
    float: right;
}

    .oServeContainer .oServe span[style*="background:#f1f3f5"] .bi,
    .oServeContainer .oServe span[style*="background:#f1f3f5"]:before {
        content: "\f293";
        font-family: "bootstrap-icons";
        margin-right: 4px;
    }

/* Wrapper the fee/duration spans sit in (present on the browse page
   grid card; absent on Home's popular-services card, which is fine —
   the rule is harmless either way). */
.oServeContainer .oServe > .d-flex.align-items-center.mt-4 {
    display: flex !important;
    align-items: center !important;
    margin-top: auto !important;
    padding-top: 12px;
    border-top: 1px solid var(--wf-line);
}

    .oServeContainer .oServe > .d-flex.align-items-center.mt-4 p {
        margin: 0 !important;
    }

        .oServeContainer .oServe > .d-flex.align-items-center.mt-4 p:first-child {
            flex: 1;
        }

/* Favourite / heart affordance in the top-right corner, matching the
   reference design — purely decorative (no existing hook to wire a
   "save service" feature to yet), sits above the card content. */
.oServe-fav {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wf-bg-soft);
    color: var(--wf-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    z-index: 2;
}

/* ============================================================
   7. EMPTY / LOADING STATES
============================================================ */
.svc-state-msg {
    text-align: center;
    padding: 60px 20px;
    color: var(--wf-muted);
}

    .svc-state-msg .bi {
        font-size: 2rem;
        color: var(--wf-line);
        display: block;
        margin-bottom: 12px;
    }

/* ============================================================
   8. PAGINATION
============================================================ */
#paginationContainer .pagination {
    gap: 6px;
    margin-top: 10px;
}

#paginationContainer .page-link {
    border: 1px solid var(--wf-line);
    color: var(--wf-ink);
    font-weight: 600;
    font-size: .85rem;
    border-radius: 8px !important;
    padding: 7px 14px;
    cursor: pointer;
}

    #paginationContainer .page-link:hover {
        border-color: var(--wf-primary);
        color: var(--wf-primary);
        background: var(--wf-accent-light);
    }

#paginationContainer .page-item.active .page-link,
#paginationContainer .active > .page-link {
    background: var(--wf-primary) !important;
    border-color: var(--wf-primary) !important;
    color: #fff !important;
}

/* ============================================================
   9. SIDEBAR — Filter services / How it works
============================================================ */
.svc-sidebar-card {
    background: #fff;
    border: 1px solid var(--wf-line);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
}

.svc-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--wf-ink);
    margin-bottom: 18px;
}

    .svc-sidebar-title .bi {
        color: var(--wf-primary);
    }

.svc-filter-group {
    margin-bottom: 18px;
}

    .svc-filter-group:last-of-type {
        margin-bottom: 20px;
    }

.svc-filter-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--wf-ink);
    margin-bottom: 8px;
}

.svc-filter-group .form-select {
    border: 1px solid var(--wf-line);
    border-radius: 10px;
    font-size: .85rem;
    color: var(--wf-ink);
    padding: 9px 30px 9px 12px;
}

    .svc-filter-group .form-select:focus {
        box-shadow: none;
        border-color: var(--wf-primary);
    }

.svc-check-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.svc-check-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .85rem;
    color: var(--wf-ink);
    cursor: pointer;
}

    .svc-check-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        border: 1px solid var(--wf-line);
        cursor: pointer;
        accent-color: var(--wf-primary);
    }

.svc-clear-filters {
    width: 100%;
    background: #fff;
    border: 1px solid var(--wf-line);
    color: var(--wf-ink);
    font-weight: 700;
    font-size: .85rem;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .18s ease;
}

    .svc-clear-filters:hover {
        border-color: var(--wf-primary);
        color: var(--wf-primary);
        background: var(--wf-accent-light);
    }

/* How it works — dark card, matches the deep-green footer / stats
   bar tone already used elsewhere on the site. */
.svc-hiw-card {
    background: linear-gradient(160deg, var(--wf-primary-darker), var(--wf-primary-dark));
    border-radius: 16px;
    padding: 24px 22px;
    color: #eaf3ef;
}

.svc-hiw-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.svc-hiw-step {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 22px;
}

    .svc-hiw-step:last-child {
        padding-bottom: 0;
    }

    .svc-hiw-step:not(:last-child):before {
        content: "";
        position: absolute;
        left: 15px;
        top: 34px;
        bottom: 2px;
        width: 1px;
        background: rgba(255,255,255,.18);
    }

.svc-hiw-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
}

.svc-hiw-step-title {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.svc-hiw-step-text {
    font-size: .8rem;
    color: #cfe3da;
    line-height: 1.4;
    margin: 0;
}

/* ============================================================
   10. CUSTOM AUTOMATION CTA STRIP
============================================================ */
.svc-cta-strip {
    margin-top: 24px;
    background: var(--wf-bg-soft);
    border-radius: 18px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.svc-cta-icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--wf-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--wf-primary);
}

.svc-cta-body {
    flex: 1;
    min-width: 220px;
}

.svc-cta-title {
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--wf-ink);
    margin-bottom: 2px;
}

.svc-cta-text {
    font-size: .87rem;
    color: var(--wf-muted);
    margin: 0;
}

/* ============================================================
   11. ADVANCED SEARCH MODAL — redesign
   Targets the SAME #advSearchModal / .advSearchBox / .choiceCard /
   .pill / .stateBlock / .lgaBlock / #stateSelect / #lgaSelect /
   .advApply / .advReset markup already in _Layout_home.cshtml and
   already wired by browse-services.js — only its skin changes, into
   a calmer, more "classy" card that matches the forest-green /
   cream theme instead of the old white/amber styling.
============================================================ */
#advSearchModal {
    background: rgba(10, 26, 21, .55);
    backdrop-filter: blur(2px);
}

.advSearchBox {
    width: 620px;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(7, 58, 42, .35);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.advSearchHeader {
    background: linear-gradient(135deg, var(--wf-primary-darker), var(--wf-primary));
    color: #fff;
    padding: 22px 26px;
    border-bottom: 0;
}

    .advSearchHeader span:first-child {
        font-size: 1.15rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .advSearchHeader span:first-child:before {
            content: "\f002";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            font-size: .95rem;
            width: 34px;
            height: 34px;
            border-radius: 10px;
            background: rgba(255,255,255,.14);
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

.advSearchClose {
    color: rgba(255,255,255,.85);
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
    line-height: 1;
}

    .advSearchClose:hover {
        background: rgba(255,255,255,.16);
        color: #fff;
    }

.advSearchBody {
    padding: 26px;
    background: #fff;
}

.searchLabel {
    font-size: .78rem;
    font-weight: 700;
    color: var(--wf-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Corporate / Government choice cards */
.choiceCards {
    gap: 14px;
}

.choiceCard {
    border: 1.5px solid var(--wf-line);
    border-radius: 14px;
    padding: 20px 16px;
    background: #fff;
    transition: all .18s ease;
}

    .choiceCard i {
        width: 42px;
        height: 42px;
        margin: 0 auto 10px auto;
        border-radius: 11px;
        background: var(--wf-accent-light);
        color: var(--wf-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

    .choiceCard span {
        font-size: .88rem;
        font-weight: 700;
        color: var(--wf-ink);
    }

    .choiceCard:hover {
        border-color: var(--wf-primary);
        box-shadow: var(--wf-shadow);
        transform: translateY(-2px);
    }

    .choiceCard.active {
        background: var(--wf-accent-light);
        border-color: var(--wf-primary);
    }

        .choiceCard.active i {
            background: var(--wf-primary);
            color: #fff;
        }

/* Federal / State / Local pill selector */
.pillSelector {
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    border: 1.5px solid var(--wf-line);
    background: #fff;
    color: var(--wf-ink);
    font-weight: 600;
    font-size: .85rem;
    padding: 9px 20px;
    transition: all .15s ease;
}

    .pill:hover {
        border-color: var(--wf-primary);
        color: var(--wf-primary);
    }

    .pill.active {
        background: var(--wf-primary);
        border-color: var(--wf-primary);
        color: #fff;
    }

.govBlock, .stateBlock, .lgaBlock {
    margin-top: 4px;
}

    /* State / LGA selects — plain <select> elements upgraded by
   TomSelect at runtime; these rules style the pre-init selects and
   are harmlessly superseded by TomSelect's own control markup once
   it initialises. */
    .stateBlock select,
    .lgaBlock select,
    #stateSelect,
    #lgaSelect {
        width: 100%;
        border: 1.5px solid var(--wf-line);
        border-radius: 10px;
        padding: 10px 12px;
        font-size: .88rem;
        color: var(--wf-ink);
        background: #fff;
    }

/* TomSelect chrome, restyled to match */
.ts-wrapper.single .ts-control {
    border: 1.5px solid var(--wf-line) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
}

.ts-wrapper.focus .ts-control {
    border-color: var(--wf-primary) !important;
}

.ts-dropdown {
    border: 1px solid var(--wf-line) !important;
    border-radius: 10px !important;
    box-shadow: var(--wf-shadow) !important;
}

    .ts-dropdown .active {
        background: var(--wf-accent-light) !important;
        color: var(--wf-primary) !important;
    }

.advSearchFooter {
    background: var(--wf-bg-soft);
    border-top: 1px solid var(--wf-line);
    padding: 18px 26px;
}

    .advSearchFooter .advReset {
        background: #fff;
        border: 1.5px solid var(--wf-line);
        color: var(--wf-ink);
        font-weight: 700;
        font-size: .85rem;
        padding: 10px 20px;
        border-radius: 10px;
    }

        .advSearchFooter .advReset:hover {
            border-color: var(--wf-primary);
            color: var(--wf-primary);
        }

    .advSearchFooter .advApply {
        background: var(--wf-primary);
        border: 1.5px solid var(--wf-primary);
        color: #fff;
        font-weight: 700;
        font-size: .85rem;
        padding: 10px 22px;
        border-radius: 10px;
    }

        .advSearchFooter .advApply:hover {
            background: var(--wf-primary-dark);
            border-color: var(--wf-primary-dark);
        }

@media (max-width: 768px) {
    .advSearchBox {
        width: 100vw;
    }

    .advSearchHeader {
        padding: 20px;
    }

    .advSearchBody {
        padding: 20px;
    }

    .advSearchFooter {
        padding: 16px 20px;
    }
}

/* ============================================================
   12. RESPONSIVE
============================================================ */
@media (max-width: 991px) {
    .svc-hero-title {
        font-size: 1.9rem;
    }

    .svc-cat-rail {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 575px) {
    .svc-hero-title {
        font-size: 1.6rem;
    }

    .svc-search-row {
        flex-wrap: wrap;
    }

    .svc-search-catselect {
        border-left: 0;
        border-top: 1px solid var(--wf-line);
        width: 100%;
        order: 3;
        padding-top: 10px;
    }

    .svc-search-row .searchIcon {
        width: 100%;
        order: 2;
        padding: 12px 0;
    }

    .svc-cat-rail {
        grid-template-columns: repeat(3, 1fr);
    }

    .svc-toolbar-meta {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}
