/* Leak Hunters UK contact page - dedicated styles.
   Extracted from style.css; other shared components remain global. */

/* Contact form and status styles migrated from style.css. */
/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  color: #1a475f;
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
  padding: 20px;
}
.contact .info-box i {
  font-size: 32px;
  color: #20439b;
  border-radius: 50%;
  padding: 8px;
  border: 2px dotted #1a475f;
  float: left;
}
.contact .info-box h3 {
  font-size: 20px;
  color: #656262;
  font-weight: 700;
  margin: 10px 0 10px 68px;
}
.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin: 0 0 0 68px;
}
.contact .php-email-form {
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
  padding: 30px;
}
.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}
.contact .php-email-form .error-message br + br {
  margin-top: 25px;
}
.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
}
.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
}
.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  -webkit-animation: animate-loading 1s linear infinite;
  animation: animate-loading 1s linear infinite;
}
.contact .php-email-form input, .contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}
.contact .php-email-form input:focus, .contact .php-email-form textarea:focus {
  border-color: #20439b;
}
.contact .php-email-form input {
  padding: 10px 15px;
}
.contact .php-email-form textarea {
  padding: 12px 15px;
}
.contact .php-email-form button[type=submit] {
  background: #20439b;
  border: 0;
  padding: 10px 24px;
  color: #fff;
  transition: 0.4s;
}
.contact .php-email-form button[type=submit]:hover {
  background: #1D5A80;
}
@-webkit-keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/* -------------------------------------------------------------
   Contact page layout
   ------------------------------------------------------------- */
.contact {
  padding: clamp(36px, 5vw, 66px) 0 46px;
}

.lh-contact-intro {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.lh-contact-intro h2,
.lh-contact-map-heading h2 {
  margin: 0 0 16px;
  color: #1a475f;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
}

.lh-contact-intro p,
.lh-contact-map-heading p {
  margin: 0 auto;
  max-width: 790px;
  color: #485d6b;
  font-size: 1.03rem;
  line-height: 1.75;
}

.lh-contact-overview {
  margin-top: 6px;
}

.lh-contact-overview > div {
  display: flex;
}

.lh-contact-panel {
  width: 100%;
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border: 1px solid #e2e9f2;
  box-shadow: 0 12px 32px rgba(21, 49, 86, 0.05);
}

.lh-contact-panel--areas {
  background: #f6f9fe;
}

.lh-contact-panel h3 {
  margin: 0 0 13px;
  color: #1a475f;
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  font-weight: 650;
}

.lh-contact-panel__lead,
.lh-contact-panel--areas p {
  color: #485d6b;
  line-height: 1.7;
  margin-bottom: 20px;
}

.lh-contact-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: #e6eefc;
  color: #20439b;
  font-size: 22px;
}

.lh-contact-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lh-contact-services li {
  min-width: 0;
}

.lh-contact-services a {
  display: inline-flex;
  align-items: flex-start;
  gap: 11px;
  color: #174a73;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.5;
}

.lh-contact-services a i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #20439b;
}

.lh-contact-services a:hover,
.lh-contact-services a:focus-visible,
.lh-contact-text-link:hover,
.lh-contact-text-link:focus-visible {
  color: #20439b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lh-contact-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #20439b;
  font-weight: 700;
}

.lh-contact-availability {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 32px 0 30px;
  padding: 19px 24px;
  border: 1px solid #d6e2f4;
  border-left: 4px solid #20439b;
  border-radius: 6px;
  background: #f6f9fe;
}

.lh-contact-availability__icon {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  height: 38px;
  color: #20439b;
  background: #e6eefc;
  border-radius: 50%;
  font-size: 20px;
}

.lh-contact-availability h3 {
  margin: 0 0 4px;
  color: #1a475f;
  font-size: 1.1rem;
  font-weight: 700;
}

.lh-contact-availability p {
  margin: 0;
  color: #485d6b;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Compact, near-square contact cards with genuinely circular dotted icon rings. */
.contact .lh-contact-details {
  max-width: 900px;
  margin: 4px auto 0;
}

.contact .lh-contact-details > div {
  display: flex;
  justify-content: center;
}

.contact .lh-contact-details .info-box {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 15px;
  width: 100%;
  max-width: 290px;
  min-height: 140px;
  padding: 17px 18px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
  text-align: left;
}

.contact .lh-contact-details .info-box > i {
  display: flex;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  align-items: center;
  justify-content: center;
  float: none;
  width: 52px;
  height: 52px;
  min-width: 52px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 2px dotted #20439b;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
}

.contact .lh-contact-details .info-box h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 7px;
  font-size: 1.07rem;
  color: #1a475f;
}

.contact .lh-contact-details .info-box p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 0.91rem;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.lh-contact-form-intro {
  padding: 24px 4px 16px;
  text-align: center;
}

.lh-contact-form-intro h2 {
  margin-bottom: 7px;
  color: #1a475f;
  font-size: 1.45rem;
  font-weight: 650;
}

.lh-contact-form-intro p {
  margin: 0;
  color: #526878;
}

.contact .php-email-form {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 0 30px rgba(214, 215, 216, 0.6);
}

.contact .php-email-form button[type=submit] {
  border-radius: 0;
  font-weight: 600;
}

/* -------------------------------------------------------------
   Lazy-loaded service-area map
   ------------------------------------------------------------- */
.lh-contact-map-section {
  padding: 48px 0 0;
  background: #fff;
}

.lh-contact-map-heading {
  max-width: 900px;
  margin: 0 auto 26px;
  text-align: center;
}

.lh-contact-map-shell {
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.lh-contact-map {
  position: relative;
  width: 100%;
  height: clamp(360px, 43vw, 460px);
  background: #eef3f9;
  overflow: hidden;
}

.lh-contact-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  text-align: center;
  color: #526878;
  line-height: 1.6;
}

.lh-contact-map-credit {
  margin: 0;
  padding: 9px 16px;
  background: #fff;
  color: #65798a;
  font-size: 0.74rem;
  line-height: 1.6;
  text-align: center;
}

.lh-contact-map-noscript {
  margin: 16px 0 0;
  text-align: center;
}

/* Outline map-pin icon styled after the Leak Hunters location symbol.
   Pure SVG generated by contact-map.js: no extra image or icon-font download. */
.lh-contact-map-pin {
  background: none;
  border: 0;
}

.lh-contact-pin {
  display: block;
  width: 25px;
  height: 31px;
  filter: drop-shadow(0 1px 2px rgba(20, 44, 82, 0.20));
}

.lh-contact-map .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 44, 82, 0.15);
}

.lh-contact-map .leaflet-popup-content {
  min-width: 165px;
  margin: 15px 17px;
  font-family: "Open Sans", sans-serif;
  color: #1a475f;
}

.lh-contact-map .lh-map-popup-title {
  display: block;
  margin-bottom: 7px;
  font-size: 0.98rem;
  font-weight: 700;
}

.lh-contact-map .lh-map-popup-link {
  color: #20439b;
  font-size: 0.85rem;
  font-weight: 700;
}

.lh-contact-map .leaflet-control-attribution {
  font-size: 10px;
}

@media (max-width: 767.98px) {
  .contact {
    padding-top: 30px;
  }
  .lh-contact-intro {
    margin-bottom: 25px;
  }
  .lh-contact-services {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lh-contact-availability {
    gap: 13px;
    padding: 18px;
  }
  .contact .lh-contact-details .info-box {
    min-height: 140px;
  }
  .contact .php-email-form {
    padding: 22px 18px;
  }
  .lh-contact-map-section {
    padding-top: 40px;
  }
  .lh-contact-map {
    height: 380px;
  }
}
