/* Shared appearance for every website popup and its native form controls. */
:root {
  --popup-accent: #b5ccec;
  --popup-accent-hover: #a4bfe2;
  --popup-accent-ink: #203a5e;
}
.help-modal {
  z-index: 30;
  padding: 32px;
  background: rgb(20 24 33 / 38%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.help-modal .help-modal-panel {
  width: min(1180px, 100%);
  height: min(860px, calc(100dvh - 64px));
  max-height: calc(100dvh - 64px);
  min-height: 0;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 32px 100px rgb(15 21 34 / 20%);
}
.help-modal .pricing-modal-panel {
  width: min(760px, 100%);
  height: auto;
}
.help-modal .help-modal-header {
  gap: 24px;
  min-height: 114px;
  padding: 25px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.modal-heading { display: grid; gap: 12px; min-width: 0; }
.modal-brand { display: block; width: 88px; height: 20px; object-fit: contain; opacity: .6; mix-blend-mode: multiply; }
.help-modal .help-modal-title {
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-transform: none;
  overflow-wrap: anywhere;
}
.help-modal .help-modal-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  font-weight: 300;
  transition: background .18s, border-color .18s;
}
.help-modal .help-modal-close:hover { background: #e8edf5; border-color: #b5ccec; }
.help-modal .help-modal-close:focus-visible,
.help-modal .stripe-payment-tile:focus-visible {
  outline: 2px solid var(--popup-accent-ink);
  outline-offset: 3px;
}
.help-modal .help-frame {
  display: block;
  min-height: 0;
  background: var(--paper);
  color-scheme: light;
}
.help-modal .help-frame[hidden],
.help-modal .tool-status[hidden] {
  display: none;
}
.help-modal .tool-status {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: #52525b;
  text-align: center;
}
.help-modal .pricing-modal-body,
.help-modal .feedback-form {
  min-height: 0;
  padding: 30px 32px 32px;
  gap: 24px;
  scrollbar-width: thin;
  scrollbar-color: #c7cbd3 transparent;
}
.help-modal .pricing-modal-body p {
  color: #5d626c;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.015em;
}
.help-modal .pricing-options { gap: 12px; }
.help-modal .stripe-payment-tile {
  position: relative;
  gap: 18px;
  padding: 20px 48px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  transition: background .18s, border-color .18s;
}
.help-modal .stripe-payment-tile::after {
  content: "↗";
  position: absolute;
  right: 20px;
  top: 22px;
  color: var(--popup-accent-ink);
  font-size: 22px;
}
.help-modal .stripe-payment-tile:hover {
  background: #edf2fa;
  border-color: #b5ccec;
  transform: none;
}
.help-modal .stripe-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--popup-accent);
  color: var(--popup-accent-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}
.help-modal .hero-help-copy { min-width: 0; gap: 5px; }
.help-modal .hero-help-copy strong {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.help-modal .hero-help-copy > span { font-size: 14px; line-height: 1.5; color: #737780; }
.feedback-form .feedback-kind-options { gap: 10px; }
.feedback-form .feedback-kind-options legend,
.feedback-form .feedback-label > span {
  margin-bottom: 4px;
  color: #5b6069;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .015em;
  text-transform: none;
}
.feedback-form .feedback-kind-options legend { margin-bottom: 12px; }
.feedback-form .feedback-radio {
  min-height: 44px;
  padding: 9px 16px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #515660;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}
.feedback-form .feedback-radio:has(input:checked) {
  background: #e5edf9;
  border-color: #b5ccec;
  color: var(--popup-accent-ink);
}
.feedback-form .feedback-radio input { accent-color: var(--popup-accent-ink); }
.feedback-form .feedback-radio input:focus-visible { outline: 2px solid var(--popup-accent-ink); outline-offset: 3px; }
.feedback-form .feedback-label { gap: 8px; min-width: 0; }
.feedback-form .feedback-label textarea,
.feedback-form .feedback-label input[type="email"],
.feedback-form .feedback-label input[type="file"] {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.feedback-form .feedback-label textarea { min-height: 150px; }
.feedback-form .feedback-label textarea::placeholder { color: #969aa2; opacity: 1; }
.feedback-form .feedback-label input:focus,
.feedback-form .feedback-label textarea:focus {
  border-color: #92b1dd;
  outline: 2px solid #b5ccec;
  outline-offset: 2px;
  box-shadow: none;
}
.feedback-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: #e5edf9;
  color: var(--popup-accent-ink);
  font: inherit;
  cursor: pointer;
}
.feedback-form .feedback-label small { font-size: 12px; color: #787d86; line-height: 1.5; }
.feedback-form .feedback-submit {
  min-height: 46px;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--popup-accent);
  color: var(--popup-accent-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
}
.feedback-form .feedback-submit:hover { background: var(--popup-accent-hover); }
.feedback-form .feedback-submit:focus-visible { outline: 2px solid var(--popup-accent-ink); outline-offset: 3px; }
.feedback-form .feedback-status { font-size: 14px; font-weight: 400; line-height: 1.5; color: #365b49; }
.feedback-form .feedback-status[data-state="error"] { color: #9a3d2f; }
@media (max-width: 600px) {
  .help-modal { padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .help-modal .help-modal-panel { height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); border-radius: 20px; }
  .help-modal .pricing-modal-panel { height: auto; max-height: calc(100dvh - 32px); }
  .help-modal .help-modal-header { min-height: 100px; padding: 20px; gap: 14px; }
  .modal-brand { width: 72px; height: 16px; }
  .help-modal .help-modal-title { font-size: 27px; }
  .help-modal .pricing-modal-body, .help-modal .feedback-form { padding: 22px 20px; gap: 20px; }
  .help-modal .pricing-modal-body p { font-size: 16px; line-height: 1.6; }
  .help-modal .stripe-payment-tile { padding: 16px 36px 16px 14px; gap: 12px; border-radius: 14px; }
  .help-modal .stripe-payment-tile::after { right: 13px; top: 19px; font-size: 18px; }
  .help-modal .stripe-mark { width: 40px; height: 40px; }
  .help-modal .hero-help-copy strong { font-size: 15px; }
  .help-modal .hero-help-copy > span { font-size: 13px; }
  .feedback-form .feedback-email-fields { grid-template-columns: 1fr; gap: 18px; }
  .feedback-form .feedback-radio { padding: 9px 13px; }
}
