@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic);

#maincontent {
    font-family: Source Sans Pro, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #212529;
}

body.companies_search-index-index {
    background-color: #f7f7f7;
}
.custom-tooltip {
    position: absolute;
    z-index: 500;
    background: white;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    display: none;
    pointer-events: none;
    white-space: nowrap;
    /*transform: translate(-50%, -100%); */
}
.companies-search h2 {
    font-weight: 600;
    font-size: 32px;
    color: #000;
    border-bottom: 1px solid #827554;
    padding-bottom: 30px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.companies-search .top_block .name b {
    font-size: 20px;
    line-height: 24px;
}

.companies-search .top_block input {
    color: #C7C7C7;
    font-size: 16px;
    border-radius: 15px;
    height: 53px;
    padding: 6px 23px;
    border: 1px solid #fff;
    display: block;
    width: 100%;
    font-weight: 400;
    background-color: #fff;
}

.companies-search .top_block input:focus,
.top_block select:focus {
    box-shadow: none;
}

.companies-search .top_block input:hover {
    border-color: #C8C8C8;
}

.companies-search .input-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.companies-search .search-by-name:not(.active),
.companies-search .search-by-service:not(.active) {
    opacity: 0.5;
}

/*.companies-search .search-by:not(.active) label:hover:after,*/
/*.companies-search .select-all-wrapper label:hover:after,*/
/*.companies-search input[type="checkbox"] + label:hover:after {*/
/*    border-radius: 11px;*/
/*    width: 12px;*/
/*    height: 12px;*/
/*    position: absolute;*/
/*    top: 5px;*/
/*    left: 4px;*/
/*    content: " ";*/
/*    display: block;*/
/*    background: #837454;*/
/*}*/

/*.companies-search .select-all-wrapper label:hover:after,*/
/*.companies-search input[type="checkbox"] + label:hover:after {*/
/*    top: 9px;*/
/*}*/

.companies-search .search-by-name:not(.active) .input-group,
.companies-search .search-by-service:not(.active) .input-group {
    pointer-events: none;
}

.companies-search input[type="radio"],
.companies-search input[type="checkbox"] {
    display: none;
}

.companies-search label {
    position: relative;
}

.companies-search .search-form-wrapper label:before {
    content: " ";
    display: inline-block;
    position: relative;
    top: 5px;
    margin: 0 7px 0 0;
    width: 20px;
    height: 20px;
    border-radius: 11px;
    background-color: #fff;
}

.companies-search input[type="radio"]:checked + label:after,
.companies-search input[type="checkbox"]:checked + label:after {
    border-radius: 11px;
    width: 12px;
    height: 12px;
    position: absolute;
    top: 5px;
    left: 4px;
    content: " ";
    display: block;
    background: #837454;
}

/*.companies-search .select-all-wrapper input[type="radio"]:checked label:hover:after,*/
/*.companies-search .select-all-wrapper input[type="checkbox"]:checked label:hover:after,*/
.companies-search .select-all-wrapper input[type="checkbox"]:checked + label:after,
.companies-search .select-all-wrapper input[type="radio"]:checked + label:after,
.companies-search .services input[type="checkbox"]:checked + label:after {
    top: 9px;
}

.companies-search .top_block select {
    border-radius: 15px;
    height: 53px;
    border: 1px solid #fff;
    padding: 6px 23px;
    font-size: 16px;
    color: #000;
    display: block;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 6px;
    background-size: 25px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='31.476' height='31.753' viewBox='0 0 21.476 60.753'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_80' data-name='Rectangle 80' width='40' height='40' fill='none'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Group_1074' data-name='Group 1074' transform='translate(21.476 37.753) rotate(90)'%3E%3Cg id='Group_410' data-name='Group 410' transform='translate(0 0)' clip-path='url(%23clip-path)'%3E%3Cpath id='Path_1055' data-name='Path 1055' d='M2.6,37.753A2.6,2.6,0,0,1,.761,33.314L15.2,18.876.761,4.439A2.6,2.6,0,0,1,4.439.762L20.715,17.038a2.6,2.6,0,0,1,0,3.677L4.439,36.992a2.594,2.594,0,0,1-1.839.761' transform='translate(0 0)' fill='%23000'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.companies-search a,
.contractor-network .action-show-popup {
    display: block;
    font-size: 14px;
    text-decoration: underline;
    color: #AD9041;
}

.companies-search a:hover,
.contractor-network .action-show-popup:hover {
    text-decoration: none;
}

.top_block select:hover {
    border-color: #C8C8C8;
}

.map-wrapper button.search-btn,
.form-actions button,
.contact-us-popup button.submit {
    line-height: 1;
    width: 160px;
    height: 53px;
    font-size: 20px;
    font-weight: bold;
    padding: 0 20px;
    min-width: 200px;
    background-color: #AE9040;
    border-color: #AE9040;
    color: #fff;
    border-radius: 13px;
    margin-top: 16px;
}

.map-wrapper button.search-btn {
    margin-top: 0;
}

#map {
    width: 100%;
    height: 500px;
    background: #e5e5e5;
}

#searchBox {
    padding: 6px 23px;
    /*width: 250px;*/
    height: 53px;
}

.form-actions button:hover,
.contact-us-popup button.submit:hover {
    opacity: 0.8;
}

/*Recommended contractors*/
.verified-image {
    width: auto;
    height: 55px;
}

.recommended-block,
.contractor-network .network-block {
    border-radius: 15px;
}

.recommended-block .star-rating,
.contractor-network .star-rating {
    width: max-content;
}

.recommended-block .item-name {
    font-weight: bold;
    font-size: 20px;
}

.recommended-block p {
    margin-bottom: 0;
    font-size: 16px;
    color: #000;
    line-height: 26px;
}

.recommended-block .item-info img {
    width: 25px;
    height: 25px;
}

.recommended-block .star-rating_grey,
.contractor-network .star-rating_grey {
    font-size: 22px;
    color: lightgray;
    letter-spacing: 10px;
}

.recommended-block .star-rating_gold,
.contractor-network .star-rating_gold {
    font-size: 22px;
    color: #A27C2D;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    letter-spacing: 10px;
}

/*Contractor network*/
.contractor-network .network-block h3 {
    font-size: 16px;
    color: #000;
    font-weight: bold;
    padding: 20px 24px 15px 24px;
}

.contractor-network .table-title {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding-left: 24px;
    padding-right: 24px;
    background-color: #626262;
}

.contractor-network .table-body-block:nth-child(even) {
    background-color: #F7F7F7;
}

.contractor-network .table-body-block {
    padding: 8px 24px 7px 24px;
    font-size: 16px;
    color: #000;
    border-bottom: 1px solid #626262;
}

.contractor-network .star-rating_grey,
.contractor-network .star-rating_gold {
    font-size: 18px;
    letter-spacing: 8px;
}

.contractor-network .pagination {
    font-size: 14px;
    font-style: italic;
    color: #000;
    justify-content: center;
    gap: 10px;
}

.contractor-network .pagination a {
    color: inherit;
    text-decoration: none;
}

.contractor-network .pagination a:hover {
    text-decoration: underline;
}

.loader-wrapper {
    border-radius: 15px;
}

.loader-wrapper:not(.empty) {
position: absolute;
    width: 100%;
    height: 100%;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #AE9040;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

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

@media only screen and (min-width: 768px) {
    .companies-search h2 {
        font-size: 41px;
    }

    .companies-search .top_block .name b {
        font-size: 24px;
        line-height: 29px;
    }

    .companies-search .top_block input {
        font-size: 20px;
        height: 63px;
    }

    .companies-search .top_block select {
        font-size: 20px;
        height: 53px;
    }

    .companies-search .input-group {
        flex-wrap: nowrap;
    }
}

@media only screen and (min-width: 1024px) {
    .companies-search .select-all-wrapper input[type="radio"]:checked label:hover:after,
    .companies-search .select-all-wrapper input[type="checkbox"]:checked label:hover:after {
        top: 9px;
    }

    .companies-search .search-by:not(.active) label:hover:after,
    .companies-search .select-all-wrapper label:hover:after,
    .companies-search input[type="checkbox"] + label:hover:after {
        border-radius: 11px;
        width: 12px;
        height: 12px;
        position: absolute;
        top: 5px;
        left: 4px;
        content: " ";
        display: block;
        background: #837454;
    }

    .companies-search .select-all-wrapper label:hover:after,
    .companies-search input[type="checkbox"] + label:hover:after {
        top: 9px;
    }
}
