.header-inner,
.homepage-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-actions,
.homepage-actions,
.hero-cta-group,
.info-hub-grid,
.mini-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card,
.hero-card-inner,
.login-card,
.login-story,
.section-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 69, 141, 0.10);
  border-radius: var(--bl-radius-md);
  box-shadow: var(--bl-shadow-md);
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.info-chip,
.mini-link {
  appearance: none;
  border: 1px solid rgba(29, 69, 141, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.info-chip:hover,
.mini-link:hover,
.info-chip:focus-visible,
.mini-link:focus-visible {
  background: var(--color-primary-soft);
  border-color: rgba(29, 69, 141, 0.28);
  outline: none;
}

.infocolumnhome,
.infocolumn {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  gap: 1rem;
}

.infocopyhome,
.infocopy {
  text-align: center;
  width: 100%;
  color: var(--bl-blue);
}

.modalinfo {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.56);
  z-index: 9999;
}

.modalinfo.is-open {
  display: flex;
}

.infomdl-content {
  position: relative;
  width: min(860px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(29, 69, 141, 0.12);
}

.infomdbody {
  padding: 1.5rem 1.5rem 2rem;
}

.infomdbody h1,
.infomdbody h2,
.infomdbody h3,
.infomdbody h4 {
  font-family: var(--font-display);
  color: var(--bl-blue);
}

.infomdbody h1 {
  margin: 0 2rem 1rem 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.infomdbody h3 { margin: 1.5rem 0 0.5rem; font-size: 1.35rem; }
.infomdbody h4 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.infomdbody p { color: var(--bl-text); line-height: 1.75; }

.close,
.closed,
.close2,
.closing {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem 0 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(29, 69, 141, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--bl-blue);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal,
.modal1 {
  display: none;
  position: fixed;
  inset: 0;
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.56);
  z-index: 9998;
}

.modal-content {
  position: relative;
  width: min(560px, 100%);
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.modal-header,
.modal-footer {
  padding: 1rem 1.25rem;
  background: var(--bl-blue);
  color: #fff;
}

.modal-body {
  padding: 1.25rem;
}

.contactspan,
#randomStringDisplay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 120px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid var(--bl-border);
  background: #fff;
  color: #a11d1d;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: line-through;
}

.icon-button,
#refreshButton {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(29, 69, 141, 0.16);
  background: rgba(29, 69, 141, 0.08);
  color: var(--bl-blue);
  cursor: pointer;
}

@media (max-width: 640px) {
  .field-label-row,
  .header-actions,
  .homepage-actions,
  .hero-cta-group,
  .info-hub-grid,
  .mini-info-links,
  .infocolumnhome,
  .infocolumn {
    flex-direction: column;
    align-items: stretch;
  }

  .info-chip,
  .mini-link,
  .btn {
    width: 100%;
    justify-content: center;
  }

  .modalinfo,
  .modal,
  .modal1 {
    padding: 0.75rem;
  }

  .infomdbody {
    padding: 1.25rem 1rem 1.5rem;
  }
}

  .service-grid { 
    display:grid; 
    grid-template-columns:repeat(2, minmax(0,1fr)); 
    gap:1rem; 
    margin-top:1rem; 
  }

  .service-option { 
    position:relative; 
  }

  .service-option input { 
    position:absolute; 
    inset:0; 
    opacity:0; 
    cursor:pointer; 
  }

        
  .service-card { 
    min-height:100%; 
    padding:1rem 1.125rem; 
    border:1px solid rgba(25,39,52,0.12); 
    border-radius:18px; background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,249,252,0.96) 100%); 
    display:grid; 
    gap:0.35rem; 
    transition:border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease; 
  }

  .service-option 
  input:checked + .service-card { 
    border-color:rgba(12,106,103,0.42); 
    box-shadow:0 0 0 4px rgba(12,106,103,0.12); 
    background:rgba(12,106,103,0.08); 
    transform:translateY(-1px); 
  }

  .service-title { 
    font-weight:700; 
    color:var(--bl-blue); 
  }

  .service-copy { 
    color:#5f6b76; 
    line-height:1.55; 
    font-size:0.95rem; 
  }
  
  .field-grid-two { 
    display:grid; 
    grid-template-columns:repeat(2, minmax(0,1fr)); 
    gap:1rem; 
  }
  
  .conditional-panel {
      display: none;
      margin-top: 24px;
  }

  .conditional-panel.is-visible {
      display: block;
  }

  .delivery-platform-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 20px;
      margin-top: 16px;
  }

  @media (max-width: 900px) {
      .delivery-platform-grid {
          grid-template-columns: 1fr;
      }
  }

  .bl-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.bl-modal.is-open {
    display: flex;
}

.bl-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.bl-modal__dialog {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: min(80vh, 760px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bl-modal__dialog--messages {
    min-height: 420px;
}

.bl-modal__header,
.bl-modal__footer {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.bl-modal__footer {
    border-top: 1px solid #e5e7eb;
    border-bottom: 0;
}

.bl-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bl-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.bl-modal__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #334155;
    cursor: pointer;
}

.bl-modal__close:hover {
    background: #e5e7eb;
}

.bl-modal__body {
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    flex: 1 1 auto;
}

.notification_page,
.pagination-links {
    width: 100%;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.bl-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .bl-modal__dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .bl-modal__header,
    .bl-modal__body,
    .bl-modal__footer {
        padding: 14px;
    }
}

/* ---- mobile tap targets -------------------------------------------------
   The footer legal links (.info-link-inline, .mini-link) render around 22px
   tall, well under the 44px minimum, and sit close together — genuinely fiddly
   on a phone. Scoped to a mobile breakpoint so the desktop footer spacing is
   unchanged; only the hit area grows, not the type. */
@media (max-width: 700px) {
  .info-link-inline,
  .mini-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
