/* v1.3: approved soft-blue eLockers Contact Us background.
   Visual CSS only. Does not hide, move, replace or rebuild the Kallyas form. */
body.page-id-2543 #page_wrapper {
  background-color: #e8f4ff !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(236,247,255,.28)),
    url("contact-blue-background.webp") !important;
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
/* The theme may paint opaque backgrounds over the page backdrop. Only the
   Contact Us content canvas is made transparent; navigation and footer remain untouched. */
body.page-id-2543 #content,
body.page-id-2543 #th-content-page,
body.page-id-2543 #main,
body.page-id-2543 .site-content,
body.page-id-2543 #content .zn_section,
body.page-id-2543 #th-content-page .zn_section {
  background-color: transparent !important;
}
body.page-id-2543 .cf-elm {
  background-color: rgba(255,255,255,.95) !important;
  border-color: rgba(205,225,242,.95) !important;
  box-shadow: 0 16px 44px rgba(14,73,126,.13) !important;
}
@media (max-width: 767px) {
  body.page-id-2543 #page_wrapper {
    background-position: 43% top !important;
    background-size: auto 100% !important;
  }
}

/* eLockers Contact Form Style Only v1.3.0. Only loaded on staging page 2543. */
/* Original page banner is hidden. Header safe-spacing is measured by JS, not a theme-specific #content selector. */
body.page-id-2543 #page_header.page-subheader { display:none!important; }
body.page-id-2543 .elcfso-safe-section { box-sizing:border-box!important; }
/* The original Kallyas form and all its fields remain untouched. */
/* Keep the original WordPress site header and navigation completely untouched. */
/* Original Kallyas contact form: non-destructive visual improvements. */
body.page-id-2543 .cf-elm,
body.page-id-2543 .zn_contact_form_container {
  box-sizing: border-box;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
body.page-id-2543 .cf-elm {
  background: #fff;
  border: 1px solid #dbe8f4;
  border-radius: 14px;
  padding: 28px 30px 24px;
  margin-top: 20px;
  margin-bottom: 38px;
  box-shadow: 0 12px 36px rgba(13, 49, 82, 0.07);
}
body.page-id-2543 .cf-elm .zn_form_input,
body.page-id-2543 .cf-elm .form-control {
  max-width: 100%;
  border: 1px solid #caddec;
  background-color: #fff;
  color: #153b5b;
  border-radius: 7px;
  box-shadow: none;
}
body.page-id-2543 .cf-elm input.zn_form_input:not([type="checkbox"]):not([type="radio"]),
body.page-id-2543 .cf-elm select.zn_form_input {
  min-height: 43px;
}
body.page-id-2543 .cf-elm textarea.zn_form_input {
  min-height: 96px;
  resize: vertical;
}
body.page-id-2543 .cf-elm .zn_form_input:focus,
body.page-id-2543 .cf-elm .form-control:focus {
  border-color: #198de8;
  box-shadow: 0 0 0 3px rgba(25, 141, 232, 0.12);
  outline: none;
}
body.page-id-2543 .cf-elm input[type="submit"],
body.page-id-2543 .cf-elm button[type="submit"] {
  background-color: #168de8;
  color: #fff;
  border-color: #168de8;
  border-radius: 7px;
  padding: 11px 24px;
  font-weight: 700;
}
body.page-id-2543 .cf-elm input[type="submit"]:hover,
body.page-id-2543 .cf-elm button[type="submit"]:hover {
  background-color: #0878cd;
  border-color: #0878cd;
}
/* CAPTCHA stays visible and in the theme's normal document flow. */
body.page-id-2543 .cf-elm .g-recaptcha,
body.page-id-2543 .cf-elm .zn_contact_ajax_response {
  max-width: 100%;
}
@media (max-width: 767px) {
  body.page-id-2543 .cf-elm {
    padding: 20px 15px;
    border-radius: 10px;
    margin: 12px 10px 28px;
  }
  body.page-id-2543 .cf-elm .zn_form_input,
  body.page-id-2543 .cf-elm .form-control {
    width: 100%;
    max-width: 100%;
  }
}


/* v1.4 — Office cards: only on staging Contact Us page 2543.
   JS adds these classes to the EXISTING office blocks without changing their
   images, wording, phone numbers, form markup, or WordPress content. */
body.page-id-2543 .elcfso-office-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 28px !important;
  row-gap: 28px !important;
  align-items: stretch !important;
  box-sizing: border-box;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
body.page-id-2543 .elcfso-office-grid > .elcfso-office-empty-helper { display: none !important; }
body.page-id-2543 .elcfso-office-grid > .elcfso-office-cell {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}
body.page-id-2543 .elcfso-office-panel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 26px 23px 28px !important;
  border: 1px solid #d9e6f2 !important;
  border-top: 3px solid #158ee6 !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 26px rgba(15,48,87,.09) !important;
  color: #365977 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.page-id-2543 .elcfso-office-panel > * {
  max-width: 100%;
  box-sizing: border-box;
}
body.page-id-2543 .elcfso-office-panel .elcfso-office-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 82% !important;
  max-height: 180px !important;
  object-fit: contain !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 18px !important;
}
/* Image may be wrapped by a theme link or figure: preserve its natural aspect. */
body.page-id-2543 .elcfso-office-panel .elcfso-office-image-wrap {
  min-height: 188px;
  width: 100%;
  max-width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box;
  margin-bottom: 12px;
}
body.page-id-2543 .elcfso-office-panel .elcfso-office-image-wrap .elcfso-office-image { margin-bottom: 0 !important; }
body.page-id-2543 .elcfso-office-panel .elcfso-office-title,
body.page-id-2543 .elcfso-office-panel .elcfso-office-title * {
  display: block;
  font-size: clamp(20px, 1.45vw, 24px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: #103f6c !important;
  text-align: center !important;
}
body.page-id-2543 .elcfso-office-panel .elcfso-office-title {
  margin-top: 8px !important;
  margin-bottom: 16px !important;
}
body.page-id-2543 .elcfso-office-panel p,
body.page-id-2543 .elcfso-office-panel .zn_text_box {
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: #365977;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.page-id-2543 .elcfso-office-panel .elcfso-office-phone {
  color: #0878cc !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
  padding-top: 12px;
}
body.page-id-2543 .elcfso-office-panel a[href^="tel:"] { color: #0878cc; text-decoration: none; }
body.page-id-2543 .elcfso-office-panel a[href^="tel:"]:hover { text-decoration: underline; }
@media (hover:hover) and (prefers-reduced-motion: no-preference) {
  body.page-id-2543 .elcfso-office-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(15,48,87,.14) !important;
  }
}
@media (min-width: 641px) and (max-width: 1024px) {
  body.page-id-2543 .elcfso-office-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 24px !important;
  }
}
@media (max-width: 640px) {
  body.page-id-2543 .elcfso-office-grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 18px !important;
  }
  body.page-id-2543 .elcfso-office-panel {
    height: auto !important;
    padding: 20px 18px 22px !important;
    border-radius: 12px !important;
  }
  body.page-id-2543 .elcfso-office-panel .elcfso-office-image-wrap { min-height: 155px; }
  body.page-id-2543 .elcfso-office-panel .elcfso-office-image { max-height: 155px !important; }
  body.page-id-2543 .elcfso-office-panel .elcfso-office-title,
  body.page-id-2543 .elcfso-office-panel .elcfso-office-title * { font-size: 21px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-id-2543 .elcfso-office-panel { transition: none !important; transform: none !important; }
}

/* v1.5: independent Kallyas office card enhancement. Does not require a shared grid parent. */
body.page-id-2543 .elcfso-office-panel {
  height: auto !important;
  min-height: var(--elcfso-office-equal-height, auto) !important;
  margin-bottom: 0 !important;
  position: relative;
}
body.page-id-2543 .elcfso-office-panel .elcfso-office-image-wrap {
  min-height: 205px !important;
  max-height: 215px !important;
  margin-bottom: 12px !important;
}
body.page-id-2543 .elcfso-office-panel .elcfso-office-image {
  max-width: min(80%, 250px) !important;
  max-height: 195px !important;
  object-fit: contain !important;
}
body.page-id-2543 .elcfso-office-panel .elcfso-office-title {
  font-size: clamp(19px, 1.4vw, 23px) !important;
  font-weight: 700 !important;
  color: #103f6c !important;
}
@media(max-width:700px){
  body.page-id-2543 .elcfso-office-panel { min-height: 0 !important; height: auto !important; margin-bottom: 18px !important; }
  body.page-id-2543 .elcfso-office-panel .elcfso-office-image-wrap { min-height: 160px !important; }
  body.page-id-2543 .elcfso-office-panel .elcfso-office-image { max-height: 155px !important; }
}

/* v1.6: apply equal height to the REAL existing office card border.
   JS sets an explicit inline important height; no grid restructuring or data mutation. */
body.page-id-2543 .elcfso-office-panel.elcfso-office-v16 {
  box-sizing: border-box !important;
  overflow: visible !important;
  border-radius: 14px !important;
  border-color: #d6e5f3 !important;
  background-color: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 26px rgba(25,72,110,.09) !important;
}
body.page-id-2543 .elcfso-office-v16 .elcfso-office-image {
  object-fit: contain !important;
  max-height: 200px !important;
}
@media (max-width:700px) {
  body.page-id-2543 .elcfso-office-panel.elcfso-office-v16 {
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 20px !important;
  }
}
