/* ==========================================================================
   Hero Header: Search Form Styles (Exact React 1:1 Match)
   Location: css/hero-header-search.css
   ========================================================================== */

/* 1. Search Form Container */
.tc-hero-search-form {
    width: 100% !important;
    margin-bottom: 25px !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* 2. 70px Pill Search Wrapper */
.tc-hero-search-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background-color: transparent !important;
    height: 70px !important;
    border-radius: 50px !important;
    padding: 8px 10px 8px 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    cursor: text !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* 🚀 FIX: Neutralize any rogue <p> wrappers completely */
.tc-hero-search-wrapper p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Glowing Border on Focus */
.tc-hero-search-wrapper:focus-within,
.tc-hero-search-form.is-focused .tc-hero-search-wrapper {
    border-color: #6f69ff !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(111, 105, 255, 0.2), 0 20px 40px -10px rgba(0, 0, 0, 0.3) !important;
}

/* 4. Floating Animated Label */
.tc-floating-label {
    position: absolute !important;
    top: 50% !important;
    left: 65px !important;
    transform: translateY(-50%) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    z-index: 5 !important;
    user-select: none !important;
    white-space: nowrap !important;
}

.tc-hero-search-wrapper:focus-within .tc-floating-label,
.tc-hero-search-form.is-focused .tc-floating-label,
.tc-hero-search-form.has-value .tc-floating-label {
    top: 0 !important;
    left: 40px !important;
    transform: translateY(-50%) scale(0.85) !important;
    background-color: #0f172a !important;
    padding: 0 10px !important;
    color: #6f69ff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
}

/* ==========================================================================
   5. 🚀 SEARCH ICON VS CLEAR CROSS SWAP (Zero Collisions)
   ========================================================================== */
.tc-search-icon-box {
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    margin-right: 12px !important;
    z-index: 2 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

.tc-search-icon-box svg {
    width: 24px !important;
    height: 24px !important;
    stroke-width: 2.5 !important;
}

/* Default (empty input): Clear button is hidden, static search icon is visible */
.tc-search-icon-box.clear-mode {
    display: none !important;
    cursor: pointer !important;
    transition: color 0.2s ease !important;
}
.tc-search-icon-box.clear-mode:hover {
    color: #ef4444 !important;
}

.tc-search-icon-box.search-mode {
    display: flex !important;
}

/* When input has text (.has-value): Static icon hides, clear button shows */
.tc-hero-search-form.has-value .tc-search-icon-box.clear-mode {
    display: flex !important;
}
.tc-hero-search-form.has-value .tc-search-icon-box.search-mode {
    display: none !important;
}

/* ==========================================================================
   6. 🚀 THE INPUT FIELD: STRICT LEFT-ALIGNMENT & CLEAN CURSOR
   ========================================================================== */
.tc-hero-search-input {
    flex-grow: 1 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    
    /* 🚀 FIX: Overrides hero center alignment and locks text to the left */
    text-align: left !important;
    direction: ltr !important;
    
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    padding: 0 15px 0 0 !important;
    margin: 0 !important;
    z-index: 10 !important;
    cursor: text !important;
    box-sizing: border-box !important;
}

/* 7. Circular Submit Button */
.tc-search-circle-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #6f69ff !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    height: 54px !important;
    width: 54px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10 !important;
    box-shadow: 0 4px 15px rgba(111, 105, 255, 0.3) !important;
}

.tc-search-circle-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 3 !important;
}

.tc-search-circle-btn:hover:not(:disabled) {
    background-color: #5445ff !important;
    transform: scale(1.05) !important;
    border-radius: 0 27px 27px 0 !important;
}

.tc-search-circle-btn:active:not(:disabled) {
    transform: scale(0.95) !important;
}

.tc-search-circle-btn:disabled {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* 8. Responsive */
@media (max-width: 768px) {
    .tc-hero-search-wrapper { 
        height: 60px !important; 
        padding: 6px 6px 6px 15px !important; 
        margin-bottom: 20px !important; 
    }
    .tc-floating-label { 
        font-size: 1rem !important; 
        left: 45px !important; 
    }
    .tc-hero-search-wrapper:focus-within .tc-floating-label,
    .tc-hero-search-form.is-focused .tc-floating-label,
    .tc-hero-search-form.has-value .tc-floating-label {
        font-size: 0.85rem !important;
        left: 20px !important;
    }
    .tc-hero-search-input { 
        font-size: 1rem !important; 
    }
    .tc-search-circle-btn { 
        width: 48px !important; 
        height: 48px !important; 
    }
}