/* Help & contact sheet (helpSheet.js). Same family as the Filters panel and
   the venue card: dark navy, soft rim, rounded. A bottom sheet on phones, a
   centred card on wider screens. Above the header (1500) and the inbox. */
.hs-layer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 22, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.hs-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(160deg, #10243a 0%, #0f3140 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  box-shadow: 0 -18px 60px rgba(4, 10, 24, 0.5);
  color: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hs-layer.is-open .hs-backdrop { opacity: 1; }
.hs-layer.is-open .hs-sheet { transform: none; }
@media (min-width: 700px) {
  .hs-layer { align-items: center; }
  .hs-sheet { border-radius: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding-bottom: 22px; transform: translateY(24px); opacity: 0; transition: transform 0.24s ease, opacity 0.24s ease; }
  .hs-layer.is-open .hs-sheet { opacity: 1; }
}
html.hs-open { overflow: hidden; }

.hs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hs-title { flex: 1; margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.2; }
.hs-icon-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}
.hs-icon-btn:hover { background: rgba(255, 255, 255, 0.18); }
.hs-lede { margin: 4px 0 14px; color: rgba(255, 255, 255, 0.75); font-size: 14px; line-height: 1.5; }
.hs-content { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* Home options */
.hs-option, .hs-tip {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
div.hs-tip { cursor: default; }
.hs-option:hover, a.hs-tip:hover, button.hs-tip:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.16); }
.hs-option:focus-visible, .hs-tip:focus-visible { outline: 2px solid #4cd0e0; outline-offset: 2px; }
.hs-option > svg:last-child, .hs-tip > svg:last-child { flex: none; color: rgba(255, 255, 255, 0.5); }
.hs-option-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.hs-tone-gold { background: rgba(247, 197, 46, 0.16); color: #f7c52e; }
.hs-tone-green { background: rgba(76, 175, 80, 0.18); color: #6fd472; }
.hs-tone-teal { background: rgba(12, 157, 176, 0.2); color: #4cd0e0; }
.hs-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hs-option-title { font-weight: 700; font-size: 16px; }
.hs-option-line { color: rgba(255, 255, 255, 0.7); font-size: 13px; line-height: 1.4; }
.hs-tips { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

/* Search */
.hs-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
}
.hs-search:focus-within { border-color: #4cd0e0; }
.hs-search-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px; /* 16px keeps iOS Safari from zooming in */
  outline: none;
}
.hs-search-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.hs-results { display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.hs-result, .hs-venue {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* Rows line up with the option cards above/below them: 15px in (their 14px
   padding + 1px border), text starting at the same 75px. */
.hs-result { padding: 8px 15px; }
.hs-result:hover, .hs-result:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }
.hs-venue { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); cursor: default; padding: 10px 12px; }
.hs-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1d4a5f, #0c9db0);
}
.hs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-result-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-result-area { color: rgba(255, 255, 255, 0.65); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-empty { padding: 14px 6px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.hs-hint { margin: 4px 2px 0; color: rgba(255, 255, 255, 0.65); font-size: 13px; }
.hs-inline-link {
  border: 0;
  background: none;
  padding: 4px 2px;
  color: #4cd0e0;
  font: 600 14px 'Poppins', system-ui, sans-serif;
  cursor: pointer;
}
.hs-inline-link:hover { text-decoration: underline; }
.hs-inline-link:disabled { opacity: 0.6; cursor: default; }

/* Form */
.hs-form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.hs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .hs-row { grid-template-columns: 1fr; } }
.hs-field { display: flex; flex-direction: column; gap: 6px; }
.hs-label { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.hs-field-hint { font-size: 12px; color: rgba(255, 255, 255, 0.6); line-height: 1.45; }
.hs-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 16px;
}
.hs-input:focus { outline: none; border-color: #4cd0e0; background: rgba(255, 255, 255, 0.11); }
select.hs-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.7) 50%), linear-gradient(135deg, rgba(255,255,255,.7) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
select.hs-input option { color: #111; }
.hs-textarea { min-height: 86px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.hs-code { text-align: center; letter-spacing: 0.5em; font-size: 26px; font-weight: 700; min-height: 60px; padding-left: 0.5em; }
.hs-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hs-seg-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hs-seg-btn.is-on { border-color: #4cd0e0; background: rgba(12, 157, 176, 0.22); box-shadow: inset 0 0 0 1px #4cd0e0; }
.hs-seg-title { font-weight: 700; font-size: 14px; }
.hs-seg-line { font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.hs-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hs-error {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 90, 122, 0.14);
  border: 1px solid rgba(255, 90, 122, 0.5);
  color: #ffd0da;
  font-size: 14px;
}
.hs-error[hidden] { display: none; }
.hs-primary, .hs-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #0a7f8f;
  color: #fff;
  font: 700 16px 'Poppins', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(10, 127, 143, 0.4);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.hs-primary:hover { background: #0b93a5; }
.hs-primary:active { transform: scale(0.99); }
.hs-primary:disabled { opacity: 0.7; cursor: progress; }
.hs-secondary { background: rgba(255, 255, 255, 0.1); box-shadow: none; margin-top: 4px; }
.hs-secondary:hover { background: rgba(255, 255, 255, 0.16); }
.hs-fine { margin: -4px 0 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.hs-mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hs-done {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 6px 0 4px;
  border-radius: 50%;
}
.hs-done.is-approved { background: #4CAF50; color: #0b2a0d; }
.hs-done.is-pending { background: rgba(12, 157, 176, 0.3); color: #4cd0e0; }

@media (prefers-reduced-motion: reduce) {
  .hs-sheet, .hs-backdrop { transition: none; }
}

/* Contact form */
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font: 600 14px 'Poppins', system-ui, sans-serif;
  cursor: pointer;
}
.hs-chip:hover { background: rgba(255, 255, 255, 0.12); }
.hs-chip.is-on { background: rgba(12, 157, 176, 0.25); border-color: #4cd0e0; color: #fff; box-shadow: inset 0 0 0 1px #4cd0e0; }
.hs-field[hidden] { display: none; }
.hs-picker { display: flex; flex-direction: column; gap: 6px; }
.hs-results-compact { min-height: 0; }
.hs-fine-link { color: #4cd0e0; }
.hs-foot { margin-top: 8px; text-align: center; }
.hs-thumb-icon { display: grid; place-items: center; color: #6fd472; background: rgba(76, 175, 80, 0.16); }
.hs-results-compact:empty { display: none; }
