/* BHI Modal
   Site-wide popup, matched to the 2027 course calendar.
   Loaded from calendar.connectbeyondhealing.com/bhi-modal.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Jost:wght@300;400;500;600&display=swap');

#bhi-modal-bg {
  --navy: #2c4960;
  --sage: #4b725f;
  --terracotta: #a65f33;
  --cream: #f1ece4;
  --panel: #faf8f4;
  --line: #e4ddd0;
  --cream3: #e4d9c9;
  --halogen: "Halogen", "Montserrat", sans-serif;
  --mundial: "Mundial", "Jost", sans-serif;

  position: fixed;
  inset: 0;
  background: rgba(44, 73, 96, .5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
}

#bhi-modal-bg.open { display: flex; }

#bhi-modal-bg .bhi-modal {
  background: var(--cream);
  border-radius: 24px 0 24px 0;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 8px 26px rgba(44, 73, 96, .14);
  font-family: var(--mundial);
  text-align: left;
}

#bhi-modal-bg .bhi-head {
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

#bhi-modal-bg .bhi-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--navy);
  opacity: .6;
  cursor: pointer;
  padding: 0;
}
#bhi-modal-bg .bhi-close:hover { opacity: 1; }

#bhi-modal-bg .bhi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

#bhi-modal-bg .bhi-badge {
  font-family: var(--mundial);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 10px 0 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#bhi-modal-bg .bhi-b-cat { background: var(--navy); color: var(--cream3); }
#bhi-modal-bg .bhi-b-tag { background: var(--panel); color: var(--navy); border: 1px solid var(--line); }

#bhi-modal-bg .bhi-head h3 {
  font-family: var(--halogen);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
  padding-right: 30px;
}

#bhi-modal-bg .bhi-body { padding: 18px 26px 26px; }

#bhi-modal-bg .bhi-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy);
  margin: 0 0 16px;
}

#bhi-modal-bg .bhi-frame {
  width: 100%;
  min-height: 560px;
  border: none;
  border-radius: 14px;
  background: var(--cream);
  display: block;
}

#bhi-modal-bg .bhi-fallback {
  font-size: 12.5px;
  margin: 10px 0 0;
  text-align: center;
  opacity: .75;
  color: var(--navy);
}
#bhi-modal-bg .bhi-fallback a { color: var(--terracotta); font-weight: 600; }

@media (max-width: 560px) {
  #bhi-modal-bg { padding: 12px; }
  #bhi-modal-bg .bhi-modal { max-height: 92vh; border-radius: 18px 0 18px 0; }
  #bhi-modal-bg .bhi-head { padding: 20px 20px 16px; }
  #bhi-modal-bg .bhi-body { padding: 16px 20px 22px; }
  #bhi-modal-bg .bhi-head h3 { font-size: 19px; }
}
