/* HopeQure concierge — same palette as the booking, checkout and enquiry modals, so the site
   has one voice rather than five. No red anywhere except the crisis line, and no black: the
   darkest value here is a clearly blue indigo, because a black panel on a mental-health site
   reads as clinical rather than calm. */

.hqc {
  --c-indigo: #3b3f7d;
  --c-indigo-deep: #2e3268;
  --c-teal: #0d6e6a;
  --c-teal-soft: #e6f4f2;
  --c-clay: #c05621;
  --c-ink: #3d4166;
  --c-muted: #767ba0;
  --c-line: #e6e7ef;

  position: fixed;
  /* Pinned to the bottom-right corner of the VIEWPORT, explicitly. It was appearing up near the
     hero instead, because this element carried its own `transform` — and any transform makes an
     element the containing block for its own fixed-position descendants, but more to the point a
     reveal animation on a fixed element is fragile: the moment anything in the cascade touches
     `transform` here the `bottom`/`right` anchoring is measured against the wrong box. The
     animation is opacity-only now, so the fixed anchor is never disturbed, and top/left are set
     to auto so no inherited value can pull it back into flow. */
  right: 20px;
  bottom: 24px;
  top: auto;
  left: auto;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 600;               /* under the forms (9999) — see the note in Program.cs about
                                 floating widgets stealing clicks from callback forms */
  font-family: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.hqc.hqc-in-view { opacity: 1; pointer-events: auto; }
.hqc.hqc-hidden { display: none; }

/* ---- the talk-to-us bubble ----
   A rounded pill: chat icon + label, not a bare star. The star told nobody it was a chat. */
.hqc-fab {
  display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; cursor: pointer; position: relative;
  color: #fff; font-family: inherit;
  background: linear-gradient(135deg, var(--c-indigo), var(--c-teal));
  box-shadow: 0 10px 26px rgba(59, 63, 125, .30);
  transition: transform .16s ease, box-shadow .16s ease;
}
.hqc-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(59, 63, 125, .38); }
.hqc-fab:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 3px; }
.hqc-fab-ic { flex: 0 0 auto; }
.hqc-fab-label { font-size: 14px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }

/* One soft pulse ring, so it is noticed once without nagging. Stops after a few seconds — a
   thing that pulses forever is an irritation, not an invitation. */
.hqc-ring {
  position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(13, 110, 106, .45);
  animation: hqcPulse 2.2s ease-out 3;
}
@keyframes hqcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(13, 110, 106, .45); }
  70%  { box-shadow: 0 0 0 14px rgba(13, 110, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 110, 106, 0); }
}

/* On a phone the label would crowd the edge — collapse to a round icon there. */
@media (max-width: 480px) {
  .hqc-fab { width: 54px; height: 54px; padding: 0; justify-content: center; border-radius: 50%; }
  .hqc-fab-label { display: none; }
}

.hqc-badge {
  position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%;
  background: #f2b544; border: 2px solid #fff;
}
.hqc.is-open .hqc-fab { display: none; }

/* ---- the panel ---- */
/* The [hidden] rule, restated with !important.

   The panel is hidden by setting the `hidden` attribute, and shown by the .hqc-panel rule below
   — which sets display:flex. An author display rule beats the browser's own [hidden]{display:none},
   so `hidden` did nothing: the panel was on screen from the moment the page loaded, the close
   button "did nothing" because there was nothing it could do, and the icon sat above a panel
   that should not have been there. Three bug reports, one cascade rule. */
.hqc-panel[hidden] { display: none !important; }

.hqc-panel {
  width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 110px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(59, 63, 125, .28), 0 0 0 1px var(--c-line);
}
.hqc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; color: #fff;
  background: linear-gradient(135deg, var(--c-indigo) 0%, #4a4f95 45%, var(--c-teal) 135%);
}
.hqc-head b { font-size: 14.5px; display: block; }
.hqc-head small { font-size: 11.5px; color: #c7cdea; }
.hqc-close {
  border: 0; width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 13px; line-height: 1;
}
.hqc-close:hover { background: rgba(255, 255, 255, .26); }

.hqc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; }

.hqc-msg {
  max-width: 86%; padding: 10px 13px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.55; white-space: pre-wrap;
}
.hqc-msg.bot { align-self: flex-start; background: var(--c-teal-soft); color: var(--c-ink); }
.hqc-msg.me  { align-self: flex-end;  background: linear-gradient(140deg, var(--c-indigo), #5257a4); color: #fff; }
.hqc-msg.quiet { background: #f6f7fb; color: var(--c-muted); font-size: 12.5px; }
.hqc-msg a { color: var(--c-teal); font-weight: 600; }

/* The one place red is allowed, because it is the one place it means what red means. */
.hqc-msg.crisis { background: #fdeee4; color: #8a3a12; border: 1px solid var(--c-clay); max-width: 100%; }
.hqc-msg.crisis b { color: #8a3a12; }

.hqc-msg.typing { padding: 12px 14px; }
.hqc-dots i {
  display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%;
  background: var(--c-muted); animation: hqcBlink 1.2s infinite;
}
.hqc-dots i:nth-child(2) { animation-delay: .2s; }
.hqc-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes hqcBlink { 0%, 60%, 100% { opacity: .25 } 30% { opacity: 1 } }

.hqc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hqc-chips button {
  border: 1px solid var(--c-line); background: #fff; color: var(--c-ink);
  font-size: 12.5px; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.hqc-chips button:hover { border-color: var(--c-teal); color: var(--c-teal); }

.hqc-lead { margin: 0 0 8px; }
.hqc-doc {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 9px 0; border-top: 1px solid rgba(13, 110, 106, .16);
}
.hqc-doc b { font-size: 13.5px; display: block; }
.hqc-doc small { display: block; font-size: 11.5px; color: var(--c-muted); }
.hqc-doc small.hqc-price { color: var(--c-teal); font-weight: 600; }
/* The reason this expert was suggested. Its own line, quieter than the name and the
   price: it is there to be read once while deciding, not to compete with them. */
.hqc-doc small.hqc-why { display: block; margin-top: 2px; font-size: 12px;
  line-height: 1.4; color: var(--c-muted, #6b7280); font-weight: 400; }
.hqc-doc button {
  flex: 0 0 auto; border: 0; border-radius: 10px; padding: 8px 16px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #fff; font-family: inherit;
  background: linear-gradient(135deg, var(--c-clay), #d4703a);
}
.hqc-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--c-muted); }

.hqc-in { display: flex; gap: 8px; padding: 11px 12px; border-top: 1px solid var(--c-line); background: #fafbfe; }
.hqc-in input, .hqc-in textarea {
  flex: 1; min-width: 0; padding: 10px 13px; border-radius: 11px; font-family: inherit;
  border: 1.5px solid var(--c-line); font-size: 13.5px; color: var(--c-ink); background: #fff;
}
.hqc-in input:focus, .hqc-in textarea:focus { outline: none; border-color: var(--c-teal); background: var(--c-teal-soft); }
.hqc-in button {
  flex: 0 0 42px; border: 0; border-radius: 11px; cursor: pointer; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--c-clay), #d4703a);
}
.hqc-foot { margin: 0; padding: 0 14px 11px; font-size: 10.5px; line-height: 1.5; color: var(--c-muted); background: #fafbfe; }

@media (max-width: 480px) {
  .hqc { right: 12px; bottom: 12px; left: 12px; }
  .hqc-fab { max-width: none; }
  .hqc-panel { width: 100%; height: min(78vh, 560px); }
}

/* Someone who has asked for less motion should not get a pill sliding in from the corner. */
@media (prefers-reduced-motion: reduce) {
  .hqc, .hqc-fab { transition: none; }
  .hqc-dots i { animation: none; opacity: .5; }
  .hqc-ring { animation: none; }
}

/* ---- slots, forms and the rest of the funnel, inside the chat ---- */
.hqc-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.hqc-slots button {
  border: 1.5px solid transparent; background: #fff; color: var(--c-ink);
  font-size: 13px; font-weight: 600; padding: 8px 4px; border-radius: 10px;
  cursor: pointer; font-family: inherit;
}
.hqc-slots button:hover { border-color: var(--c-teal); color: var(--c-teal); }

.hqc-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; }
.hqc-nav button {
  border: 1px solid rgba(13, 110, 106, .28); background: transparent; color: var(--c-teal);
  font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 9px;
  cursor: pointer; font-family: inherit;
}
.hqc-nav button[disabled] { opacity: .38; cursor: default; }

.hqc-form {
  align-self: stretch; background: #fafbfe; border: 1px solid var(--c-line);
  border-radius: 14px; padding: 13px 14px;
}
.hqc-form label {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--c-muted); margin: 9px 0 4px;
}
.hqc-form label:first-child { margin-top: 0; }
.hqc-f {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 10px;
  border: 1.5px solid var(--c-line); font-size: 13.5px; color: var(--c-ink);
  background: #fff; font-family: inherit;
}
.hqc-f:focus { outline: none; border-color: var(--c-teal); background: var(--c-teal-soft); }
.hqc-phone { display: flex; gap: 7px; }
.hqc-phone select { flex: 0 0 104px; }
.hqc-otp { text-align: center; font-size: 19px; letter-spacing: 6px; }

.hqc-consent {
  display: flex; gap: 8px; align-items: flex-start; text-transform: none; letter-spacing: 0;
  font-size: 11.5px; font-weight: 400; color: var(--c-muted); line-height: 1.5; margin-top: 11px;
}
.hqc-consent input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--c-teal); flex: 0 0 auto; }
.hqc-consent a { color: var(--c-teal); font-weight: 600; }

/* Amber, not red. A field that needs another go is not an emergency, and this widget keeps red
   for the one message where red means what red means. */
.hqc-err { margin: 9px 0 0; font-size: 12px; color: #8a5a12; background: #fdf3e0;
           border-radius: 8px; padding: 7px 10px; line-height: 1.45; }

.hqc-go {
  width: 100%; margin-top: 11px; border: 0; border-radius: 11px; padding: 11px;
  font-size: 13.5px; font-weight: 700; color: #fff; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, var(--c-clay), #d4703a);
}
.hqc-go[disabled] { opacity: .5; cursor: default; }
.hqc-link {
  width: 100%; margin-top: 7px; border: 0; background: none; cursor: pointer;
  font-size: 12px; color: var(--c-teal); font-family: inherit; text-decoration: underline;
}

/* ---- drag ---- */
.hqc-head { cursor: grab; user-select: none; }
.hqc-head:active { cursor: grabbing; }
/* The close button keeps a normal cursor and its own pointer events, so the grab affordance on
   the bar behind it never suggests the X is draggable. */
.hqc-close { cursor: pointer; }
/* No transition while dragging — a 0.35s ease on a position that changes every frame reads as
   the panel lagging behind the finger. */
.hqc.hqc-dragging { transition: none; }
.hqc.hqc-dragging .hqc-panel { box-shadow: 0 30px 70px rgba(59, 63, 125, .34); }
.hqc.hqc-dragging .hqc-log { pointer-events: none; }

/* Inline actions inside a sentence — look like links, are buttons, never leave the chat. */
.hqc-inline { border: 0; background: none; padding: 0; font: inherit; color: var(--c-teal);
              font-weight: 600; text-decoration: underline; cursor: pointer; }
.hqc-cats { max-height: 190px; overflow-y: auto; }

/* =========================================================================================
   v11 — a warmer, deeper look, four themes, and the in-page ("embed") version
   -----------------------------------------------------------------------------------------
   The palette is carried by five variables so a theme is five lines. Every gradient stop was
   measured against white text before it was chosen: the lowest is 5.25 : 1. The one colour no
   theme touches is the crisis line's.
   ========================================================================================= */
.hqc {
  --t-a: #34388F; --t-b: #5046C8; --t-c: #0D7470;           /* header, send, my bubbles */
  --t-accent: #3F3AB0;                                       /* links, focus, chip hover */
  --t-soft: #EEF0FF;                                         /* tinted surfaces */
  --t-glow: rgba(80, 70, 200, .28);
  --c-ink: #2E3150;
  --c-muted: #6A6E8F;
}
.hqc[data-theme="sunrise"]  { --t-a:#A63A22; --t-b:#B8482A; --t-c:#9A5A08; --t-accent:#A33C1E; --t-soft:#FFF1EA; --t-glow:rgba(184,72,42,.26); }
.hqc[data-theme="lavender"] { --t-a:#51379A; --t-b:#7440B0; --t-c:#A23A6E; --t-accent:#6A36A6; --t-soft:#F5EEFF; --t-glow:rgba(116,64,176,.26); }
.hqc[data-theme="forest"]   { --t-a:#1B5640; --t-b:#276E50; --t-c:#2C6A73; --t-accent:#1F6448; --t-soft:#EAF6EF; --t-glow:rgba(39,110,80,.24); }

/* ---- the corner button ---- */
.hqc-fab { background: linear-gradient(135deg, var(--t-a), var(--t-b) 55%, var(--t-c)); box-shadow: 0 12px 28px var(--t-glow); }
.hqc-fab:hover { box-shadow: 0 16px 36px var(--t-glow); }
.hqc-fab:focus-visible { outline-color: var(--t-accent); }

/* ---- panel ---- */
.hqc-panel { border-radius: 22px; box-shadow: 0 28px 64px var(--t-glow), 0 0 0 1px rgba(46, 49, 80, .06); }

.hqc-head {
  position: relative; overflow: hidden; justify-content: flex-start; gap: 12px; padding: 16px 16px 16px 14px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, var(--t-a) 0%, var(--t-b) 58%, var(--t-c) 120%);
}
/* A few soft points of light, so the header is not a flat slab of colour. */
.hqc-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(1.5px 1.5px at 72% 28%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 78%, #fff 50%, transparent 51%);
}
.hqc-avatar {
  position: relative; z-index: 1; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), rgba(255,255,255,.12) 60%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45), 0 6px 14px rgba(0,0,0,.18);
}
.hqc-head-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hqc-head b { font-size: 15.5px; letter-spacing: .01em; }
.hqc-head small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: #E4E6FF; }
.hqc-dot { width: 7px; height: 7px; border-radius: 50%; background: #5EE0A0; box-shadow: 0 0 0 3px rgba(94,224,160,.22); flex: 0 0 7px; }
.hqc-close { position: relative; z-index: 1; width: 32px; height: 32px; background: rgba(255,255,255,.16); }
.hqc-close:hover { background: rgba(255,255,255,.28); }
.hqc-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- conversation ---- */
.hqc-log { background: linear-gradient(180deg, var(--t-soft), #fff 180px); gap: 10px; }
.hqc-msg { font-size: 14px; line-height: 1.6; border-radius: 16px; }
.hqc-msg.bot {
  background: #fff; color: var(--c-ink); border-top-left-radius: 6px;
  box-shadow: 0 1px 0 rgba(46,49,80,.05), 0 6px 16px rgba(46,49,80,.06); border: 1px solid rgba(46,49,80,.06);
}
.hqc-msg.me { background: linear-gradient(140deg, var(--t-a), var(--t-b)); border-top-right-radius: 6px; box-shadow: 0 6px 14px var(--t-glow); }
.hqc-msg a { color: var(--t-accent); }
.hqc-inline { color: var(--t-accent); }

.hqc-chips { gap: 8px; }
.hqc-chips button {
  padding: 8px 13px; font-size: 13px; font-weight: 600; color: var(--c-ink);
  background: #fff; border: 1.5px solid rgba(46,49,80,.10); box-shadow: 0 2px 6px rgba(46,49,80,.05);
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.hqc-chips button:hover { background: var(--t-soft); border-color: var(--t-accent); color: var(--t-accent); transform: translateY(-1px); }
.hqc-chips button:focus-visible { outline: 3px solid var(--t-accent); outline-offset: 2px; }

/* ---- typing ---- */
.hqc-in { padding: 12px; gap: 10px; background: #fff; border-top: 1px solid rgba(46,49,80,.07); }
.hqc-in input, .hqc-in textarea {
  border-radius: 999px; padding-left: 16px; font-size: 14px; color: var(--c-ink);
  background: #F6F7FB; border: 1.5px solid transparent;
}
.hqc-in input:focus, .hqc-in textarea:focus { background: #fff; border-color: var(--t-accent); box-shadow: 0 0 0 4px var(--t-soft); }
.hqc-in button {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 0; color: #fff; font-size: 17px; cursor: pointer;
  background: linear-gradient(135deg, var(--t-a), var(--t-b) 60%, var(--t-c));
  box-shadow: 0 8px 18px var(--t-glow); transition: transform .14s ease;
}
.hqc-in button:hover { transform: translateY(-1px) scale(1.03); }
.hqc-in button:focus-visible { outline: 3px solid var(--t-accent); outline-offset: 2px; }
.hqc-foot { background: #fff; color: var(--c-muted); padding: 0 16px 12px; font-size: 11px; }

/* =========================================================================================
   The embed: the same widget inside a page box
   -----------------------------------------------------------------------------------------
   Everything that pins the corner widget is undone HERE, by class, so the embed flows with the
   page like any section. It is always visible — there is nothing to reveal it with.
   ========================================================================================= */
.hqc.hqc-embed {
  position: relative !important; right: auto !important; bottom: auto !important; top: auto !important; left: auto !important;
  z-index: auto; opacity: 1; pointer-events: auto; align-items: stretch;
  width: 100%; max-width: 760px; margin: 0 auto;
}
/* 520, not 600: at 600 the greeting and chips filled the top third and the rest was an empty box,
   which on a page reads as something that failed to load. It grows as the conversation does, by
   scrolling inside, the way every chat does. */
.hqc.hqc-embed .hqc-panel { width: 100%; max-width: none; height: 520px; max-height: 82vh; }
.hqc.hqc-embed .hqc-head { padding: 20px 22px; }
.hqc.hqc-embed .hqc-head b { font-size: 18px; }
.hqc.hqc-embed .hqc-avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 21px; }
.hqc.hqc-embed .hqc-log { padding: 20px 22px; }
.hqc.hqc-embed .hqc-msg { max-width: 78%; font-size: 15px; }
.hqc.hqc-embed .hqc-in { padding: 14px 18px; }
.hqc.hqc-embed .hqc-foot { padding: 0 20px 14px; }

@media (max-width: 480px) {
  .hqc.hqc-embed { left: auto !important; right: auto !important; }
  .hqc.hqc-embed .hqc-panel { height: 560px; max-height: 86vh; border-radius: 18px; }
  .hqc.hqc-embed .hqc-head, .hqc.hqc-embed .hqc-log { padding-left: 14px; padding-right: 14px; }
  .hqc.hqc-embed .hqc-msg { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .hqc-chips button, .hqc-in button { transition: none; }
  .hqc-chips button:hover, .hqc-in button:hover { transform: none; }
}

/* ---- the one-time identity question (v13) ----
   Asked before the conversation rather than after it, and asked once per browser. Two fields and
   a reason; anything more reads as a gate on getting help. */
.hqc-id{margin:6px 0;padding:14px;border-radius:14px;background:#fff;border:1px solid rgba(46,49,80,.10);box-shadow:0 6px 16px rgba(46,49,80,.06)}
.hqc-id p{margin:0 0 10px;font-size:13.5px;line-height:1.55;color:var(--c-ink)}
.hqc-id label{display:block;font-size:12px;font-weight:700;color:var(--c-muted);margin-top:8px}
.hqc-id input{width:100%;box-sizing:border-box;margin-top:4px;padding:10px 12px;border-radius:10px;font-size:14px;
  border:1.5px solid rgba(46,49,80,.14);background:#F8F9FC;color:var(--c-ink)}
.hqc-id input:focus{outline:none;background:#fff;border-color:var(--t-accent);box-shadow:0 0 0 4px var(--t-soft)}
.hqc-id button[data-id-go]{margin-top:12px;width:100%;padding:11px 14px;border:0;border-radius:999px;cursor:pointer;
  font-size:14px;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--t-a),var(--t-b) 60%,var(--t-c))}
.hqc-id button[data-id-go]:disabled{opacity:.6;cursor:default}
.hqc-id .hqc-id-err{margin-top:8px;font-size:12.5px;color:#B3261E}
.hqc-id small{display:block;margin-top:10px;font-size:11.5px;line-height:1.5;color:var(--c-muted)}
.hqc-times{margin-top:6px}
.hqc-times button{font-variant-numeric:tabular-nums}

/* =========================================================================================
   Minimal theme — the shape people already know from ChatGPT and Claude.

   The other themes lead with a coloured header, a glowing orb and points of light. That reads
   as a product announcing itself. The assistants people actually trust with a hard question
   do the opposite: a plain white surface, the words doing the work, one quiet accent on the
   send button. On a mental-health site that restraint is not decoration — somebody arriving
   worried is better met by a blank page that is clearly listening than by a banner.

   Everything is scoped to [data-theme="minimal"], so the four existing themes and every
   section already saved with one of them are untouched.
   ========================================================================================= */
.hqc[data-theme="minimal"] {
  --t-a:#1F2328; --t-b:#1F2328; --t-c:#1F2328;
  --t-accent:#1F2328; --t-soft:#F4F4F5; --t-glow:rgba(0,0,0,.08);
  --c-ink:#1F2328; --c-muted:#6B6F76;
}
.hqc[data-theme="minimal"] .hqc-panel {
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.07);
  background: #fff;
}

/* Header: a line of text on white, not a banner. No avatar orb, no stars, no status dot. */
.hqc[data-theme="minimal"] .hqc-head {
  background: #fff; color: var(--c-ink);
  padding: 18px 20px 10px; border-bottom: 1px solid rgba(0,0,0,.06);
}
.hqc[data-theme="minimal"] .hqc-head::after,
.hqc[data-theme="minimal"] .hqc-avatar,
.hqc[data-theme="minimal"] .hqc-dot { display: none; }
.hqc[data-theme="minimal"] .hqc-head b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--c-ink); }
.hqc[data-theme="minimal"] .hqc-head small { color: var(--c-muted); font-size: 12.5px; margin-top: 3px; }
.hqc[data-theme="minimal"] .hqc-close { background: transparent; color: var(--c-muted); }
.hqc[data-theme="minimal"] .hqc-close:hover { background: var(--t-soft); }
.hqc[data-theme="minimal"] .hqc-close:focus-visible { outline-color: var(--c-ink); }

/* Conversation: plain ground, the assistant's words without a card around them.

   :not(.crisis) is load-bearing. This selector outranks `.hqc-msg.crisis`, so without the
   exclusion a crisis reply — the helpline numbers — would lose its tinted ground and border
   and sit in the conversation looking like every other line. That is the one message on this
   widget that must never blend in. .quiet is excluded for the same reason at lower stakes. */
.hqc[data-theme="minimal"] .hqc-log { background: #fff; }
.hqc[data-theme="minimal"] .hqc-msg.bot:not(.crisis):not(.quiet) {
  background: transparent; box-shadow: none; padding-left: 0; padding-right: 0;
  color: var(--c-ink); font-size: 14.5px; line-height: 1.6;
}
.hqc[data-theme="minimal"] .hqc-msg.me {
  background: var(--t-soft); color: var(--c-ink); box-shadow: none; border-radius: 18px;
}

/* Suggestions: outlined, like the prompt starters under a fresh chat. */
.hqc[data-theme="minimal"] .hqc-chips button {
  background: #fff; color: var(--c-ink); border: 1px solid rgba(0,0,0,.12);
  box-shadow: none; border-radius: 12px; font-weight: 500;
}
.hqc[data-theme="minimal"] .hqc-chips button:hover { background: var(--t-soft); border-color: rgba(0,0,0,.18); }

/* Input: one rounded field with the send button inside its line, dark when there is text. */
.hqc[data-theme="minimal"] .hqc-in { border-top: 0; padding: 12px 16px 16px; background: #fff; }
.hqc[data-theme="minimal"] .hqc-in input, .hqc[data-theme="minimal"] .hqc-in textarea {
  background: #F4F4F5; border: 1px solid transparent; border-radius: 24px;
}
.hqc[data-theme="minimal"] .hqc-in input:focus, .hqc[data-theme="minimal"] .hqc-in textarea:focus { background: #fff; border-color: rgba(0,0,0,.18); box-shadow: none; }
.hqc[data-theme="minimal"] .hqc-in button { background: #1F2328; box-shadow: none; border-radius: 50%; }
.hqc[data-theme="minimal"] .hqc-in button:hover { background: #000; }

/* Corner button: dark and flat rather than a glowing gradient. */
.hqc[data-theme="minimal"] .hqc-fab { background: #1F2328; box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---- Reading and writing, 3.391.7 --------------------------------------------------------- */

/* The typing box is a textarea now. It grows with what is written, up to five lines, and never
   shows a resize handle — dragging a corner is not how anybody expects a chat box to work. */
.hqc-in textarea {
  resize: none; overflow-y: hidden; line-height: 1.45; max-height: 132px;
  padding-top: 11px; padding-bottom: 11px; display: block;
}
/* A pill with a single line of text; once it wraps, a pill's round ends clip the corners of the
   second line, so the radius relaxes to a rounded rectangle. */
.hqc-in textarea.hqc-tall { border-radius: 18px; }
.hqc-in { align-items: flex-end; }

/* Send is visibly off until there is something to send, rather than a button that does nothing. */
.hqc-in button[type="submit"]:disabled { opacity: .35; cursor: default; box-shadow: none; transform: none; }

/* A caret at the end of a reply while it is still appearing. It stops the moment the reply is
   whole, so a finished message never looks like it is still coming. */
.hqc-msg.hqc-streaming::after {
  content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px;
  vertical-align: -2px; border-radius: 2px; background: currentColor; opacity: .55;
  animation: hqc-caret 1s steps(2, start) infinite;
}
.hqc-msg.hqc-streaming { cursor: pointer; }
@keyframes hqc-caret { to { visibility: hidden; } }

/* Shown only when the reader has scrolled up and something new has arrived below them. */
.hqc-panel { position: relative; }
.hqc-jump {
  position: absolute; right: 16px; bottom: 84px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1);
  background: #fff; color: var(--c-ink); font-size: 16px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.hqc-jump[hidden] { display: none; }
.hqc-jump:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .hqc-msg.hqc-streaming::after { animation: none; }
}
/* 3.391.18 — the pre-chat gate */
.hqc-gate{border:1px solid #CCFBF1;background:linear-gradient(180deg,#F0FDFA,#fff)}
.hqc-gate .hqc-go{width:100%}

/* 3.391.21 — link to the expert's real profile on each card */
.hqc-doc a.hqc-profile { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; color: #0F766E; text-decoration: underline; }
.hqc-doc a.hqc-profile:hover { color: #115E59; }

/* ---- 3.391.33: profile in the chat, a strip of days, a picked time, one-tap confirm ---- */
.hqc-doc button.hqc-profile {
  display: inline-block; margin-top: 4px; padding: 0; background: none; border: 0; border-radius: 0;
  font-size: 12px; font-weight: 600; color: #0F766E; text-decoration: underline; cursor: pointer; font-family: inherit;
}
.hqc-doc button.hqc-profile:hover { color: #115E59; }

.hqc-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.hqc-days button {
  flex: 0 0 auto; min-width: 48px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink); border-radius: 12px;
  padding: 6px 8px; cursor: pointer; font-family: inherit; line-height: 1.1;
}
.hqc-days button small { font-size: 10.5px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .02em; }
.hqc-days button b { font-size: 15px; }
.hqc-days button i { font-style: normal; font-size: 10px; color: var(--c-teal); }
.hqc-days button.on { border-color: var(--c-teal); background: var(--c-teal-soft); }
.hqc-days button:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 1px; }

.hqc-pick { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid rgba(13, 110, 106, .2); margin-bottom: 8px; }
.hqc-pick span { font-size: 13px; color: var(--c-ink); }
.hqc-pick small.hqc-price { color: var(--c-teal); font-weight: 600; font-size: 12px; }
.hqc-chips button.hqc-go-chip { background: linear-gradient(135deg, var(--c-clay), #d4703a); color: #fff; border-color: transparent; font-weight: 700; }

.hqc-confirm p { margin: 0 0 8px; }
.hqc-modes { margin: 4px 0 6px; }
.hqc-modes button.on, .hqc-chips.hqc-modes button.on { border-color: var(--c-teal); background: var(--c-teal-soft); color: var(--c-teal); font-weight: 700; }
.hqc-confirm .hqc-go { width: 100%; margin-top: 8px; }

.hqc-pcard p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; }
.hqc-phead { display: flex; gap: 10px; align-items: center; }
.hqc-phead b { display: block; font-size: 14px; }
.hqc-phead small { display: block; font-size: 11.5px; color: var(--c-muted); }
.hqc-phead small.hqc-verified { color: var(--c-teal); font-weight: 600; }
.hqc-pphoto { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; background: var(--c-teal-soft); }
.hqc-pinit { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; color: var(--c-teal); }
.hqc-pabout { color: var(--c-ink); font-style: italic; }
.hqc-pcard .hqc-chips { margin-top: 8px; align-items: center; }
.hqc-plink { font-size: 12px; font-weight: 600; color: #0F766E; text-decoration: underline; align-self: center; }
