/* COMPLETE SKEUOMORPHIC SEARCH BAR */
#mw-module-1770365951690 {
    padding: 25px !important;
    max-width: 600px !important;
    margin: 30px auto !important;
}

#search_box_holder_mw-module-1770365951690 {
    position: relative !important;
    background: linear-gradient(145deg, #E6E9EF, #ffffff) !important;
    padding: 25px !important;
    border-radius: 20px !important;
    box-shadow: 
        8px 8px 16px rgba(184,192,204,0.6), 
        -8px -8px 16px rgba(255,255,255,0.8),
        inset 2px 2px 4px rgba(255,255,255,0.6),
        inset -2px -2px 4px rgba(184,192,204,0.3) !important;
    border: 1px solid rgba(26,42,102,0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#search_box_holder_mw-module-1770365951690:focus-within {
    box-shadow: 
        12px 12px 24px rgba(184,192,204,0.4),
        -12px -12px 24px rgba(255,255,255,0.9),
        0 0 0 4px rgba(30,108,207,0.2) !important;
    transform: translateY(-2px) !important;
}

/* MAIN INPUT - SKEUOMORPHIC */
#search_field_mw-module-1770365951690 {
    width: 100% !important;
    height: 65px !important;
    padding: 20px 60px 20px 25px !important;
    font-size: 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: linear-gradient(145deg, #ffffff, #f8f9fb) !important;
    border: 2px solid #B8C0CC !important;
    border-radius: 15px !important;
    box-shadow: 
        inset 4px 4px 8px rgba(184,192,204,0.4),
        inset -4px -4px 8px rgba(255,255,255,0.8),
        4px 4px 12px rgba(184,192,204,0.3) !important;
    color: #0A2A66 !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    spellcheck: true !important;
    caret-color: #1E6CCF !important;
    animation: blink-caret 1.5s infinite !important;
}

#search_field_mw-module-1770365951690:focus {
    border-color: #1E6CCF !important;
    box-shadow: 
        inset 2px 2px 4px rgba(184,192,204,0.2),
        inset -2px -2px 4px rgba(255,255,255,0.9),
        0 0 0 4px rgba(30,108,207,0.25),
        6px 6px 16px rgba(184,192,204,0.2) !important;
    transform: translateY(-1px) !important;
}

/* BLINKING CURSOR ANIMATION */
@keyframes blink-caret {
    0%, 50% { caret-color: transparent; }
    51%, 100% { caret-color: #1E6CCF; }
}

/* CLEAR BUTTON (X) */
#search_field_mw-module-1770365951690 + .clear-btn,
.clear-btn {
    position: absolute !important;
    right: 35px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    background: linear-gradient(145deg, #B8C0CC, #ffffff) !important;
    border: 1px solid #B8C0CC !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    color: #3A3F47 !important;
    box-shadow: 
        3px 3px 6px rgba(184,192,204,0.4),
        -3px -3px 6px rgba(255,255,255,0.8) !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

#search_box_holder_mw-module-1770365951690:has(#search_field_mw-module-1770365951690:focus + .clear-btn),
#search_field_mw-module-1770365951690:not(:placeholder-shown) ~ .clear-btn {
    opacity: 1 !important;
}

.clear-btn:hover {
    background: linear-gradient(145deg, #1E6CCF, #0A2A66) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* AUTOCOMPLETE SUGGESTIONS */
#search_results_holder_mw-module-1770365951690 {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(145deg, #ffffff, #f8f9fb) !important;
    border: 2px solid #1E6CCF !important;
    border-top: none !important;
    border-radius: 0 0 15px 15px !important;
    box-shadow: 
        8px 8px 24px rgba(26,42,102,0.15),
        -8px -8px 24px rgba(255,255,255,0.9) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    display: none !important;
}

#search_results_holder_mw-module-1770365951690.show {
    display: block !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #search_box_holder_mw-module-1770365951690 {
        margin: 15px !important;
        padding: 20px !important;
    }
    #search_field_mw-module-1770365951690 {
        height: 55px !important;
        font-size: 18px !important;
        padding: 15px 50px 15px 20px !important;
    }
}

/* VOICE SEARCH BUTTON */
.voice-btn {
    position: absolute !important;
    right: 80px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(145deg, #00C48C, #00A07A) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    box-shadow: 
        4px 4px 8px rgba(0,196,140,0.4),
        -4px -4px 8px rgba(255,255,255,0.8) !important;
}

.voice-btn:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 
        6px 6px 12px rgba(0,196,140,0.6),
        -6px -6px 12px rgba(255,255,255,0.9) !important;
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    #search_field_mw-module-1770365951690 {
        border: 4px solid #000000 !important;
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: inset 0 0 0 1px #000000 !important;
    }
    #search_box_holder_mw-module-1770365951690 {
        border: 3px solid #000000 !important;
        background: #ffffff !important;
        box-shadow: 8px 8px 16px #000000 !important;
    }
}

/* SPELLCHECK HIGHLIGHTING (browser native + enhanced) */
#search_field_mw-module-1770365951690:-webkit-spellcheck-underline {
    background: linear-gradient(transparent 80%, rgba(230,57,70,0.2) 80%) !important;
    border-bottom: 2px solid #E63946 !important;
}

/* Target the main layouts module */
#mw-module-1770175902569 {
    max-width: 100% !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Make the section full width */
#mw-module-1770175902569 section.section {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Override all mw-layout-container restrictions within this layout */
#mw-module-1770175902569 .mw-layout-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 15px !important;
}

/* Fix Bootstrap row/column spacing for full width */
#mw-module-1770175902569 .row {
    margin: 0 -15px !important;
}

#mw-module-1770175902569 [class*="col-"] {
    padding: 0 15px !important;
    max-width: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #mw-module-1770175902569 section.section,
    #mw-module-1770175902569 .mw-layout-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    #mw-module-1770175902569 .row {
        margin: 0 -10px !important;
    }
    
    #mw-module-1770175902569 [class*="col-"] {
        padding: 0 10px !important;
    }
}

/* Modern full-width search bar styling */
#mw-module-1770175902558 {
    max-width: 100% !important;
    padding: 20px 15px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 20px !important;
    margin: 20px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Search container styling */
#mw-module-1770175902558 .mw-search {
    max-width: 800px !important;
    margin: 0 auto !important;
}

/* Enhanced input field */
#mw-module-1770175902558 .form-control {
    border: none !important;
    border-radius: 50px !important;
    padding: 18px 25px !important;
    font-size: 16px !important;
    background: #fff !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    height: 60px !important;
    position: relative !important;
}

#mw-module-1770175902558 .form-control:focus {
    box-shadow: 0 10px 30px rgba(0,123,255,0.3) !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

/* Loading animation */
#mw-module-1770175902558.loading .form-control {
    background: linear-gradient(90deg, #f8f9fa 30%, #e9ecef 50%, #f8f9fa 70%) !important;
    background-size: 200% 100% !important;
    animation: loading 1.5s infinite !important;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Search icon (added via ::before) */
#mw-module-1770175902558 .form-control::before {
    content: "🔍" !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

#mw-module-1770175902558 .form-control {
    padding-left: 60px !important; /* Space for icon */
}

/* Results container */
#mw-module-1770175902558 .mw-search-results {
    margin-top: 20px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    border: 1px solid #e9ecef !important;
}

/* Hide empty results */
#mw-module-1770175902558 .mw-search-results:empty {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #mw-module-1770175902558 {
        padding: 15px 10px !important;
        margin: 15px 0 !important;
    }
    
    #mw-module-1770175902558 .form-control {
        font-size: 18px !important;
        padding: 20px 20px !important;
        height: 55px !important;
    }
}