.location-search-container {
    max-width: 600px;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

.search-input-wrapper input,
.search-input-wrapper input.pac-target-input {
    font-size: 18px !important;
}

.search-input-wrapper {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255,1);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 230, 230, 0.7);
    backdrop-filter: blur(10px);
}

.search-input-wrapper:focus-within {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12),
                0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(96, 34, 118, 0.2);
    transform: translateY(-1px);
}

.search-input-wrapper input {
    flex: 1;
    padding: 0 20px;
    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    outline: none !important;
    border-radius: 12px;
    font-size: 18px !important;
    height: 55px;
    line-height: 50px;
    color: #1a1a1a;
    background: rgba(245, 245, 247, 0.6);
    transition: all 0.3s ease;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none !important;
    min-height: 55px;
    display: flex;
    align-items: center;
}

.location-search-container .search-input-wrapper input[type="text"] {
    border: 0 !important;
    border-width: 0 !important;
    outline: none !important;
}

.search-input-wrapper input:focus {
    outline: none !important;
    border: 0 !important;
    border-width: 0 !important;
    box-shadow: none !important;
    background: rgba(245, 245, 247, 0.9);
    color: #000;
}

.search-input-wrapper input::placeholder {
    color: #6b7280;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

.search-button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #602276 0%, #7B2C94 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(96, 34, 118, 0.2);
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #702888 0%, #8D33AB 100%);
    box-shadow: 0 6px 20px rgba(96, 34, 118, 0.3);
}

.search-button:hover::before {
    opacity: 1;
}

.search-button:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #501d63 0%, #602276 100%);
    box-shadow: 0 2px 10px rgba(96, 34, 118, 0.2);
}

.search-button:disabled {
    background: linear-gradient(135deg, #9a89a0 0%, #b3a2b8 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.search-button.loading {
    position: relative;
    color: transparent;
}

.search-button.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: button-loading-spinner 0.6s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Location Suggestions Dropdown */
.location-suggestions {
    position: absolute;
    background: white;
    border: 1px solid rgba(230, 230, 230, 0.7);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    width: calc(100% - 2px);
    margin-top: -8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.suggestion-item.location-match,
.lsh-suggestion-item.lsh-location-match {
    background-color: rgba(96, 34, 118, 0.03);
    border-left: 3px solid #602276;
}

.suggestion-item.location-match:hover,
.lsh-suggestion-item.lsh-location-match:hover {
    background-color: rgba(96, 34, 118, 0.08);
}

.suggestion-item.location-match strong,
.lsh-suggestion-item.lsh-location-match strong {
    color: #602276;
}

.lsh-match-label {
    color: #666;
    font-size: 0.9em;
    font-weight: normal;
}

/* Job type pill for suggestions */
.job-pill {
    display: inline-block;
    background: #bf4a92;
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    white-space: nowrap;
}

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.suggestion-item:hover {
    background-color: rgba(96, 34, 118, 0.05);
}

.suggestion-item:active {
    background-color: rgba(96, 34, 118, 0.1);
}

/* Search Status Messages - Completely hidden */
.search-status,
.search-status-info,
.search-status-success,
.search-status-warning,
.search-status-error,
#search-status,
[id^="search-status-"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Search Results Message */
.search-results-message {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 24px;
    padding: 0px;
    text-align: left;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

.search-results-message.hiding {
    opacity: 0;
}

/* Error Messages */
.location-search-error {
    padding: 16px 20px;
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 10px;
    color: #c62828;
    font-size: 14px;
    line-height: 1.5;
}

.location-search-error a {
    color: #c62828;
    text-decoration: underline;
    font-weight: 600;
}

.location-search-error a:hover {
    color: #b71c1c;
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    .search-input-wrapper {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .search-button {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }

    .search-input-wrapper input {
        height: 50px;
        line-height: 50px;
        padding: 0 16px;
        font-size: 16px !important;
    }

    .search-results-message {
        font-size: 1em;
        padding: 0px;
        margin-bottom: 24px;
    }

    .location-search-container.nowrap .search-input-wrapper {
        flex-direction: row;
        gap: 8px;
    }

    .location-search-container.nowrap .search-button {
        width: auto;
        padding: 14px 20px;
        min-width: max-content;
    }
    
    .location-search-container.nowrap .search-input-wrapper input {
        min-width: 0;
        flex: 1;
    }
    
    .location-suggestions {
        width: 100%;
    }
    
    .suggestion-item {
        padding: 14px 16px;
    }
}

/* Postcode/Form Field Autocomplete Styles */
.postcode-suggestions,
.form-field-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-top: 4px;
}

.postcode-suggestion-item,
.form-field-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    transition: background-color 0.2s;
}

.postcode-suggestion-item:last-child,
.form-field-suggestion-item:last-child {
    border-bottom: none;
}

.postcode-suggestion-item:hover,
.form-field-suggestion-item:hover {
    background-color: #f5f5f5;
}

/* UK Validation Errors */
.uk-form-field-error {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
    display: block;
    animation: slideDownError 0.3s ease-out;
}

.uk-validation-error {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 1px #d32f2f !important;
}

@keyframes slideDownError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Postcode search input positioning */
.postcode-search {
    position: relative;
}

.address-autocomplete-focused {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    outline: none;
    z-index: 1000;
}

/* UK Validation Message Styling */
.uk-validation-message {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   HEADER SEARCH BAR STYLES - PINK BAR DESIGN
   ========================================================================= */

.lsh-header-bar {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    width: 100%;
    line-height: 1;
    margin: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Override Blocksy theme spacing */
.lsh-header-bar,
.entry-content .lsh-header-bar,
.is-layout-flow .lsh-header-bar,
.is-layout-constrained .lsh-header-bar,
.ct-container-fluid .lsh-header-bar,
[data-column] .lsh-header-bar {
    margin: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    padding: 0 !important;
}

/* Remove WordPress auto-p spacing */
.lsh-header-bar p,
p:has(.lsh-header-bar),
.entry-content p:empty,
.ct-header-text p:empty {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    display: none !important;
}

/* Override Blocksy's content flow margins */
.is-layout-flow > .lsh-header-bar,
.is-layout-constrained > .lsh-header-bar,
.entry-content > .lsh-header-bar,
.ct-header-text .lsh-header-bar {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Desktop Bar */
.lsh-desktop-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #bf4a92;
    padding: 10px 20px;
}

.lsh-label {
    font-size: 17px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    padding: 0 8px;
    flex-shrink: 0;
}

.lsh-input-wrapper {
    position: relative;
    flex: 1;
}

.lsh-header-bar .lsh-desktop-bar .lsh-input-wrapper .lsh-input,
.lsh-header-bar .lsh-input-wrapper input.lsh-input,
input.lsh-input {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 17px !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
    font-family: inherit;
    color: white !important;
    box-sizing: border-box !important;
    height: 50px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
}

.lsh-header-bar .lsh-desktop-bar .lsh-input-wrapper .lsh-input:focus,
.lsh-header-bar .lsh-input-wrapper input.lsh-input:focus,
input.lsh-input:focus {
    outline: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    border-width: 0 !important;
}

.lsh-header-bar .lsh-input::placeholder,
input.lsh-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.lsh-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
}

.lsh-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lsh-suggestion-item:first-child {
    border-radius: 12px 12px 0 0;
}

.lsh-suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.lsh-suggestion-item:only-child {
    border-radius: 12px;
}

.lsh-suggestion-item:hover {
    background-color: #f8f8f8;
}

.lsh-suggestion-item.lsh-location-match {
    background-color: rgba(191, 74, 146, 0.03);
}

.lsh-suggestion-item.lsh-location-match:hover {
    background-color: rgba(191, 74, 146, 0.08);
}

.lsh-suggestion-item.lsh-location-match strong {
    color: #333;
    font-weight: 600;
}

/* Job type pill/lozenge */
.lsh-job-pill {
    display: inline-block;
    background: #bf4a92;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Options - Hidden on desktop, only show on mobile */
.lsh-options {
    display: none;
}

.lsh-option-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.lsh-option-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.lsh-option-btn.active {
    background: white;
    border-color: white;
    color: #bf4a92;
}

/* Search Button - Solid filled style */
.lsh-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    background: white;
    color: #bf4a92;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    height: 50px;
}

.lsh-search-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.lsh-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lsh-search-btn.loading .lsh-btn-text {
    opacity: 0;
}

.lsh-search-btn.loading .lsh-btn-icon {
    animation: lsh-spin 0.8s linear infinite;
}

@keyframes lsh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lsh-btn-icon {
    width: 18px;
    height: 18px;
}

/* Mobile Trigger */
.lsh-mobile-trigger {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #bf4a92;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.lsh-mobile-label {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.lsh-mobile-icon {
    color: white;
    width: 20px;
    height: 20px;
}

/* Mobile Panel - Compact, not full screen */
.lsh-mobile-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 2147483647;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.lsh-mobile-panel.open {
    transform: translateY(0);
}

.lsh-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #bf4a92;
    border-radius: 20px 20px 0 0;
}

.lsh-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.lsh-panel-close {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    border-radius: 50%;
}

.lsh-panel-close:hover {
    background: rgba(255,255,255,0.1);
}

.lsh-panel-content {
    padding: 20px;
}

.lsh-panel-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.lsh-panel-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    background: #f5f5f5;
}

.lsh-panel-input:focus {
    border-color: #bf4a92;
    box-shadow: 0 0 0 3px rgba(191, 74, 146, 0.1);
    background: white;
}

.lsh-panel-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mobile Option Buttons - Side by side for 2 or less, stacked for more */
.lsh-panel-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.lsh-panel-option-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 5px);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: #f0f0f0;
    color: #bf4a92;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}

/* If more than 2 buttons, make them stack */
.lsh-panel-options.stacked .lsh-panel-option-btn {
    min-width: 100%;
}

.lsh-panel-option-btn:hover {
    background: #e8e8e8;
}

.lsh-panel-option-btn.active {
    background: #bf4a92;
    color: white;
}

/* Mobile Search Button */
.lsh-panel-search-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    background: #d65faa;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
}

.lsh-panel-search-btn:hover {
    background: #c44d9a;
}

.lsh-panel-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Overlay - covers everything */
.lsh-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2147483646;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: none;
}

.lsh-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Body scroll lock */
body.lsh-no-scroll {
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 900px) {
    .lsh-desktop-bar {
        display: none !important;
    }

    .lsh-mobile-trigger {
        display: flex !important;
    }

    .lsh-mobile-panel,
    .lsh-overlay {
        display: block;
    }
}

@media (min-width: 901px) {
    .lsh-mobile-trigger,
    .lsh-mobile-panel,
    .lsh-overlay {
        display: none !important;
    }
}