/*
 * Minimal compatibility layer for the static snapshot. WordPress/Beaver CSS is
 * retained for appearance; all legacy JavaScript is intentionally removed.
 */
.gform_wrapper .gform_ajax_spinner,
.gform_wrapper .gform_validation_container {
  display: none !important;
}

.lrs-form-status {
  clear: both;
  margin-top: 10px;
  min-height: 22px;
  font-size: 14px;
  line-height: 1.4;
}

.lrs-form-status.success { color: #2f6f37; }
.lrs-form-status.error { color: #a12622; }

.gform_wrapper input[type="submit"]:disabled,
.gform_wrapper button[type="submit"]:disabled {
  opacity: .6;
  cursor: wait;
}

/* Beaver/UABB used JS to reveal animated blocks. The local overlay drives a
 * small fade and then pins them visible so a missing legacy animation runtime
 * can never leave ordinary content transparent. */
.lrs-presentation-reveal {
  visibility: visible !important;
  transform: none !important;
}

/* Presentation-only replacement for Beaver row background slideshows. The old
 * layout JS is never shipped; the snapshot process extracts only the image
 * paths into data-lrs-bg-slides and copies those images locally. */
.lrs-bg-slideshow-host {
  position: relative !important;
  overflow: hidden !important;
  background-image: none !important;
}

.lrs-bg-slideshow-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.lrs-bg-slide {
  position: absolute;
  inset: -1px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1100ms ease-in-out;
  will-change: opacity;
}

.lrs-bg-slide.lrs-bg-slide-active { opacity: 1; }

.lrs-bg-slideshow-content {
  position: relative !important;
  z-index: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .lrs-bg-slide { transition: none; }
}

/* Replaces the old UABB Google Maps JavaScript module with a plain iframe. */
.lrs-static-map {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-height: 400px !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #e5e3df;
}

.lrs-static-map-frame {
  display: block !important;
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: 400px !important;
  min-height: 400px !important;
  border: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.lrs-static-map-fallback { margin-top: 16px; }

.lrs-static-map-fallback-link {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid #c6c6c6;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.lrs-static-map-loaded .lrs-static-map-fallback-link { display: none; }

/* Bootstrap menu fallback after removal of the old Bootstrap/jQuery runtime. */
@media (max-width: 767px) {
  .navbar-collapse.lrs-nav-open,
  .fl-page-nav-collapse.lrs-nav-open {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
}

/* Keep the original UABB callback popup markup and module CSS whenever it is
 * present. We only recreate its open/close state locally. */
.lrs-original-callback-modal .uabb-overlay,
.lrs-original-callback-modal .uabb-modal {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.lrs-original-callback-modal {
  position: relative;
}

.lrs-original-callback-modal.lrs-original-callback-modal-open .uabb-overlay {
  display: block !important;
  visibility: visible !important;
  opacity: .72 !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
}

.lrs-original-callback-modal.lrs-original-callback-modal-open .uabb-modal {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1000001 !important;
}

/* The original visual form used placeholders rather than visible labels. Keep
 * the labels in the accessibility tree but remove them from the visual layout. */
.lrs-original-callback-modal .gfield_label,
.lrs-callback-modal .gfield_label,
.lrs-original-callback-modal label,
.lrs-callback-modal label {
  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;
}

/* Hidden honeypot field: real spam control, never visible to users. */
.lrs-hp-field {
  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;
}

/* Fallback callback modal used only if the original UABB wrapper isn't present.
 * Keep it deliberately restrained so Gravity Forms/theme CSS controls fields. */
.lrs-callback-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000000;
}

.lrs-callback-modal.lrs-callback-modal-open { display: block; }

.lrs-callback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.lrs-callback-modal-dialog {
  position: relative;
  width: min(92vw, 500px);
  max-height: calc(100vh - 60px);
  overflow: auto;
  margin: 30px auto;
  padding: 28px 30px 24px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

.lrs-callback-modal-close {
  position: absolute;
  z-index: 5;
  top: 6px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 30px;
  line-height: 32px;
  cursor: pointer;
}

.lrs-callback-form-clone {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.lrs-callback-form-clone .gform_body,
.lrs-callback-form-clone .gform_footer,
.lrs-callback-form-clone .gform_fields {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Conservative UABB modal fallback for presentation-only product popups. */
.lrs-static-modal:not(.lrs-static-modal-open) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.lrs-static-modal.lrs-static-modal-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 999999 !important;
}

html.lrs-modal-active,
html.lrs-modal-active body {
  overflow: hidden;
}

/* v3.8 visual-fidelity fixes ------------------------------------------------ */

/* The row remains visually stable until every recovered full-size slide has
 * loaded, then the local crossfade layer fades in as one complete surface. */
.lrs-bg-slideshow-host.lrs-bg-slideshow-loading .lrs-bg-slideshow-layer {
  opacity: 0;
}

.lrs-bg-slideshow-host .lrs-bg-slideshow-layer {
  opacity: 1;
  transition: opacity 500ms ease-out;
}

/* Replace the old plugin map module completely. Keep a normal fallback link
 * under the iframe rather than hiding it based on the iframe load event. */
.lrs-static-map {
  min-height: 0 !important;
  background: transparent !important;
}

.lrs-static-map-frame {
  height: 400px !important;
  min-height: 400px !important;
  background: #e5e3df;
}

.lrs-static-map-fallback-link {
  position: static !important;
  display: block !important;
  transform: none !important;
  width: max-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 13px;
  line-height: 1.4;
}

/* v3.9 callback modal fidelity -------------------------------------------------
 * Match the original UABB/Gravity Forms presentation from the supplied
 * reference while keeping the form/runtime entirely project-owned. */
.lrs-callback-modal-backdrop {
  background: rgba(0, 0, 0, .75) !important;
}

.lrs-callback-modal-dialog {
  box-sizing: border-box !important;
  width: min(calc(100vw - 38px), 500px) !important;
  max-height: calc(100vh - 60px) !important;
  margin: 30px auto !important;
  padding: 43px 45px 65px !important;
  overflow: auto !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.lrs-callback-modal-heading {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

.lrs-callback-modal-phone {
  flex: 0 0 30px;
  width: 30px;
  height: 34px;
  color: #000;
}

.lrs-callback-modal-phone svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lrs-callback-modal-title {
  margin: 0 !important;
  padding: 0 !important;
  color: #da3626 !important;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.lrs-callback-modal-form,
.lrs-callback-modal-form .gform_wrapper,
.lrs-callback-modal-form form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lrs-callback-modal-form .gform_body,
.lrs-callback-modal-form .gform_fields,
.lrs-callback-modal-form .gfield,
.lrs-callback-modal-form .ginput_container {
  width: 100% !important;
  max-width: none !important;
}

.lrs-callback-modal-form .gform_fields {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lrs-callback-modal-form .gfield {
  clear: both !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.lrs-callback-modal-form input[type="text"],
.lrs-callback-modal-form input[type="tel"],
.lrs-callback-modal-form input[type="email"],
.lrs-callback-modal-form textarea {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #666 !important;
  font: 16px/1.4 Arial, sans-serif !important;
}

.lrs-callback-modal-form input[type="text"],
.lrs-callback-modal-form input[type="tel"],
.lrs-callback-modal-form input[type="email"] {
  height: 52px !important;
  padding: 0 14px !important;
}

.lrs-callback-modal-form textarea {
  height: 120px !important;
  min-height: 120px !important;
  padding: 14px !important;
  resize: vertical;
}

.lrs-callback-modal-form input::placeholder,
.lrs-callback-modal-form textarea::placeholder {
  color: #666 !important;
  opacity: 1 !important;
}

.lrs-callback-modal-form .gform_footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lrs-callback-modal-form input[type="submit"],
.lrs-callback-modal-form button[type="submit"] {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #da3626 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 50px !important;
  text-align: center !important;
  text-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.lrs-callback-modal-form input[type="submit"]:hover,
.lrs-callback-modal-form input[type="submit"]:focus,
.lrs-callback-modal-form input[type="submit"]:active,
.lrs-callback-modal-form button[type="submit"]:hover,
.lrs-callback-modal-form button[type="submit"]:focus,
.lrs-callback-modal-form button[type="submit"]:active {
  border: 0 !important;
  background: #da3626 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  outline: 0 !important;
}

/* The original close glyph sits outside the white panel in the upper-right
 * overlay area. Explicitly defeat Bootstrap/theme button focus styles so the
 * glyph does not acquire a box/background when the modal has focus. */
.lrs-callback-modal-close,
.lrs-callback-modal-close:hover,
.lrs-callback-modal-close:focus,
.lrs-callback-modal-close:active,
.lrs-callback-modal-close:focus-visible {
  position: fixed !important;
  z-index: 1000002 !important;
  top: 4px !important;
  right: 8px !important;
  width: 30px !important;
  height: 34px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font: 700 34px/32px Arial, sans-serif !important;
  text-align: center !important;
  text-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

@media (max-width: 560px) {
  .lrs-callback-modal-dialog {
    width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 36px) !important;
    margin: 18px auto !important;
    padding: 38px 24px 42px !important;
  }

  .lrs-callback-modal-heading {
    gap: 14px !important;
    margin-bottom: 22px !important;
  }

  .lrs-callback-modal-title {
    font-size: 27px !important;
  }
}
