/* Find the right service quiz. Scoped to #tapco-quiz. */
#tapco-quiz {
  --tq-navy: #05244c; --tq-blue: #2a6ca2; --tq-sky: #84c5fb; --tq-sky-soft: #e6f2fd;
  --tq-ink: #33383d; --tq-text: #304768; --tq-desc: #324a6d; --tq-soft: #f5f7fa; --tq-soft-2: #f9fafd;
  --tq-line: #c8d5dc; --tq-white: #fff; --tq-alert: #b4472f; --tq-alert-soft: #fdf1ed; --tq-ok: #1f7a4d; --tq-ok-soft: #eaf6ef;
  --tq-shadow: 0 30px 60px -30px rgb(5 36 76 / .35); --tq-shadow-sm: 0 12px 28px -16px rgb(5 36 76 / .35);
  --tq-ease: cubic-bezier(.2, .7, .1, 1);
  --tq-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tq-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--tq-body); font-size: 18px; line-height: 1.5; color: var(--tq-ink);
  width: 100%; max-width: 980px; margin: 0 auto; text-align: left;
}
/* ---- Reset theme / Elementor styles inside the quiz ---- */
#tapco-quiz *, #tapco-quiz *::before, #tapco-quiz *::after { box-sizing: border-box; }
#tapco-quiz h2, #tapco-quiz h3, #tapco-quiz p, #tapco-quiz ul, #tapco-quiz ol, #tapco-quiz li, #tapco-quiz fieldset, #tapco-quiz legend, #tapco-quiz form, #tapco-quiz label { margin: 0; padding: 0; }
#tapco-quiz ul, #tapco-quiz ol { list-style: none; }
#tapco-quiz a { text-decoration: none; box-shadow: none; }
#tapco-quiz button { font: inherit; text-transform: none; letter-spacing: normal; margin: 0; min-height: 0; height: auto; max-width: 100%; line-height: inherit; white-space: normal; word-break: normal; }
#tapco-quiz input[type="text"], #tapco-quiz input[type="email"], #tapco-quiz input[type="tel"] {
  width: 100%; height: 50px; margin: 0; padding: 0 14px; border: 1px solid var(--tq-line); border-radius: 10px; background: var(--tq-white);
  color: var(--tq-navy); font: 500 16px/1.2 var(--tq-body); box-shadow: none; outline: none; transition: border-color .2s, box-shadow .2s;
}
#tapco-quiz input[type="text"]:focus, #tapco-quiz input[type="email"]:focus, #tapco-quiz input[type="tel"]:focus { border-color: var(--tq-blue); box-shadow: 0 0 0 3px rgb(132 197 251 / .45); }
#tapco-quiz input[type="checkbox"] { width: auto; height: auto; margin: 0; }
#tapco-quiz [hidden] { display: none !important; }
#tapco-quiz svg { display: block; flex-shrink: 0; }
#tapco-quiz :focus-visible { outline: 3px solid var(--tq-sky); outline-offset: 3px; }

/* ---- Heading ---- */
#tapco-quiz .tq-head { text-align: center; margin-bottom: 32px; }
#tapco-quiz .tq-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--tq-head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tq-blue); }
#tapco-quiz .tq-pulse { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--tq-sky); animation: tq-pulse 2.2s ease-out infinite; }
#tapco-quiz .tq-h { margin-top: 12px; font-family: var(--tq-head); font-weight: 600; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.15; color: var(--tq-navy); }
#tapco-quiz .tq-lead { margin: 14px auto 0; max-width: 56ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--tq-text); }

/* ---- Card ---- */
#tapco-quiz .tq-card { position: relative; padding: clamp(26px, 5vw, 56px); border-radius: 22px; background: var(--tq-white); border: 1px solid var(--tq-line); box-shadow: var(--tq-shadow); overflow: hidden; }
#tapco-quiz .tq-progress { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tq-soft); }
#tapco-quiz .tq-progress span { position: relative; display: block; height: 100%; width: 0; overflow: hidden; border-radius: 0 6px 6px 0; background: linear-gradient(90deg, var(--tq-blue), var(--tq-sky)); transition: width .6s var(--tq-ease); }
#tapco-quiz .tq-progress span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .6), transparent); transform: translateX(-100%); animation: tq-shimmer 2.2s ease-in-out infinite; }
#tapco-quiz .tq-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
#tapco-quiz .tq-step { font-family: var(--tq-head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tq-blue); }
#tapco-quiz .tq-dots { display: flex; gap: 6px; }
#tapco-quiz .tq-dots li { width: 8px; height: 8px; border-radius: 8px; background: var(--tq-line); transition: width .5s var(--tq-ease), background .3s; }
#tapco-quiz .tq-dots li.is-done { background: var(--tq-sky); }
#tapco-quiz .tq-dots li.is-current { width: 26px; background: var(--tq-blue); }

/* ---- Questions ---- */
#tapco-quiz .tq-q { border: 0; min-width: 0; }
#tapco-quiz .tq-q legend { font-family: var(--tq-head); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; color: var(--tq-navy); }
#tapco-quiz .tq-q.is-active legend, #tapco-quiz .tq-q.is-active .tq-hint { animation: tq-rise .6s var(--tq-ease) both; }
#tapco-quiz .tq-hint { margin: 8px 0 26px; font-size: 17px; color: var(--tq-text); }
#tapco-quiz .tq-hint a { color: var(--tq-blue); text-decoration: underline; }
#tapco-quiz .tq-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#tapco-quiz .tq-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
#tapco-quiz .tq-opt {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; padding: 16px 18px;
  text-align: left; cursor: pointer; border-radius: 14px; border: 1px solid var(--tq-line); background: var(--tq-soft-2); color: var(--tq-navy);
  overflow: hidden; isolation: isolate; box-shadow: none;
  transition: border-color .25s, background .25s, transform .35s var(--tq-ease), box-shadow .35s;
}
#tapco-quiz .tq-q.is-active .tq-opt { animation: tq-opt-in .55s var(--tq-ease) both; animation-delay: calc(var(--k, 0) * 50ms + 100ms); }
#tapco-quiz .tq-opt::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgb(132 197 251 / .28), transparent 70%); opacity: 0; transition: opacity .3s; }
#tapco-quiz .tq-opt:hover::before { opacity: 1; }
#tapco-quiz .tq-opt:hover, #tapco-quiz .tq-opt:focus-visible { border-color: var(--tq-sky); background: var(--tq-white); color: var(--tq-navy); transform: translateY(-2px); box-shadow: var(--tq-shadow-sm); }
#tapco-quiz .tq-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--tq-sky-soft); color: var(--tq-blue); transition: background .3s, color .3s, transform .5s var(--tq-ease); }
#tapco-quiz .tq-opt:hover .tq-icon { transform: rotate(-6deg) scale(1.05); }
#tapco-quiz .tq-opt-text { display: grid; gap: 2px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
#tapco-quiz .tq-opt-text strong { font-family: var(--tq-head); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--tq-navy); white-space: normal; }
#tapco-quiz .tq-opt-text span { font-size: 15px; line-height: 1.4; color: var(--tq-desc); white-space: normal; }
#tapco-quiz .tq-tick { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--tq-line); color: transparent; transition: background .3s, border-color .3s, color .3s; }
#tapco-quiz .tq-opt.is-picked { border-color: var(--tq-navy); background: var(--tq-navy); }
#tapco-quiz .tq-opt.is-picked::before { opacity: 0; }
#tapco-quiz .tq-opt.is-picked .tq-opt-text strong { color: var(--tq-white); }
#tapco-quiz .tq-opt.is-picked .tq-opt-text span { color: rgb(255 255 255 / .75); }
#tapco-quiz .tq-opt.is-picked .tq-icon { background: var(--tq-sky); color: var(--tq-navy); }
#tapco-quiz .tq-opt.is-picked .tq-tick { background: var(--tq-sky); border-color: var(--tq-sky); color: var(--tq-navy); animation: tq-pop .45s var(--tq-ease); }

#tapco-quiz .tq-nav { display: flex; justify-content: space-between; margin-top: 24px; }
#tapco-quiz .tq-back, #tapco-quiz .tq-restart, #tapco-quiz .tq-skip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer; font-family: var(--tq-head); font-size: 15px; font-weight: 500; color: var(--tq-text); transition: color .2s; }
#tapco-quiz .tq-back:hover, #tapco-quiz .tq-restart:hover, #tapco-quiz .tq-skip:hover, #tapco-quiz .tq-back:focus, #tapco-quiz .tq-restart:focus, #tapco-quiz .tq-skip:focus { color: var(--tq-blue); background: none; }
#tapco-quiz .tq-back svg { transform: rotate(180deg); transition: transform .3s var(--tq-ease); }
#tapco-quiz .tq-back:hover svg { transform: rotate(180deg) translateX(4px); }
#tapco-quiz .tq-restart { margin-left: auto; }

/* ---- Result ---- */
#tapco-quiz .tq-result { outline: none; }
#tapco-quiz .tq-result > * { animation: tq-rise .7s var(--tq-ease) both; }
#tapco-quiz .tq-result > :nth-child(2) { animation-delay: .08s; }
#tapco-quiz .tq-result > :nth-child(3) { animation-delay: .16s; }
#tapco-quiz .tq-result > :nth-child(4) { animation-delay: .24s; }
#tapco-quiz .tq-result > :nth-child(5) { animation-delay: .32s; }
#tapco-quiz .tq-result > :nth-child(n+6) { animation-delay: .4s; }
#tapco-quiz .tq-rhead { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: center; }
#tapco-quiz .tq-media { position: relative; height: 200px; border-radius: 14px; overflow: hidden; background: var(--tq-sky-soft); }
#tapco-quiz .tq-media span { position: absolute; inset: 0; background: center / cover no-repeat; animation: tq-zoom 1.4s var(--tq-ease) both; }
#tapco-quiz .tq-rintro { display: grid; gap: 10px; min-width: 0; }
#tapco-quiz .tq-rtitle { font-family: var(--tq-head); font-weight: 600; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.15; color: var(--tq-navy); }
#tapco-quiz .tq-rdesc { font-size: 18px; color: var(--tq-text); line-height: 1.55; }
#tapco-quiz .tq-said { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 26px; padding: 14px 18px; border-radius: 12px; background: var(--tq-soft); font-size: 15px; color: var(--tq-navy); }
#tapco-quiz .tq-said b { font-family: var(--tq-head); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tq-blue); align-self: center; }
#tapco-quiz .tq-rgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 30px; padding-top: 28px; border-top: 1px dashed var(--tq-line); }
#tapco-quiz .tq-sub { font-family: var(--tq-head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tq-text); margin-bottom: 14px; }
#tapco-quiz .tq-signs { display: grid; gap: 10px; }
#tapco-quiz .tq-signs li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--tq-ink); }
#tapco-quiz .tq-signs li::before { content: ''; width: 12px; height: 12px; flex-shrink: 0; margin-top: 6px; background: var(--tq-blue); }
#tapco-quiz .tq-match { display: grid; gap: 12px; }
#tapco-quiz .tq-match li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
#tapco-quiz .tq-mname { font-family: var(--tq-head); font-weight: 500; font-size: 15px; color: var(--tq-navy); }
#tapco-quiz .tq-mtag { font-family: var(--tq-head); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tq-text); }
#tapco-quiz .tq-match li:first-child .tq-mtag { color: var(--tq-blue); }
#tapco-quiz .tq-mbar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--tq-soft); overflow: hidden; }
#tapco-quiz .tq-mbar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--tq-line); transition: width 1.1s var(--tq-ease); transition-delay: calc(var(--n) * 120ms + .3s); }
#tapco-quiz .tq-match li:first-child .tq-mbar span { background: linear-gradient(90deg, var(--tq-blue), var(--tq-sky)); }

/* Upsells */
#tapco-quiz .tq-upsell { margin-top: 30px; padding-top: 28px; border-top: 1px dashed var(--tq-line); }
#tapco-quiz .tq-upsell-hint { margin: -6px 0 14px; font-size: 15px; color: var(--tq-desc); }
#tapco-quiz .tq-ups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#tapco-quiz .tq-up { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--tq-line); background: var(--tq-soft-2); cursor: pointer; transition: border-color .25s, background .25s, transform .35s var(--tq-ease), box-shadow .35s; }
#tapco-quiz .tq-up:hover { border-color: var(--tq-sky); background: var(--tq-white); transform: translateY(-2px); box-shadow: var(--tq-shadow-sm); }
#tapco-quiz .tq-up input { position: absolute; opacity: 0; pointer-events: none; }
#tapco-quiz .tq-up-box { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; border-radius: 7px; border: 1.5px solid var(--tq-line); background: var(--tq-white); color: transparent; transition: background .25s, border-color .25s, color .25s; }
#tapco-quiz .tq-up input:checked + .tq-up-box { background: var(--tq-blue); border-color: var(--tq-blue); color: var(--tq-white); animation: tq-pop .4s var(--tq-ease); }
#tapco-quiz .tq-up input:focus-visible + .tq-up-box { outline: 3px solid var(--tq-sky); outline-offset: 2px; }
#tapco-quiz .tq-up:has(input:checked) { border-color: var(--tq-blue); background: var(--tq-sky-soft); }
#tapco-quiz .tq-up-text { display: grid; gap: 3px; min-width: 0; }
#tapco-quiz .tq-up-text strong { font-family: var(--tq-head); font-weight: 600; font-size: 16px; color: var(--tq-navy); }
#tapco-quiz .tq-up-text span { font-size: 14px; line-height: 1.45; color: var(--tq-desc); }
#tapco-quiz .tq-up-text a { font-size: 14px; color: var(--tq-blue); text-decoration: underline; text-underline-offset: 2px; }
#tapco-quiz .tq-finance { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: var(--tq-soft); font-size: 15px; color: var(--tq-desc); }
#tapco-quiz .tq-finance strong { color: var(--tq-navy); font-family: var(--tq-head); font-weight: 600; }
#tapco-quiz .tq-finance small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--tq-text); }
#tapco-quiz .tq-finance svg { color: var(--tq-blue); margin-top: 2px; }

/* Notes */
#tapco-quiz .tq-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: var(--tq-sky-soft); border: 1px solid rgb(42 108 162 / .2); color: var(--tq-navy); }
#tapco-quiz .tq-note strong { font-family: var(--tq-head); font-weight: 600; font-size: 17px; }
#tapco-quiz .tq-note p { font-size: 15px; color: var(--tq-desc); margin-top: 2px; }
#tapco-quiz .tq-note-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tq-white); color: var(--tq-blue); }
#tapco-quiz .tq-urgent { background: var(--tq-alert-soft); border-color: rgb(180 71 47 / .25); }
#tapco-quiz .tq-urgent .tq-note-icon { color: var(--tq-alert); animation: tq-wobble 2.4s ease-in-out infinite; }
#tapco-quiz a.tq-aud { grid-template-columns: auto minmax(0, 1fr); color: var(--tq-navy); transition: transform .4s var(--tq-ease), box-shadow .4s, border-color .3s; }
#tapco-quiz a.tq-aud:hover { color: var(--tq-navy); transform: translateY(-2px); box-shadow: var(--tq-shadow-sm); border-color: var(--tq-blue); }
#tapco-quiz .tq-aud-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--tq-head); font-weight: 500; font-size: 15px; color: var(--tq-blue); }

/* Buttons */
#tapco-quiz .tq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
#tapco-quiz .tq-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 16px 28px; border-radius: 25px; border: 1px solid transparent; font-family: var(--tq-head); font-size: 17px; font-weight: 500; line-height: 1.2; text-align: center; white-space: normal; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s, box-shadow .3s; }
#tapco-quiz .tq-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%); transition: transform .45s var(--tq-ease); }
#tapco-quiz .tq-btn:hover::before { transform: none; }
#tapco-quiz .tq-btn-primary, #tapco-quiz .tq-btn-primary:hover, #tapco-quiz .tq-btn-primary:focus { background: var(--tq-blue); color: var(--tq-white); border-color: transparent; }
#tapco-quiz .tq-btn-primary::before { background: var(--tq-navy); }
#tapco-quiz .tq-btn-outline, #tapco-quiz .tq-btn-outline:focus { background: transparent; color: var(--tq-blue); border-color: var(--tq-sky); }
#tapco-quiz .tq-btn-outline::before { background: var(--tq-blue); }
#tapco-quiz .tq-btn-outline:hover { color: var(--tq-white); border-color: var(--tq-blue); background: transparent; }
#tapco-quiz .tq-btn svg { transition: transform .3s var(--tq-ease); }
#tapco-quiz .tq-btn:hover svg { transform: translateX(4px); }
#tapco-quiz .tq-btn[disabled] { opacity: .7; cursor: wait; }
#tapco-quiz .tq-call { display: inline-flex; align-items: center; gap: 8px; font-family: var(--tq-head); font-weight: 500; color: var(--tq-blue); padding: 6px 0; background: linear-gradient(var(--tq-sky), var(--tq-sky)) left 100% / 0 2px no-repeat; transition: background-size .4s var(--tq-ease); }
#tapco-quiz .tq-call:hover { background-size: 100% 2px; color: var(--tq-navy); }
#tapco-quiz .tq-small { margin-top: 18px; font-size: 14px; color: var(--tq-text); line-height: 1.55; }

/* Email capture */
#tapco-quiz .tq-capture { margin-top: 30px; padding: clamp(20px, 3vw, 30px); border-radius: 16px; background: var(--tq-navy); color: var(--tq-white); background-image: radial-gradient(60% 120% at 100% 0%, rgb(132 197 251 / .25), transparent 70%); }
#tapco-quiz .tq-capture-title { font-family: var(--tq-head); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; color: var(--tq-white); }
#tapco-quiz .tq-capture-text { margin-top: 6px; font-size: 16px; color: rgb(255 255 255 / .8); }
#tapco-quiz .tq-form { margin-top: 18px; }
#tapco-quiz .tq-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#tapco-quiz .tq-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: rgb(255 255 255 / .9); }
#tapco-quiz .tq-field em { font-style: normal; font-weight: 400; opacity: .7; }
#tapco-quiz .tq-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
#tapco-quiz .tq-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; line-height: 1.45; color: rgb(255 255 255 / .85); cursor: pointer; }
#tapco-quiz .tq-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--tq-sky); flex-shrink: 0; }
#tapco-quiz .tq-privacy { margin-top: 10px; font-size: 13px; color: rgb(255 255 255 / .65); }
#tapco-quiz .tq-privacy a { color: var(--tq-sky); text-decoration: underline; }
#tapco-quiz .tq-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
#tapco-quiz .tq-capture .tq-btn-primary { background: var(--tq-sky); color: var(--tq-navy); }
#tapco-quiz .tq-capture .tq-btn-primary::before { background: var(--tq-white); }
#tapco-quiz .tq-capture .tq-btn-primary:hover { color: var(--tq-navy); }
#tapco-quiz .tq-capture .tq-skip { color: rgb(255 255 255 / .75); }
#tapco-quiz .tq-capture .tq-skip:hover { color: var(--tq-white); }
#tapco-quiz .tq-form-msg { margin-top: 12px; font-size: 15px; font-weight: 600; color: #ffd2c7; }
#tapco-quiz .tq-form-msg:empty { display: none; }
#tapco-quiz .tq-thanks { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 18px 20px; border-radius: 14px; background: var(--tq-ok-soft); border: 1px solid rgb(31 122 77 / .25); color: var(--tq-navy); }
#tapco-quiz .tq-thanks svg { color: var(--tq-ok); margin-top: 2px; }
#tapco-quiz .tq-thanks strong { font-family: var(--tq-head); font-weight: 600; }
#tapco-quiz .tq-thanks p { font-size: 15px; color: var(--tq-desc); }
/* "Request a survey" panel */
#tapco-quiz .tq-survey { margin-top: 20px; }
#tapco-quiz .tq-survey:not([hidden]) > * { animation: tq-rise .5s var(--tq-ease) both; }
#tapco-quiz .tq-survey .tq-capture, #tapco-quiz .tq-survey .tq-thanks { margin-top: 0; }
#tapco-quiz .tq-fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tapco-quiz [data-tq-survey-btn][disabled] { opacity: 1; cursor: default; background: var(--tq-ok); }
#tapco-quiz [data-tq-survey-btn][disabled]::before { display: none; }
/* Survey qualifying questions */
#tapco-quiz .tq-qual { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .15); }
#tapco-quiz .tq-qual-title { font-family: var(--tq-head); font-weight: 600; font-size: 17px; color: var(--tq-white); }
#tapco-quiz .tq-qual-title span { font-family: var(--tq-body); font-weight: 400; font-size: 15px; color: rgb(255 255 255 / .7); }
#tapco-quiz .tq-chips { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
#tapco-quiz .tq-qual > :first-child { margin-top: 0; }
#tapco-quiz .tq-chips legend { margin-bottom: 8px; font-size: 14px; font-weight: 600; color: rgb(255 255 255 / .9); }
#tapco-quiz .tq-chips em, #tapco-quiz .tq-qfield em { font-style: normal; font-weight: 400; opacity: .65; }
#tapco-quiz .tq-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
#tapco-quiz .tq-chip { position: relative; cursor: pointer; }
#tapco-quiz .tq-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#tapco-quiz .tq-chip span { display: inline-block; padding: 9px 15px; border-radius: 20px; border: 1px solid rgb(255 255 255 / .3); font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--tq-white); transition: background .2s, border-color .2s, color .2s, transform .3s var(--tq-ease); }
#tapco-quiz .tq-chip:hover span { border-color: var(--tq-sky); }
#tapco-quiz .tq-chip input:checked + span { background: var(--tq-sky); border-color: var(--tq-sky); color: var(--tq-navy); transform: scale(1.03); }
#tapco-quiz .tq-chip input:focus-visible + span { outline: 3px solid var(--tq-sky); outline-offset: 2px; }
#tapco-quiz .tq-qfield { margin-top: 16px; }
#tapco-quiz .tq-qfield input::placeholder { color: #8a99a8; }
/* Gate step (CAPTURE = 'gate') */
#tapco-quiz .tq-gate { animation: tq-rise .6s var(--tq-ease) both; }
#tapco-quiz .tq-gate .tq-capture { margin-top: 0; }

@keyframes tq-pulse { 0% { box-shadow: 0 0 0 0 rgb(132 197 251 / .7); } 70% { box-shadow: 0 0 0 10px rgb(132 197 251 / 0); } 100% { box-shadow: 0 0 0 0 rgb(132 197 251 / 0); } }
@keyframes tq-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes tq-opt-in { from { opacity: 0; translate: 0 16px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes tq-pop { 40% { transform: scale(1.25); } }
@keyframes tq-shimmer { 60%, 100% { transform: translateX(100%); } }
@keyframes tq-zoom { from { transform: scale(1.15); } to { transform: none; } }
@keyframes tq-wobble { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-10deg); } 20% { transform: rotate(8deg); } 30% { transform: rotate(0); } }

@media (max-width: 680px) {
  #tapco-quiz { font-size: 17px; }
  #tapco-quiz .tq-head { margin-bottom: 22px; }
  #tapco-quiz .tq-card { padding: 22px 14px 16px; border-radius: 18px; }
  #tapco-quiz .tq-opts, #tapco-quiz .tq-rgrid, #tapco-quiz .tq-ups, #tapco-quiz .tq-fields, #tapco-quiz .tq-fields-3 { grid-template-columns: 1fr; }
  #tapco-quiz .tq-q legend { font-size: 24px; }
  #tapco-quiz .tq-hint { margin-bottom: 18px; font-size: 16px; }
  #tapco-quiz .tq-opt { padding: 12px; gap: 12px; border-radius: 12px; }
  #tapco-quiz .tq-icon { width: 40px; height: 40px; border-radius: 10px; }
  #tapco-quiz .tq-opt-text strong { font-size: 16px; }
  #tapco-quiz .tq-opt-text span { font-size: 14px; }
  #tapco-quiz .tq-tick { width: 22px; height: 22px; }
  #tapco-quiz .tq-rhead { grid-template-columns: 1fr; gap: 18px; }
  #tapco-quiz .tq-media { height: 170px; }
  #tapco-quiz .tq-note { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  #tapco-quiz .tq-urgent .tq-btn { grid-column: 1 / -1; }
  #tapco-quiz .tq-actions, #tapco-quiz .tq-form-actions { flex-direction: column; align-items: stretch; }
  #tapco-quiz .tq-call, #tapco-quiz .tq-skip { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  #tapco-quiz *, #tapco-quiz *::before, #tapco-quiz *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* Phones: two compact columns, short labels only (descriptions hidden), less scrolling */
@media (max-width: 680px) {
  #tapco-quiz .tq-head { margin-bottom: 16px; }
  #tapco-quiz .tq-h { font-size: 26px; }
  #tapco-quiz .tq-lead { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #tapco-quiz .tq-card { padding: 20px 12px 14px; }
  #tapco-quiz .tq-q legend { font-size: 21px; }
  #tapco-quiz .tq-hint { margin: 4px 0 14px; font-size: 14px; }
  #tapco-quiz .tq-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #tapco-quiz .tq-opt { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; min-height: 104px; padding: 12px 12px 14px; }
  #tapco-quiz .tq-opt:last-child:nth-child(odd) { flex-direction: row; align-items: center; min-height: 0; }
  #tapco-quiz .tq-icon { width: 36px; height: 36px; border-radius: 10px; }
  #tapco-quiz .tq-icon svg { width: 18px; height: 18px; }
  #tapco-quiz .tq-opt-text strong { font-size: 14.5px; line-height: 1.25; }
  #tapco-quiz .tq-opt-text span { display: none; }
  #tapco-quiz .tq-tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; }
}