/* Ensure parent containers allow dropdown to overflow */
.quote-search-wrapper,
.banner-two-search,
.search-bar-container,
.search-box-wrapper {
    overflow: visible !important;
    position: relative;
    z-index: auto !important;
}

.quote-banner-section {
    overflow: visible !important;
    z-index: auto !important;
}

/* Ensure the container and form have proper positioning */
.quote-search-wrapper .container,
.quote-search-wrapper .row {
    position: static !important;
}

/* Job Input Styles */
.job-input-box {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.job-input-box .search-box-single {
    max-width: 100%;
    margin: 0 auto;
}

/* Make the inner field wider */
.job-input-box.search-box-single {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Add spacing on home page banner */
.banner-section-two .search-box-wrapper {
    margin-top: 20px;
}

.job-input-box .search-bar-input {
    max-width: 100% !important;
    width: 100% !important;
}

.search-box-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

.search-bar-container {
    padding: 20px 30px !important;
}

.job-input-field {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white !important;
    color: #333 !important;
}

.job-input-field:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.job-input-field::placeholder {
    color: #999 !important;
    font-style: italic;
}

/* Ensure the search-bar-input wrapper also has white background */
.job-input-box .search-bar-input {
    background: white !important;
}

/* Suggestions Box */
.job-suggestions-box {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
}

.suggestions-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.suggestions-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Suggestion Item */
.suggestion-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-category {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.suggestion-parent {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.suggestion-confidence {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.suggestion-confidence.high {
    color: #28a745;
    background: #d4edda;
}

.suggestion-confidence.medium {
    color: #ffc107;
    background: #fff3cd;
}

.suggestion-confidence.low {
    color: #6c757d;
    background: #e9ecef;
}

/* Parent/Subcategory Items */
.parent-category-item,
.subcategory-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.parent-category-item:hover,
.subcategory-item:hover {
    background: #f8f9fa;
}

.parent-category-item:last-child,
.subcategory-item:last-child {
    border-bottom: none;
}

.category-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.category-content i {
    color: #999;
}

/* No Matches Message */
.no-matches-message {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.no-matches-message i {
    font-size: 40px;
    color: #ffc107;
    margin-bottom: 10px;
}

.no-matches-message p {
    margin: 10px 0 0 0;
    font-size: 14px;
}

/* Show All Categories Button */
.show-all-categories {
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
}

.btn-show-all-categories {
    width: 100%;
    padding: 10px 16px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-show-all-categories:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* Back Button */
.back-button-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.btn-back-to-parents {
    width: 100%;
    padding: 8px 12px;
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back-to-parents:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* Scrollbar Styling */
.job-suggestions-box::-webkit-scrollbar {
    width: 8px;
}

.job-suggestions-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.job-suggestions-box::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.job-suggestions-box::-webkit-scrollbar-thumb:hover {
    background: #999;
}
div.search-bar-container {
    background-color: #f8f9fa;
    border: 1px solid #e7e7e7;
}
.job-input-box .search-bar-input {
    background: #f8f9fa !important;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .job-suggestions-box {
        max-height: 300px;
    }

    .suggestion-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .suggestion-confidence {
        align-self: flex-end;
    }
}
