/* =========================================================
   Service Area Mapping Tool Page
   Shared only by: service-area.html
   ========================================================= */

body.service-area-wrap{
  background: #ffffff;
  color: #111827;
}

body.service-area-wrap .service-area-page{
  width: 100%;
  background: #ffffff;
  color: #111827;
  font-family: "Red Hat Text", "Red Hat Display", system-ui, sans-serif;
}

body.service-area-wrap .service-area-page *,
body.service-area-wrap .service-area-page *::before,
body.service-area-wrap .service-area-page *::after{
  box-sizing: border-box;
}

body.service-area-wrap .service-area-page .container{
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px){
  body.service-area-wrap .service-area-page .container{
    max-width: 540px;
  }
}

@media (min-width: 768px){
  body.service-area-wrap .service-area-page .container{
    max-width: 720px;
  }
}

@media (min-width: 992px){
  body.service-area-wrap .service-area-page .container{
    max-width: 960px;
  }
}

@media (min-width: 1200px){
  body.service-area-wrap .service-area-page .container{
    max-width: 1170px;
  }

  body.service-area-wrap .service-area-page > .service-area-main > .container{
    zoom: 0.9;
  }
}

body.service-area-wrap .service-area-main{
  padding: 52px 0 82px;
  background: #ffffff;
}

body.service-area-wrap .service-area-title{
  margin: 0;
  color: #1b2430;
  font-family: "Red Hat Display", "Red Hat Text", system-ui, sans-serif;
  font-size: clamp(2.6rem, 3.4vw, 4.05rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

body.service-area-wrap .service-area-rule{
  width: 100%;
  height: 3px;
  margin: 22px 0 28px;
  background: #d4dae0;
}

body.service-area-wrap .service-area-intro{
  margin: 0 0 42px;
}

body.service-area-wrap .service-area-intro h2,
body.service-area-wrap .service-area-copy-section h2,
body.service-area-wrap .service-area-map-card h2,
body.service-area-wrap .service-area-checker-card h2{
  margin: 0 0 14px;
  color: #111827;
  font-family: "Red Hat Display", "Red Hat Text", system-ui, sans-serif;
  font-size: clamp(1.95rem, 2.15vw, 2.55rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

body.service-area-wrap .service-area-intro p,
body.service-area-wrap .service-area-copy-section p,
body.service-area-wrap .service-area-card-copy{
  margin: 0;
  color: #152232;
  font-family: "Red Hat Text", "Red Hat Display", system-ui, sans-serif;
  font-size: clamp(0.97rem, 1.02vw, 1.07rem);
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: -0.012em;
}

body.service-area-wrap .service-area-copy-section p + p{
  margin-top: 18px;
}

body.service-area-wrap .service-area-copy-section strong{
  color: #152232;
  font-weight: 850;
}

body.service-area-wrap .service-area-copy-section a{
  color: #007033;
  font-family: "Red Hat Text", "Red Hat Display", system-ui, sans-serif;
  font-weight: 850;
  text-decoration: none;
  transition: none;
}

body.service-area-wrap .service-area-copy-section a:hover,
body.service-area-wrap .service-area-copy-section a:focus-visible{
  color: #005426;
  text-decoration: none;
  outline: none;
}

/* Map + checker layout */
body.service-area-wrap .service-area-layout{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
  margin: 0 0 52px;
}

body.service-area-wrap .service-area-map-card,
body.service-area-wrap .service-area-checker-card{
  position: relative;
  background: #ffffff;
  border: 16px solid #ADB2B9;
  border-radius: 0;
  box-shadow: none;
  padding: 22px 24px 26px;
}

body.service-area-wrap .service-area-checker-card{
  z-index: 10;
}

/* Map */
body.service-area-wrap #service-map{
  --cas-map-navy: #00142E;
  --cas-map-road: #E6D4A7;
  --cas-map-pin: #FC1B28;
  --cas-map-pin-dark: #5E0700;

  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  min-height: 420px;
  border-radius: 0;
  overflow: hidden;
  margin-top: 20px;
  background: var(--cas-map-navy);
}

body.service-area-wrap .service-area-page .leaflet-container{
  position: relative;
  z-index: 0;
  background: var(--cas-map-navy);
  color: #e8eef6;
  border-radius: 0;
}

body.service-area-wrap .service-area-page .leaflet-map-pane,
body.service-area-wrap .service-area-page .leaflet-tile-pane,
body.service-area-wrap .service-area-page .maplibregl-canvas-container,
body.service-area-wrap .service-area-page .maplibregl-canvas{
  background: var(--cas-map-navy);
}

body.service-area-wrap .service-area-page .cas-map-pin-icon{
  background: transparent;
  border: 0;
  width: 42px;
  height: 60px;
  filter: drop-shadow(0 7px 7px rgba(0,0,0,0.42));
}

body.service-area-wrap .service-area-page .cas-map-pin{
  display: block;
  width: 42px;
  height: 60px;
  overflow: visible;
}

body.service-area-wrap .service-area-page .cas-route-line,
body.service-area-wrap .service-area-page .cas-route-line-glow,
body.service-area-wrap .service-area-page .cas-route-dot-circle{
  filter: drop-shadow(0 0 7px rgba(225,18,27,0.55));
}

body.service-area-wrap .service-area-page .leaflet-control-zoom{
  border: 1px solid rgba(230,212,167,0.38);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

body.service-area-wrap .service-area-page .leaflet-control-zoom a{
  background: rgba(0,20,46,0.94);
  color: var(--cas-map-road);
  border-bottom: 1px solid rgba(230,212,167,0.24);
}

body.service-area-wrap .service-area-page .leaflet-control-zoom a:hover{
  background: rgba(1,22,57,1);
  color: #ffffff;
}

body.service-area-wrap .service-area-page .leaflet-control-attribution,
body.service-area-wrap .service-area-page .maplibregl-ctrl-attrib{
  background: rgba(1,22,57,0.82);
  color: rgba(232,238,246,0.76);
  font-size: 10px;
}

body.service-area-wrap .service-area-page .leaflet-control-attribution a,
body.service-area-wrap .service-area-page .maplibregl-ctrl-attrib a{
  color: var(--cas-map-road);
}

body.service-area-wrap .service-area-page .leaflet-popup-content-wrapper,
body.service-area-wrap .service-area-page .leaflet-popup-tip{
  background: rgba(1,22,57,0.96);
  color: #e8eef6;
  border: 1px solid rgba(230,212,167,0.46);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  border-radius: 0;
}

body.service-area-wrap .service-area-page .leaflet-popup-content{
  margin: 10px 14px;
}

body.service-area-wrap .service-area-page .leaflet-popup-close-button{
  color: var(--cas-map-road);
}

/* Form */
body.service-area-wrap #address-form{
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 2px 0 17px;
}

body.service-area-wrap #address-form label,
body.service-area-wrap .service-area-checker-card h3{
  display: block;
  margin: 0 0 2px;
  color: #5f5e5e;
  font-family: "Red Hat Display", "Red Hat Text", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

body.service-area-wrap .service-area-checker-card h3{
  margin: 18px 0 12px;
  color: #000000;
}

body.service-area-wrap .service-area-address-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, 0.28fr);
  gap: 10px;
  align-items: start;
  width: 100%;
}

body.service-area-wrap .address-autocomplete-wrap,
body.service-area-wrap .service-area-state-wrap{
  position: relative;
  min-width: 0;
  width: 100%;
}

body.service-area-wrap .service-area-sr-only{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.service-area-wrap #address-input,
body.service-area-wrap #state-input{
  width: 100%;
  min-height: 33px;
  box-sizing: border-box;
  border: 1px solid #d4dbe3;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  padding: 5px 10px;
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.service-area-wrap #address-input{
  padding-right: 38px;
}

body.service-area-wrap #address-input::placeholder,
body.service-area-wrap #state-input::placeholder{
  color: rgba(34,34,34,0.58);
  opacity: 1;
}

body.service-area-wrap #address-input:focus,
body.service-area-wrap #state-input:focus{
  outline: none;
  border-color: #d4dbe3;
  box-shadow: 0 0 0 3.5px #CDCDCE;
}

body.service-area-wrap .address-clear-btn{
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 85;
  width: 24px;
  height: 24px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(17,24,39,0.44);
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

body.service-area-wrap .address-clear-btn:hover{
  background: transparent;
  color: rgba(17,24,39,0.78);
}

body.service-area-wrap .address-clear-btn:focus{
  outline: none;
}

body.service-area-wrap .address-clear-btn[hidden]{
  display: none;
}

body.service-area-wrap .address-suggestions{
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30002;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 0;
  border: 1px solid #d4dbe3;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(0,0,0,0.16);
}

body.service-area-wrap .address-suggestions[hidden]{
  display: none;
}

body.service-area-wrap .address-suggestion{
  width: 100%;
  display: block;
  padding: 9px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #152232;
  font-family: "Red Hat Text", "Red Hat Display", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}

body.service-area-wrap .address-suggestion:hover,
body.service-area-wrap .address-suggestion.is-active{
  background: #eef0f2;
}

body.service-area-wrap .address-suggestion-main{
  display: block;
  color: #111827;
  font-family: "Red Hat Text", "Red Hat Display", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

body.service-area-wrap .address-suggestion-secondary{
  display: block;
  margin-top: 2px;
  color: #5f5e5e;
  font-family: "Red Hat Text", "Red Hat Display", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
}

/* Result messaging */
body.service-area-wrap .address-result{
  min-height: 2.4rem;
  display: block;
  margin: 0 0 12px;
  color: #152232;
  font-family: "Red Hat Text", "Red Hat Display", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

body.service-area-wrap .address-result .distance{
  font-weight: 850;
}

body.service-area-wrap .address-result.ok .distance{
  color: #007033;
}

body.service-area-wrap .address-result.warn .distance{
  color: #8a5f00;
}

body.service-area-wrap .address-result.error{
  color: #b00020;
}

body.service-area-wrap .cas-bullets{
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: #000000;
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

body.service-area-wrap .cas-bullets li{
  margin: 0;
  padding-left: 2px;
}

/* Buttons */
body.service-area-wrap .service-area-check-btn,
body.service-area-wrap .service-area-btn{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  transition: none;
}

body.service-area-wrap .service-area-check-btn{
  width: fit-content;
  border: 0;
  background: #007033;
  color: #ffffff;
  padding: 10px 25px;
}

body.service-area-wrap .service-area-check-btn:hover,
body.service-area-wrap .service-area-check-btn:focus-visible{
  background: #005426;
  color: #ffffff;
  outline: none;
}

body.service-area-wrap .service-area-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

body.service-area-wrap .service-area-btn{
  flex: 1 1 48%;
  min-height: 40px;
  padding: 10px 14px;
}

body.service-area-wrap .service-area-btn--primary{
  border: 0;
  background: #007033;
  color: #ffffff;
}

body.service-area-wrap .service-area-btn--primary:hover,
body.service-area-wrap .service-area-btn--primary:focus-visible{
  background: #005426;
  color: #ffffff;
  outline: none;
}

body.service-area-wrap .service-area-btn--secondary{
  border: 1.5px solid #007033;
  background: #ffffff;
  color: #007033;
}

body.service-area-wrap .service-area-btn--secondary:hover,
body.service-area-wrap .service-area-btn--secondary:focus-visible{
  background: #f2f2f2;
  color: #005426;
  border-color: #005426;
  outline: none;
}

/* Lower copy */
body.service-area-wrap .service-area-copy-section{
  margin: 0;
}

/* Responsive */
@media (max-width: 991px){
  body.service-area-wrap .service-area-layout{
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.service-area-wrap .service-area-checker-card{
    order: 1;
  }

  body.service-area-wrap .service-area-map-card{
    order: 2;
  }

  body.service-area-wrap #service-map{
    min-height: 360px;
  }
}

@media (max-width: 700px){
  body.service-area-wrap .service-area-main{
    padding: 38px 0 64px;
  }

  body.service-area-wrap .service-area-rule{
    margin: 18px 0 24px;
  }

  body.service-area-wrap .service-area-intro{
    margin-bottom: 36px;
  }

  body.service-area-wrap .service-area-layout{
    margin-bottom: 42px;
  }

  body.service-area-wrap .service-area-map-card,
  body.service-area-wrap .service-area-checker-card{
    border-width: 12px;
    padding: 18px 16px 22px;
  }
}

@media (max-width: 430px){
  body.service-area-wrap .service-area-actions{
    flex-direction: column;
  }

  body.service-area-wrap .service-area-btn{
    flex: 0 0 auto;
    width: 100%;
    white-space: nowrap;
  }
}

/* =========================================================
   SERVICE AREA PAGE - DARK COLOR INVERSION
   ========================================================= */

body.service-area-wrap,
body.service-area-wrap .service-area-page,
body.service-area-wrap .service-area-main{
  background: #000000;
  color: #F2F2F2;
}

body.service-area-wrap .service-area-title,
body.service-area-wrap .service-area-intro h2,
body.service-area-wrap .service-area-copy-section h2{
  color: #F2F2F2;
}

body.service-area-wrap .service-area-rule{
  background: #7a7c80;
}

body.service-area-wrap .service-area-intro p,
body.service-area-wrap .service-area-copy-section p{
  color: #D0D5DA;
}

body.service-area-wrap .service-area-copy-section strong{
  color: #F2F2F2;
}

body.service-area-wrap .service-area-copy-section a{
  color: #42D37B;
}

body.service-area-wrap .service-area-copy-section a:hover,
body.service-area-wrap .service-area-copy-section a:focus-visible{
  color: #72E9A1;
}

body.service-area-wrap .service-area-map-card,
body.service-area-wrap .service-area-checker-card{
  background: #f3f3f3;
  border-color: #b8b7b7;
}

/* =========================================================
   SERVICE AREA PAGE - SMALL PHONE RESPONSIVE (320-480px)
   ========================================================= */

@media (max-width: 480px){
  body.service-area-wrap .service-area-main{
    padding: 28px 0 48px;
  }

  body.service-area-wrap .service-area-title{
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  body.service-area-wrap .service-area-rule{
    margin: 14px 0 20px;
  }

  body.service-area-wrap .service-area-map-card,
  body.service-area-wrap .service-area-checker-card{
    border-width: 8px;
    padding: 14px 12px 18px;
  }

  body.service-area-wrap #service-map{
    min-height: 280px;
  }

  body.service-area-wrap #address-input,
  body.service-area-wrap #state-input{
    font-size: 16px;
  }

  body.service-area-wrap .service-area-intro h2,
  body.service-area-wrap .service-area-copy-section h2,
  body.service-area-wrap .service-area-map-card h2,
  body.service-area-wrap .service-area-checker-card h2{
    font-size: clamp(1.55rem, 6vw, 1.95rem);
  }

  body.service-area-wrap .service-area-check-btn{
    width: 100%;
  }
}