/* BPPA global responsive layer — load after the existing frontend styles. */

html {
  width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body,
.page-shell,
main#siteContent {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body {
  overflow-wrap: break-word;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
svg,
video,
canvas {
  height: auto;
}

iframe {
  width: 100%;
}

.row > *,
.d-flex > *,
.event-main > *,
.formbold-input-flex > * {
  min-width: 0;
}

.table-responsive,
.table-responsive-sm,
.table-responsive-md,
.table-responsive-lg,
.table-responsive-xl {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

@media (max-width: 1199.98px) {
  #siteHeader .navbar-collapse {
    max-height: calc(100dvh - 94px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #siteHeader .bppa-main-nav {
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .container,
  .container-fluid {
    --bs-gutter-x: 1.5rem;
  }

  .section-padding {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  h1,
  .h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  h2,
  .h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  h3,
  .h3 {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
  }

  h4,
  .h4 {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
  }

  p,
  li {
    overflow-wrap: anywhere;
  }

  .event-product {
    padding: 18px 14px;
  }

  .event-main {
    display: block;
  }

  .event-image,
  .event-details {
    width: 100%;
    margin: 0;
  }

  .event-details {
    padding-top: 18px;
  }

  .formbold-main-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  .formbold-form-wrapper {
    max-width: 100%;
    padding: 22px 16px;
    border-radius: 14px;
  }

  .formbold-input-flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .formbold-input-flex > div {
    width: 100%;
  }

  .formbold-form-input,
  .form-control,
  .form-select,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .formbold-form-input {
    padding: 12px 14px;
  }

  .formbold-btn,
  form .btn[type="submit"] {
    min-height: 46px;
  }

  .modal-dialog {
    margin: 12px;
    max-width: calc(100% - 24px);
  }

  .modal-content {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }

  #siteFooter .footer-brand img {
    max-width: min(100%, 280px) !important;
    height: auto !important;
    max-height: 60px !important;
  }

  #siteFooter .contact-pill {
    max-width: 100%;
    border-radius: 14px;
    align-items: flex-start;
  }

  #siteFooter .contact-pill span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575.98px) {
  #siteHeader .bppa-header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  #siteHeader .navbar-brand {
    min-width: 0;
    max-width: calc(100% - 54px);
  }

  #siteHeader .navbar-brand img {
    max-width: min(100%, 190px) !important;
  }

  #siteHeader .navbar-collapse {
    left: 8px;
    right: 8px;
    padding: 10px;
  }

  #siteHeader .bppa-user-dropdown {
    width: min(285px, calc(100vw - 42px));
    min-width: 0 !important;
  }

  #siteFooter .row > [class*="col-"] {
    width: 100%;
  }

  #siteFooter .footer-top {
    padding-top: 30px;
  }

  #siteFooter .ft-list a {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .btn-lg {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
