/* Self assessment: "Do you need to send a tax return?" question cards (includes/svc/set-sa.php). */
.qz { overflow: clip; }
.qz__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.04) 35px, rgba(255,255,255,.04) 36px); animation: so-drift-36 22s linear infinite; }
.qz__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(20px, 4.4vw, 70px); width: 1px; background: rgba(163,24,62,.6); }
.qz__oval { position: absolute; right: -8vw; top: 50%; width: min(1000px, 72vw); transform: translateY(-50%); overflow: visible; pointer-events: none; }
.qz__oval ellipse { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1.4; }
.qz__oval .dash { stroke: rgba(242,214,75,.22); stroke-dasharray: 3 12; animation: dash-turn 50s linear infinite; }
.qz__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.qz h2 { color: #fff; margin-bottom: 18px; }
.qz__progress { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 30px 0 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); }
.qz__count { margin: 0; font-weight: 700; color: #fff; min-width: 9.5em; }
.qz__count b { color: var(--highlight); font-weight: 700; }
.qz__dots { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.qz__dots li { width: 34px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); transition: background .4s; }
.qz__dots li.is-done { background: rgba(255,255,255,.6); }
.qz__dots li.is-now { background: var(--highlight); }
.qz__restart { min-height: 44px; padding: 8px 16px; border: 1.5px solid rgba(255,255,255,.5); border-radius: var(--btn-r); background: none; color: #fff; font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.qz__restart:hover { background: #fff; color: var(--ink-blue); }
.qz__small { font-size: .98rem; color: var(--on-dark-soft); margin: 0; }

.qz__stage { position: relative; min-height: 430px; }
.qz__nojs { display: none; }
.qz__stack { position: relative; margin: 0; padding: 0; list-style: none; height: 400px; }
.qz__card { position: absolute; left: 0; right: 0; top: 0; min-height: 340px; padding: 30px 32px 28px; background: #fff; color: var(--ink); border-left: 4px solid var(--crimson); box-shadow: 0 28px 60px rgba(4,8,14,.45); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #F2E6E9 31px, #F2E6E9 32px); background-position: 0 14px; transform-origin: 50% 100%; display: flex; flex-direction: column; }
.qz__num { margin: 0 0 14px; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--crimson); }
.qz__num span { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.qz__q { margin: 0; text-wrap: balance; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.15; margin-bottom: 12px; }
.qz__help { color: var(--ink-soft); margin-bottom: 22px; }
.qz__btns { display: flex; gap: 12px; margin-top: auto; }
.qz__btns .btn { min-width: 120px; }
/* The stack: cards behind sit lower and smaller, alternately turned */
.qz-ready .qz__card { transform: translateY(calc(var(--d, 0) * 16px)) scale(calc(1 - var(--d, 0) * .045)) rotate(calc(var(--r, 0) * 1deg)); }
.qz-ready .qz__card[data-gone] { visibility: hidden; }

.qz__result { position: absolute; left: 0; right: 0; top: 0; min-height: 360px; padding: 32px 34px 30px; background: #fff; color: var(--ink); border-left: 4px solid var(--highlight); box-shadow: 0 28px 60px rgba(4,8,14,.45); }
.qz__result[hidden] { display: none; }
.qz__rk { margin: 0 0 8px; font-weight: 700; color: var(--crimson); }
.qz__result h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.12; margin-bottom: 14px; padding-right: 90px; }
.qz__result p { color: var(--ink-soft); }
.qz__result p[data-qz-why] { color: var(--ink); font-weight: 600; }
.qz__result .btn-row { margin-top: 22px; }
.qz__stamp { position: absolute; right: -26px; top: -30px; width: 130px; height: 82px; display: grid; place-content: center; text-align: center; border: 3px solid var(--crimson); outline: 1.5px solid var(--crimson); outline-offset: -9px; border-radius: 50%; color: var(--crimson); background: rgba(255,255,255,.92); transform: rotate(-12deg); }
.qz__stamp span { font-family: var(--serif); font-size: 1.55rem; line-height: 1; text-transform: uppercase; letter-spacing: .06em; }
.qz__stamp small { font-weight: 700; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.qz__stamp--soft { border-color: var(--ink-blue); outline-color: var(--ink-blue); color: var(--ink-blue); }

/* No JS or the safety net: the questions read as a plain list */
.no-js .qz__nojs, .motion-fail .qz__nojs { display: block; color: #fff; font-weight: 700; margin-bottom: 16px; }
.no-js .qz__stack, .motion-fail .qz__stack { height: auto; display: grid; gap: 14px; }
.no-js .qz__card, .motion-fail .qz__card { position: relative; min-height: 0; transform: none !important; visibility: visible !important; }
.no-js .qz__btns, .motion-fail .qz__btns, .no-js .qz__progress, .motion-fail .qz__progress { display: none; }
.no-js .qz__stage, .motion-fail .qz__stage { min-height: 0; }

@media (max-width: 960px) {
  .qz__grid { grid-template-columns: 1fr; gap: 28px; }
  .qz__progress { margin: 22px 0 14px; }
}
@media (max-width: 560px) {
  .qz__stage { min-height: 470px; }
  .qz__stack { height: 450px; }
  .qz__card { min-height: 400px; padding: 24px 20px 22px; }
  .qz__btns .btn { flex: 1; min-width: 0; }
  .qz__result { min-height: 430px; padding: 26px 20px 24px; }
  .qz__result h3 { padding-right: 56px; }
  .qz__stamp { right: 10px; top: -46px; width: 104px; height: 66px; }
  .qz__stamp span { font-size: 1.25rem; }
  .qz__dots li { width: 24px; }
}
