.pd-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    padding: 5px 5px 5px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #f3f4f6;
    box-sizing: border-box;
}

.pd-search-wrap * {
    box-sizing: border-box;
}

/* Reset theme defaults that cause uneven spacing */
.pd-search-wrap select,
.pd-search-wrap input,
.pd-search-wrap button {
    margin: 0 !important;
    line-height: normal !important;
}

.pd-search-select {
    min-width: 100px;
    border-right: 1px solid #e5e7eb;
    margin-right: 15px;
    position: relative;
}

.pd-search-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    font-weight: 600;
    color: #001840;
    font-size: 16px;
    padding-right: 20px;
    outline: none;
    cursor: pointer;
    width: 100%;
    box-shadow: none;
}

/* Custom arrow for select */
.pd-search-select::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #001840;
    pointer-events: none;
}

.pd-search-select select:focus {
    box-shadow: none;
    outline: none;
}

#pd-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px;
    background: transparent;
    color: #374151;
    width: 100%;
    box-shadow: none;
}

#pd-search-input:focus {
    box-shadow: none;
    outline: none;
}

#pd-btn-search {
    background: var(--fs-color-secondary); ;
    border: none;
    border-radius: 40px;
    padding: 0 30px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px;
    flex-shrink: 0;
    line-height: 1;
}

#pd-btn-search svg {
    margin-right: 8px;
}

#pd-btn-search:hover {
    background: var(--primary-color); ;
}

/* Responsive */
@media (max-width: 600px) {
    .pd-search-wrap {
        flex-direction: row;
        border-radius: 4px;
        /* More squared off like the image */
        padding: 0;
        overflow: hidden;
        /* Ensures the button background stays within border-radius */
        height: 46px;
        /* Slightly shorter on mobile */
    }

    .pd-search-select {
        border-right: none;
        margin-right: 5px;
        padding-left: 10px;
        min-width: 80px;
    }

    .pd-search-select select {
        font-size: 14px;
    }

    #pd-search-input {
        padding: 0 10px;
        font-size: 14px;
    }

    #pd-btn-search {
        width: 50px;
        height: 100%;
        padding: 0;
        margin-top: 0;
        border-radius: 0;
    }

    #pd-btn-search svg {
        margin-right: 0;
        width: 22px;
        height: 22px;
    }

    #pd-btn-text {
        display: none;
        /* Hide text on mobile */
    }
}