.hb-direct-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
  background: #fff;
}

.hb-direct-fallback {
  margin: 14px 0 0;
  text-align: center;
  font-size: .82rem;
  color: var(--c-muted);
}

.hb-direct-fallback a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.engagement-inquiry-open { overflow: hidden; }

.engagement-inquiry-modal[hidden] { display: none; }

.engagement-inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
}

.engagement-inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 21, 18, .72);
  backdrop-filter: blur(5px);
}

.engagement-inquiry-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100dvh - clamp(24px, 6vw, 64px));
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 12px;
  background: var(--c-bone, #f7f2e9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.engagement-inquiry-modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(42, 35, 29, .14);
  background: rgba(247, 242, 233, .96);
}

.engagement-inquiry-modal__head h2 {
  margin: 0;
  font-family: var(--f-serif);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 500;
}

.engagement-inquiry-modal__close {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(42, 35, 29, .22);
  border-radius: 999px;
  background: transparent;
  color: var(--c-ink, #29231d);
  font: inherit;
  cursor: pointer;
}

.engagement-inquiry-modal__body { padding: 0 18px 18px; }
.engagement-inquiry-modal [data-hb-placement] { min-height: min(680px, calc(100dvh - 190px)); }

.engagement-inquiry-modal :focus-visible {
  outline: 3px solid var(--c-accent, #9d625d);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .hb-direct-frame { min-height: 680px; }
  .engagement-inquiry-modal { padding: 0; }
  .engagement-inquiry-modal__panel {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }
  .engagement-inquiry-modal__body { padding-inline: 10px; }
  .engagement-inquiry-modal [data-hb-placement] { min-height: calc(100dvh - 124px); }
}
