/* B Physiotherapy Static Migration Styles */
html {
  scroll-behavior: smooth;
}

/* Ensure preFade elements are always visible */
.preFade, .fadeIn {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.5s ease-in-out !important;
}

/* Ensure images load cleanly and are visible */
img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Modal styles for Contact forms */
.bphysio-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.bphysio-modal-overlay.active {
  display: flex !important;
}

.bphysio-modal-container {
  background: #edf1f3;
  color: #1a2a30;
  border-radius: 12px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: bphysioModalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes bphysioModalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bphysio-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
  background: transparent;
  border: none;
  padding: 4px 8px;
}
.bphysio-modal-close:hover {
  color: #00626b;
}

.bphysio-modal-title {
  font-family: "Alegreya Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #00626b;
}

.bphysio-form-group {
  margin-bottom: 20px;
}

.bphysio-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.bphysio-form-group label .req {
  font-weight: 400;
  color: #666;
  font-size: 13px;
}

.bphysio-form-row {
  display: flex;
  gap: 16px;
}
.bphysio-form-row .bphysio-form-group {
  flex: 1;
}

.bphysio-input, .bphysio-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #c9d6dc;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 15px;
  font-family: "Pontano Sans", sans-serif;
  color: #222;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bphysio-input:focus, .bphysio-textarea:focus {
  outline: none;
  border-color: #00626b;
  box-shadow: 0 0 0 3px rgba(0, 98, 107, 0.15);
}

.bphysio-submit-btn {
  background-color: #000000;
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background-color 0.2s, transform 0.1s;
  display: block;
  margin: 28px auto 0;
  min-width: 200px;
}

.bphysio-submit-btn:hover {
  background-color: #00626b;
}

.bphysio-submit-btn:active {
  transform: scale(0.98);
}

/* FAQ Accordion Styling Enhancements */
.accordion-item__title-wrapper button {
  cursor: pointer;
}

.sqs-block[data-definition-name="website.components.accordion"].sqs-block-accordion .accordion-item__dropdown--open {
  display: block !important;
}

.accordion-item__description {
  display: block !important;
}

.accordion-icon-container, .arrow-container {
  transition: transform 0.3s ease !important;
}

/* Gallery Reel / Carousel Styling */
.gallery-reel {
  height: 320px !important;
  position: relative !important;
  overflow: hidden !important;
}

.gallery-reel-wrapper {
  position: relative !important;
  height: 100% !important;
}

.gallery-reel-list {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  height: 100% !important;
  padding: 0 4vw !important;
  cursor: grab !important;
  scrollbar-width: none !important;
}

.gallery-reel-list::-webkit-scrollbar {
  display: none !important;
}

.gallery-reel-item {
  position: relative !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: 100% !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.gallery-reel-item-wrapper,
.gallery-reel-item-src {
  position: relative !important;
  display: block !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
}

.gallery-reel-item img {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.gallery-reel-control {
  cursor: pointer !important;
  z-index: 10 !important;
}

/* Active navigation link styling */
.header-nav-item--active > a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile Menu Overlay matching live site */
.header-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  background-color: #edf1f3 !important;
}

body.header--menu-open .header-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.header--menu-open .header-menu-bg {
  background-color: #edf1f3 !important;
}

body.header--menu-open #header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
  background: transparent !important;
}

body.header--menu-open .header-announcement-bar-wrapper {
  position: relative !important;
  z-index: 1002 !important;
}

body.header--menu-open .header-display-mobile {
  position: relative !important;
  z-index: 1003 !important;
  display: flex !important;
}

body.header--menu-open .header-title {
  position: relative !important;
  z-index: 1004 !important;
}

body.header--menu-open .header-burger {
  position: relative !important;
  z-index: 1004 !important;
}

body.header--menu-open .header-menu-nav {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100% !important;
  padding: 100px 24px 48px !important;
  box-sizing: border-box !important;
}

body.header--menu-open .header-menu-nav-list {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  width: 100% !important;
  flex-grow: 1 !important;
}

body.header--menu-open .header-menu-nav-folder {
  position: static !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  width: 100% !important;
}

body.header--menu-open .header-menu-nav-folder-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

body.header--menu-open .header-menu-nav-item {
  margin: 12px 0 !important;
  text-align: center !important;
}

body.header--menu-open .header-menu-nav-item a {
  font-family: "Alegreya Sans", sans-serif !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  color: #1a2a30 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

body.header--menu-open .header-menu-cta {
  width: 100% !important;
  max-width: 280px !important;
  margin-top: auto !important;
}

body.header--menu-open .header-menu-cta a {
  display: block !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 16px 32px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* Burger animation to X */
body.header--menu-open .burger-inner.header-menu-icon-doubleLineHamburger .top-bun {
  transform: translateY(0px) rotate(45deg) !important;
}
body.header--menu-open .burger-inner.header-menu-icon-doubleLineHamburger .bottom-bun {
  transform: translateY(0px) rotate(-45deg) !important;
}

