/* HELFANO INTERACTIVE ASSISTANT — only the guided layer, not the approved intro. */
#helfano-assistant[data-journey] {
  --assistant-avatar-size: clamp(115px, 10vw, 150px);
  display: block;
  box-sizing: border-box;
  height: var(--journey-visible-height, 100dvh);
  top: var(--journey-viewport-top, 0px);
  padding: 82px 0 36px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  pointer-events: auto;
}
#helfano-assistant[data-journey] .helfano-assistant__backdrop { position: fixed; }
#helfano-assistant[data-journey] .helfano-assistant__stage {
  z-index: 2;
  width: min(1340px, calc(100% - 80px));
  max-width: none;
  min-height: calc(var(--journey-visible-height, 100dvh) - 118px);
  margin: 0 auto;
  grid-template-columns: var(--assistant-avatar-size) minmax(0, 470px);
  justify-content: start;
  gap: 30px;
}
#helfano-assistant[data-journey] #helfano-speech { max-width: 540px; padding: 28px; background: linear-gradient(135deg, rgba(20,35,43,.97), rgba(12,22,34,.97)); }
#helfano-assistant[data-journey-step="success"] { --assistant-avatar-size: 170px; }
.hj-exit {
  position: fixed;
  top: max(22px, env(safe-area-inset-top));
  right: max(28px, env(safe-area-inset-right));
  z-index: 5;
  padding: 8px 0 8px 12px;
  min-height: 40px;
  background: none;
  border: 0;
  color: #b6c7ce;
  font: 500 12px/1.5 "Manrope", sans-serif;
  cursor: pointer;
  pointer-events: auto;
  transition: color .2s;
}
.hj-exit:hover { color: #fff; }
.hj-panel { min-width: 0; }
.hj-nav { display: flex; align-items: center; gap: 18px; margin: -6px 0 17px; }
.hj-back { min-width: 40px; min-height: 40px; padding: 0; border: 0; background: none; color: #aec6cc; font-size: 22px; cursor: pointer; text-align: left; }
.hj-back:hover { color: #fff; }
.hj-progress { flex: 1; height: 2px; background: #829b9c22; overflow: hidden; }
.hj-progress span { display: block; width: 100%; height: 100%; background: #73d3d0; transform-origin: left; transition: transform .65s ease; }
#helfano-speech .hj-question { font-size: clamp(24px, 2.2vw, 31px); line-height: 1.18; letter-spacing: -.035em; margin: 0 0 24px; max-width: none; }
#helfano-speech .hj-question:focus { outline: none; }
#helfano-speech .hj-introduction { color: #a5c0c4; font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.hj-options { display: grid; gap: 9px; }
.hj-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 49px;
  padding: 13px 15px;
  border: 1px solid #b9d6de24;
  border-radius: 12px;
  background: #b2d0d006;
  color: #e7eef1;
  font: 500 14px/1.45 "Manrope", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.hj-option:hover, .hj-option[aria-pressed="true"] { background: #73d3d018; border-color: #73d3d079; }
.hj-option-arrow { color: #77c8c6; flex-shrink: 0; }
.hj-options-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hj-options-compact .hj-option { min-height: 50px; }
.hj-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  margin: 22px 0 0;
  border: 1px solid #75d6d0;
  border-radius: 12px;
  background: #75d6d0;
  color: #092228;
  font: 650 14px/1.4 "Manrope", sans-serif;
  text-align: center;
  cursor: pointer;
}
.hj-primary:hover { background: #94e5df; }
.hj-primary:disabled { opacity: .6; cursor: wait; }
.hj-text-button { display: block; margin: 14px auto 0; padding: 10px; min-height: 44px; background: none; border: 0; color: #b9ced3; font: 500 13px/1.4 "Manrope", sans-serif; cursor: pointer; }
.hj-text-button:hover { color: #fff; }
.hj-answer-detail { margin-top: 20px; }
.hj-field { display: grid; gap: 8px; min-width: 0; color: #cddcdf; font-size: 12px; line-height: 1.5; }
.hj-field input, .hj-field textarea {
  width: 100%; box-sizing: border-box; min-width: 0; min-height: 48px;
  padding: 12px 13px; border: 1px solid #91b1bd4d; border-radius: 10px;
  color: #f1f5f6; background: #08141d7d; font: 400 16px/1.5 "Manrope", sans-serif;
  outline: none; box-shadow: none; scroll-margin: 80px 0 25px;
}
.hj-field textarea { resize: vertical; min-height: 80px; max-height: 160px; }
.hj-field input::placeholder, .hj-field textarea::placeholder { color: #859ba4; opacity: 1; }
.hj-field input:focus, .hj-field textarea:focus { border-color: #75d6d0; box-shadow: 0 0 0 2px #75d6d026; }
.hj-field [aria-invalid="true"] { border-color: #f5b7a9; }
#helfano-speech .hj-session-note { margin: 20px 0 0; font-size: 11px; line-height: 1.6; color: #91a9b1; }
.hj-summary { margin: 0; }
.hj-summary > div { display: grid; grid-template-columns: minmax(105px, .85fr) minmax(0, 1.4fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid #b9d6de1a; }
.hj-summary dt { font-size: 12px; line-height: 1.6; color: #94aeb8; }
.hj-summary dd { margin: 0; font-size: 14px; line-height: 1.6; color: #e8f0f2; overflow-wrap: anywhere; }
.hj-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin-bottom: 17px; }
.hj-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; margin: 20px 0 0; font: 400 11px/1.65 "Manrope", sans-serif; color: #b6c9d0; cursor: pointer; }
.hj-consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #75d6d0; }
.hj-consent a { color: #a7e5de; text-decoration: underline; text-underline-offset: 3px; }
.hj-consent .hj-field-error { grid-column: 2; }
.hj-field-error { color: #ffc7ba; font-size: 11px; line-height: 1.5; }
.hj-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#helfano-speech .hj-form-status { color: #ffd3c4; font-size: 13px; line-height: 1.55; margin: 12px 0 0; }
#helfano-speech .hj-form-status:empty { margin: 0; }
#helfano-speech .hj-preview-note { margin: 15px 0 0; color: #d1c6a5; font-size: 11px; line-height: 1.6; }
#helfano-speech .hj-success-copy { color: #b6ccd2; font-size: 17px; line-height: 1.6; }

@media (max-width: 1320px) and (min-width: 761px) {
  #helfano-assistant[data-journey] .helfano-assistant__stage { grid-template-columns: var(--assistant-avatar-size) minmax(0, 410px); gap: 23px; width: calc(100% - 52px); }
  #helfano-assistant[data-journey] { --assistant-avatar-size: 115px; }
}
@media (max-width: 980px) and (min-width: 761px) {
  #helfano-assistant[data-journey] .helfano-assistant__stage { justify-content: center; }
}
@media (min-width: 761px) {
  #helfano-assistant[data-journey][data-journey-step="success"] { --assistant-avatar-size: 170px; }
}
@media (max-width: 760px) {
  #helfano-assistant[data-journey] { --assistant-avatar-size: 96px; padding: 72px 0 28px; }
  #helfano-assistant[data-journey] .helfano-assistant__stage { width: min(450px, calc(100% - 32px)); min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; }
  #helfano-assistant[data-journey] #helfano-speech { padding: 21px; border-radius: 21px; }
  #helfano-speech .hj-question { font-size: 25px; margin-bottom: 21px; }
  .hj-exit { top: max(13px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); font-size: 11px; }
  .hj-nav { margin-bottom: 12px; }
  .hj-option { min-height: 49px; font-size: 13px; padding: 12px; }
  .hj-primary { font-size: 13px; }
  .hj-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #helfano-assistant[data-journey-step="success"] { --assistant-avatar-size: 125px; }
}
@media (max-width: 360px) {
  #helfano-speech .hj-question { font-size: 23px; }
  #helfano-assistant[data-journey] #helfano-speech { padding: 18px; }
  .hj-options-compact { grid-template-columns: minmax(0, 1fr); }
  .hj-summary > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  #helfano-assistant[data-journey] { --assistant-avatar-size: 84px; padding-top: 60px; }
  #helfano-assistant[data-journey] .helfano-assistant__stage { grid-template-columns: 84px minmax(0, 450px); width: calc(100% - 40px); gap: 20px; }
  #helfano-assistant[data-journey] #helfano-logo { align-self: start; position: sticky; top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .hj-progress span { transition: none; }
}
