/*
****************************************************************
Other Styles / except the first screen /
****************************************************************
*/


/*--------------------------------------------------------------
=== TYPOGRAPHY & COLORS ===
--------------------------------------------------------------*/
.text-left { text-align:left;}
.text-right { text-align:right;}
.text-center { text-align:center;}
.text-center img { margin-left: auto; margin-right: auto;}
.text-justify { text-align:justify;}
.text-nowrap { white-space:nowrap;}
.text-lowercase { text-transform:lowercase;}
.text-uppercase { text-transform:uppercase;}
.text-capitalize { text-transform:capitalize;}
@media (max-width: 768px) {
  .xs-text-center { text-align:center;}
}

.bg-greyLight {}
.text-grey {}

h1, .h1 {} /* on the first screen */
h2, .h2 { font: 500 2.8rem/1.3em var(--font-family-accent); color: var(--blue);}
h2:not(:last-child), .h2:not(:last-child) { margin-bottom: var(--mb-base);}
h3, .h3 { font-size: 2.3rem; line-height: 1.3; font-weight: 500; color: var(--blue);}
h3:not(:last-child), .h3:not(:last-child) { margin-bottom: var(--mb-base);}

@media (max-width:767.98px) {
}
@media (min-width:768px) {
  h2, .h2 { font-size: 4rem; line-height: 1.375;}
  h3, .h3 { font-size: 3.4rem;}
}


/*--------------------------------------------------------------
=== FOOTER ===
--------------------------------------------------------------*/
footer { padding: 4rem 0; font-family: Arial, HelveticaNeue; font-weight: 400; background: var(--grey-light);}
.footer-top { padding: 6rem 0 8.5rem;}
.footer-logo { display: block;}
.footer-nav { width: 100%; display: flex;}
.footer-nav:not(:last-child) { margin-bottom: var(--mb-base);}

.footer-nav { display: flex; list-style: none;}

@media (max-width:767.98px) {
  footer { font-size: 1.2rem; line-height: 1.3; text-align: center;}
  footer .row { align-items: center;}
  .footer-nav { flex-direction: column; gap: 1rem;}
}
@media (min-width:768px) {
  footer { font-size: 1.4rem; line-height: 1.3;}
    footer .row { justify-content: center;}
    .footer-nav { gap: var(--gap);}
}


/*--------------------------------------------------------------
=== BUTTONS & SEPARATORS & ANCHORS ===
--------------------------------------------------------------*/
.btn { display: inline-block; cursor: pointer; border: 0; text-decoration: none; transition: .25s ease-in-out;}
.btn-default { padding: 1.1rem 1.7rem; font-size: 1.3rem; line-height: 1.2; font-weight: 400; letter-spacing: .05em; color: var(--white); border-radius: var(--brdrd); background: var(--red-darker); border: 1px solid var(--red-darker);}
.btn-default:hover, .btn-default:focus { color: var(--red-darker); background: var(--white);}

.btn-secondary { text-align: center; height: 4.4rem; line-height: 1.2; font-weight: 300; color: var(--red-darker); border-radius: var(--brdrd); border: 0; background: var(--white);}
.btn-secondary:hover, .btn-secondary:focus { color: var(--white); background: var(--red-darker);}

@media (max-width:767.98px) {
}
@media (min-width:768px) {
  .btn-default { font-size: 1.8rem;}
  .btn-secondary { font-size: 1.8rem;}
}


/* --- SEARCH section */
.search { text-align: center; font-weight: 600; color: var(--white); background: var(--blue);}
.search .section-title { font-weight: 600; color: currentColor;}
.search .row { align-items: center; justify-content: center; gap: 1rem;}

.search-field .text-field { width: 20rem; height: 4.4rem; background: none; border-radius: var(--brdrd); border: 1px solid var(--white); text-align: center; color: currentColor; font-weight: inherit;}
.search .btn-secondary { width: 21rem;}
.select-container select, .select-container #selectDistance-button { width: 20rem; height: 4.4rem; background: var(--blue); border-radius: var(--brdrd); border: 1px solid var(--white); text-align: center; color: currentColor; font-weight: inherit;}

/* override select styling */
.select-container #selectDistance-button { padding-top: 5px!important;}
.select-container .ui-selectmenu-text { font-family: var(--font-family-base)!important;}

@media (max-width:767.98px) {
  .search .section-title  { font-size: 2.6rem;}
}
@media (min-width:768px) {
  .search .section-title  { font-size: 3.2rem;}
  .search .search-results, .search .near-code { padding-right: 1.5rem;}
}


/* ---  searchResults-content section  = map-container & searchResults content */
.results-container { padding-right: 5rem;}

.result-item { display: flex; align-items: center; gap: 4px; padding-top: var(--mb-base); padding-bottom: var(--mb-base); color: var(--blue);}
.result-item:not(:last-child) { border-bottom: 1px solid var(--grey-light);}
.result-item .line1 a { color: currentColor; text-decoration: none; font-weight: 600;}
.result-item .line1 a:hover, .result-item .line1 a:focus { color: var(--red-dark);}
.result-item .line2, .result-item .line3, .result-item .line4, .result-item .line5 { font-size: .8333em; line-height: 1.5; font-weight: 400;}
.result-item .content-container { flex-grow: 1;}
.lnk-direction { margin-right: -4rem; display: block; width: 3.7rem; height: 3.7rem; background: url("../img/arr-direction.webp") center / contain no-repeat;}

@media (max-width:767.98px) {
  .searchResults-content .row { flex-direction: column-reverse;}
  .map-container { height: 340px;}
}
@media (min-width:768px) {
  .map-container { flex-grow: 1;}
  .results-container { flex: 0 0 400px; height: 916px; overflow: auto;}
}


/* ACE CUSTOMER section */
.ace-customer { text-align: center; color: var(--white); font-weight: 600; background: var(--blue);}
.ace-customer .section-title { font-weight: 600; color: currentColor;}
.ace-customer .tel-line { font-weight: 700; color: currentColor;}
@media (max-width:767.98px) {
  .ace-customer .section-title { font-size: 2.6rem;}
}
@media (min-width:768px) {
  .ace-customer .section-title { font-size: 3.2rem;}
}


/* --- CALLOUT section */
.callout { text-align: center;}
.callout  .btn-line { margin: 5rem 0;}

@media (max-width:767.98px) {
}
@media (min-width:768px) {
  .callout { padding: 8rem 0;}
}

/* --- popup */
 .popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -1;
    transition: .25s ease-in-out;
    opacity: 0;
  }
  .popup-container.hidden {
    opacity: 0;
    visibility: hidden;
  }

  .popup-container.show {
    opacity: 1;
    visibility: visible;
    z-index: 999;
  }

  .popup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .popup-wrapper {
    z-index: 999;
    position: relative;
    background: white;
    padding: 45px 35px;
    border-radius: var(--brdrd);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    text-align: center;
    width: 660px;
    max-width: 95%;
  }

  .popup .close {
    z-index: 2;
    position: absolute;
    right: 20px;
    top: 16px;
    width: 22px;
    height: 22px;
    cursor: pointer;
  }
  .popup .close:before, .popup .close:after {
    content: "";
    position: absolute;
    left: 50%;
    top: -2px;
    width: 2px;
    height: 28px;
    background: var(--blue);
  }
  .popup .close:before {
    transform: rotate(45deg);
  }
  .popup .close:after {
    transform: rotate(-45deg);
  }
  .popup .close:hover:before, .popup .close:hover:after,
  .popup .close:focus:before, .popup .close:focus:after{
    background: var(--red-darker);
  }

  .popup-header {
    font-size: 1.25em;
    line-height: 1.3;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: .75em;
  }

  .popup-body .flex-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .text-field {
    padding: 0 8px;
    border-radius: var(--brdrd);
    border: 1px solid var(--blue);
  }

