  /* The Modal (background) */
.service-search-modal {
    position: fixed; /* Stay in place */
    z-index: 1000000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */

}

/* Modal Content/Box */
.service-search-modal-content {
    background-color: #fefefe;
    border-radius: 10px;
    margin: 15% auto; /* 15% from the top and centered */
    border: 1px solid #888;
    box-shadow: 0 4px 9px rgba(0, 0, 0, 0.15);
    width: 370px; /* Could be more or less, depending on screen size */
}
span.close {
    position: relative;
    float: right;
    right: 0px;
    top: -36px;
    cursor: pointer;
    font-size: 27px;
}

#searchInput {
    flex: 1;
    border: none;
    padding: 0;
    margin-right: 25px;
    outline: none;
    padding-right: 30px;
    margin-top: 22px;
    font-size: 16px;
}

.search-icon {
    position: relative;
    /*transform: translateY(-50%);*/
    width: 25px;
    height: 24px;
    margin:20px 20px 0 10px;
    float: left;
}

#resultsContainer {
    width: 100%;
    max-height: calc(5 * 40px + 10px * 4);
    overflow-y: auto;
    padding-left: 0;
    position: relative;
}

#resultsContainer div {
    position: relative;
    display: flex;
    padding-top: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid lightgray;
}
#resultsContainer img {
    border: none;
}
#resultsContainer ul {
    padding-left: 0 !important;
}

.link-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 12px;
}

#resultsContainer div span {
    display: block;
    padding-right: 30px;
}

#resultsContainer div:hover,
#resultsContainer div.autocomplete-active {
    color: red;
    text-decoration: underline;
}

.no-results {
    text-align: center;
    font-size: 1.2em;
    margin-top: 20px;
    color: #909090;
}
