/* ================================================================
   search-index.css
   Page-specific styles for Search/Index.cshtml (provider lookup
   and results page).
   ================================================================ */

/* ----------------------------------------------------------------
   Layout overrides — full-width on this page
   ---------------------------------------------------------------- */
.ps-left-pane  { display: none; }
.ps-right-pane { flex: 0 0 100%; max-width: 100%; width: 100%; padding-left: 0; }

/* ----------------------------------------------------------------
   Search form shell
   ---------------------------------------------------------------- */
.ps-lookup-shell {
    padding: 16px 0 24px;
    text-align: left;
}

.ps-three-column-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 150px;
    gap: 18px;
    align-items: start;
    width: 100%;
}

.ps-left-column,
.ps-middle-column,
.ps-right-column { min-width: 0; }

.ps-right-column { padding-top: 38px; }

.ps-intro-copy {
padding: 24px 12px 18px 16px;
color: #1d2a33;
    font-size: 11px;
    line-height: 1.42;
    text-align: left;
}

.ps-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #005596;
    font-size: 12px;
    text-decoration: underline;
}
.ps-home-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ----------------------------------------------------------------
   Lookup panel & step wizard
   ---------------------------------------------------------------- */
.ps-lookup-heading {
    margin: 0 0 12px;
    color: #666644;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0;
}

.ps-lookup-panel {
    position: relative;
    border: 1px solid #c9c4aa;
    border-radius: 0;
    background: #fff9e8;
    box-shadow: 0 2px 8px rgba(15,23,42,.12);
    padding: 18px 20px 20px;
}

.ps-step-list {
    position: relative;
    display: grid;
    gap: 26px;
}
.ps-step-row {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.ps-step-row .ps-step-marker { position: relative; z-index: 1; margin-top: 0; }

/* Connector below each step: small circle at the top, vertical line,
   arrow head pointing to the next step (or to the Find Providers button). */
.ps-step-row::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50px;
    bottom: -2px;
    width: 12px;
    background-image:
        radial-gradient(circle 5px at 6px 5px, #6aa9ce 98%, transparent 100%),
        linear-gradient(#6aa9ce, #6aa9ce);
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, 5px 12px;
    background-size: 12px 12px, 2px calc(100% - 12px);
}
.ps-step-row::after {
    content: "";
    position: absolute;
    left: 13px;
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #6aa9ce;
}

/* Step marker (green numbered circle) */
.ps-step-marker {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(180deg, #76c442 0%, #5dac30 100%);
    border: 2px solid #f4ffe8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(15,23,42,.18);
    flex-shrink: 0;
}

.ps-step-card {
    overflow: visible;
    border: 1px solid #b9b39a;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15,23,42,.14);
}

.ps-step-title {
    margin: 0;
    padding: 7px 12px;
    background: #00659b;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.ps-step-body { padding: 14px 16px 16px; }

.ps-step-kicker {
    margin: 0 0 12px;
    color: #1678bd;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Form controls inside lookup panel */
.ps-lookup-panel .form-label {
    margin-bottom: 4px;
    color: #1d2a33;
    font-size: 12px;
    font-weight: 700;
}
.ps-lookup-panel .form-control,
.ps-lookup-panel .form-select,
.ps-lookup-panel .specialty-dropdown-toggle {
    height: 34px;
    border-color: #8495a1;
    border-radius: 3px;
    background-color: #eaf4fa;
    color: #111;
    font-size: 13px;
    line-height: 1.25;
    padding: 5px 8px;
}
.ps-lookup-panel .form-select { height: 34px; padding: 5px 28px 5px 8px; line-height: normal; }

/* Location row */
.ps-location-row {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: nowrap;
    width: 90%;
}
.ps-location-field { min-width: 0; }
.ps-location-field-city  { flex: 2; }
.ps-location-field-state { flex: 1; }
.ps-location-field-zip   { flex: .75; }

.ps-lookup-panel .ps-location-control {
    height: 22px;
    min-height: 22px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #8495a1;
    border-radius: 3px;
    background-color: #eaf4fa;
    color: #111;
    font-size: 12px;
    line-height: 1.1;
    padding: 2px 6px;
}
.ps-lookup-panel select.ps-location-control { height: 22px; min-height: 22px; padding: 0 24px 0 6px; }

/* Distance row */
.ps-distance-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: nowrap;
}
.ps-distance-row span:empty { display: none; }
.ps-distance-row .form-select { width: auto; min-width: 96px; flex: 0 0 auto; box-sizing: border-box; }
.ps-lookup-panel .ps-distance-control { height: 22px; min-height: 22px; padding: 0 24px 0 6px; line-height: 1.1; }

/* Provider / specialty row */
.ps-provider-row,
.ps-specialty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 94%;
}
.ps-provider-row .form-label,
.ps-specialty-row .form-label { flex: 0 0 112px; margin-bottom: 0; white-space: nowrap; }
.ps-provider-row .ps-provider-control,
.ps-specialty-row .specialty-dropdown { flex: 1 1 auto; min-width: 0; }

.ps-lookup-panel .ps-provider-control,
.ps-lookup-panel .ps-specialty-control {
    height: 22px;
    min-height: 22px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #8495a1;
    border-radius: 3px;
    background-color: #eaf4fa;
    color: #111;
    font-size: 12px;
    line-height: 1.1;
    padding: 2px 6px;
}
.ps-lookup-panel .ps-specialty-control {
    display: flex;
    align-items: center;
    width: 100%;
    height: 22px;
    min-height: 22px;
    padding-right: 28px;
}

.ps-specialty-or { margin: 8px 0 6px; color: #1d2a33; font-size: 12px; font-weight: 700; }
.ps-specialty-row .specialty-dropdown-menu { min-height: 130px; max-height: 240px; }

/* Find button */
.ps-find-button {
min-width: 160px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
padding-top: 0;
padding-bottom: 0;
border: 1px solid #4d8f29;
border-radius: 19px;
    background: linear-gradient(180deg, #76c442 0%, #5dac30 100%);
    box-shadow: 0 2px 0 #4e8b2b;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.ps-find-button:hover,
.ps-find-button:focus {
    background: linear-gradient(180deg, #0093d0 0%, #00609a 100%);
    border-color: #004d79;
    color: #fff;
}

.ps-find-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 50px;
    padding-top: 10px;
}
.ps-find-row::before,
.ps-find-row::after { border: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; }

/* ----------------------------------------------------------------
   Specialty multi-select dropdown
   ---------------------------------------------------------------- */
.specialty-dropdown { position: relative; display: inline-block; width: 100%; }
.specialty-dropdown-toggle {
    cursor: pointer;
    display: block;
    min-height: 38px;
    border: 1px solid #9aa8b2;
    border-radius: 4px;
    background-color: #edf6fd;
    padding: 6px 10px;
    font-size: 14px;
}
.specialty-dropdown-toggle:hover { background-color: #e9f5ff; }
.specialty-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 240px;
    overflow-y: auto;
    width: 100%;
    min-width: 260px;
    box-sizing: border-box;
    padding: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
    border-radius: 3px;
}
.specialty-dropdown-menu.show { display: block; }
.specialty-dropdown-menu label { display: block; padding: 3px 6px; cursor: pointer; font-size: 12px; }
.specialty-dropdown-menu label:hover { background-color: #f0f8ff; }
.specialty-dropdown-menu hr { margin: 3px 0; }

/* ----------------------------------------------------------------
   Disclaimer overlay
   ---------------------------------------------------------------- */
.ps-disclaimer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(230,230,250,.9);
    padding: 20px;
}
.ps-disclaimer-panel {
    width: 720px;
    max-width: calc(100vw - 40px);
    min-height: 420px;
    border: 3px inset #ccc;
    background-color: #ebeff2;
    padding: 16px 14px 18px;
}
.ps-disclaimer-content {
    height: 288px;
    overflow-y: auto;
    border: 1px inset gray;
    background-color: #f5f5f5;
    padding: 12px;
    font-size: 13px;
    line-height: 1.45;
}
.ps-disclaimer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 430px;
    max-width: 100%;
    margin: 22px auto 0;
    text-align: center;
}
.ps-plain-button {
    border: 1px solid #777;
    border-radius: 16px;
    background: #f5f5f5;
    color: #111;
    padding: 3px 16px;
    font-size: 14px;
}

/* ----------------------------------------------------------------
   Results shell layout
   ---------------------------------------------------------------- */
.ps-results-shell {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 16px 24px;
    text-align: left;
}
.ps-results-sidebar { min-width: 0; }
.ps-results-main {
    min-width: 0;
    border: 1px solid #d5d0bd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15,23,42,.12);
    padding: 16px;
}

.ps-results-titlebar,
.ps-results-footerbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ps-results-title { color: #666644; font-size: 24px; font-weight: 400; line-height: 1.2; }

/* Result action buttons */
.ps-result-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    white-space: nowrap;
}
.ps-result-action {
display: inline-flex;
align-items: center;
gap: 5px;
border: 1px solid #c7d7df;
border-radius: 16px;
background: #fff;
    color: #005596;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.ps-result-action:hover { background: #eaf4fa; border-color: #0093d0; color: #005596; text-decoration: none; }
.ps-result-action svg { width: 20px; height: 20px; color: #9b7653; }

/* Result summary bar */
.ps-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 8px;
    font-size: 12px;
    flex-wrap: wrap;
}
.ps-result-counts { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ps-page-size { display: inline-flex; align-items: center; gap: 5px; }
.ps-page-size .form-select { width: 65px; height: 24px; min-height: 24px; padding: 1px 22px 1px 6px; font-size: 12px; }

/* Results table */
.ps-results-table-wrap {
    border-top: 2px solid #5b789f;
    border-bottom: 2px solid #5b789f;
    border-radius: 4px;
    overflow: hidden;
}
.results-table { border-color: #d7dce1; }
.results-table th { background-color: #00659b; color: #fff; font-size: 11px; white-space: nowrap; padding: 7px 8px; border-color: #fff; }
.results-table td { font-size: 11px; vertical-align: top; padding: 8px; border-color: #d7dce1; }
.results-table tbody tr:nth-child(even) > td { background-color: #fff6bf; }
.results-table tbody tr:hover > td { background-color: #eaf4fa; }
.results-table a { color: #095fb8; }
.results-table a:hover { color: #5e9732; text-decoration: underline; }
.sort-btn { background: none; border: none; color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0; white-space: nowrap; }
.sort-btn:hover { text-decoration: underline; }

/* Sidebar cards */
.ps-criteria-card,
.ps-directory-card {
    overflow: hidden;
    border-radius: 6px;
    background-color: #ffffed;
    box-shadow: 0 2px 6px rgba(15,23,42,.12);
}
.ps-criteria-card .card-body,
.ps-directory-card .card-body { padding: 10px 12px !important; }
.ps-criteria-card .card-footer { padding: 8px 10px 10px; }
.ps-criteria-card { border-color: #f9831f !important; }
.ps-criteria-card .card-header { background-color: #f9a61a; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .2px; text-align: center; padding: 6px 10px; text-transform: uppercase; }
.ps-directory-card { border-color: #7ac143 !important; }
.ps-directory-card .card-header { background-color: #7ac143; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .2px; text-align: center; padding: 6px 10px; text-transform: uppercase; }
.ps-directory-card p { line-height: 1.35; margin-bottom: 12px !important; }
.ps-results-sidebar .ps-directory-card { margin-top: 22px !important; }

.ps-results-sidebar .btn-link { border: 1px solid #f9a61a; border-radius: 14px; background: #fff; padding: 4px 14px !important; }
.ps-results-sidebar .input-group { gap: 6px; margin-bottom: 12px; }
.ps-results-sidebar .input-group > .form-control { border-radius: 14px !important; min-width: 0; padding: 4px 12px; }
.ps-results-sidebar .input-group > .btn { border-radius: 14px !important; flex: 0 0 auto; padding: 4px 14px; }
.ps-directory-card .btn { padding: 5px 14px; }
.ps-directory-card .form-control { border-color: #9aa8b2; background-color: #eaf4fa; }
.ps-directory-card .fw-bold { margin-top: 8px; margin-bottom: 5px !important; }
.ps-directory-card form { margin-bottom: 12px; }
.ps-directory-card form:last-child { margin-bottom: 0; }

/* Pagination */
.ps-results-main .pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3px;
    margin: 8px 0;
    padding-left: 0;
    list-style: none;
}
.ps-results-main .pagination .page-item { display: block; list-style: none; }
.ps-results-main .pagination .page-link { border-radius: 14px; padding: 3px 9px; font-size: 12px; line-height: 1.2; color: #005596; }
.ps-results-main .pagination .page-item.active .page-link { background-color: #0093d0; border-color: #0093d0; color: #fff; }
.ps-results-main .pagination .page-item.disabled .page-link { color: #8a8a8a; background-color: #f5f5f5; }

/* Contact card */
.ps-contact-card {
display: inline-flex;
align-items: center;
gap: 5px;
border: 1px solid #c7d7df;
border-radius: 16px;
background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,.08);
    color: #005596;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    text-decoration: none;
}
.ps-contact-card:hover { background: #eaf4fa; border-color: #0093d0; color: #005596; text-decoration: none; }
.ps-contact-card .ps-contact-icon { width: auto; height: auto; border: 0; border-radius: 0; color: #9b7653; font-size: 0; }
.ps-contact-card .ps-contact-icon svg { width: 20px; height: 20px; }
.ps-contact-eyebrow { color: #005596; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ps-contact-label { color: inherit; font-size: 12px; font-weight: 700; }

.ps-contact-icon {
    width: 42px;
    height: 42px;
    border: 2px solid #9b7653;
    border-radius: 50%;
    color: #9b7653;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ----------------------------------------------------------------
   Responsive breakpoints
   ---------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .ps-three-column-layout { grid-template-columns: 1fr; }
    .ps-intro-copy { padding-top: 0; }
    .ps-right-column { padding-top: 0; }
}

@media (max-width: 767.98px) {
    .ps-results-shell { grid-template-columns: 1fr; }
    .ps-results-titlebar,
    .ps-results-footerbar,
    .ps-result-summary { align-items: flex-start; flex-direction: column; }
    .ps-result-actions { justify-content: flex-start; }

    .ps-lookup-shell { padding: 14px 0 22px; }
    .ps-intro-copy { padding-right: 0; }
    .ps-location-row { width: 100%; }
    .ps-step-row::before,
    .ps-step-row::after { display: none; }
    .ps-step-row { grid-template-columns: 1fr; }
    .ps-step-row .ps-step-marker { margin-bottom: -8px; }
    .ps-find-row { padding-left: 0; }
    .ps-find-row::before { display: none; }
}
