/* ===================================================================
   Hero Search Bar Block
   Background, padding, heading typography, and tooltip all come from
   .hero-v2-block styles in main.css — only search-specific rules live here.
   =================================================================== */

/* Override fixed height and overflow set by hero-v2-block.
   z-index raises the section's stacking context above subsequent sections
   so the dropdown can extend beyond the hero boundary without being covered. */
.hsb-hero {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    z-index: 10;
}
.hsb-hero .container{
	padding-left: 1rem;
}

/* Flex column stack: heading → subtitle → tooltip, gap matches hero-v2 text-content__wrapper */
.hsb-hero__text-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Neutralise bottom-margins that hero-v2-block sets on these elements */
.hsb-hero__text-stack .hero-v2-block__main-title,
.hsb-hero__text-stack .hero-v2-block__paragraph {
    margin-bottom: 0;
}

/* Subtitle — font inherits from hero-v2-block__paragraph; width constrained above 768px */
.hsb-hero__subtitle {
    max-width: 100%;
    margin: 0;
}

@media (min-width: 768px) {
    .hsb-hero__subtitle {
        max-width: 50%;
    }
}

/* Tooltip must stay in normal flow, not position:absolute from 1260px+ rule */
.hsb-hero .hero-v2-block__tooltip {
    position: relative !important;
    bottom: auto !important;
}

/* -----------------------------------------------------------------------
   Search section
   ----------------------------------------------------------------------- */

.hsb-search {
    margin-top: 32px;
}

/* Label above the input */
.hsb-search__label {
    font-family: Rubik, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px;
    text-align: left;
    max-width: 576px;
}

.hsb-search__label strong {
    color: #fff;
    font-weight: 500;
}

/* Row: input-wrap + search button */
.hsb-search__row {
    display: flex;
    gap: 16px;
    max-width: 576px;
    margin: 0;
    align-items: stretch;
}

/* -----------------------------------------------------------------------
   Input wrapper — positions icon + dropdown
   ----------------------------------------------------------------------- */

.hsb-search__input-wrap {
    position: relative;
	flex: 1 1 0%;
    min-width: 0;
}

/* Search icon (decorative) */
.hsb-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
	height: 1.25rem;
	width: 1.25rem;
    color: #6B7280;
    pointer-events: none;
    z-index: 1;
}

/* Text input */
.hsb-search__input {
	height: 2.5rem;
    width: 100%;
    padding: 24px 3rem;
    font-family: Rubik, sans-serif;
	font-size: 0.875rem;
	line-height: 1.25rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    outline: none;
    color: #262847;
    box-sizing: border-box;
    transition: border-color 150ms ease;
}

.hsb-search__input::placeholder {
    color: #6B7280;
}

.hsb-search__input:focus {
    border-color: #3E47E0;
}

/* -----------------------------------------------------------------------
   Search button
   ----------------------------------------------------------------------- */

.hsb-search__btn {
	justify-content: center;
	align-items: center;
	display: inline-flex;
	text-transform: uppercase;
    height: 44px;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
    background: #3E47E0;
    color: #fff;
    font-family: Rubik, sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

.hsb-search__btn:hover {
    background: #353DC2;
}

.hsb-search__btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(62, 71, 224, 0.4);
    outline: none;
}

/* -----------------------------------------------------------------------
   Popular Picks Dropdown
   ----------------------------------------------------------------------- */

.hsb-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    z-index: 50;
    overflow: hidden;
}

.hsb-dropdown__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    font-family: Rubik, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
}

.hsb-dropdown__header svg {
    width: 16px;
    height: 16px;
    color: #6B7280;
    flex-shrink: 0;
}

.hsb-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.hsb-dropdown__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    font-family: Rubik, sans-serif;
    color: #262847;
    transition: background-color 120ms ease, color 120ms ease;
}

.hsb-dropdown__item:hover {
    background-color: rgba(62, 71, 224, 0.1);
    color: #3E47E0;
}

.hsb-dropdown__item-name {
    font-size: 14px;
}

.hsb-dropdown__item-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6B7280;
    flex-shrink: 0;
}

.hsb-dropdown__item-rating svg {
    width: 14px;
    height: 14px;
    fill: #F5B800;
    color: #F5B800;
}

/* -----------------------------------------------------------------------
   Validation error
   ----------------------------------------------------------------------- */

.hsb-search__error {
    font-family: Rubik, sans-serif;
    font-size: 13px;
    color: #EF4444;
    margin: 8px 0 0;
    max-width: 576px;
    text-align: left;
    line-height: 1.4;
}

/* -----------------------------------------------------------------------
   Footer note
   ----------------------------------------------------------------------- */

.hsb-search__footer {
    font-family: Rubik, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 12px 0 0;
    max-width: 576px;
    text-align: left;
    line-height: 1.6;
}

.hsb-search__footer a {
    color: #3E47E0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.hsb-search__footer a:hover {
    color: rgba(62, 71, 224, 0.8);
}

/* -----------------------------------------------------------------------
   Responsive — breakpoints match hero-v2-block in main.css
   ----------------------------------------------------------------------- */

/* Mobile: max 767px
   hero-v2 uses: background cb_main_hero_bg_sm.svg + gradient overlay,
   padding 90px top/bottom, heading 28px — all from hero-v2-block in main.css.
   Only block-specific overrides live here. */
@media (max-width: 767.98px) {
    .hsb-hero__text-stack {
        gap: 12px;
    }

    .hsb-hero__subtitle {
        max-width: 100%;
    }

    .hsb-search {
        margin-top: 24px;
    }

    .hsb-search__row {
        max-width: 100%;
    }

    .hsb-search__error,
    .hsb-search__footer {
        max-width: 100%;
    }
}

/* Tablet+: 768px — heading 36px already from main.css */
@media (min-width: 768px) {
    .hsb-hero__subtitle {
        font-size: 16px;
    }

    .hsb-search {
        margin-top: 40px;
    }
}

/* Desktop: 1260px+ — heading 44px, gap matches hero-v2 text-content__wrapper */
@media (min-width: 1260px) {
    .hsb-hero__text-stack {
        gap: 18px;
    }
}
