/* autocomplete  */

.faqTitleStyling {
    font-family: "Rubik", sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 2px;
    color: #575756;
    padding: 24px 16px;
}

.awesomplete {
    position: relative;
}


#faqSearch {
    font-family: 'Rubik', sans-serif; /* Specify the font-family */
    font-size: 16px; /* Specify the font-size */
    font-weight: 400; /* Specify the weight of the font */
    color: #333; /* Change the text color */
}

/* Styling the placeholder text */
#faqSearch::placeholder {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 300; /* Slightly bolder placeholder for contrast */
    color: #888; /* Lighter color for the placeholder */
}

.autocomplete-container {
    position: relative;
    display: flex;
    align-items:center;
    --input-width: 400px;
    --icon-width: 40px;
}

.autocomplete-input {
    padding: 20px 40px 20px 20px;  /* Top Right Bottom Left */
    border: 2px solid #F59B20;    /* Border color and thickness */
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    height: 64px;
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
    max-width: 600px;
    min-width: 500px;
    width: 100%;
    border-right-color: transparent;
    border-right: none;

}

@media (max-width: 767px) {
    .autocomplete-input {
        min-width: 100%;
        max-width: 100%;
    }
    .awesomplete {
        width: 100%;
    }
}

.autocomplete-input:focus {
    outline: none;
}


.autocomplete-icon::before {
    content: url("https://buildexconstruction.co.uk/wp-content/uploads/2024/05/magGlassOrange20x20.svg"); 
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.autocomplete-icon {
    display: inline-block;
    width: 40px;
    height: 64px; /* Match the height of your input */
    position: relative; 
    align-items: center;
    justify-content: center;
    border: 2px solid #F59B20;
    border-left: none; /* Remove the left border to make it look like a continuous element with the input */
    background-color: #FFF; /* Adjust if necessary to match input background */
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    margin-right: -2px;
}

#awesomplete_list_2 {
    position: absolute;
    top: 100%; /* Start just below the input */
    left: 50%; /* Move to the center of the parent container */
    width: calc(1.2 * (var(--input-width) + var(--icon-width))); 
    transform: translateX(-50%); /* Center the dropdown */
    z-index: 1000; /* Place it above other page elements */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    justify-content: center;
    padding: 20px 16px;
    margin-top: 8px;
    font-family: "Rubik", sans-serif;
}

@media (max-width: 767px) {
    #awesomplete_list_2 {
        width: 100%;
    }
}

#awesomplete_list_2 li {
    list-style: none;
    padding: 8px;
    cursor: pointer;
    
}

#awesomplete_list_2 li:hover {
    background-color: rgba(245, 155, 32, 0.5);
}

#awesomplete_list_2 mark {
    background-color: #F59B20; /* or any other color you want */
    color: #ffffff; /* or any other color you want */
    padding: 0; /* Optional: if you don't want extra padding around the marked text */
}