/* Layout fixes, Dec 2026 (Beeps Digital).
   Mobile: the fixed "Contact Us" bar and the WhatsApp bubble were covering the
   enquiry form (Submit button and phone field). fixes.js adds .form-in-view to
   <body> while a form is on screen; both get out of the way then. */

@media (max-width: 767px) {
  /* Room for the fixed bar, so it never hides the end of the page. */
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  body #mainContainer .headerSection .actionNavbar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transition: transform .3s ease, opacity .3s ease;
  }

  body.form-in-view #mainContainer .headerSection .actionNavbar {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  html body #chatDivOnScroller {
    transition: transform .3s ease, opacity .3s ease;
  }

  html body.form-in-view #chatDivOnScroller {
    opacity: 0;
    transform: scale(.6);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #mainContainer .headerSection .actionNavbar,
  html body #chatDivOnScroller {
    transition: none;
  }
}
