/**
 * BeautsGO Hero Search
 * Extracted from hero-shortcode.php — same selectors, same rules.
 */

.beautsgo-hero {
    --pink:        #DC6495;
    --pink-light:  #f5d0e0;
    --pink-dark:   #b84d78;
    --blue:        #2C92B9;
    --blue-light:  #d0eaf5;
    --blue-dark:   #1e6e8c;
    --white:       #ffffff;
    --text-on-dark: rgba(255,255,255,0.88);
    --text-muted:  rgba(255,255,255,0.55);
    --border-glass: rgba(255,255,255,0.18);
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   20px;

    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(2.5rem, 5vw, 4rem) !important;
    font-family: Helvetica, Arial, sans-serif !important;
    box-sizing: border-box !important;

    min-height: 90vh !important; /* Set to 100vh for full viewport */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
.beautsgo-hero *,
.beautsgo-hero *::before,
.beautsgo-hero *::after { box-sizing: inherit !important; }

/* ==========================================================
   Video / image background — full-cover layer
   ========================================================== */
.beautsgo-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
    overflow: hidden;
}

.beautsgo-hero .hero-bg__media {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 0 !important;
}

/* Desktop / mobile video swap — only active when a mobile video is provided
   (.hero-bg--has-mobile-video). Without it, the desktop video shows at every
   viewport (unchanged behavior). Breakpoint matches the hero's 700px reflow. */
.beautsgo-hero .hero-bg--has-mobile-video .hero-bg__media--mobile {
    display: none;
}
@media (max-width: 700px) {
    .beautsgo-hero .hero-bg--has-mobile-video .hero-bg__media--desktop {
        display: none;
    }
    .beautsgo-hero .hero-bg--has-mobile-video .hero-bg__media--mobile {
        display: block;
    }
}

.beautsgo-hero .hero-bg__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(13,27,42,0.55) 0%, rgba(26,45,66,0.55) 50%, rgba(31,21,32,0.55) 100%);
}

.beautsgo-hero .hero-bg__pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

/* Inner Layout */
.beautsgo-hero .hero-inner {
    position: relative;
    z-index: 3;
    width: 100% !important;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}
.beautsgo-hero .hero-text { text-align: center; }
.beautsgo-hero .hero-eyebrow {
    display: inline-block;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pink-light);
    margin-bottom: 1.25rem;
}
.beautsgo-hero .hero-eyebrow::before { content: "·  "; color: var(--pink); }
.beautsgo-hero .hero-title {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    color: var(--white) !important;
    margin: 0 0 0.875rem !important;
    letter-spacing: -0.01em !important;
}
.beautsgo-hero .hero-title em { font-style: italic; color: var(--pink); }
.beautsgo-hero .hero-subtitle {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--text-on-dark);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* Search Box */
.beautsgo-hero .hero-search-box {
    background: rgba(255,255,255,0.07) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--border-glass) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.25rem !important;
    overflow: visible !important;
    margin: 0 !important;
}
.beautsgo-hero .search-tabs {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
}
.beautsgo-hero .search-tab {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 18px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: Helvetica, Arial, sans-serif !important;
    cursor: pointer;
    border: 0.5px solid var(--border-glass) !important;
    background: transparent !important;
    color: var(--text-muted) !important;
    transition: all 0.18s ease;
    margin: 0 !important;
    line-height: 1 !important;
    height: auto !important;
}
.beautsgo-hero .search-tab .tab-icon { font-size: 9px; opacity: 0; transition: opacity 0.18s; }
.beautsgo-hero .search-tab:hover {
    background: rgba(255,255,255,0.1) !important;
    color: var(--white) !important;
    border-color: rgba(255,255,255,0.3) !important;
}
.beautsgo-hero .search-tab--active {
    background: var(--pink) !important;
    color: var(--white) !important;
    border-color: var(--pink) !important;
}
.beautsgo-hero .search-tab--active .tab-icon { opacity: 1; }

/* ==========================================================
   Search fields grid — all fields align to the same baseline
   ========================================================== */
.beautsgo-hero .search-fields {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr 1fr auto !important;
    gap: 12px !important;
    align-items: flex-end !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
}

.beautsgo-hero .search-field {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

.beautsgo-hero .field-label {
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1 !important;
}

/* Fixed wrapper height — prevents content from changing the field height */
.beautsgo-hero .autocomplete-wrap,
.beautsgo-hero .select-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.beautsgo-hero input[type="text"].field-input,
.beautsgo-hero select.field-select {
    width: 100% !important;
    height: 100% !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    color: #ffffff !important;
    border-radius: var(--radius-sm) !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: normal !important;
}
.beautsgo-hero input[type="text"].field-input::placeholder { color: rgba(255,255,255,0.38) !important; }
.beautsgo-hero input[type="text"].field-input:focus,
.beautsgo-hero select.field-select:focus {
    border-color: var(--blue) !important;
    background: rgba(255,255,255,0.15) !important;
    box-shadow: 0 0 0 2px rgba(44,146,185,0.2) !important;
}
.beautsgo-hero select.field-select option { background: #1a2d42 !important; color: #fff !important; }

.beautsgo-hero .select-wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255,255,255,0.5);
    pointer-events: none;
}

/* Search button — same fixed height as inputs */
.beautsgo-hero button.search-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 24px !important;
    background: var(--pink) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px !important;
    font-family: Helvetica, Arial, sans-serif !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin: 0 !important;
    transition: background 0.15s, transform 0.1s;
}
.beautsgo-hero button.search-btn:hover { background: var(--pink-dark) !important; }
.beautsgo-hero button.search-btn:active { transform: scale(0.97) !important; }

/* Autocomplete dropdown — fully hidden when inactive so it takes no layout space */
.beautsgo-hero .autocomplete-dropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #1a2d42 !important;
    border: 0.5px solid rgba(255,255,255,0.18) !important;
    border-radius: var(--radius-sm) !important;
    list-style: none !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    z-index: 100 !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}
.beautsgo-hero .autocomplete-dropdown[hidden] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
}
.beautsgo-hero .autocomplete-dropdown li {
    padding: 9px 14px !important;
    font-size: 14px !important;
    color: var(--text-on-dark) !important;
    cursor: pointer !important;
    margin: 0 !important;
    line-height: normal !important;
}
.beautsgo-hero .autocomplete-dropdown li:hover,
.beautsgo-hero .autocomplete-dropdown li[aria-selected="true"] {
    background: rgba(255,255,255,0.08) !important;
    color: var(--white) !important;
}
.beautsgo-hero .autocomplete-dropdown li mark {
    background: none !important;
    color: var(--pink) !important;
    font-weight: 500 !important;
}
.beautsgo-hero .autocomplete-dropdown li.no-results {
    color: var(--text-muted) !important;
    cursor: default !important;
    font-style: italic !important;
    font-size: 13px !important;
}

/* Filters & Tags */
.beautsgo-hero .quick-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 7px !important;
    padding-top: 0.875rem !important;
    border-top: 0.5px solid rgba(255,255,255,0.1) !important;
    margin: 0 !important;
}
.beautsgo-hero .filters-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    margin: 0 !important;
    display: block !important;
}
.beautsgo-hero .filters-label--spaced { margin-left: 6px !important; }
.beautsgo-hero .filter-chip {
    cursor: pointer !important;
    margin: 0 !important;
    display: inline-flex !important;
}
.beautsgo-hero .filter-chip span {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 13px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.7) !important;
    border: 0.5px solid rgba(255,255,255,0.2) !important;
    background: transparent !important;
    transition: all 0.15s !important;
    user-select: none !important;
    font-family: Helvetica, Arial, sans-serif !important;
    line-height: normal !important;
}
.beautsgo-hero .filter-chip:hover span {
    border-color: var(--pink) !important;
    color: var(--white) !important;
    background: rgba(220,100,149,0.1) !important;
}
.beautsgo-hero .filter-chip input:checked + span {
    background: rgba(220,100,149,0.25) !important;
    border-color: var(--pink) !important;
    color: var(--white) !important;
}

.beautsgo-hero .popular-searches {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 7px !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
}
.beautsgo-hero .popular-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    margin: 0 !important;
    display: block !important;
}
.beautsgo-hero .popular-tag {
    font-size: 12px !important;
    color: rgba(255,255,255,0.6) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-family: Helvetica, Arial, sans-serif !important;
    transition: color 0.15s !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    text-decoration-color: rgba(255,255,255,0.25) !important;
    display: inline-block !important;
    height: auto !important;
    line-height: normal !important;
}
.beautsgo-hero .popular-tag:hover {
    color: var(--pink-light) !important;
    text-decoration-color: var(--pink) !important;
}

/* Trust Stats */
.beautsgo-hero .hero-trust {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}
.beautsgo-hero .trust-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    text-align: center !important;
    margin: 0 !important;
}
.beautsgo-hero .trust-item strong {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: var(--white) !important;
    line-height: 1 !important;
}
.beautsgo-hero .trust-item span {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-family: ui-monospace, "SF Mono", Consolas, monospace !important;
    margin: 0 !important;
}
.beautsgo-hero .trust-divider {
    width: 1px !important;
    height: 30px !important;
    background: rgba(255,255,255,0.15) !important;
}

/* WordPress wraps loose content in <p> tags — neutralize without hiding the
   submit button (display: none would collapse it). */
.beautsgo-hero p:empty,
.beautsgo-hero br { display: none !important; }
.beautsgo-hero form { margin: 0 !important; padding: 0 !important; }
.beautsgo-hero form > p,
.beautsgo-hero .search-fields > p,
.beautsgo-hero .quick-filters > p,
.beautsgo-hero .popular-searches > p,
.beautsgo-hero .autocomplete-wrap > p,
.beautsgo-hero .select-wrap > p {
    display: contents !important;
}

@media (max-width: 700px) {
    .beautsgo-hero .search-fields { grid-template-columns: 1fr 1fr !important; }
    .beautsgo-hero .search-field:first-child { grid-column: 1 / -1 !important; }
    .beautsgo-hero button.search-btn { grid-column: 1 / -1 !important; width: 100% !important; }
    .beautsgo-hero .search-tabs { gap: 4px !important; }
    .beautsgo-hero .search-tab { padding: 6px 14px !important; font-size: 12px !important; }
    .beautsgo-hero .trust-divider { display: none !important; }
    .beautsgo-hero .hero-trust { gap: 1rem !important; }
}
@media (max-width: 420px) {
    .beautsgo-hero .search-fields { grid-template-columns: 1fr !important; }
}
