#hm-job-listing-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 810px;
    margin: 0 auto;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hm-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.hm-input-wrapper input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 50px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.hm-input-wrapper input[readonly] {
    background-color: #fff;
}

.hm-input-wrapper input:disabled {
    background-color: #fbfbfb;
    cursor: not-allowed;
}

.hm-suggestions-list {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-suggestions-list li {
    padding: 8px 12px;
    cursor: pointer;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.hm-suggestions-list li:hover {
    background-color: #f5f5f5;
}

.city-suggestion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.city-suggestion-wrapper .city-name {
    font-size: 14px;
}

.city-suggestion-wrapper .region-name {
    color: #000;
    font-size: 12px;
    position: relative;
    top: -5px;
    left: 3px;
}

#hm-category-suggestions li {
    display: flex;
    align-items: center;
}

.category-checkmark {
    color: #666;
    display: inline-block;
    width: 10px;
    text-align: center;
    visibility: visible;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-right: 3px;
}

.category-selected .category-checkmark {
    opacity: 1;
}

.hm-suggestions-list span {
    display: inline-block;
}

#hm-job-search {
    padding: 12px 30px;
    height: 50px;
    font-size: 14px;
    background-color: #1e90ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

#hm-job-search:hover {
    background: #2b97ff;
}

.hm-input-wrapper .loading-spinner {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.hm-input-wrapper .loading-spinner::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #1e90ff;
    border-color: #1e90ff transparent #1e90ff transparent;
    animation: spinner 1.2s linear infinite;
}

@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (min-width: 768px) {
    #hm-job-listing-search-form {
        flex-wrap: nowrap;
        width:810px;
    }

    .hm-input-wrapper {
        flex: 1;
    }

    #hm-job-search {
        flex: 0 0 auto;
    }
}

@media screen and (max-width: 767px) {
    #hm-job-listing-search-form {
        flex-direction: column;
        padding: 30px;
    }

    .hm-input-wrapper {
        width: 100%;
    }

    #hm-job-search {
        width: 100%;
    }

    .hm-input-wrapper input {
        font-size: 14px;
    }

    .hm-suggestions-list {
        max-height: 50vh;
    }
}