/*** GLOBAL ***/

.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}

*
{
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    outline: none;
}

body
{
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif, Arial, sans-serif;
}

input, select
{    
    -webkit-appearance: none !important;
	border-radius: 0;
    width: 100%;
	height: 35px;
	border-radius: 0;
    background: #FFF;
	box-sizing: border-box;
	border: 0;
	padding: 0 15px;
    margin-bottom: 15px;
	font-size: 16px;
    -webkit-appearance: none;
}

@media screen and (min-width: 600px) {
    input, select {
        font-size: 16px;
    }
}

select
{
    background-image: url('/images/dropdown-arrow.png');
    background-repeat: no-repeat;
    background-position: right 50%;
    padding-right: 30px;
}

input[type="submit"],button
{
    transition: 0.3s all;
}

label
{
    display: none;
    font-size: 16px;
    margin: 0 0 5px 0;
    border: 0;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (min-width: 600px) {
    label
    {
        display: block;
    }
}

button
{
    -webkit-appearance: none;
    background: black;
    color: white;
    border: none;
    font-size: 14px;
    padding: 8px;
    cursor: pointer;
}

.business_type, .business_name
{
    position: relative;
}

.business_name, #searchtype
{
    display: none;
}

body.name .business_name
{
    display: block;
}
body.name #searchtype
{
    display: inline;
}
body.name .business_type, body.name #searchname
{
    display: none;
}

.predictive_results
{
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif, Arial, sans-serif;
    font-size: 16px;
    padding: 0;
    position: absolute;
    overflow: visible;
    top: 33px;
    left: 0;
    width: 100%;
    display: none;
    z-index: 9999 !important;
}

/* .predictive_results li.indent { padding-left: 30px; opacity: 0.9; } */

#search_listing .predictive_results
{
    top: 35px;
}

.predictive_results ul
{
    padding: 0;
    margin: 0;
    background-color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border-radius: 2px;
}

.predictive_results li
{
    font-family: Arial, sans-serif;
    list-style: none;
    font-size: 13px;
    padding: 0 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    line-height: 30px;
    text-align: left;
    border-top: 1px solid #e6e6e6;
    font-weight: bold;
}

.predictive_results li.parent {
    background-color: #eee;
}

.predictive_results li.indent span
{
    padding: 0 10px;
}

.predictive_results li span
{
    color: #BBB;
    font-weight: normal;
    font-size: 10px;
}

.predictive_results li span.predicted {
    color: #AAA;
    font-size: 13px;
    font-weight: bold;
}

.predictive_results li:hover
{
    background-color: #fafafa;
}

.search_form
{
    display: block;
    padding: 15px;
}

.search_form a
{
    font-size: 12px;
}

.business_submit
{
    margin-top: 10px;
}

.business_submit .hidden
{
    display: none;
}

h1
{
    display: block;
    font-size: 25px;
    -webkit-margin-before: 0.67em;
    -webkit-margin-after: 0.67em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    font-weight: 400;
}

.listings_body
{
    padding: 5px;
}

.listings_body h1
{
    margin-top: 0;
}

#result_count
{
    font-size: 25px;
}

#search_listing #print
{
    float: right;
}

#search_listing #print
{
    font-size: 30px;
}

.search_result
{
    padding-bottom: 10px;
}

.search_result a
{
    text-decoration: none;
}

.search_result h3, .search_result a
{
    display: block;
    font-weight:400;
    font-size: 20px;
}

.search_result h3
{
    margin-bottom: 10px;
}

.search_result a
{
    margin-top: 5px;
    font-size: 16px;
}

.search_result a:first-child {
    display: inline-block;
}

.search_result p
{
    font-size: 14px;
    margin: 5px 0;
}

.search_result p.contact_links
{
    margin-top: 10px;
    display: inline-block;
}

.search_result p.contact_links span {
    display: block;
    margin-top: 0.5em;
}

.listing_categories {
    list-style-type: none;
    padding: 0;
}

.listing_categories li {
    margin-bottom: 5px;
    font-size: 14px;
}

.listing_categories .bullet_replace {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    color: #FFF;
    margin-right: 10px;
}

.listing_categories .bullet_replace.qmark {
    background-color: #d1d1d1;
    font-weight: bold;
}

.search_result_list
{
    margin-left: 0;
    padding-left: 15px;
}

.search_result_list li
{
    font-size: 12px;
}


#search_listing button
{
    width: 100%;
}

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

.listing_logos li
{
    width: calc(33.333% - 10px);
    height: 80px;
    float: left;
    background-repeat:no-repeat;
    background-size: 100% auto;
    background-size: contain;
    background-position: center center;
    margin: 0 5px;
}

.listing_logos li:first-child
{
    margin-left: 0;
}

.poweredByReferenceLine
{
    width: 40%;
    max-width: 200px;
}

#poweredByReferenceline,
#poweredByReferencelineTC
{
    padding: 10px 0;
    position: relative;
    display: none;
}

.poweredByReferencelineClose
{
    position: absolute;
    display: block;
    width: 1em;
    height: 1em;
    right: 1em;
    top: 1em;
    color: black;
    text-decoration: none;
}

#poweredByReferenceline h3
{
    margin-top: 0;
    font-weight: bold;
    width: calc(100% - 30px);
}

#poweredByReferenceline a, #poweredByReferenceline a:visited
{
    color: black;
}

.pbr-footer {
    background-color: #eee;
    border-radius: 2px;
    padding: 5px 10px;
    font-size: 14px;
}

.pbr-footer p {
    font-size: 14px;
}

.pbr-footer-top {
    display: flex;
    justify-content: space-between;
}

.pbr-footer-top a {
    color: #000;
    text-decoration: none;
}

.searchresult_container
{
    padding: 15px 0;
}

.searchresult_container #searchresult_accreditations,
.searchresult_container #searchresult_reviews,
.searchresult_container #searchresult_iframes,
.searchresult_container #searchresult_activities {
    border-top: 8px solid #eee;
}

.searchresult_container #searchresult_details,
.searchresult_container #searchresult_activities,
.searchresult_container #searchresult_accreditations,
.searchresult_container #searchresult_reviews,
.searchresult_container #searchresult_iframes,
.searchresult_container #searchresult_header
{
    /* padding: 0 5px; */
}



#searchresult_header
{
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

#searchresult_header .rhs_header a {
    color: #9a9a9a;
}

#searchresult_wrapper .search_result_list
{
    display: inline-block;
    padding: 0;
    margin: 5px 0;
}

#searchresult_wrapper .search_result_list li
{
    display: inline;
    font-size: 16px;
    padding: 0;
}

#searchresult_wrapper .search_result_web,
#searchresult_wrapper .search_result_legal,
#searchresult_wrapper .search_result_company_number
{
    margin: 5px 0;
}

#search_result_list  a
{
    text-decoration: none;
}

#searchresult_map iframe
{
    border: none;
    width: 100%;
    height: 320px;
    margin-top: 15px;
}

h2
{
    display: block;
    font-weight:400;
    font-size: 20px;
}

#searchresult_wrapper .accreditation_image
{
    vertical-align: top;
    padding-top: 5px;
}

#searchresult_accreditations img
{
    display: block;
    min-width: 100px;
    max-width: 100px;
    padding-right: 15px;
}

td.accreditation_content p:first-child
{
    margin-top: 0;
}

.accreditation_iframe {
    width: 100%;
    max-width: 900px;
}

.list_under
{
    display: block;
    margin-top: 5px;
}

#load-more-button
{
    width:100%;
    margin: 0 auto 20px auto;
    display:block;
    padding:10px 20px;
    text-align: center;
    text-decoration: none;
    transition: 0.3s all;
}

@media screen and (min-width: 751px)
{
    .business_location .predictive_results {
        width: auto;
        max-width: 95vw;
        transform: translateX(-50%);
        left: 50%;
    }

    .business_type, .business_location, .business_submit, .business_name, .business_submit_name
    {
        float: left;
        padding: 0 15px;
    }

    .predictive_results
    {
        top: 62px;
    }
    .search_result_list
    {
        margin: 0;
        padding: 1em 0;
        list-style: none;
    }
    .search_result_list li
    {
        display: inline-block;
        padding: 0 0.5em 0 0;
        font-size: 12px;
    }

    .search_result_list li:first-child
    {
        padding-left: 0;
    }

    .search_result_list li::before
    {
        content: '\2022';
        display: inline-block;
        padding: 0px 0.75em 0px 0;
    }
    .search_result_list li:first-child::before
    {
        display: none;
    }
    .listing_logos li
    {
        width: 150px;
        height: 100px;
        margin-right: 10px;
        margin-left: 10px;
    }
    .search_result_list
    {
        padding-right: 165px;
    }
    #search_listing button
    {
        width: 150px;
        float: right;
        display: block;
        margin-top: -40px;
    }

    #searchresult_map iframe
    {
        height: 400px;
    }
    .list_under
    {
        display: inline;
        margin-top: 0px;
    }
    #load-more-button
    {
        width: 400px;
    }
}

#searchform, #searchform_listing {
    position: relative;
}

@media screen and (min-width: 750px)
{
    .predictive_results
    {
        padding: 0 15px;
    }

    .business_name
    {
        width: 80%;
    }
    .business_type, .business_location, #searchform_listing_business_name.business_name
    {
        width: 40%;
    }
    .business_location .location
    {
        width: 60%;
        float: left;
    }
    .business_location select
    {
        width: 40%;
        float: left;
        border-left: 1px solid #CCC;
    }
    .business_submit
    {
        margin-top: 0;
        width: 20%;
        padding-right: 0;
    }
    .business_submit .hidden
    {
        display: block;
        visibility: hidden;
    }
    #searchresult_map iframe
    {
        height: 500px;
    }
    input, select
    {

    	font-size: 14px;
    }
}

/** NEW **/
#searchresult_wrapper h1, h2
{
    color: #00677F;
}

#searchresult_wrapper h2 {
	text-align: center;
	color: #000;
	font-weight: bold;
}

.predictive_results li
{
    color: #000;
}

.search_form a
{
    color: #fff !important;
    text-decoration: none;
}

.search_form input[type="submit"]
{
    background-color: #ECECEC;
    color: #000;
}
button:hover, .search_form input[type="submit"]:hover
{
    background-color: #bcbcbc;
    color: #000;
}

#search_listing #print i::before
{
    color: #007D47;
}

.search_result a
{
    color: #00677F;
}

.search_result h3
{
    color: #00677F;
}

.search_result h3 a
{
    font-weight: 600;
}

.lighter
 {
     color: #333;
 }

 #load-more-button
 {
     background: #00677F;
     color: white;
 }
 #load-more-button:hover
 {
     background-color: #bcbcbc;
     color: #000;
 }


.business_name, #searchtype
{
    display: block;
    z-index: 999;
}

.business_type, .business_location, #searchform_listing_business_name.business_name,
#searchform .business_name, #searchform_listing .business_name,
#form_search_location .business_name
{
    width: 40%;
    z-index: 999;
    position: relative;
}

#searchform_listing .business_name,
#searchform_listing .business_type,
#searchform_listing #business_location,
#form_search_location #business_name,
#form_search_location #business_type,
#form_search_location #business_location,
 {
    position: relative;
    width: 30%;
}

#searchform_listing .business_location,
#form_search_location .business_location  {
    width: 30%;
}

#searchform_listing #searchform_listing_location.business_location {
    width: 15%;
    z-index: 99;
}

.business_location {
    z-index: 998;
}

.business_location .location
{
    width: 40%;
    float: left;
}
#searchname,
#searchtype,
#searchabout
{
    /* position:relative;
    top:27px;
    left:auto;
    display: block;
    z-index: 9; */
    color: #FFF;
    text-decoration: none;
    padding: 8px 22px;
    display: block;
}

body.name #searchtype {
    display: block;
}

#searchabout {
    color: #000;
}

#form_search_location,
#form_search_listing {
    padding: 5px;
}

.searchbox_tabs {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.searchbox_tab {
    border-bottom: 2px solid #000;
    align-self: flex-end;
}

.searchbox_tab.active {
    border: 2px solid #000;
    border-bottom: transparent;
}

.searchbox_tab.search_about {
    background-color: #f5f5f5;
}

.business_submit {
    width: 10%;
}

.searchform_wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

#searchform,
#searchform_listing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 25px 10px;
    margin-top: -2px;
}

#searchform_listing {
    justify-content: center;
}

.separator {
    color: #FFF;
    margin-right: 15px;
}
#searchbox_location,
#searchbox_business_name,
#searchbox_business_type,
#search {
    margin-bottom: 0;
}

#business_about {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.search_form #business_about a {
    color: #000!important;
    font-size: 14px;
    text-align: center;
}

#ReportsIframe::-webkit-scrollbar {
    display: none;
}

#search,
#searchform_listing_submit input {
    background-size: 24px;
    border: 1px solid #FFF;
    border-radius: 3px;
    background-color: #0000004f;
    color: #FFF;
}

#searchform_listing_location input,
#searchform_listing_location select {
    margin-bottom: 0;
}

#searchform_listing_location select {
    width: 100%;
    border: 0;
    background: rgba(0,0,0,0.2);
    color: #FFF;
    border-radius: 4px;
    cursor: pointer;
}

#searchform_listing_submit {
    margin-top: 21px!important;
}

body.name #searchname {
    display: block;
}

.searchbox_tabs .logo {
    margin-left: auto;
    padding: 10px;
}

.searchbox_tabs .logo img {
    height: 60px;
}

.searchbox_tabs .placeholder_flex {
    margin-right: auto;
}

@media screen and (max-width: 750px) and (min-width: 600px) {
    .business_submit {
        margin-top: 5px!important;
    }
}

    .business_location,
    .business_type,
    #searchform .business_name,
    #searchform_listing .business_name,
    #searchform_listing .business_type,
    #searchform_listing #searchform_listing_location.business_location,
    #searchform_listing #business_location {
        width:100%;
        margin-bottom: 10px;
    }

    .separator {
        display: none!important;
    }

    input, select {
        font-size: 16px;
    }
    #searchname, #searchtype{
        top:0px;
    }
    #business_submit{
        margin-top: 0px !important;
    }
    #business_name {
        margin-bottom: 10px;
    }



#searchresult_activities table {
    width: 100%;
}

#searchresult_activities .activities_wrapper {
    display: flex;
    flex-wrap: nowrap;
}

#searchresult_activities .activities_list {
    width: 50%;
    padding-right: 10px;
}

#searchresult_activities .activities_list p {
    margin: 2px 0;
}

@media screen and (max-width: 520px){
    .searchbox_tabs .logo,
    .searchbox_tabs .placeholder_flex {
        display: none;
    }

    #searchresult_activities td,
    #searchresult_activities tr {
        display: block;
    }

    #searchresult_activities .activities_wrapper {
        display: block;
    }

    #searchresult_activities .activities_list {
        width: 100%;
        padding-right: 0px;
    }
}

@media screen and (max-width: 750px){
    .separator {
        margin-right: 0;
    }
}

/**
 MODALS
 */
.youtube_video_container
{
    position: relative!important;
    width: 100%!important;
    height: 0!important;
    padding-bottom: 56.25%!important;
}

.youtube_video_container > iframe
{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.open_modal {
    cursor: pointer;
}

.modal_outer {
    position: fixed;
    width: 100%; min-height: 100%;
    top: 0; left: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding-top: 50px;
    cursor: pointer;
    z-index: 1000;
}

.modal_inner {
    max-width: 800px;
    width: 95%;
    background-color: #FFF;
    cursor: default;
    max-height: 80vh;
    overflow: hidden;
}

.modal_inner.modal_email {
    max-width: 500px;
}

.modal_email .modal_body {
    overflow-y: hidden;
}

.modal_inner,
.modal_outer {
    display: none;
}

.modal_header,
.modal_body {
    padding: 20px;
}

.modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #F5F5F5;
}

.modal_body {
    overflow: scroll;
    overflow-x: hidden;
    max-height: calc(80vh - 70px);
    position: relative;
}

.modal_body p,
.modal_title {
    margin: 0;
}

.modal_close,
.clear_input {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    transform: rotate(45deg);
    background-color: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.modal_form {
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.modal_form input,
.modal_form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    border: 1px solid #D8D8D8;
    margin-top: 5px;
    padding: 10px;
}

.modal_form label {
    color: #000;
    display: block;
}

.modal_form input[type=submit] {
    background-color: #00677F;
    border: none;
    color: #FFF;
}

.modal_body .loader {
    border-color: rgba(219, 219, 219, 0.2);
    border-left-color: #00677F;
}

.clear_input {
    position: absolute;
    right: 20px; top: 5px;
}

.modal_questions {
    margin-top: 10px;
}

.modal_questions h3,
.modal_questions div {
    margin: 0;
    padding: 10px 0;
}

.modal_questions h3 {
    border-bottom: 2px solid #F5F5F5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.modal_questions .accordion_arrow {
    height: 20px; width: 20px;
    border-radius: 10px;
    background-color: #F5F5F5;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease all;
}

.modal_questions .ui-state-active .accordion_arrow {
    transform: rotate(180deg);
}

.modal_subnav h3 {
    margin-top: 0;
}

.modal_subnav ul {
    list-style-type: none;
    padding-left: 0;
}

.modal_subnav li {
    cursor: pointer;
    position: relative;
    padding: 2px;
    padding-left: 25px;
}

.modal_subnav li.active {
    font-weight: bold;
}

.modal_subnav li::before {
    content: "—";
    position: absolute;
    left: 0;
    width: 10px;
    overflow: hidden;
}

.modal_sub {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #F5F5F5;
    position: relative;
}

.grecaptcha-badge { visibility: hidden!important; opacity: 0!important; }

.listing_categories .bullet_replace {
    width: 24px; height: 24px;
    color: #FFF;
    border-radius: 24px;
}

.listing_categories .bullet_replace.fa {
    background-color: #00677f;
    background-image: linear-gradient(45deg, #0098bb, transparent);
}

@media screen and (min-width: 421px) and (max-width: 750px) {
    #searchform_listing_submit,
    #business_submit,
    #form_search_location #searchform_listing_location.business_location,
    #searchform_listing .business_location {
        width: calc(50% - 5px);
        display: inline-block;        
    }
    /* #searchform_listing #searchform_listing_location.business_location,
    #form_search_location #searchform_listing_location.business_location {
        margin-right: 10px;
    } */

    #searchform_listing_submit,
    #business_submit {
        margin-top: 10px!important;
    }
}

#searchform_listing_submit,
#business_submit {
    width: 100%;
    margin-top: 0px!important;    
}

@media(min-width: 751px) {
    #searchform_listing_submit,
    #business_submit {
        padding: 0 15px;
    }
}

/**
 * Single Element Loading Spinner
 * @https://projects.lukehaas.me/css-loaders/
 */

.loader_wrapper {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: inherit;
}

.loader,
.loader:after {
  border-radius: 50%;
  width: 10em;
  height: 10em;
}
.loader {
  margin: 60px auto;
  font-size: 4px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

