/* wurm.group-inspired clinical UI */
.wg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.wg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  will-change: transform;
}

.wg-orb--a {
  width: 42vw;
  height: 42vw;
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(26, 166, 160, 0.2), transparent 70%);
}

.wg-orb--b {
  width: 36vw;
  height: 36vw;
  top: 40%;
  right: -10%;
  background: radial-gradient(circle, rgba(180, 210, 230, 0.55), transparent 68%);
}

.wg-orb--c {
  width: 28vw;
  height: 28vw;
  bottom: -5%;
  left: 30%;
  background: radial-gradient(circle, rgba(26, 166, 160, 0.12), transparent 70%);
}

.wg-page { padding-bottom: 0; }

/* Links — clinical green */
.jv-body a.wg-text-link,
.jv-body .wg-text-link,
.jv-body main a:not([class*="jv-btn"]):not(.jv-brand):not(.jv-nav__link):not(.jv-study-link):not(.navbar-brand):not(.nav-link):not(.btn) {
  color: var(--jv-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 166, 160, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.jv-body a.wg-text-link:hover,
.jv-body .wg-text-link:hover,
.jv-body main a:not([class*="jv-btn"]):not(.jv-brand):not(.jv-nav__link):not(.jv-study-link):not(.navbar-brand):not(.nav-link):not(.btn):hover {
  color: var(--jv-green-deep);
  border-bottom-color: var(--jv-green);
}

.wg-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.wg-glass {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(28, 31, 30, 0.12);
}

/* Stage: clinical page shell — no full-bleed photo backgrounds */
.wg-stage {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
  padding: 2rem 0 3.5rem;
}

.wg-stage--hero {
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3rem;
}

.wg-stage__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Contained visual (illustration / photo as figure, not cover BG) */
.wg-visual {
  margin: 0;
  padding: 0.85rem;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 22px 55px rgba(28, 31, 30, 0.08);
  transform-style: preserve-3d;
}

.wg-visual img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 1.05rem;
  object-fit: cover;
  object-position: center;
}

.wg-visual--sm { max-width: 280px; }
.wg-visual--md { max-width: 360px; }
.wg-visual--lg { max-width: 480px; }

/* Legacy aliases — keep structure, no photo cover */
.wg-cine {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
  isolation: isolate;
}

.wg-cine--hero { margin-top: 0; }

.wg-cine__bg,
.wg-cine__scrim {
  display: none !important;
}

.wg-cine__content {
  position: relative;
  z-index: 2;
}

.wg-hero__bg,
.wg-wizard__bg {
  position: absolute;
  inset: -15% -5%;
  background-image: var(--wg-bg);
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform-origin: center center;
}

.wg-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.wg-hero__mesh,
.wg-wizard__mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 249, 248, 0.35) 45%, rgba(238, 240, 239, 0.2) 100%);
  pointer-events: none;
}

.wg-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jv-gray-dark);
  margin: 0 0 0.65rem;
}

.wg-h2 {
  font-family: var(--jv-font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--jv-ink);
  margin: 0;
}

.wg-h3 {
  font-family: var(--jv-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--jv-ink);
  margin: 0 0 0.75rem;
}

.wg-muted {
  color: var(--jv-ink-soft);
  line-height: 1.6;
  margin: 0;
}

.wg-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 20px 50px rgba(28, 31, 30, 0.07);
  border-radius: 1.35rem;
  transform-style: preserve-3d;
}

.wg-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--jv-gray-dark);
  opacity: 0.4;
}

.wg-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.wg-hero__title {
  font-family: var(--jv-font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--jv-ink);
  margin: 0 0 1rem;
}

.wg-hero__title em {
  font-style: normal;
  color: var(--jv-green);
}

.wg-hero__lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--jv-ink-soft);
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.wg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.wg-hero__figure {
  margin: 0;
  padding: 1rem;
  justify-self: end;
  max-width: 440px;
}

.wg-hero__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.wg-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.wg-stat {
  padding: 0.75rem 1rem;
  min-width: 5.5rem;
  text-align: center;
}

.wg-stat strong {
  display: block;
  font-family: var(--jv-font-display);
  font-size: 1.35rem;
  color: var(--jv-green);
  line-height: 1.1;
}

.wg-stat span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jv-ink-faint);
}

.wg-strip {
  border-top: 1px solid var(--jv-line);
  border-bottom: 1px solid var(--jv-line);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}

.wg-strip__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jv-ink-soft);
}

.wg-section {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #fff 0%, var(--jv-cream) 100%);
}

.wg-section__head { margin-bottom: 2rem; }

.wg-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.wg-timeline__item {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.wg-timeline__visual {
  min-height: 140px;
  background-image: var(--wg-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

.wg-timeline__body { padding: 1.25rem 1.4rem; }

.wg-timeline__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--jv-green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.wg-timeline__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--jv-ink);
}

.wg-timeline__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--jv-ink-soft);
}

.wg-bento {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.wg-bento__main {
  grid-row: span 2;
  padding: 1.75rem;
}

.wg-bento__img {
  margin: 0;
  padding: 0.75rem;
  overflow: hidden;
}

.wg-bento__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.85rem;
  display: block;
}

.wg-bento__side { padding: 1.35rem; }

.wg-checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.wg-checklist li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--jv-ink-soft);
  line-height: 1.5;
}

.wg-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--jv-green);
  font-weight: 700;
}

.wg-cta {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.wg-cta__card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
}

.wg-wizard {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.wg-wizard__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  width: 100%;
  text-align: center;
}

.wg-wizard__nav {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.wg-wizard__pip {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--jv-gray);
  color: var(--jv-ink-faint);
  border: 2px solid transparent;
}

.wg-wizard__pip.is-current {
  background: var(--jv-green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(47, 125, 74, 0.2);
  transform: scale(1.08);
}

.wg-wizard__pip.is-done {
  background: var(--jv-green-soft);
  color: var(--jv-green-deep);
}

.wg-wizard__pip.is-locked { opacity: 0.35; }

.wg-wizard__title {
  font-family: var(--jv-font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--jv-ink);
  margin: 0 0 0.85rem;
}

.wg-wizard__lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--jv-ink-soft);
  margin: 0 auto 1.25rem;
  max-width: 28rem;
}

.wg-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--jv-gray);
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto 1.5rem;
}

.wg-progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jv-green-mid), var(--jv-green));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.wg-wizard__cta { display: inline-flex; padding: 0.5rem 0.25rem; }

.wg-wizard__wait {
  padding: 1.25rem 1.5rem;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.wg-wizard__wait p { margin: 0; color: var(--jv-ink-soft); }

.wg-journey-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wg-details {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  margin-top: 1.25rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.wg-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--jv-green);
  font-size: 0.9rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--jv-line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wg-details summary:hover {
  color: var(--jv-green-deep);
  background: #fff;
  border-color: rgba(47, 125, 74, 0.35);
}

.wg-details summary::-webkit-details-marker { display: none; }
.wg-details summary::before { content: "▶ "; font-size: 0.7rem; }
.wg-details[open] summary::before { content: "▼ "; }

.wg-details[open] {
  width: min(640px, 100%);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--jv-line);
  border-radius: 1rem;
  padding: 0.85rem 1.1rem;
}

.wg-details[open] summary {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0.25rem;
}

.wg-details[open] summary:hover {
  background: transparent;
  border-color: transparent;
}

.wg-steps-compact {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.wg-steps-compact__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-top: 1px solid var(--jv-line);
  font-size: 0.88rem;
  color: var(--jv-ink-soft);
}

.wg-steps-compact__item.is-current { color: var(--jv-ink); font-weight: 600; }
.wg-steps-compact__item.is-done { opacity: 0.65; }
.wg-steps-compact__item.is-locked { opacity: 0.4; }

.wg-steps-compact__n {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--jv-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.wg-steps-compact__item.is-current .wg-steps-compact__n {
  background: var(--jv-green);
  color: #fff;
}

.wg-steps-compact__item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wg-steps-compact__item em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--jv-green-deep);
}

.wg-bookings {
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.wg-bookings__list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.wg-bookings__list li {
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.wg-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--jv-line);
}

.wg-sticky__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--jv-ink-soft);
}

.wg-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.wg-reveal.is-in,
.jv-reveal.is-in {
  opacity: 1;
  transform: none;
}

.jv-nav {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(28, 31, 30, 0.06);
}

@media (max-width: 900px) {
  .wg-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wg-hero__lead { margin-inline: auto; }
  .wg-hero__actions,
  .wg-stats { justify-content: center; }
  .wg-hero__figure {
    justify-self: center;
    max-width: 300px;
  }
  .wg-bento { grid-template-columns: 1fr; }
  .wg-bento__main { grid-row: auto; }
  .wg-timeline__item { grid-template-columns: 1fr; }
  .wg-timeline__visual { min-height: 120px; }
}

/* —— Journey / account management —— */
.wg-journey {
  max-width: none;
  margin: 0;
  padding: 0 0 2rem;
}

.wg-journey > .wg-wizard--fan {
  min-height: calc(100vh - 5.5rem);
  min-height: calc(100svh - 5.5rem);
}

.wg-journey__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.wg-manage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem;
  max-width: 1080px;
  position: relative;
  z-index: 5;
}

.wg-manage a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--jv-ink-soft);
  text-decoration: none;
  border: 1px solid var(--jv-line);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wg-manage a:hover {
  color: var(--jv-green-deep);
  border-color: rgba(47, 125, 74, 0.35);
  background: #fff;
}

/* Fan of document milestones — 3 cards, caption below doc */
.wg-wizard--fan .wg-wizard__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.wg-wizard--fan .wg-wizard__lead {
  margin-bottom: 0.75rem;
}

@keyframes wg-fan-caption-in {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.wg-fan {
  --fan-n: 3;
  --fan-card-w: clamp(7.25rem, 11vw, 9.25rem);
  --fan-step: clamp(6.75rem, 10.5vw, 8.75rem);
  --fan-angle: 12deg;
  --fan-shadow: 0 10px 22px rgba(28, 31, 30, 0.1);
  --fan-shadow-strong: 0 14px 28px rgba(28, 31, 30, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0.5rem auto 1.75rem;
  padding: 0;
}

.wg-fan__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1.25rem;
  /* Extra bottom padding: overflow-x:auto forces y-clip; shadows need room */
  padding: 1.25rem 1.25rem 2.25rem;
  margin: 0 -0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 31, 30, 0.18) transparent;
}

.wg-fan__scroll::-webkit-scrollbar {
  height: 6px;
}

.wg-fan__scroll::-webkit-scrollbar-thumb {
  background: rgba(28, 31, 30, 0.16);
  border-radius: 999px;
}

.wg-fan__deck {
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0.35rem 0 0.25rem;
  width: calc(var(--fan-card-w) + (var(--fan-n) - 1) * var(--fan-step));
  min-width: min(100%, calc(var(--fan-card-w) + (var(--fan-n) - 1) * var(--fan-step)));
  height: calc(var(--fan-card-w) * 1.45 + 5.75rem);
  min-height: 17rem;
}

.wg-fan__card {
  --fan-mid: calc((var(--fan-n) - 1) / 2);
  --fan-d: calc(var(--i, 0) - var(--fan-mid));
  --fan-abs: max(var(--fan-d), calc(var(--fan-d) * -1));
  --fan-rot: calc(var(--fan-d) * var(--fan-angle));
  position: absolute;
  bottom: 0;
  left: calc(50% + var(--fan-d) * var(--fan-step) - var(--fan-card-w) / 2);
  width: var(--fan-card-w);
  margin: 0;
  padding: 0;
  transform-origin: 50% 100%;
  transform: rotate(var(--fan-rot));
  transition:
    transform 0.38s var(--ease-out),
    opacity 0.38s var(--ease-out);
  scroll-snap-align: center;
  z-index: calc(20 - var(--fan-abs) * 4);
}

.wg-fan__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  line-height: normal;
  border-radius: 0.55rem;
  cursor: default;
  box-shadow: var(--fan-shadow);
  transition: box-shadow 0.38s var(--ease-out);
}

.wg-fan__card.is-open .wg-fan__link { cursor: pointer; }

.wg-fan__card.is-current {
  z-index: 24;
  transform: rotate(var(--fan-rot)) translateY(-0.5rem) scale(1.05);
}

.wg-fan__card.is-current .wg-fan__link {
  box-shadow: var(--fan-shadow-strong);
}

.wg-fan__card:hover,
.wg-fan__card:focus-within {
  --fan-rot: calc(var(--fan-d) * var(--fan-angle) * 0.35);
  z-index: 28;
  transform: rotate(var(--fan-rot)) translateY(-0.65rem) scale(1.06);
}

.wg-fan__card:hover .wg-fan__link,
.wg-fan__card:focus-within .wg-fan__link {
  box-shadow: var(--fan-shadow-strong);
}

.wg-fan__doc-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
  border-radius: 0.45rem 0.45rem 0 0;
  overflow: visible;
  background: transparent;
}

.wg-fan__doc {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.wg-fan__caption {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.2rem;
  min-height: 3.35rem;
  padding: 0.45rem 0.35rem 0.4rem;
  margin-top: 0;
  pointer-events: none;
  line-height: 1.2;
  opacity: 0;
  animation: wg-fan-caption-in 0.65s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 0.14s + 0.18s);
  background: #fff;
  border-radius: 0 0 0.45rem 0.45rem;
}

.wg-fan__card.is-current .wg-fan__caption {
  opacity: 1;
  animation-delay: calc(var(--i, 0) * 0.14s + 0.1s);
}

.wg-fan__card.is-done .wg-fan__caption,
.wg-fan__card.is-locked .wg-fan__caption {
  opacity: 0.72;
}

.wg-fan__badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.18rem 0.44rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--jv-ink-faint);
  border: 1px solid rgba(28, 31, 30, 0.06);
}

.wg-fan__card.is-done .wg-fan__badge {
  color: var(--jv-green-deep);
  background: var(--jv-green-soft);
  border-color: transparent;
}

.wg-fan__card.is-current .wg-fan__badge,
.wg-fan__card.is-open .wg-fan__badge {
  color: #fff;
  background: var(--jv-green);
  border-color: transparent;
}

.wg-fan__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  min-height: calc(1.14em * 2);
  font-family: var(--jv-font-display);
  font-size: clamp(0.62rem, 0.75vw, 0.72rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--jv-ink);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.wg-fan__hint {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(0.54rem, 0.68vw, 0.62rem);
  line-height: 1.32;
  color: var(--jv-ink-soft);
}

.wg-fan__card:not(.is-current) .wg-fan__hint,
.wg-fan__card.is-done .wg-fan__hint,
.wg-fan__card.is-locked .wg-fan__hint {
  display: none;
}

.wg-fan__card:not(.is-current) .wg-fan__cta {
  display: none;
}

.wg-fan__cta {
  margin-top: 0.1rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jv-green-deep);
}

.wg-fan__card.is-done { opacity: 0.82; }
.wg-fan__card.is-done .wg-fan__doc { opacity: 0.88; }
.wg-fan__card.is-locked { opacity: 0.55; }
.wg-fan__card.is-locked .wg-fan__doc {
  opacity: 0.72;
  filter: grayscale(0.2);
}

.wg-fan__link:focus-visible {
  outline: 2px solid rgba(47, 125, 74, 0.55);
  outline-offset: 2px;
  border-radius: 0.55rem;
}

/* Tablet: tighter fan + horizontal scroll */
@media (max-width: 900px) and (min-width: 641px) {
  .wg-fan {
    --fan-card-w: clamp(6.75rem, 12vw, 8.5rem);
    --fan-step: clamp(5.75rem, 9vw, 7.5rem);
    --fan-angle: 10deg;
  }

  .wg-fan__deck {
    min-height: 15.5rem;
  }
}

/* Mobile: vertical stack */
@media (max-width: 640px) {
  .wg-fan {
    --fan-card-w: 100%;
    max-width: 22rem;
  }

  .wg-fan__scroll {
    overflow: visible;
    padding: 0 1.25rem;
  }

  .wg-fan__deck {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .wg-fan__card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    flex: none;
    transform: none;
    scroll-snap-align: none;
  }

  .wg-fan__card.is-current {
    transform: none;
  }

  .wg-fan__card.is-open:hover,
  .wg-fan__card.is-open:focus-within,
  .wg-fan__card.is-current:hover,
  .wg-fan__card.is-current:focus-within {
    transform: translateY(-2px) scale(1.01);
  }

  .wg-fan__link {
    flex-direction: column;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.85) inset,
      0 12px 28px rgba(28, 31, 30, 0.07);
  }

  .wg-fan__doc-wrap {
    max-width: 8rem;
    margin: 0 auto;
  }

  .wg-fan__caption {
    min-height: 0;
    margin-top: 0.35rem;
    padding: 0.35rem 0.25rem 0;
    background: none;
    opacity: 1;
    animation: none;
  }

  .wg-fan__title {
    min-height: 0;
  }

  .wg-fan__hint { -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .wg-fan__card,
  .wg-fan__card.is-open:hover,
  .wg-fan__card.is-open:focus-within,
  .wg-fan__card.is-current:hover,
  .wg-fan__card.is-current:focus-within {
    transition: none !important;
  }

  .wg-fan__caption {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* Consent PDF — full width, tall */
.wg-consent {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.consent-pdf-shell {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--jv-line);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(28, 31, 30, 0.07);
  margin-bottom: 1.25rem;
}

.consent-pdf-frame {
  width: 100%;
  height: min(82vh, 920px);
  min-height: 560px;
  border: 0;
  display: block;
  background: #fff;
}

.consent-pdf-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--jv-line);
  background: rgba(248, 249, 248, 0.9);
  font-size: 0.88rem;
}

.signature-pad {
  width: 100%;
  max-width: 100%;
  height: 180px;
  border: 1px solid var(--jv-line);
  border-radius: 0.85rem;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}

/* Questionnaire waiting */
.wg-wait-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.75rem;
  text-align: center;
}

.wg-wait-card .wg-visual {
  margin: 0 auto 1.25rem;
}

/* Account hub */
.wg-hub {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  gap: 1rem;
}

.wg-hub__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .wg-journey__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .wg-journey__grid .wg-visual {
    margin-inline: auto;
    order: -1;
    max-width: 260px;
  }
  .consent-pdf-frame {
    height: min(70vh, 720px);
    min-height: 420px;
  }
}

/* Soft clinical scene background (bottom-heavy illustration) */
.wg-scene-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.wg-scene-bg__img {
  position: absolute;
  inset: -8% -4% -18% -4%;
  background-image: url("img/qmrt/scene-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.52;
  filter: saturate(0.95) contrast(0.98);
}

.wg-scene-bg__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(245, 250, 252, 0.48) 38%, rgba(255, 255, 255, 0.28) 68%, rgba(243, 248, 251, 0.62) 100%),
    radial-gradient(70% 50% at 50% 0%, rgba(255, 255, 255, 0.78), transparent 70%);
}

/* Morphing viewport frame (wurm.group-style organic border) — visuals only */
.wg-morph {
  --wg-morph-r1: 42% 58% 48% 52% / 52% 42% 58% 48%;
  --wg-morph-r2: 58% 42% 55% 45% / 45% 58% 42% 55%;
  --wg-morph-r3: 48% 52% 42% 58% / 58% 48% 52% 42%;
  border-radius: var(--wg-morph-r1);
  overflow: hidden;
  animation: wg-morph-breathe 14s ease-in-out infinite;
  will-change: border-radius;
}

.wg-morph--frame {
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 22px 55px rgba(26, 42, 51, 0.08);
}

.wg-morph img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

@keyframes wg-morph-breathe {
  0%, 100% { border-radius: 42% 58% 48% 52% / 52% 42% 58% 48%; }
  33% { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; }
  66% { border-radius: 48% 52% 42% 58% / 58% 48% 52% 42%; }
}

@media (prefers-reduced-motion: reduce) {
  .wg-morph { animation: none; border-radius: 1.5rem; }
  .wg-scene-bg__img { opacity: 0.4; }
}

/* Bootstrap tile grid for landing / hub */
.wg-tiles {
  /* no perspective — hover lift is CSS-only */
}

.wg-tiles .col > .card:not(.wg-card-tile) {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 2px 4px rgba(26, 42, 51, 0.03),
    0 10px 22px rgba(26, 42, 51, 0.05),
    0 24px 48px rgba(47, 125, 74, 0.06);
  height: 100%;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.wg-tiles .col > .card:not(.wg-card-tile)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 42%,
    rgba(47, 125, 74, 0.04) 100%
  );
  pointer-events: none;
  opacity: 0.85;
}

.wg-tiles .col > .card:not(.wg-card-tile)::after {
  content: "";
  position: absolute;
  inset: auto 12% -8px 12%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26, 42, 51, 0.14) 0%, transparent 72%);
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.32s ease;
}

.wg-tiles .col > .card:not(.wg-card-tile):hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 6px 14px rgba(26, 42, 51, 0.05),
    0 22px 44px rgba(26, 42, 51, 0.09),
    0 36px 64px rgba(47, 125, 74, 0.1);
}

.wg-tiles .col > .card:not(.wg-card-tile):hover::after {
  opacity: 0.35;
}

.wg-tiles .card-title {
  font-family: var(--jv-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--jv-ink);
}

.wg-tiles .card-text {
  color: var(--jv-ink-soft);
  line-height: 1.55;
}

/* Landing page polish */
.wg-landing {
  padding-top: 0.5rem;
}

.wg-landing__section {
  scroll-margin-top: 1rem;
}

.wg-landing__section + .wg-landing__section {
  margin-top: 0.25rem;
}

.wg-landing__cta-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 252, 250, 0.88) 100%);
  border: 1px solid rgba(47, 125, 74, 0.12);
}

.wg-landing .wg-stats .wg-stat {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
}

@media (max-width: 900px) {
  .wg-landing .wg-stats {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  .wg-landing .wg-stats .wg-stat {
    flex: 1 1 calc(33% - 0.5rem);
    min-width: 5rem;
    text-align: center;
  }
}

.wg-tile-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jv-green-soft);
  color: var(--jv-green-deep);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.wg-tile-illust {
  margin: 0 0 0.85rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .wg-tiles .col > .card:not(.wg-card-tile),
  .wg-tiles .col > .card:not(.wg-card-tile):hover {
    transform: none !important;
    transition: box-shadow 0.25s ease;
  }
}

.wg-tile-illust img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 7.5rem;
  object-fit: contain;
  border-radius: 0.55rem;
}

.wg-tile-illust--sm img {
  max-height: 5.5rem;
}

/* Landing horizontal tiles — illustration beside text, doc peek */
.wg-landing__benefits .col,
.wg-landing__steps .col {
  overflow: visible;
}

/* Unified landing card tiles — glass, layered shadow, subtle 3D */
.wg-card-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(47, 125, 74, 0.04),
    0 2px 4px rgba(26, 42, 51, 0.03),
    0 10px 24px rgba(26, 42, 51, 0.06),
    0 24px 48px rgba(47, 125, 74, 0.07);
  height: 100%;
  transform-style: preserve-3d;
  perspective: 900px;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.wg-card-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(26, 166, 160, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.wg-card-tile::after {
  content: "";
  position: absolute;
  inset: auto 10% -10px 10%;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(26, 42, 51, 0.12) 0%, transparent 72%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.32s ease;
}

.wg-card-tile:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 0 0 1px rgba(47, 125, 74, 0.08),
    0 6px 14px rgba(26, 42, 51, 0.06),
    0 20px 40px rgba(26, 42, 51, 0.09),
    0 36px 64px rgba(47, 125, 74, 0.11);
}

.wg-card-tile:hover::after {
  opacity: 0.3;
}

.wg-card-tile__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 11rem;
  height: 100%;
  border-radius: inherit;
}

.wg-card-tile--reverse .wg-card-tile__inner {
  flex-direction: row-reverse;
}

.wg-card-tile__media {
  flex: 0 0 50%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background: rgba(244, 248, 250, 0.65);
  border-right: 1px solid rgba(255, 255, 255, 0.8);
}

.wg-card-tile--reverse .wg-card-tile__media {
  border-right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.8);
}

.wg-card-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.wg-card-tile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
}

.wg-card-tile--reverse .wg-card-tile__body {
  padding: 1.25rem 1.1rem 1.25rem 1.25rem;
}

.wg-card-tile--benefit {
  min-height: 11rem;
}

.wg-card-tile--benefit .card-title {
  margin-bottom: 0.45rem;
}

/* Step tiles — large illustration on top */
.wg-card-tile--step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.wg-card-tile--step .wg-card-tile__media--step {
  flex: 0 0 auto;
  width: 100%;
  height: 14rem;
  padding: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(244, 248, 250, 0.55);
  overflow: hidden;
}

.wg-card-tile--step .wg-card-tile__media--step img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.wg-card-tile--step .wg-card-tile__body {
  flex: 1;
  padding: 0.9rem 1rem 1.1rem;
}

.wg-card-tile--step .wg-tile-icon {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
  border-radius: 0.65rem;
}

.wg-card-tile--step .card-title {
  line-height: 1.25;
}

.wg-card-tile--step .card-text {
  line-height: 1.45;
}

@media (max-width: 575.98px) {
  .wg-card-tile--benefit .wg-card-tile__media {
    flex: 0 0 44%;
  }

  .wg-card-tile--benefit .wg-card-tile__media img {
    max-height: none;
  }

  .wg-card-tile--benefit .wg-card-tile__body {
    padding: 0.95rem 0.9rem;
  }

  .wg-card-tile--step .wg-card-tile__media--step {
    height: 11rem;
  }

  .wg-card-tile--step .wg-card-tile__media--step img {
    max-height: none;
    object-fit: cover;
  }

  .wg-card-tile--step .wg-card-tile__body {
    padding: 0.75rem 0.85rem 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wg-card-tile,
  .wg-card-tile:hover {
    transform: none !important;
    transition: box-shadow 0.25s ease;
  }
}

.wg-visual.wg-morph,
.wg-visual.wg-morph--frame {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* —— Native questionnaire wizard —— */
.wg-questionnaire {
  max-width: none;
  padding-bottom: 2.5rem;
}

.wg-questionnaire__stage {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.wg-questionnaire__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.wg-qprogress {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  padding-top: 0.25rem;
}

.wg-qprogress__segments {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.wg-qprogress__segment {
  flex: 1 1 0;
  min-width: 0;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--jv-gray);
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.wg-qprogress__segment.is-done {
  background: var(--jv-green);
}

.wg-qprogress__segment.is-current {
  background: var(--jv-green);
  transform: scaleY(1.45);
  box-shadow: 0 0 0 2px rgba(47, 125, 74, 0.22);
}

.wg-qprogress__segment.is-pending {
  background: var(--jv-gray);
  opacity: 0.45;
}

.wg-qprogress__label {
  margin-bottom: 0;
}

.wg-questionnaire__title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin-bottom: 0.65rem;
}

.wg-questionnaire__lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.wg-questionnaire__form {
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 1.35rem;
}

.wg-qg__section {
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}

.wg-qg__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jv-green);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.wg-qg__section-title {
  font-family: var(--jv-font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--jv-ink);
}

.wg-qg__section-text {
  color: var(--jv-ink-soft);
  margin-bottom: 0;
  line-height: 1.55;
}

.wg-qg__question {
  padding: 1.35rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--jv-line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.62);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wg-qg__question.is-invalid {
  border-color: rgba(180, 35, 24, 0.35);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.wg-qg__label {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  color: var(--jv-ink);
}

.wg-qg__error {
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.85rem 0 0;
}

.wg-qg__vas {
  display: grid;
  gap: 0.85rem;
}

.wg-qg__vas-value {
  font-family: var(--jv-font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--jv-green-deep);
  min-height: 2.75rem;
}

.wg-qg__vas-value.is-hint {
  font-size: 1.15rem;
  color: var(--jv-ink-soft);
  font-family: var(--jv-font-body, inherit);
  font-weight: 600;
}

.wg-qg__vas-track {
  padding: 0.35rem 0.15rem;
}

.wg-qg__vas-range {
  width: 100%;
  height: 0.65rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.wg-qg__vas-range.is-unset {
  opacity: 0.72;
}

.wg-qg__vas-range::-webkit-slider-runnable-track {
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(26, 166, 160, 0.18), rgba(47, 125, 74, 0.28));
}

.wg-qg__vas-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: -0.5rem;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--jv-green);
  box-shadow: 0 4px 14px rgba(47, 125, 74, 0.35);
}

.wg-qg__vas-range::-moz-range-track {
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(26, 166, 160, 0.18), rgba(47, 125, 74, 0.28));
}

.wg-qg__vas-range::-moz-range-thumb {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--jv-green);
  box-shadow: 0 4px 14px rgba(47, 125, 74, 0.35);
}

.wg-qg__vas-poles {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--jv-ink-soft);
}

.wg-qg__vas-poles span:last-child {
  text-align: right;
}

.wg-qg__na {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--jv-line);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  cursor: pointer;
}

.wg-qg__na input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--jv-green);
}

.wg-qg__num {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  max-width: 20rem;
}

.wg-qg__num-input {
  min-height: 3.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-color: var(--jv-line);
}

.wg-qg__num-input:focus {
  border-color: rgba(47, 125, 74, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 125, 74, 0.12);
}

.wg-qg__num-unit {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  min-height: 3.25rem;
  border: 1px solid var(--jv-line);
  border-radius: 0.85rem;
  background: rgba(248, 249, 248, 0.95);
  font-weight: 700;
  color: var(--jv-ink-soft);
  white-space: nowrap;
}

.wg-qg__choices {
  display: grid;
  gap: 0.75rem;
}

.wg-qg__choice {
  display: block;
  margin: 0;
  cursor: pointer;
}

.wg-qg__choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wg-qg__choice-label {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--jv-line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--jv-ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wg-qg__choice:hover .wg-qg__choice-label {
  border-color: rgba(47, 125, 74, 0.35);
  background: #fff;
}

.wg-qg__choice.is-selected .wg-qg__choice-label,
.wg-qg__choice-input:checked + .wg-qg__choice-label {
  border-color: var(--jv-green);
  background: rgba(47, 125, 74, 0.08);
  box-shadow: 0 0 0 3px rgba(47, 125, 74, 0.12);
}

.wg-qg__choice-input:focus-visible + .wg-qg__choice-label {
  outline: 2px solid var(--jv-green);
  outline-offset: 2px;
}

.wg-questionnaire__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.wg-questionnaire__actions .jv-btn--lg {
  flex: 1 1 12rem;
  min-height: 3.25rem;
}

@media (min-width: 768px) {
  .wg-questionnaire__form {
    padding: 2.25rem 2.5rem;
  }

  .wg-qg__question {
    padding: 1.65rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .wg-qg__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wg-qg__choices .wg-qg__choice:only-child,
  .wg-qg__choices .wg-qg__choice-label {
    min-height: 100%;
  }
}

@media (max-width: 767px) {
  .wg-qprogress {
    max-width: none;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .wg-qprogress__segments {
    gap: 0.2rem;
  }

  .wg-questionnaire__actions {
    flex-direction: column-reverse;
  }

  .wg-questionnaire__actions .jv-btn--lg {
    width: 100%;
  }
}
