/* Shared call + text icon bar (ported from home.css / global-theme.css). */
.home-inquiry-bar {
  position: fixed;
  inset-inline-start: max(6px, env(safe-area-inset-left));
  inset-block-start: 55%;
  transform: translateY(-50%);
  z-index: 80;
  display: grid;
  gap: 6px;
}
.home-inquiry-bar[hidden] { display: none; }

.home-inquiry-bar .btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: 7px;
  font-size: 12px;
  background: #C6A467;
  color: #07182B;
  border: 1px solid rgb(170 184 197 / .35);
  box-shadow: 0 4px 14px #18365340;
}
.home-inquiry-bar svg {
  width: 21px;
  height: 21px;
  flex: none;
}
.home-inquiry-bar .text-status {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23C875;
  box-shadow: 0 0 0 2px #07182B, 0 0 9px #23C87599;
}
@media (prefers-reduced-motion: no-preference) {
  .home-inquiry-bar .text-status {
    animation: contact-status-pulse 2.8s ease-out infinite;
    animation-name: text-availability-glow;
  }
  .home-inquiry-bar .btn svg { transition: transform .2s ease; }
  .home-inquiry-bar .btn:is(:hover, :focus-visible) svg { transform: rotate(-8deg) scale(1.08); }
  @keyframes contact-status-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #F7F8FA, 0 0 0 2px #C6A46700; }
    55% { box-shadow: 0 0 0 2px #F7F8FA, 0 0 0 7px #C6A46700; }
    5% { box-shadow: 0 0 0 2px #F7F8FA, 0 0 0 2px #C6A46755; }
  }
  @keyframes text-availability-glow {
    0%, 100% { box-shadow: 0 0 0 2px #07182B, 0 0 7px #23C87588; }
    55% { box-shadow: 0 0 0 2px #07182B, 0 0 12px #23C875CC; }
  }
}
.home-inquiry-bar .home-bar-secondary {
  background: #183653;
  border-color: #C6A467;
  color: #F7F8FA;
  box-shadow: 0 4px 14px #07182B55;
}

@media (max-width: 820px) {
  .home-inquiry-bar {
    inset-block-start: auto;
    inset-block-end: calc(12px + env(safe-area-inset-bottom));
    transform: none;
  }
  .interior-page.home-inquiry-visible .footer { padding-bottom: 125px; }
}

@media (max-width: 560px) {
  .interior-page.home-inquiry-visible .footer { padding-bottom: 130px; }
}

/* The gold "Call the school" pill is replaced by this bar on every page. */
.mobile-call { display: none !important; }

/* Keep the bar clear of the chat launcher / teaser on small screens. */
@media (max-width: 600px) {
  .home-inquiry-visible .wings-chat-launcher {
    width: 46px;
    height: 46px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    right: 16px;
  }
  .home-inquiry-visible .wings-chat-teaser {
    bottom: calc(87px + env(safe-area-inset-bottom));
  }
}

/* Keep the bar clear of a cookie / privacy banner if one is shown. */
.privacy-panel:not([hidden]) ~ .home-inquiry-bar,
body:has(.privacy-panel:not([hidden])) .home-inquiry-bar {
  display: none;
}
body:has(.cookie-dialog[open]) .home-inquiry-bar {
  display: none;
}
