/* AI Opportunity Score quiz (site/ai-score-quiz.php, assets/js/df-quiz.js) */
.dfq {
  --q-bg: #0f0820; --q-panel: rgba(255,255,255,.055); --q-line: rgba(255,255,255,.12); --q-ink: #fff; --q-muted: rgba(255,255,255,.66);
  --q-orange: #f39568; --q-orange-d: #e07e50; --q-purple: #7b4fd0; --q-purple-d: #5a329a; --q-teal: #4fd1c5;
  width: min(760px, 100%); max-width: 100%; height: min(860px, 100dvh); max-height: 100dvh;
  margin: auto; padding: 0; border: 1px solid var(--q-line); border-radius: 22px; background: var(--q-bg); color: var(--q-ink);
  overflow: hidden; font-family: 'Inter', 'Inter-Fallback', system-ui, sans-serif; box-shadow: 0 30px 120px rgba(0,0,0,.6);
}
.dfq[open] { display: block; animation: dfq-in .38s cubic-bezier(.2,.9,.3,1.2); }
.dfq::backdrop { background: rgba(6,3,16,.8); backdrop-filter: blur(6px); animation: dfq-fade .3s ease; }
@media (max-width: 640px) { .dfq { width: 100%; height: 100dvh; border-radius: 0; border: 0; } }
body.dfq-locked { overflow: hidden; }
/* The site theme colours p, li and headings dark grey; inside the quiz they take the quiz colours (zero specificity, so classes below still win). */
:where(.dfq) :is(p, li, label, legend, h2, h3, b, small, span, em) { color: inherit; }

.dfq-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dfq-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.dfq-orb-a { width: 380px; height: 380px; background: #5a329a; top: -120px; left: -80px; animation: dfq-drift 14s ease-in-out infinite alternate; }
.dfq-orb-b { width: 300px; height: 300px; background: #b4563a; bottom: -120px; right: -60px; opacity: .35; animation: dfq-drift 18s ease-in-out infinite alternate-reverse; }
.dfq-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

.dfq-shell { position: relative; height: 100%; display: flex; flex-direction: column; }
.dfq-top { padding: 18px 22px 10px; }
.dfq-top-row { display: flex; align-items: center; gap: 12px; }
.dfq-brand { font-weight: 700; font-size: .85rem; letter-spacing: .02em; color: var(--q-orange); display: inline-flex; gap: .4rem; align-items: center; }
.dfq-count { margin-left: auto; font-size: .82rem; color: var(--q-muted); font-variant-numeric: tabular-nums; }
.dfq-x { background: none; border: 0; color: var(--q-muted); font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.dfq-x:hover, .dfq-x:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.dfq-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.dfq-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--q-purple), var(--q-orange)); transition: width .6s cubic-bezier(.2,.8,.2,1); position: relative; }
.dfq-bar span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: dfq-shine 2.2s ease-in-out infinite; }

.dfq-stage { flex: 1; overflow-y: auto; padding: 8px 22px 26px; outline: none; -webkit-overflow-scrolling: touch; }
.dfq-screen { max-width: 600px; margin: 0 auto; padding-top: clamp(8px, 4vh, 36px); }
.dfq-screen.is-in { animation: dfq-slide .45s cubic-bezier(.2,.8,.2,1) both; }
.dfq-screen.is-back { animation: dfq-slide-back .45s cubic-bezier(.2,.8,.2,1) both; }
.dfq-section { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--q-teal); margin: 0 0 .6rem; }
.dfq-q { font-size: clamp(1.35rem, 3.6vw, 1.85rem); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; margin: 0 0 .45rem; color: #fff; }
.dfq-help { color: var(--q-muted); margin: 0 0 1.3rem; font-size: .98rem; }

.dfq-opts { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.dfq-opts.is-grid { grid-template-columns: repeat(2, 1fr); }
.dfq-opts > .dfq-help { grid-column: 1 / -1; }
@media (max-width: 520px) { .dfq-opts.is-grid { grid-template-columns: 1fr; } }
.dfq-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--q-line); background: var(--q-panel); cursor: pointer; transition: transform .18s, border-color .18s, background .18s, box-shadow .18s; animation: dfq-pop .42s cubic-bezier(.2,.9,.3,1.25) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
.dfq-opt:hover { transform: translateY(-2px); border-color: rgba(243,149,104,.6); background: rgba(255,255,255,.08); }
.dfq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dfq-opt .dfq-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(123,79,208,.22); color: #c9b5ff; font-size: 1.1rem; transition: background .2s, color .2s, transform .3s; }
.dfq-opt .dfq-lbl { flex: 1; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.dfq-opt .dfq-tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.28); display: grid; place-items: center; color: transparent; transition: all .2s; }
.dfq-opt.is-multi .dfq-tick { border-radius: 7px; }
.dfq-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(243,149,104,.55); }
.dfq-opt:has(input:checked) { border-color: var(--q-orange); background: linear-gradient(135deg, rgba(243,149,104,.2), rgba(123,79,208,.18)); box-shadow: 0 8px 30px rgba(243,149,104,.18); }
.dfq-opt:has(input:checked) .dfq-ico { background: var(--q-orange); color: #1a0d30; transform: rotate(-8deg) scale(1.08); }
.dfq-opt:has(input:checked) .dfq-tick { background: var(--q-orange); border-color: var(--q-orange); color: #1a0d30; animation: dfq-tick .35s cubic-bezier(.2,.9,.3,1.6); }
.dfq-opt.is-off { opacity: .45; }

.dfq-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.dfq-back { background: none; border: 0; color: var(--q-muted); font-weight: 600; padding: 10px 6px; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; min-height: 44px; }
.dfq-back:hover, .dfq-back:focus-visible { color: #fff; }
.dfq-next { margin-left: auto; }
.dfq-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: 0 1.6rem; border: 0; border-radius: 13px; background: var(--q-orange); color: #1a0d30; font-weight: 800; font-size: 1.02rem; cursor: pointer; box-shadow: 0 10px 30px rgba(243,149,104,.35); transition: transform .15s, background .15s, opacity .2s; text-decoration: none; }
.dfq-btn:hover { background: #f7a982; transform: translateY(-1px); color: #1a0d30; }
.dfq-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.dfq-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.dfq-btn.is-ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; border: 1px solid var(--q-line); }
.dfq-btn i { transition: transform .2s; }
.dfq-btn:hover i.bi-arrow-right { transform: translateX(4px); }
.dfq-hint { font-size: .85rem; color: var(--q-muted); }

/* Intro */
.dfq-hero-art { width: 150px; height: 150px; margin: 0 auto 10px; display: block; }
.dfq-intro { text-align: center; }
.dfq-intro .dfq-q { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.dfq-gets { list-style: none; padding: 0; margin: 1.3rem auto 1.6rem; display: grid; gap: .65rem; max-width: 440px; text-align: left; }
.dfq-gets li { color: #fff; display: flex; gap: .7rem; align-items: flex-start; animation: dfq-pop .45s both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.dfq-gets i { color: var(--q-orange); margin-top: .15rem; }
.dfq-plain { display: inline-block; margin-top: 1rem; color: var(--q-muted); font-size: .9rem; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.dfq-plain:hover { color: #fff; }
.dfq-orbit-node { transform-origin: 75px 75px; animation: dfq-spin 9s linear infinite; }
.dfq-orbit-node.n2 { animation-duration: 13s; animation-direction: reverse; }
.dfq-orbit-node.n3 { animation-duration: 17s; }
.dfq-core { transform-origin: 75px 75px; animation: dfq-pulse 2.4s ease-in-out infinite; }

/* Analysing */
.dfq-scan { text-align: center; padding-top: 6vh; }
.dfq-scan svg { width: 140px; height: 140px; }
.dfq-scan-ring { transform-origin: 70px 70px; animation: dfq-spin 1.4s linear infinite; }
.dfq-scan ul { list-style: none; padding: 0; margin: 1.6rem auto 0; display: grid; gap: .7rem; max-width: 360px; text-align: left; }
.dfq-scan li { display: flex; gap: .6rem; align-items: center; color: var(--q-muted); opacity: .35; transition: opacity .3s, color .3s; }
.dfq-scan li.is-done { opacity: 1; color: #fff; }
.dfq-scan li i { color: var(--q-teal); }

/* Contact */
.dfq-teaser { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(79,209,197,.35); background: linear-gradient(135deg, rgba(79,209,197,.12), rgba(123,79,208,.12)); margin-bottom: 1.3rem; animation: dfq-pop .5s both; }
.dfq-teaser-gauge { flex: 0 0 auto; width: 64px; height: 64px; filter: blur(.6px); }
.dfq-teaser b { display: block; font-size: 1.08rem; }
.dfq-teaser span { color: var(--q-muted); font-size: .9rem; }
.dfq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .dfq-fields { grid-template-columns: 1fr; } }
.dfq-field { display: grid; gap: 6px; }
.dfq-field.is-wide { grid-column: 1 / -1; }
.dfq-field label { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); }
.dfq-field input { min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--q-line); background: rgba(255,255,255,.06); color: #fff; font-size: 1rem; transition: border-color .2s, background .2s; }
.dfq-field input:focus { outline: none; border-color: var(--q-orange); background: rgba(255,255,255,.09); }
.dfq-field input[aria-invalid="true"] { border-color: #ff8a8a; }
.dfq-err { color: #ffb0b0; font-size: .82rem; min-height: 1em; }
.dfq-check { display: flex; gap: .6rem; align-items: flex-start; margin-top: 14px; font-size: .9rem; color: var(--q-muted); cursor: pointer; }
.dfq-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--q-orange); flex: 0 0 auto; }
.dfq-notice { font-size: .82rem; color: var(--q-muted); margin: 14px 0 0; line-height: 1.5; }
.dfq-notice a { color: #fff; }
.dfq-formerr { color: #ffb0b0; margin-top: 12px; font-weight: 600; }

/* Results */
.dfq-res-head { text-align: center; }
.dfq-gauge { width: min(260px, 70vw); display: block; margin: 0 auto -8px; overflow: visible; }
.dfq-gauge-track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 16; stroke-linecap: round; }
.dfq-gauge-val { fill: none; stroke: url(#dfq-grad); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1.8s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 10px rgba(243,149,104,.45)); }
.dfq-score { font-size: 4.2rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.dfq-score small { font-size: 1.3rem; color: var(--q-muted); font-weight: 700; }
.dfq-band { font-size: 1.35rem; font-weight: 800; margin: .5rem 0 .3rem; background: linear-gradient(90deg, #fff, var(--q-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dfq-band-text { color: var(--q-muted); max-width: 520px; margin: 0 auto; }
.dfq-cards { display: grid; gap: 12px; margin-top: 22px; }
.dfq-card { padding: 18px; border-radius: 16px; background: rgba(24,15,44,.9); border: 1px solid var(--q-line); animation: dfq-rise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 120ms + 600ms); }
.dfq-card h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 .7rem; color: #fff; display: flex; gap: .5rem; align-items: center; }
.dfq-card h3 i { color: var(--q-orange); }
.dfq-cat { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 12px; }
.dfq-cat b { font-size: .95rem; }
.dfq-cat .dfq-num { font-weight: 800; font-variant-numeric: tabular-nums; }
.dfq-cat .dfq-track { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.dfq-cat .dfq-track span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--q-purple), var(--q-orange)); transition: width 1.3s cubic-bezier(.2,.8,.2,1); }
.dfq-cat small { grid-column: 1 / -1; color: var(--q-muted); font-size: .85rem; }
.dfq-hours { display: flex; gap: 16px; align-items: center; }
.dfq-hours-num { font-size: 2.5rem; font-weight: 900; color: var(--q-teal); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dfq-hours p { margin: 0; color: var(--q-muted); font-size: .9rem; }
.dfq-opp { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--q-line); }
.dfq-opp:first-of-type { border-top: 0; padding-top: 0; }
.dfq-opp > i { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(243,149,104,.16); color: var(--q-orange); font-size: 1.2rem; }
.dfq-opp b { display: block; margin-bottom: .2rem; }
.dfq-opp p { margin: 0 0 .3rem; color: var(--q-muted); font-size: .92rem; }
.dfq-opp em { font-style: normal; color: #c9b5ff; font-size: .88rem; }
.dfq-next-card { border-color: rgba(243,149,104,.5); background: linear-gradient(135deg, rgba(243,149,104,.16), rgba(123,79,208,.16)); }
.dfq-next-card p { margin: 0 0 1rem; }
.dfq-next-card .dfq-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dfq-phone-ring { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--q-orange); color: #1a0d30; margin-right: .3rem; animation: dfq-ring 1.6s ease-in-out infinite; }
.dfq-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.dfq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Landing page pieces: hero industry chips and the example result */
.dfq-start { margin-top: 1.6rem; }
.dfq-start p { font-weight: 700; color: var(--pv-ink, #fff); margin: 0 0 .7rem; }
.dfq-start p span { color: var(--pv-orange, #f39568); }
.dfq-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.dfq-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-weight: 600; font-size: .93rem; cursor: pointer; transition: transform .18s, border-color .18s, background .18s; animation: dfq-pop .45s both; animation-delay: calc(var(--i, 0) * 60ms + 300ms); }
.dfq-chip i { color: var(--pv-orange, #f39568); }
.dfq-chip:hover, .dfq-chip:focus-visible { transform: translateY(-2px); border-color: var(--pv-orange, #f39568); background: rgba(243,149,104,.14); outline: none; }

.dfq-example { --q-purple: #7b4fd0; --q-orange: #f39568; --q-muted: rgba(255,255,255,.66);   /* the card sits outside the quiz dialog, which defines these */
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 52px 26px 26px; border-radius: 22px; background: linear-gradient(135deg, rgba(90,50,154,.25), rgba(15,8,32,.6)); border: 1px solid rgba(255,255,255,.1); position: relative; overflow: hidden; }
@media (max-width: 767px) { .dfq-example { grid-template-columns: 1fr; text-align: center; } }
.dfq-example .dfq-tag { position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .2rem .6rem; }
.dfq-example .dfq-cat { text-align: left; }

@keyframes dfq-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dfq-fade { from { opacity: 0; } }
@keyframes dfq-slide { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes dfq-slide-back { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes dfq-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dfq-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes dfq-tick { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes dfq-shine { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }
@keyframes dfq-drift { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes dfq-spin { to { transform: rotate(360deg); } }
@keyframes dfq-pulse { 50% { transform: scale(1.12); } }
@keyframes dfq-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: rotate(0); } }

@media (prefers-reduced-motion: reduce) {
  .dfq *, .dfq, .dfq::backdrop, .dfq-chip { animation: none !important; transition: none !important; }
}
.dfq-end-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
