:root {
  --hb-contact-ink: #082540;
  --hb-contact-muted: #667686;
  --hb-contact-line: #dce3e7;
  --hb-contact-paper: #fffdf8;
  --hb-contact-white: #ffffff;
  --hb-contact-red: #f03349;
  --hb-contact-red-dark: #d82137;
  --hb-contact-focus: #1c72b8;
}

.hb-contact,
.hb-contact * { box-sizing: border-box; }
.hb-contact {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  color: var(--hb-contact-ink);
  background: var(--hb-contact-paper);
  border: 1px solid var(--hb-contact-line);
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(8, 37, 64, .09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hb-contact__header { max-width: 680px; margin-bottom: 34px; }
.hb-contact__eyebrow {
  margin: 0 0 13px !important;
  color: var(--hb-contact-red) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .2em;
}
.hb-contact__header h2 {
  margin: 0 0 12px !important;
  color: var(--hb-contact-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(34px, 5vw, 58px) !important;
  font-weight: 700 !important;
  line-height: .98 !important;
  letter-spacing: -.035em;
}
.hb-contact__header > p:last-child {
  margin: 0 !important;
  color: var(--hb-contact-muted) !important;
  font-size: 17px !important;
}
.hb-contact__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}
.hb-contact__field,
.hb-contact__conditional { min-width: 0; }
.hb-contact__field--wide,
.hb-contact__conditional,
.hb-contact__footer,
.hb-contact__notice { grid-column: 1 / -1; }
.hb-contact__conditional--test {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hb-contact [hidden] { display: none !important; }
.hb-contact label {
  display: block;
  margin: 0 0 8px;
  color: var(--hb-contact-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hb-contact label span { color: var(--hb-contact-red); }
.hb-contact label small { color: var(--hb-contact-muted); font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.hb-contact input[type="text"],
.hb-contact input[type="email"],
.hb-contact input[type="file"],
.hb-contact select,
.hb-contact textarea {
  width: 100%;
  min-height: 54px;
  margin: 0 !important;
  padding: 14px 16px;
  border: 1px solid #cbd5db !important;
  border-radius: 0 !important;
  outline: 0;
  color: var(--hb-contact-ink) !important;
  background: var(--hb-contact-white) !important;
  box-shadow: none !important;
  font: 500 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.hb-contact textarea { min-height: 150px; resize: vertical; }
.hb-contact input:focus,
.hb-contact select:focus,
.hb-contact textarea:focus { border-color: var(--hb-contact-focus) !important; box-shadow: 0 0 0 3px rgba(28, 114, 184, .13) !important; }
.hb-contact [aria-invalid="true"] { border-color: var(--hb-contact-red) !important; }
.hb-contact__error { min-height: 18px; margin: 5px 0 0 !important; color: #b8182b !important; font-size: 12px !important; }
.hb-contact__field-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--hb-contact-muted); font-size: 12px; }
.hb-contact__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
}
.hb-contact__footer p { max-width: 420px; margin: 0 !important; color: var(--hb-contact-muted) !important; font-size: 13px !important; }
.hb-contact__submit,
.hb-contact-inline-button {
  min-height: 54px;
  padding: 15px 24px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: var(--hb-contact-red);
  box-shadow: 0 10px 24px rgba(240, 51, 73, .2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hb-contact__submit:hover,
.hb-contact-inline-button:hover { background: var(--hb-contact-red-dark); }
.hb-contact__submit span { margin-left: 16px; font-size: 18px; }
.hb-contact__notice:empty { display: none; }
.hb-contact__trap { position: absolute !important; left: -99999px !important; width: 1px; height: 1px; overflow: hidden; }

.hb-contact-launcher {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 99980;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 17px 10px 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  color: #fff;
  background: var(--hb-contact-ink);
  box-shadow: 0 14px 38px rgba(8,37,64,.24);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.hb-contact-launcher__icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: var(--hb-contact-ink);
  background: #fff;
  font-size: 17px;
}
.hb-contact-modal { position: fixed; inset: 0; z-index: 99990; }
.hb-contact-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 25, 40, .66); backdrop-filter: blur(6px); }
.hb-contact-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  transform: translate(-50%, -50%);
  outline: none;
}
.hb-contact-modal__close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 3;
  width: 42px;
  height: 42px;
  margin: 14px 14px -56px 0;
  border: 1px solid var(--hb-contact-line);
  border-radius: 50%;
  color: var(--hb-contact-ink);
  background: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.hb-contact--modal { border: 0; box-shadow: none; }
.hb-contact-is-open { overflow: hidden; }

@media (max-width: 680px) {
  .hb-contact { padding: 30px 20px; border-left: 0; border-right: 0; }
  .hb-contact__form,
  .hb-contact__conditional--test { grid-template-columns: 1fr; gap: 18px; }
  .hb-contact__footer { align-items: stretch; flex-direction: column; }
  .hb-contact__submit { width: 100%; }
  .hb-contact-launcher { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .hb-contact-modal__panel { top: 0; left: 0; width: 100%; max-height: 100%; height: 100%; transform: none; background: var(--hb-contact-paper); }
  .hb-contact-modal__close { top: 10px; margin-right: 10px; }
  .hb-contact--modal { min-height: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .hb-contact-modal:not([hidden]) .hb-contact-modal__panel { animation: hb-contact-in .22s ease-out both; }
  @keyframes hb-contact-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
  @media (max-width: 680px) {
    .hb-contact-modal:not([hidden]) .hb-contact-modal__panel { animation-name: hb-contact-mobile-in; }
    @keyframes hb-contact-mobile-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  }
}

