/* ==========================================================================
   Site refresh (2026): top bar links + homepage / search hero.
   Hero rules are scoped to .hero-v2 so other pages using the old
   .hero-slider markup are unaffected.
   ========================================================================== */

/* ---------- Top bar ---------- */
.header .top-contact.topbar-links li {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .55);
}
.header .top-contact.topbar-links li a {
    color: #fff;
    font-size: inherit;
    font-weight: 500;
    text-decoration: none;
}
.header .top-contact.topbar-links li a:hover { color: #9fd0ff; }
.header .top-contact.topbar-links .fa-plus {
    color: #4aa3ff;
    margin-right: 6px;
}
.header .top-contact.topbar-links .sep { margin: 0 12px; }

/* ---------- Hero ---------- */
.hero-v2 .hero-slider,
.hero-v2 .single-slider {
    height: auto;
    min-height: 560px;
}
.hero-v2 .single-slider {
    display: flex;
    align-items: center;
    padding: 70px 0 80px;
    background: linear-gradient(90deg, rgba(8, 22, 40, .72) 0%, rgba(8, 22, 40, .45) 50%, rgba(8, 22, 40, .05) 80%);
}
.hero-v2 .single-slider > .container { width: 100%; }
/* legacy theme lays a 50% white wash over the hero on phones */
.hero-v2 .single-slider::before { display: none; }

.hero-v2 .welcome-hero-txt {
    text-align: left;
    padding: 0;
    max-width: 780px;
}
.hero-v2 .welcome-hero-txt h1 {
    font-size: 54px !important;
    line-height: 1.12 !important;
    font-weight: 600;
    color: #fff !important;
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    margin: 0;
    /* markup has inline opacity:0 + a delayed fade-in; show the headline immediately */
    opacity: 1 !important;
    animation: none !important;
}
.hero-v2 .welcome-hero-txt h1 .hero-accent {
    display: block;
    color: #8ec9ff;
    font-weight: 800;
}
.hero-v2 .welcome-hero-txt h1 .hero-sub {
    display: block;
    margin-top: 6px;
    font-size: 38px;
    font-weight: 400;
    color: #fff;
}
.hero-v2 .welcome-hero-txt .hero-lead {
    margin: 22px 0 0;
    max-width: 600px;
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

/* ---------- Search form ---------- */
.hero-v2 .home_search {
    height: auto;
    margin-top: 36px;
    padding: 0;
}
.hero-v2 .home_search > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.hero-v2 .home_search .hero-form-col {
    float: none !important;
    position: relative;     /* anchors the "what?" picker panel */
    flex: 1 1 0;
    min-width: 0;           /* otherwise its content width forces the button to wrap */
    max-width: none;
}
.hero-v2 .welcome-hero-form,
.hero-v2 .welcome-hero-form .choose-specialty,
.hero-v2 .welcome-hero-form .choose-location,
.hero-v2 .single-welcome-hero-form { min-width: 0; }
.hero-v2 .home_search .hero-btn-col {
    float: none !important;
    flex: 0 0 auto;
    width: auto;            /* bootstrap cols are width:100%, which made this wrap */
    max-width: none;
}
/* The legacy checkbox list stays in the DOM (the search code reads it)
   but is replaced visually by the picker once what-picker.js is running. */
.hero-v2.wp-ready .ud-spclty-box { display: none !important; }

.hero-v2 .welcome-hero-form {
    height: 72px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    overflow: hidden;
}
.hero-v2 .welcome-hero-form .choose-specialty,
.hero-v2 .welcome-hero-form .choose-location {
    flex: 1 1 50%;
    width: auto;
    height: 72px;
}
.hero-v2 .welcome-hero-form .choose-location {
    border-left: 2px solid #c9ced6;
    margin: 14px 0;
    height: 44px;
}
.hero-v2 .single-welcome-hero-form {
    width: 100%;
    height: 100%;
    align-items: center;
    padding: 0 22px 0 28px;
}
.hero-v2 .single-welcome-hero-form h3 {
    background: none;
    height: auto;
    padding: 0;
    margin: 0 18px 0 0;
    font-size: 22px;
    font-weight: 600;
    color: #1d2a3a;
    white-space: nowrap;
}
.hero-v2 .single-welcome-hero-form input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 15px;
    color: #6b7785;
    cursor: pointer;
}
.hero-v2 .single-welcome-hero-form input::placeholder { color: #8a95a3; }
.hero-v2 .welcome-hero-form-icon {
    flex: 0 0 auto;
    margin-left: 10px;
    font-size: 20px;
    color: #4b5563;
    cursor: pointer;
}

.hero-v2 .welcome-hero-serch {
    width: auto;
    height: 72px;
    padding-left: 24px;
}
.hero-v2 .welcome-hero-btn {
    width: auto;
    height: 72px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #1cb531;
    border: 2px solid #7be08a;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    padding: 0 32px;
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: none;
    transition: background .15s ease;
}
.hero-v2 .welcome-hero-btn:hover { background: #17a02a; }
.hero-v2 .welcome-hero-btn i {
    float: none;
    position: static;
    margin: 0;
    font-size: 18px;
}
.hero-v2 .welcome-hero-btn .fa-chevron-right { margin-left: 8px; font-size: 14px; }

/* ---------- Tablet / mobile ---------- */
@media only screen and (max-width: 991px) {
    .hero-v2 .welcome-hero-txt h1 { font-size: 40px !important; }
    .hero-v2 .welcome-hero-txt h1 .hero-sub { font-size: 28px; }
    .hero-v2 .welcome-hero-txt .hero-lead { font-size: 17px; }
    .hero-v2 .home_search .hero-form-col,
    .hero-v2 .home_search .hero-btn-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
    .hero-v2 .welcome-hero-serch { width: 100%; padding-left: 0; margin-top: 14px; }
    .hero-v2 .welcome-hero-btn { width: 100%; }
}
@media only screen and (max-width: 767px) {
    .hero-v2 .single-slider {
        padding: 40px 0 50px;
        min-height: 0;
        /* text spans the full width on phones, so darken evenly */
        background: rgba(6, 18, 34, .7);
    }
    .hero-v2 .hero-slider { min-height: 0; }
    .hero-v2 .welcome-hero-txt h1 { font-size: 30px !important; }
    .hero-v2 .welcome-hero-txt h1 .hero-sub { font-size: 21px; }
    .hero-v2 .welcome-hero-txt .hero-lead { font-size: 15px; margin-top: 14px; }
    .hero-v2 .welcome-hero-form {
        flex-direction: column;
        height: auto;
    }
    .hero-v2 .welcome-hero-form .choose-specialty,
    .hero-v2 .welcome-hero-form .choose-location {
        flex: 0 0 auto;
        height: 60px;
        margin: 0;
    }
    .hero-v2 .welcome-hero-form .choose-location {
        border-left: 0;
        border-top: 1px solid #e3e6ea;
    }
    /* style.min.css forces .single-welcome-hero-form into a centred column
       below 473px with !important; keep label | value | icon on one row. */
    .hero-v2 .single-welcome-hero-form {
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 18px !important;
        text-align: left;
    }
    .hero-v2 .single-welcome-hero-form h3 {
        font-size: 18px;
        width: auto;
        text-align: left;
        margin-right: 14px;
    }
    .hero-v2 .single-welcome-hero-form input {
        height: 100% !important;
        width: auto !important;
        margin: 0 !important;
        text-align: left !important;
    }
    .header .top-contact.topbar-links li { font-size: 12px; }
    .header .top-contact.topbar-links .sep { margin: 0 6px; }
    .hero-v2 .welcome-hero-btn,
    .hero-v2 .welcome-hero-serch { height: 60px; }
}

/* ==========================================================================
   "what?" picker (what-picker.js): single-select panel that floats over the
   page on desktop and becomes a full-screen sheet on phones.
   ========================================================================== */
.hero-v2 .choose-specialty .single-welcome-hero-form { cursor: pointer; }
.hero-v2 .choose-specialty .fa-caret-down { transition: transform .15s ease; }
.hero-v2 .choose-specialty.wp-active .fa-caret-down { transform: rotate(180deg); }
.hero-v2 .choose-specialty.wp-active { background: #f4f8fc; }
.hero-v2 .choose-specialty .single-welcome-hero-form input[readonly]:focus { outline: none; }
.hero-v2 .choose-specialty:focus-within { box-shadow: inset 0 0 0 2px #8ec9ff; }

.wp-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    max-height: min(80vh, 640px);
    padding: 14px 14px 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(8, 22, 40, .30);
    font-family: Poppins, sans-serif;
    text-align: left;
    animation: wpIn .14s ease-out;
}
.wp-panel[hidden] { display: none; }
.wp-panel::before {            /* little pointer up to the "what?" field */
    content: "";
    position: absolute;
    top: -7px;
    left: 56px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}
@keyframes wpIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

.wp-head { display: none; }    /* title bar is phone-only */

.wp-clear {                    /* top-right corner, level with the first heading */
    position: absolute;
    top: 10px;
    right: 18px;
    z-index: 2;
    border: 0;
    background: none;
    padding: 4px;
    font-size: 13.5px;
    font-weight: 500;
    color: #0f5fb3;
    cursor: pointer;
}
.wp-clear:hover { text-decoration: underline; }
.wp-clear[hidden] { display: none; }

.wp-body {
    position: relative;        /* offsetParent for scrollWithin() */
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}
.wp-group:first-child .wp-group-title { margin-top: 2px; }
.wp-group-title {
    margin: 12px 10px 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7b8794;
}
.wp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 8px;
}
.wp-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14.5px;
    line-height: 1.3;
    color: #1d2a3a;
    cursor: pointer;
    user-select: none;
}
.wp-opt .fa-check { visibility: hidden; color: #0f5fb3; font-size: 13px; }
.wp-opt:hover,
.wp-opt.wp-hl { background: #eef5fc; }
.wp-opt[aria-selected="true"] {
    background: #e2effd;
    color: #0f5fb3;
    font-weight: 600;
}
.wp-opt[aria-selected="true"] .fa-check { visibility: visible; }

/* Tablet: two columns fit better */
@media only screen and (max-width: 991px) {
    .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: full-screen sheet (the panel is moved to <body> by the script) */
html.wp-lock, html.wp-lock body { overflow: hidden !important; }
.wp-panel.wp-sheet {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    max-height: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    animation: wpSheetIn .18s ease-out;
}
.wp-panel.wp-sheet::before { display: none; }
@keyframes wpSheetIn {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.wp-sheet .wp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    height: 58px;
    padding: 0 8px 0 18px;
    background: #143d69;
    color: #fff;
}
.wp-sheet .wp-title { font-size: 17px; font-weight: 600; }
.wp-sheet .wp-close {
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.wp-sheet .wp-clear {          /* right end of the (sticky) group heading row */
    top: 70px;
    right: 12px;
    padding: 4px 6px;
    font-size: 14px;
}
.wp-sheet .wp-body {
    margin: 0;
    padding: 0 0 24px;
    -webkit-overflow-scrolling: touch;
}
.wp-sheet .wp-group-title {
    position: sticky;          /* heading stays visible while scrolling its group */
    top: 0;
    z-index: 1;
    margin: 0;
    padding: 16px 18px 8px;
    background: #f6f8fa;
}
.wp-sheet .wp-grid { display: block; }
.wp-sheet .wp-opt {
    min-height: 52px;
    padding: 0 18px;
    border-radius: 0;
    border-bottom: 1px solid #eef0f3;
    font-size: 16px;
}
