.global-search-bar {
    background: var(--grey-white);
    padding: 12px 0;
    border-bottom: 1px solid var(--light-grey);
}

.global-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.global-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    border: 1px solid var(--light-grey);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.global-search-input-wrapper:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--translucent-blue);
}

.global-search-icon {
    position: absolute;
    left: 16px;
    color: var(--dark-blue);
    font-size: 0.9rem;
    pointer-events: none;
}

.global-search-input {
    width: 100%;
    padding: 10px 44px 10px 40px;
    border: none;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}

.global-search-input::placeholder {
    color: var(--grey);
}

.global-search-button {
    position: absolute;
    right: 4px;
    background-color: var(--dark-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.global-search-button:hover {
    background: var(--medium-blue);
}

/* Hide global search bar on homepage (hero search is the primary CTA there) */
body.home-page .global-search-bar {
    display: none;
}

body.template-searchresults .global-search-bar {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .global-search-form {
        padding: 0 16px;
    }

    .global-search-input {
        font-size: 0.9rem;
        padding: 8px 40px 8px 36px;
    }
}
