/* Scoped styles for the homepage hero "Find a Provider" quick-search bar.
   Wrapper #tf-hero-widget keeps these rules from leaking onto the rest of
   the page when pasted into an Elementor HTML widget.

   Reuses the same pill-button + dropdown-panel pattern as the results page
   filter bar (results.css), recolored from teal to the site's burgundy. */

#tf-hero-widget {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

#tf-hero-widget .tfhero-field {
    position: relative;
}

#tf-hero-widget .tfhero-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 22px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* min-width is locked per-field by hero-widget.js at load time, to each
       field's own initial (placeholder-label) size — see setupField(). */
}

#tf-hero-widget .tfhero-trigger:hover {
    border-color: rgb(145, 69, 71);
}

/* Selection is communicated by the trigger text changing to the picked
   value (and the checkmark-style row in the open panel) — the pill itself
   deliberately keeps the same size and color whether or not it has a
   selection, so the bar doesn't shift around as fields are picked. */
#tf-hero-widget .tfhero-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tf-hero-widget .tfhero-caret {
    font-size: 11px;
    opacity: 0.7;
}

#tf-hero-widget .tfhero-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 8px;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
}

#tf-hero-widget .tfhero-panel.tfhero-hidden {
    display: none;
}

#tf-hero-widget .tfhero-option {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
}

#tf-hero-widget .tfhero-option:hover {
    background: #f5f0f0;
}

#tf-hero-widget .tfhero-option.tfhero-selected {
    color: rgb(145, 69, 71);
    font-weight: 700;
}

#tf-hero-widget .tfhero-panel-message {
    padding: 9px 12px;
    font-size: 13.5px;
    color: #888;
    font-style: italic;
}

#tf-hero-widget .tfhero-submit {
    background: #009391;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 26px;
    height: 46px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#tf-hero-widget .tfhero-submit:hover {
    background: #007c7a;
}

@media (max-width: 640px) {
    #tf-hero-widget {
        flex-direction: column;
        align-items: stretch;
    }

    #tf-hero-widget .tfhero-trigger {
        justify-content: space-between;
        width: 100%;
    }

    #tf-hero-widget .tfhero-panel {
        left: 0;
        right: 0;
        width: auto;
    }

    #tf-hero-widget .tfhero-submit {
        width: 100%;
        padding: 14px;
        height: auto;
    }
}
