/* The quiz page (/quiz/). Ported from the WordPress quiz (website-legacy/quiz/);
   markup is built by src/scripts/quiz.js. Everything is scoped to #ecs-quiz. */
@font-face { font-family:"EQ Manrope"; font-weight:400 800; font-display:swap; src:url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"EQ Manrope"; font-weight:400 800; font-display:swap; src:url("../fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"EQ Fraunces"; font-style:italic; font-weight:500 700; font-display:swap; src:url("../fonts/fraunces-italic-latin.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"EQ Fraunces"; font-style:italic; font-weight:500 700; font-display:swap; src:url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

#ecs-quiz { --orange:#ff5900; --orange-600:#e64f00; --orange-50:#fff1e8; --ink:#141625; --ink-2:#3b3f55; --muted:#6b6f85; --line:#ebe7e2; --bg:#fffaf5; --blue:#a2d2ff; --yellow:#fee440; --lilac:#cdb4db; --pink:#ffc8dd; --ease:cubic-bezier(.2,.7,.2,1);
  position:fixed; inset:0; z-index:50; container-type:inline-size; display:flex; flex-direction:column; overflow:hidden; background:var(--bg); color:var(--ink);
  font-family:"EQ Manrope",system-ui,-apple-system,"Segoe UI",sans-serif; font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; text-align:left; }
#ecs-quiz *, #ecs-quiz *::before, #ecs-quiz *::after { box-sizing:border-box; }
#ecs-quiz button { font:inherit; cursor:pointer; letter-spacing:normal; text-transform:none; }
#ecs-quiz a { color:inherit; }
#ecs-quiz :focus-visible { outline:3px solid var(--orange); outline-offset:3px; border-radius:8px; }

.eq-top { display:flex; justify-content:space-between; align-items:center; padding:12px 18px; background:rgba(255,255,255,.8); backdrop-filter:blur(8px); position:relative; z-index:3; flex:none; }
.eq-logo { display:flex; align-items:center; gap:8px; font-weight:800; font-size:15px; text-decoration:none; }
.eq-logo img { width:28px; height:28px; display:block; }
.eq-tel { font-weight:800; font-size:14px; text-decoration:none; display:flex; gap:6px; align-items:center; }
.eq-tel span { color:var(--orange); }
.eq-cookies { border:0; background:none; padding:4px 0; font-size:13px; font-weight:600; color:var(--muted); text-decoration:underline; }

.eq-stage { flex:1; position:relative; display:grid; grid-template-columns:1fr; grid-template-rows:minmax(0,1fr); min-height:0; }
.eq-bg { position:absolute; inset:0; background:linear-gradient(125deg,#d9ecff 0%,#fff4c4 42%,#ffe1ec 72%,#ece0f7 100%); overflow:hidden; }
.eq-blob { position:absolute; border-radius:50%; opacity:.75; transition:transform 1.2s var(--ease), background-color 1.2s; animation:eq-drift 14s ease-in-out infinite alternate; }
.eq-b1 { width:46cqw; height:46cqw; background:var(--blue); left:-14cqw; top:-10cqw; }
.eq-b2 { width:34cqw; height:34cqw; background:var(--yellow); right:-10cqw; top:30%; animation-delay:-5s; }
.eq-b3 { width:40cqw; height:40cqw; background:var(--lilac); left:20%; bottom:-22cqw; animation-delay:-9s; }
@keyframes eq-drift { to { translate:4cqw 3cqw; } }
#ecs-quiz[data-step="1"] .eq-b1 { transform:translate(8cqw,4cqw) scale(1.1); }
#ecs-quiz[data-step="2"] .eq-b2 { transform:translate(-10cqw,-6cqw) scale(1.15); background:var(--pink); }
#ecs-quiz[data-step="3"] .eq-b3 { transform:translate(10cqw,-10cqw) scale(.9); }
#ecs-quiz[data-step="4"] .eq-b1 { transform:translate(30cqw,10cqw); background:var(--yellow); }
#ecs-quiz[data-step="5"] .eq-b2 { transform:translate(-30cqw,10cqw) scale(1.2); background:#c9f0dc; }

.eq-hero { display:none; }
.eq-card { position:relative; z-index:2; margin:12px; height:calc(100% - 24px); background:rgba(255,255,255,.93); border-radius:26px; box-shadow:0 1px 2px rgba(20,22,37,.04),0 18px 40px -18px rgba(20,22,37,.28); display:flex; flex-direction:column; min-height:0; overflow:hidden; }

.eq-prog { display:flex; align-items:center; gap:10px; padding:14px 18px 6px; flex:none; }
.eq-back { border:0; background:var(--orange-50); color:var(--orange); width:34px; height:34px; border-radius:50%; font-size:17px; line-height:1; padding:0; transition:transform .2s; flex:none; }
.eq-back:hover { transform:translateX(-2px); }
.eq-back[hidden] { display:block; visibility:hidden; }
.eq-dots { display:flex; gap:6px; flex:1; }
.eq-dots i { flex:1; height:6px; border-radius:6px; background:var(--line); position:relative; overflow:hidden; }
.eq-dots i::after { content:""; position:absolute; inset:0; background:var(--orange); transform:scaleX(0); transform-origin:left; transition:transform .6s var(--ease); border-radius:6px; }
.eq-dots i.eq-on::after { transform:scaleX(1); }
.eq-count { font-size:12px; font-weight:700; color:var(--muted); min-width:30px; text-align:right; }

.eq-thread { flex:1; overflow-y:auto; padding:10px 16px 8px; display:flex; flex-direction:column; gap:8px; scroll-behavior:smooth; }
.eq-msg { max-width:86%; padding:11px 14px; border-radius:20px; font-size:15px; line-height:1.45; animation:eq-pop .45s var(--ease) both; }
.eq-msg.eq-bot { background:#fff; border:1px solid var(--line); border-bottom-left-radius:6px; align-self:flex-start; display:flex; gap:9px; }
.eq-av { width:28px; height:28px; border-radius:50%; flex:none; background-color:var(--yellow); background-position:center 12%; background-size:170%; background-repeat:no-repeat; margin-top:-2px; }
.eq-msg.eq-cont .eq-av { visibility:hidden; }
.eq-msg.eq-me { background:var(--orange); color:#fff; border-bottom-right-radius:6px; align-self:flex-end; font-weight:700; }
.eq-msg.eq-note { background:var(--yellow); border:0; }
.eq-msg.eq-big { display:block; font-size:23px; font-weight:800; letter-spacing:-.02em; line-height:1.2; padding:4px 2px 6px; background:none; border:0; max-width:100%; }
.eq-big em { font-family:"EQ Fraunces",Georgia,serif; font-style:italic; font-weight:600; color:var(--orange); position:relative; z-index:0; }
.eq-big em::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:6px; background:var(--yellow); z-index:-1; border-radius:4px; transform:scaleX(0); transform-origin:left; animation:eq-underline .8s .4s var(--ease) forwards; }
.eq-msg.eq-static { animation:none; }
@keyframes eq-underline { to { transform:scaleX(1); } }
@keyframes eq-pop { from { opacity:0; transform:translateY(10px) scale(.96); } to { opacity:1; transform:none; } }
.eq-typing { align-self:flex-start; background:#fff; border:1px solid var(--line); border-radius:20px; border-bottom-left-radius:6px; padding:12px 14px; display:flex; gap:4px; animation:eq-pop .3s var(--ease) both; }
.eq-typing i { width:7px; height:7px; border-radius:50%; background:#c9c4bd; animation:eq-blink 1s infinite; }
.eq-typing i:nth-child(2) { animation-delay:.15s; } .eq-typing i:nth-child(3) { animation-delay:.3s; }
@keyframes eq-blink { 50% { transform:translateY(-4px); background:var(--orange); } }
.eq-summary { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.eq-summary span { background:var(--orange-50); color:var(--orange-600); border-radius:999px; padding:4px 10px; font-size:13px; font-weight:700; }

.eq-dock { flex:none; padding:10px 14px 16px; border-top:1px solid var(--line); background:#fff; max-height:70%; overflow-y:auto; }
.eq-dock:empty { display:none; }
.eq-opts { display:grid; grid-template-columns:1fr; gap:8px; }
.eq-opt { display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:2px solid var(--line); background:#fff; border-radius:16px; padding:10px 12px; font-weight:700 !important; font-size:15px; color:var(--ink); transition:border-color .2s, transform .2s var(--ease), box-shadow .2s, background-color .2s; animation:eq-pop .4s var(--ease) both; }
.eq-opt:hover { border-color:var(--orange); transform:translateY(-2px); box-shadow:0 8px 18px -10px rgba(255,89,0,.5); background:#fff; color:var(--ink); }
.eq-e { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; font-size:18px; background:var(--bg); flex:none; transition:transform .3s var(--ease); }
.eq-opt:hover .eq-e { transform:rotate(-10deg) scale(1.12); }
.eq-opt.eq-picked { background:var(--orange); border-color:var(--orange); color:#fff; transform:scale(.97); }
.eq-opt:nth-child(2){animation-delay:.05s}.eq-opt:nth-child(3){animation-delay:.1s}.eq-opt:nth-child(4){animation-delay:.15s}.eq-opt:nth-child(5){animation-delay:.2s}

.eq-btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:15px 24px; border-radius:999px; background:var(--orange); color:#fff !important; font-weight:800 !important; font-size:16px; border:0; text-decoration:none; transition:background-color .2s, transform .2s var(--ease); width:100%; }
.eq-btn:hover { background:var(--orange-600); transform:translateY(-1px); }
.eq-btn[disabled] { opacity:.6; cursor:progress; transform:none; }
.eq-pulse { animation:eq-pulse 2.2s infinite; }
@keyframes eq-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(255,89,0,.45); } 60% { box-shadow:0 0 0 12px rgba(255,89,0,0); } }
.eq-pills { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 12px; }
.eq-pills span { background:var(--bg); border:1px solid var(--line); border-radius:999px; padding:5px 11px; font-size:13px; font-weight:700; }

.eq-form { display:grid; gap:9px; animation:eq-pop .45s var(--ease) both; margin:0; }
.eq-form h3 { margin:0; font-size:17px; font-weight:800; letter-spacing:-.01em; color:var(--ink); }
.eq-inp { display:flex; align-items:center; gap:8px; border:2px solid var(--line); border-radius:14px; padding:0 14px; height:50px; background:var(--bg); transition:border-color .2s, background-color .2s; margin:0; }
.eq-inp:focus-within { border-color:var(--orange); background:#fff; }
.eq-inp input { border:0 !important; outline:0; background:none !important; font-family:inherit; font-weight:600; font-size:16px; color:var(--ink); width:100%; padding:0 !important; height:auto; box-shadow:none !important; min-width:0; }
.eq-cc { position:relative; flex:none; display:flex; align-items:center; height:100%; padding-right:10px; border-right:2px solid var(--line); font-weight:800; font-size:16px; white-space:nowrap; }
.eq-cc-show::after { content:"▾"; font-size:11px; color:var(--muted); margin-left:5px; }
.eq-cc select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; font-size:16px; border:0; }
.eq-cc:focus-within { color:var(--orange); }
#ecs-quiz .eq-inp input:focus-visible { outline:none; }   /* the wrapper shows focus */
.eq-inp.eq-err { border-color:#e5484d; animation:eq-shake .35s; }
@keyframes eq-shake { 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }
.eq-sched { font-size:13px; font-weight:600; color:var(--muted); margin:-4px 0 2px; }
.eq-legal { font-size:11px; line-height:1.45; color:var(--muted); margin:0; }
.eq-legal p { margin:0 0 2px; }
.eq-legal a { color:inherit; text-decoration:underline; }
.eq-error { font-size:13px; font-weight:700; color:#c62828; margin:0; }

.eq-free { display:grid; gap:8px; }
.eq-fcard { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:18px; text-decoration:none; color:var(--ink) !important; transition:transform .2s var(--ease); animation:eq-pop .45s var(--ease) both; }
.eq-fcard:hover { transform:translateY(-2px) rotate(-.4deg); }
.eq-fcard .eq-i { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; font-size:20px; background:#fff; flex:none; }
.eq-fcard b { display:block; font-size:15px; } .eq-fcard small { font-size:12.5px; color:var(--ink-2); }
.eq-tg { background:#dcefff; } .eq-yt { background:#ffe1e1; animation-delay:.08s; } .eq-ig { background:#f1e4fb; animation-delay:.16s; }
.eq-changemind { background:none; border:0; font-weight:800; font-size:14px; color:var(--orange); padding:6px; }

.eq-confetti { position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:5; }
.eq-confetti i { position:absolute; top:-12px; width:8px; height:14px; border-radius:2px; animation:eq-fall 2.4s ease-in forwards; }
@keyframes eq-fall { to { transform:translateY(110cqh) rotate(720deg); opacity:.8; } }

@container (min-width: 820px) {
  .eq-top { padding:16px 48px; }
  .eq-stage { grid-template-columns:1fr 520px; gap:30px; padding:0 64px 0 48px; align-items:center; }
  .eq-hero { display:block; position:relative; z-index:1; height:100%; }
  .eq-ttl { position:absolute; top:7%; left:0; max-width:430px; font-size:clamp(34px,3.4cqw,48px); font-weight:800; line-height:1.08; letter-spacing:-.03em; margin:0; }
  .eq-ttl em { font-family:"EQ Fraunces",Georgia,serif; font-style:italic; font-weight:600; color:var(--orange); }
  .eq-ttl small { display:block; font-size:16px; font-weight:600; letter-spacing:0; color:var(--ink-2); margin-top:12px; line-height:1.5; max-width:250px; }
  .eq-hero img { position:absolute; bottom:0; left:clamp(190px,22cqw,300px); height:80%; width:auto; max-width:none; filter:drop-shadow(0 20px 30px rgba(20,22,37,.15)); transition:transform 1s var(--ease); }
  #ecs-quiz[data-step="2"] .eq-hero img, #ecs-quiz[data-step="4"] .eq-hero img { transform:translateX(-14px) rotate(-1.5deg); }
  .eq-chip { position:absolute; background:#fff; border-radius:16px; padding:10px 14px; box-shadow:0 12px 26px -14px rgba(20,22,37,.35); font-size:13px; font-weight:700; animation:eq-float 5s ease-in-out infinite; z-index:2; line-height:1.3; }
  .eq-chip b { display:block; font-size:22px; letter-spacing:-.02em; } .eq-chip b span { color:var(--orange); }
  .eq-c1 { left:10px; bottom:18%; } .eq-c2 { left:20px; bottom:42%; animation-delay:-2s; } .eq-c3 { left:110px; bottom:4%; animation-delay:-3.5s; }
  @keyframes eq-float { 50% { transform:translateY(-10px); } }
  .eq-card { margin:24px 0; height:calc(100% - 48px); }
  .eq-thread { padding:12px 24px 8px; }
  .eq-prog { padding:18px 24px 6px; }
  .eq-dock { padding:14px 24px 20px; }
  .eq-opts.eq-many { grid-template-columns:1fr 1fr; }
  .eq-msg.eq-big { font-size:27px; }
  .eq-msg.eq-big.eq-intro { display:none; }
}
@media (prefers-reduced-motion: reduce) { #ecs-quiz *, #ecs-quiz *::before, #ecs-quiz *::after { animation:none !important; transition:none !important; } }
