/* AssemblySoft.Enquiry - guided brief wizard.
   Self-contained: every rule is scoped under .eq-wizard so the host page's Bootstrap 3 CSS and the
   wizard never fight. No Bootstrap 4 utilities are assumed (the site CSS does not ship them). */

.eq-wizard {
    --eq-navy: #0f172a;
    --eq-ink: #1e293b;
    --eq-muted: #64748b;
    --eq-line: #e2e8f0;
    --eq-soft: #f8fafc;
    --eq-accent: #00bfff;
    --eq-accent-deep: #0284c7;
    --eq-accent-ink: #075985;
    --eq-accent-tint: #e6f8ff;
    --eq-ok: #10b981;
    --eq-warn: #b45309;
    --eq-err: #b91c1c;
    --eq-radius: 18px;
    --eq-font: 'Inter', 'Inter Fallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --eq-font-head: 'Space Grotesk', 'Space Grotesk Fallback', 'Inter', 'Segoe UI', sans-serif;

    position: relative;
    font-family: var(--eq-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--eq-ink);
    background: #fff;
    border: 1px solid var(--eq-line);
    border-radius: var(--eq-radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}
.eq-wizard *, .eq-wizard *::before, .eq-wizard *::after { box-sizing: border-box; }
/* The host theme uppercases and letter-spaces strong/small/button text; neutralise that inside the
   wizard (low specificity via :where so the kicker/label rules below still win). */
.eq-wizard :where(strong, small, span, button, label, p, li, dt, dd, h3, h4, summary, a, input, textarea, select) {
    text-transform: none; letter-spacing: normal; font-family: inherit;
}
.eq-wizard :where(input, textarea)::placeholder { text-transform: none; letter-spacing: normal; }
/* The host also targets input[type=text|email|tel] directly, which outranks :where(); match its specificity. */
.eq-wizard input[type="text"], .eq-wizard input[type="email"], .eq-wizard input[type="tel"], .eq-wizard .eq-input {
    text-transform: none; letter-spacing: normal;
}
.eq-wizard p, .eq-wizard ul, .eq-wizard ol, .eq-wizard h3, .eq-wizard h4, .eq-wizard dl { margin: 0; }
.eq-wizard ul, .eq-wizard ol { padding: 0; list-style: none; }
.eq-wizard a { color: var(--eq-accent-deep); }
.eq-wizard button { font-family: inherit; }
.eq-wizard.eq-disabled { padding: 28px 32px; }

/* ── Header: assistant + progress ────────────────────────────── */
.eq-head {
    background: linear-gradient(135deg, var(--eq-navy) 0%, #172554 100%);
    color: #fff;
    padding: 24px 28px 20px;
    position: relative;
    overflow: hidden;
}
.eq-head::before {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0,191,255,0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,191,255,0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.eq-head::after {
    content: '';
    position: absolute; top: -120px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(0,191,255,0.22) 0%, transparent 70%);
    pointer-events: none;
}
.eq-head > * { position: relative; z-index: 1; }

.eq-assistant { display: flex; align-items: flex-start; gap: 14px; }
.eq-avatar { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }
.eq-avatar svg { display: block; filter: drop-shadow(0 4px 10px rgba(0,191,255,0.35)); }
.eq-pulse {
    position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(0,191,255,0.55);
    animation: eqPulse 2.4s ease-out infinite;
}
.eq-bubble {
    flex: 1; min-width: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 4px 16px 16px 16px;
    padding: 12px 16px;
    backdrop-filter: blur(6px);
    animation: eqBubbleIn 0.45s cubic-bezier(.2,.8,.2,1) both;
}
.eq-bubble-name { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #7dd8ff; font-weight: 700; margin-bottom: 4px; }
.eq-bubble p { font-size: 1.02rem; line-height: 1.5; color: #f1f5f9; }

.eq-progress { margin-top: 18px; }
.eq-steps { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.eq-step { display: flex; align-items: center; gap: 7px; min-width: 0; color: #94a3b8; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }
.eq-step-dot {
    flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(148,163,184,0.6);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.eq-step-active { color: #fff; }
.eq-step-active .eq-step-dot { border-color: var(--eq-accent); background: var(--eq-accent); box-shadow: 0 0 0 4px rgba(0,191,255,0.25); transform: scale(1.05); }
.eq-step-done { color: #cbd5e1; }
.eq-step-done .eq-step-dot { border-color: var(--eq-ok); background: var(--eq-ok); }
.eq-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.eq-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--eq-accent), #38bdf8); border-radius: 999px; transition: width 0.5s cubic-bezier(.2,.8,.2,1); }
.eq-eta { display: block; margin-top: 8px; font-size: 0.76rem; color: #94a3b8; text-align: right; }

/* ── Body ─────────────────────────────────────────────────────── */
.eq-body { padding: 28px 28px 8px; }
.eq-pane { animation: eqSlideFwd 0.4s cubic-bezier(.2,.8,.2,1) both; }
.eq-dir-back .eq-pane { animation-name: eqSlideBack; }

.eq-kicker { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eq-accent-deep); margin-bottom: 10px; }
.eq-title { font-family: var(--eq-font-head); font-size: 1.5rem; font-weight: 700; color: var(--eq-navy); line-height: 1.25; margin-bottom: 10px; letter-spacing: -0.01em; }
.eq-title-sm { font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eq-title-sm i { color: var(--eq-accent-deep); font-size: 1.05rem; }
.eq-subtitle { font-family: var(--eq-font-head); font-size: 1.05rem; font-weight: 700; color: var(--eq-navy); margin: 26px 0 12px; }
.eq-lead { font-size: 1.02rem; color: #334155; margin-bottom: 20px; max-width: 60ch; }
.eq-hint { color: var(--eq-muted); font-size: 0.95rem; margin-bottom: 18px; }
.eq-muted { color: var(--eq-muted); font-size: 0.9rem; }

.eq-welcome { text-align: center; padding: 6px 0 10px; }
.eq-welcome .eq-lead { margin-left: auto; margin-right: auto; }
.eq-field-inline { max-width: 360px; margin: 0 auto 22px; text-align: left; }

.eq-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 22px; }
.eq-trust li { display: inline-flex; align-items: center; gap: 7px; color: var(--eq-muted); font-size: 0.86rem; }
.eq-trust i { color: var(--eq-ok); }

/* Split layout: questions + offer panel */
.eq-split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.eq-main { min-width: 0; }
.eq-offer {
    background: linear-gradient(180deg, var(--eq-accent-tint) 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 18px 18px 14px;
    position: sticky; top: 96px;
}
.eq-offer-kicker { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--eq-accent-ink); margin-bottom: 12px; }
.eq-offer ul li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 0.9rem; color: #0c4a6e; line-height: 1.45; }
.eq-offer ul li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--eq-accent); box-shadow: 0 0 0 3px rgba(0,191,255,0.2); }
.eq-offer-foot { margin-top: 10px; font-size: 0.78rem; color: var(--eq-accent-ink); opacity: 0.85; }

.eq-section + .eq-section { margin-top: 26px; padding-top: 24px; border-top: 1px dashed var(--eq-line); }

/* ── Fields ───────────────────────────────────────────────────── */
.eq-field { display: block; margin-bottom: 20px; }
.eq-field:last-child { margin-bottom: 8px; }
.eq-label { display: block; font-weight: 600; color: var(--eq-navy); font-size: 0.98rem; margin-bottom: 10px; }
.eq-label small { font-weight: 500; color: var(--eq-muted); font-size: 0.82rem; margin-left: 4px; }
.eq-label em { color: var(--eq-err); font-style: normal; }
.eq-input {
    width: 100%; min-height: 48px;
    padding: 11px 14px;
    font: inherit; font-size: 1rem; color: var(--eq-ink);
    background: #fff;
    border: 1.5px solid #cbd5e1; border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
}
.eq-input::placeholder { color: #94a3b8; }
.eq-input:focus { outline: none; border-color: var(--eq-accent-deep); box-shadow: 0 0 0 4px rgba(0,191,255,0.18); }
.eq-input.invalid, .eq-input.modified.invalid { border-color: var(--eq-err); }
.eq-textarea { resize: vertical; min-height: 160px; line-height: 1.55; }
.eq-counter { display: block; text-align: right; color: var(--eq-muted); font-size: 0.78rem; margin-top: 6px; }
.eq-wizard .validation-message { display: block; color: var(--eq-err); font-size: 0.85rem; margin-top: 6px; }
.eq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.eq-grid .eq-field { margin-bottom: 16px; }

.eq-note { display: flex; gap: 8px; align-items: flex-start; background: var(--eq-accent-tint); border: 1px solid #bae6fd; border-radius: 10px; padding: 10px 14px; font-size: 0.88rem; color: #0c4a6e; margin: -6px 0 18px; line-height: 1.45; }
.eq-note i { color: var(--eq-accent-deep); margin-top: 2px; }

/* Download call-out (the Word questionnaire for job applicants) */
.eq-download { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #fff; border: 1.5px solid var(--eq-accent-deep); border-radius: 14px; padding: 14px 16px; margin: -4px 0 18px; box-shadow: 0 8px 22px rgba(2,132,199,0.10); text-align: left; }
.eq-download > i { font-size: 2rem; color: var(--eq-accent-deep); flex: 0 0 auto; }
.eq-download-body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eq-download-body strong { color: var(--eq-navy); font-size: 0.98rem; }
.eq-download-body span { font-size: 0.88rem; color: #334155; line-height: 1.45; }
.eq-download-body a { color: var(--eq-accent-deep); font-weight: 600; }
.eq-download .eq-btn-sm { min-height: 42px; padding: 9px 16px; font-size: 0.9rem; border-color: var(--eq-accent-deep); color: var(--eq-accent-deep) !important; flex: 0 0 auto; }
.eq-download .eq-btn-sm:hover { background: var(--eq-accent-tint); }
.eq-download-done { max-width: 560px; margin: 18px auto 22px; }
.eq-wizard input[type="url"] { text-transform: none; letter-spacing: normal; }
.eq-prompts { background: var(--eq-soft); border: 1px solid var(--eq-line); border-radius: 12px; padding: 14px 16px; margin-top: 6px; }
.eq-prompts-title { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--eq-muted); margin-bottom: 8px; }
.eq-prompts li { font-size: 0.9rem; color: #334155; padding-left: 18px; position: relative; margin-bottom: 4px; }
.eq-prompts li::before { content: '\2192'; position: absolute; left: 0; color: var(--eq-accent-deep); }

/* Chips (tick boxes) */
.eq-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.eq-chip {
    display: inline-flex; align-items: center; gap: 9px;
    min-height: 44px; padding: 9px 16px 9px 12px;
    font-size: 0.95rem; font-weight: 500; color: var(--eq-ink); text-align: left;
    background: #fff; border: 1.5px solid #cbd5e1; border-radius: 999px;
    cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
    line-height: 1.3;
}
.eq-chip:hover { border-color: var(--eq-accent-deep); background: #f0f9ff; }
.eq-chip:active { transform: scale(0.98); }
.eq-chip:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,191,255,0.3); }
.eq-chip.eq-on { background: var(--eq-navy); border-color: var(--eq-navy); color: #fff; box-shadow: 0 6px 16px rgba(15,23,42,0.18); }
.eq-chip-box {
    flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px;
    border: 1.5px solid #94a3b8; display: inline-flex; align-items: center; justify-content: center;
    color: transparent; background: #fff; transition: all 0.15s;
}
.eq-chip.eq-on .eq-chip-box { background: var(--eq-accent); border-color: var(--eq-accent); color: var(--eq-navy); }
.eq-chip-dot { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #94a3b8; background: #fff; position: relative; transition: all 0.15s; }
.eq-chip.eq-on .eq-chip-dot { border-color: var(--eq-accent); }
.eq-chip.eq-on .eq-chip-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--eq-accent); }
.eq-chip i { color: var(--eq-accent-deep); }
.eq-chip.eq-on i { color: #7dd8ff; }

/* "Not sure at the moment": present in every question; dashed and softer so it reads as the safe escape hatch */
.eq-chip.eq-unsure { border-style: dashed; color: var(--eq-muted); background: var(--eq-soft); }
.eq-chip.eq-unsure:hover { color: var(--eq-ink); }
.eq-chip.eq-unsure.eq-on { border-style: solid; background: var(--eq-accent-ink); border-color: var(--eq-accent-ink); color: #fff; }
.eq-card.eq-unsure { border-style: dashed; background: var(--eq-soft); }
.eq-card.eq-unsure.eq-on { border-style: solid; }

/* Cards (big choices) */
.eq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.eq-cards-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.eq-card {
    position: relative; display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 44px 18px 18px; min-height: 92px; text-align: left;
    background: #fff; border: 1.5px solid #cbd5e1; border-radius: 16px;
    cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
    color: var(--eq-ink);
}
.eq-cards-sm .eq-card { padding: 14px 40px 14px 16px; min-height: 0; }
.eq-card:hover { border-color: var(--eq-accent-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,0.08); }
.eq-card:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,191,255,0.3); }
.eq-card.eq-on { border-color: var(--eq-accent-deep); background: linear-gradient(180deg, #f0f9ff, #fff); box-shadow: 0 10px 24px rgba(2,132,199,0.14); }
.eq-card-icon {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
    background: var(--eq-accent-tint); color: var(--eq-accent-deep);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
    transition: background 0.15s, color 0.15s;
}
.eq-card.eq-on .eq-card-icon { background: var(--eq-navy); color: var(--eq-accent); }
.eq-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.eq-card-text strong { font-size: 1rem; color: var(--eq-navy); line-height: 1.3; }
.eq-card-text small { font-size: 0.84rem; color: var(--eq-muted); line-height: 1.4; }
.eq-tick {
    position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%;
    border: 1.5px solid #cbd5e1; background: #fff; color: transparent;
    display: inline-flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.eq-card.eq-on .eq-tick { background: var(--eq-ok); border-color: var(--eq-ok); color: #fff; }

/* ── Review, captcha, consent ─────────────────────────────────── */
.eq-review { border: 1px solid var(--eq-line); border-radius: 12px; background: var(--eq-soft); margin: 6px 0 18px; }
.eq-review summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--eq-navy); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; list-style: none; }
.eq-review summary::-webkit-details-marker { display: none; }
.eq-review summary::after { content: '+'; margin-left: auto; color: var(--eq-muted); font-weight: 700; }
.eq-review[open] summary::after { content: '\2212'; }
.eq-review dl { padding: 0 16px 14px; }
.eq-review dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--eq-muted); margin: 12px 0 4px; }
.eq-review dd { margin: 0; font-size: 0.9rem; color: #334155; padding: 3px 0; display: flex; gap: 10px; white-space: pre-line; }
.eq-review dd span { flex: 0 0 38%; color: var(--eq-muted); }
.eq-captcha-row { margin: 10px 0 14px; min-height: 40px; }
.eq-captcha { min-height: 78px; }
.eq-verified { display: flex; align-items: center; gap: 8px; color: #047857; font-size: 0.9rem; font-weight: 600; margin-top: 8px; }
.eq-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.eq-consent { font-size: 0.82rem; color: var(--eq-muted); margin: 6px 0 18px; }
.eq-error { display: flex; gap: 8px; align-items: flex-start; color: var(--eq-err); background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; margin: 0 0 14px; }
.eq-error i { margin-top: 2px; }

/* ── Footer actions ───────────────────────────────────────────── */
.eq-foot { padding: 8px 28px 24px; }
.eq-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.eq-actions-center { justify-content: center; }
.eq-foot-note { flex: 1; text-align: center; font-size: 0.82rem; color: var(--eq-muted); min-width: 0; }
.eq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 24px;
    font-size: 0.98rem; font-weight: 700; letter-spacing: 0.01em; text-transform: none;
    border-radius: 12px; border: 1.5px solid transparent; cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
    text-decoration: none !important; line-height: 1.2;
}
.eq-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,191,255,0.3); }
.eq-btn:active { transform: scale(0.98); }
.eq-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.eq-btn-primary { background: linear-gradient(90deg, var(--eq-accent), var(--eq-accent-deep)); color: #fff !important; box-shadow: 0 8px 20px rgba(2,132,199,0.3); }
.eq-btn-primary:hover:not([disabled]) { box-shadow: 0 10px 26px rgba(2,132,199,0.4); transform: translateY(-1px); }
.eq-btn-ghost { background: #fff; color: var(--eq-ink) !important; border-color: #cbd5e1; }
.eq-btn-ghost:hover:not([disabled]) { border-color: var(--eq-navy); background: var(--eq-soft); }
.eq-btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }

/* ── Done ─────────────────────────────────────────────────────── */
.eq-done { text-align: center; padding: 6px 0 12px; }
.eq-done-badge { display: inline-block; margin-bottom: 14px; animation: eqPop 0.5s cubic-bezier(.2,.8,.2,1) both; }
.eq-done .eq-lead { margin-left: auto; margin-right: auto; }
.eq-next { text-align: left; max-width: 560px; margin: 0 auto; counter-reset: eq; }
.eq-next li { position: relative; padding: 10px 0 10px 44px; counter-increment: eq; color: #334155; font-size: 0.95rem; border-top: 1px solid var(--eq-line); }
.eq-next li:first-child { border-top: 0; }
.eq-next li::before { content: counter(eq); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--eq-navy); color: var(--eq-accent); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.eq-suggest { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; text-align: left; }
.eq-suggest-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--eq-line); border-radius: 14px; background: #fff; text-decoration: none !important; color: var(--eq-ink); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.eq-suggest-card:hover { border-color: var(--eq-accent-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,23,42,0.08); }
.eq-suggest-card i { color: var(--eq-accent-deep); font-size: 1.3rem; margin-top: 2px; }
.eq-suggest-card span { display: flex; flex-direction: column; gap: 3px; }
.eq-suggest-card strong { color: var(--eq-navy); font-size: 0.95rem; }
.eq-suggest-card small { color: var(--eq-muted); font-size: 0.82rem; line-height: 1.4; }

/* ── Warm-up state (prerendered, circuit not yet connected) ────── */
.eq-warming .eq-body, .eq-warming .eq-foot { opacity: 0.85; }
.eq-warm-pill {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--eq-navy); color: #e2e8f0; font-size: 0.78rem; font-weight: 600;
    padding: 7px 14px; border-radius: 999px; box-shadow: 0 8px 20px rgba(15,23,42,0.25);
    pointer-events: none; opacity: 0; animation: eqFadeIn 0.3s 1.2s both;
}
.eq-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: eqSpin 0.8s linear infinite; display: inline-block; }
.eq-btn-ghost .eq-spinner { border-color: rgba(15,23,42,0.2); border-top-color: var(--eq-navy); }

/* ── Variants ─────────────────────────────────────────────────── */
.eq-variant-page { font-size: 17px; }
.eq-variant-page .eq-head { padding: 30px 36px 24px; }
.eq-variant-page .eq-body { padding: 34px 36px 10px; }
.eq-variant-page .eq-foot { padding: 8px 36px 30px; }
.eq-variant-page .eq-title { font-size: 1.7rem; }

/* ── Slide to send (the human check) ──────────────────────────── */
.eq-send { margin: 4px 0 18px; }
.eq-slide {
    --eq-slide-p: 0;
    --eq-knob: 56px;
    --eq-inset: 4px;
    --eq-travel: calc(100% - var(--eq-knob) - var(--eq-inset) * 2);
    position: relative; height: calc(var(--eq-knob) + var(--eq-inset) * 2 + 3px);
    border-radius: 999px;
    background: linear-gradient(180deg, #eef2f7, #f8fafc);
    border: 1.5px solid #cbd5e1;
    box-shadow: inset 0 2px 6px rgba(15,23,42,0.06);
    overflow: hidden;
    user-select: none; -webkit-user-select: none; touch-action: pan-y;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.eq-slide-armed { border-color: #7dd3fc; box-shadow: inset 0 2px 6px rgba(15,23,42,0.05), 0 0 0 4px rgba(0,191,255,0.08); }
.eq-slide[data-eq-state="dragging"], .eq-slide[data-eq-state="keyboard"] { box-shadow: inset 0 2px 6px rgba(15,23,42,0.05), 0 0 0 5px rgba(0,191,255,0.16); }
.eq-slide[data-eq-state="done"] { border-color: var(--eq-navy); }
.eq-slide[data-eq-state="nudge"] { border-color: #fca5a5; box-shadow: 0 0 0 4px rgba(239,68,68,0.12); animation: eqShake 0.45s; }
.eq-slide[data-eq-state="shake"] { animation: eqShake 0.45s; }

.eq-slide-fill {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: calc(var(--eq-knob) + var(--eq-inset) * 2 + var(--eq-travel) * var(--eq-slide-p));
    border-radius: 999px; pointer-events: none;
    background: linear-gradient(90deg, var(--eq-navy) 0%, #1e3a8a 55%, var(--eq-accent-deep) 100%);
    opacity: min(1, var(--eq-slide-p) * 5);
}
.eq-slide-label {
    position: absolute; inset: 0; pointer-events: none;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 0 18px 0 calc(var(--eq-knob) + var(--eq-inset) * 2 + 6px);
    font-size: 0.98rem; font-weight: 600; color: #475569; text-align: center; line-height: 1.2;
    opacity: calc(1 - var(--eq-slide-p) * 2);
}
.eq-slide-idle .eq-slide-label { color: var(--eq-muted); font-weight: 500; font-size: 0.92rem; }
.eq-slide-armed .eq-slide-label {
    color: #1e293b;
    background: linear-gradient(90deg, #1e293b 0%, #1e293b 38%, var(--eq-accent-deep) 50%, #1e293b 62%, #1e293b 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: eqShimmer 3s linear infinite;
}
.eq-slide-chevrons { flex: 0 0 auto; color: var(--eq-accent-deep); -webkit-text-fill-color: initial; animation: eqChevrons 1.8s ease-in-out infinite; }
.eq-slide-busy .eq-slide-label {
    opacity: 1; color: #fff; -webkit-text-fill-color: #fff; background: none; animation: none;
    padding: 0 calc(var(--eq-knob) + var(--eq-inset) * 2 + 6px) 0 18px;
}
.eq-slide-busy .eq-spinner { border-color: rgba(255,255,255,0.35); border-top-color: #fff; }

.eq-slide-knob {
    position: absolute; top: var(--eq-inset);
    left: calc(var(--eq-inset) + var(--eq-travel) * var(--eq-slide-p));
    width: var(--eq-knob); height: var(--eq-knob); border-radius: 50%;
    border: 0; margin: 0; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--eq-accent), var(--eq-accent-deep));
    color: #fff; cursor: grab; touch-action: none;
    box-shadow: 0 6px 16px rgba(2,132,199,0.35), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: box-shadow 0.2s, background 0.3s, transform 0.2s;
}
.eq-slide-knob svg { width: 24px; height: 24px; display: block; }
.eq-slide-knob .eq-slide-tick { display: none; }
.eq-slide-knob:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0,191,255,0.4), 0 6px 16px rgba(2,132,199,0.35); }
.eq-slide-knob[disabled] { cursor: default; }
.eq-slide-idle .eq-slide-knob { background: linear-gradient(135deg, #cbd5e1, #94a3b8); box-shadow: 0 2px 6px rgba(15,23,42,0.14); cursor: not-allowed; }
.eq-slide-armed[data-eq-state="idle"] .eq-slide-arrow { animation: eqNudgeArrow 1.8s ease-in-out infinite; }
.eq-slide[data-eq-state="dragging"] .eq-slide-knob { cursor: grabbing; transform: scale(1.05); box-shadow: 0 10px 24px rgba(2,132,199,0.45), inset 0 1px 0 rgba(255,255,255,0.4); }
.eq-slide[data-eq-state="returning"] .eq-slide-knob,
.eq-slide[data-eq-state="returning"] .eq-slide-fill,
.eq-slide[data-eq-state="returning"] .eq-slide-label,
.eq-slide[data-eq-state="keyboard"] .eq-slide-knob,
.eq-slide[data-eq-state="keyboard"] .eq-slide-fill,
.eq-slide[data-eq-state="keyboard"] .eq-slide-label {
    transition: left 0.45s cubic-bezier(.2,.8,.2,1), width 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.3s, box-shadow 0.2s, background 0.3s;
}
.eq-slide[data-eq-state="done"] .eq-slide-knob { background: linear-gradient(135deg, #34d399, var(--eq-ok)); box-shadow: 0 6px 16px rgba(16,185,129,0.4), inset 0 1px 0 rgba(255,255,255,0.4); cursor: default; }
.eq-slide[data-eq-state="done"] .eq-slide-arrow { display: none; }
.eq-slide[data-eq-state="done"] .eq-slide-tick { display: block; animation: eqPop 0.4s cubic-bezier(.2,.8,.2,1) both; }

.eq-slide-help { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--eq-muted); font-size: 0.82rem; line-height: 1.45; }
.eq-slide-help i { color: var(--eq-ok); font-size: 0.95rem; margin-top: 1px; }
.eq-foot-note-right { text-align: right; }
.eq-foot-note-right a { font-weight: 600; }

/* ── Motion ───────────────────────────────────────────────────── */
@keyframes eqSlideFwd { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes eqSlideBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes eqBubbleIn { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes eqPulse { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes eqPop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes eqFadeIn { to { opacity: 1; } }
@keyframes eqSpin { to { transform: rotate(360deg); } }
@keyframes eqShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes eqChevrons { 0%, 100% { transform: translateX(0); opacity: 0.55; } 50% { transform: translateX(5px); opacity: 1; } }
@keyframes eqNudgeArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes eqShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
    .eq-wizard *, .eq-wizard *::before, .eq-wizard *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .eq-split { grid-template-columns: 1fr; }
    .eq-offer { position: static; }
}
@media (max-width: 640px) {
    .eq-wizard { font-size: 15.5px; border-radius: 14px; }
    .eq-head, .eq-variant-page .eq-head { padding: 18px 16px 16px; }
    .eq-body, .eq-variant-page .eq-body { padding: 22px 16px 6px; }
    .eq-foot, .eq-variant-page .eq-foot { padding: 6px 16px 18px; }
    .eq-title, .eq-variant-page .eq-title { font-size: 1.3rem; }
    .eq-bubble p { font-size: 0.95rem; }
    .eq-step-label { display: none; }
    .eq-step-active .eq-step-label { display: inline; }
    .eq-steps { gap: 4px; }
    .eq-grid { grid-template-columns: 1fr; gap: 0; }
    .eq-cards { grid-template-columns: 1fr; }
    .eq-cards-sm { grid-template-columns: 1fr; }
    .eq-card { min-height: 0; padding: 14px 40px 14px 14px; }
    .eq-chip { font-size: 0.9rem; }
    .eq-actions { flex-direction: column-reverse; align-items: stretch; }
    .eq-actions .eq-btn { width: 100%; }
    .eq-foot-note { order: 3; }
    .eq-review dd { flex-direction: column; gap: 2px; }
    .eq-review dd span { flex: none; }
    .eq-slide { --eq-knob: 52px; }
    .eq-slide-label { font-size: 0.9rem; padding-right: 12px; }
    .eq-slide-idle .eq-slide-label { font-size: 0.84rem; }
    .eq-slide-chevrons { display: none; }
    .eq-foot-note-right { text-align: center; }
}
@media (max-width: 360px) {
    .eq-wizard { font-size: 15px; }
    .eq-assistant { gap: 10px; }
    .eq-avatar { flex-basis: 36px; width: 36px; height: 36px; }
    .eq-avatar svg { width: 36px; height: 36px; }
}
