/* Quiz page styles. Tokens and type from move2europe.eu (docs/BRAND_GUIDELINES.md). */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/outfit.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('../fonts/plus-jakarta-sans.woff2') format('woff2'); }

:root {
  --dark: #0a0e1a; --dark2: #111827; --dark3: #1a2234; --dark4: #212d3f;
  --gold: #f0a500; --gold2: #ffc433; --gold-dim: rgba(240,165,0,.08); --gold-glow: rgba(240,165,0,.15);
  --text: #e2e8f0; --muted: #94a3b8; --white: #f8fafc;
  --font-display: 'Plus Jakarta Sans', sans-serif; --font-body: 'Outfit', sans-serif;
  --radius: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--dark); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.white { color: var(--white); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10,14,26,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.05); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo img { height: 32px; width: auto; }
.nav-link { font-size: .85rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-link:hover { color: var(--gold); }

/* Badge: gold line accent before the text, no pill (brand rule). */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 600; color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold2)); }

h1, h2 { font-family: var(--font-display); font-weight: 800; color: var(--white); letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: 3rem; }
.hl { color: var(--gold); }
.lead { font-size: 1.05rem; color: var(--muted); }

/* Buttons: pill, 0.9rem max (brand rule). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-size: .9rem; font-weight: 600; line-height: 1.2; border-radius: 60px; padding: 13px 30px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s, color .25s, opacity .25s; }
.btn-gold { color: var(--dark); background: linear-gradient(135deg, var(--gold), var(--gold2)); box-shadow: 0 8px 24px rgba(240,165,0,.22); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(240,165,0,.32); }
.btn-gold:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { color: var(--text); background: transparent; border-color: rgba(255,255,255,.16); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-back { background: none; border: 0; font: inherit; font-size: .9rem; font-weight: 500; color: var(--muted); cursor: pointer; padding: 10px 2px; }
.btn-back:hover { color: var(--gold); }

/* Gold tick list */
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: .98rem; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(240,165,0,.35); background: var(--gold-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.5 3.6' fill='none' stroke='%23f0a500' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Hero trust line */
.trust { display: flex; align-items: center; gap: 14px; }
.trust p { font-size: .88rem; line-height: 1.45; color: var(--muted); }

/* ---------- Quiz card ---------- */
.quiz { display: flex; flex-direction: column; background: var(--dark3); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 26px 26px 22px; min-height: 540px; }
.quiz-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.quiz-top .count { color: var(--text); font-weight: 600; }
.quiz-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 22px; }
.quiz-bar span { height: 4px; border-radius: 4px; background: rgba(255,255,255,.09); transition: background .3s; }
.quiz-bar span.done { background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.quiz-bar span.now { background: rgba(240,165,0,.45); }
.quiz-step { display: flex; flex-direction: column; flex: 1; animation: stepIn .28s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.quiz-q { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--white); outline: none; }
.quiz-hint { min-height: 1.4em; margin-top: 6px; font-size: .85rem; color: var(--muted); transition: color .2s; }
.quiz-hint.warn { color: var(--gold2); }
.quiz-hint:empty { display: none; }
/* One column reads best for sentence-length answers; short ones (jobs, countries) use two. */
.opts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.opts.compact { grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; text-align: left; font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.3; color: var(--text); background: var(--dark2); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 11px 14px; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.opt:hover { transform: translateY(-2px); border-color: rgba(240,165,0,.35); }
.opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt .ico { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--gold-dim); font-size: 1.15rem; }
.opt .txt { flex: 1; }
.opt .tick { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); transition: background .2s, border-color .2s; }
.opt .tick svg { width: 12px; height: 12px; opacity: 0; transition: opacity .2s; }
.opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(240,165,0,.09); }
.opt[aria-pressed="true"] .tick { border-color: transparent; background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.opt[aria-pressed="true"] .tick svg { opacity: 1; }
.opt.shake { animation: shake .35s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.field .optional { font-weight: 400; color: var(--muted); }
.input, .select { width: 100%; font: inherit; font-size: 1rem; color: var(--white); background: var(--dark2); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 13px 14px; }
.input::placeholder { color: #64748b; }
.input:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,165,0,.15); }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; background: var(--dark2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center/12px no-repeat; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .85rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold); }
.quiz-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; min-height: 68px; }
.quiz-foot .grow { flex: 1; }
.quiz-note { margin-top: 14px; font-size: .78rem; line-height: 1.5; color: var(--muted); text-align: center; }
.quiz-sub { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.done { text-align: center; margin: auto 0; }
.done-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.done-mark svg { width: 28px; height: 28px; }
.done .btn { margin-top: 22px; }
.done .again { display: block; margin: 14px auto 0; }

@media (prefers-reduced-motion: reduce) {
  .quiz-step, .opt.shake { animation: none; }
  .opt, .btn { transition: none; }
}

/* ---------- Content sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--dark2); }
.section h2 { font-size: 2.2rem; text-align: center; }
.section .sub { max-width: 620px; margin: 12px auto 0; text-align: center; color: var(--muted); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--dark3); border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius); padding: 28px 24px; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(240,165,0,.2); }
.card .icon-box { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 13px; background: var(--gold-dim); font-size: 1.4rem; }
.card h3 { margin-bottom: 6px; font-size: 1.08rem; font-weight: 700; color: var(--white); }
.card p { font-size: .92rem; color: var(--muted); }
.faq { display: grid; gap: 10px; max-width: 760px; margin: 40px auto 0; }
.faq details { background: var(--dark3); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; padding: 16px 20px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--white); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin-top: 10px; font-size: .95rem; color: var(--muted); }
.team { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.team h2 { font-size: 1.8rem; }
.team p { color: var(--muted); }
.footer { padding: 32px 0 40px; border-top: 1px solid rgba(255,255,255,.06); font-size: .85rem; color: var(--muted); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .cards3 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section h2 { font-size: 1.8rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2.05rem; }
  .quiz { min-height: 0; padding: 20px 16px 14px; border-radius: 18px; }
  .quiz-q { font-size: 1.22rem; }
  .opts.compact .opt { gap: 8px; padding: 10px; font-size: .9rem; }
  .opts.compact .opt .ico { flex-basis: 30px; height: 30px; font-size: 1rem; }
  .opts.compact .opt .tick { display: none; }
  .opt { min-height: 56px; }
  /* Back and Next stay on screen while the answers scroll. */
  .quiz-foot { position: sticky; bottom: 0; margin: auto -16px 0; padding: 14px 16px; background: linear-gradient(to top, var(--dark3) 70%, rgba(26,34,52,0)); }
}

/* ---------- Page layout (full-screen quiz) ---------- */
.nav-right { display: flex; align-items: center; gap: 22px; }
.btn-sm { font-size: .85rem; padding: 10px 22px; }

/* Hero */
.hero-b { position: relative; overflow: hidden; text-align: center; }
.hero-b::before { content: ""; position: absolute; inset: -40% 10% auto; height: 90%; background: radial-gradient(closest-side, rgba(240,165,0,.10), transparent); pointer-events: none; }
.hero-b .container { position: relative; padding-top: 64px; padding-bottom: 96px; }
.hero-b h1 { margin: 18px auto 16px; max-width: 760px; }
.hero-b .lead { max-width: 560px; margin: 0 auto; }
.hero-b-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.meta span::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.hero-b .trust { justify-content: center; margin-top: 26px; text-align: center; }
.teaser { max-width: 720px; margin: 44px auto 0; padding: 24px 24px 20px; text-align: left; background: var(--dark3); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.teaser .quiz-top { margin-bottom: 8px; }
.teaser .quiz-q { font-size: 1.25rem; }
.teaser-hint { margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.step { position: relative; padding: 30px 24px 26px; background: var(--dark3); border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; font-family: var(--font-display); font-weight: 800; color: var(--dark); background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.step h3 { margin-bottom: 6px; font-size: 1.08rem; font-weight: 700; color: var(--white); }
.step p { font-size: .92rem; color: var(--muted); }

/* Guide contents */
.guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.service { display: flex; flex-direction: column; gap: 8px; padding: 28px 22px 24px; background: var(--dark3); border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius); transition: transform .3s, border-color .3s; }
.service:hover { transform: translateY(-5px); border-color: rgba(240,165,0,.2); }
.service.featured { border-color: rgba(240,165,0,.45); box-shadow: 0 0 0 1px rgba(240,165,0,.15), 0 18px 40px rgba(240,165,0,.08); }
.service .kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.service h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--white); }
.service .price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--white); }
.service .price small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); }
.service p { font-size: .92rem; color: var(--muted); }
.services-foot { margin-top: 26px; text-align: center; font-size: .9rem; color: var(--muted); }
.services-foot a { color: var(--gold); text-decoration: none; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--dark3); border: 1px solid rgba(255,255,255,.05); border-radius: 16px; font-size: .95rem; color: var(--text); }
.trust-item .icon-box { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-dim); font-size: 1.2rem; }

/* Final call to action */
.final { text-align: center; }
.final-box { max-width: 820px; margin: 0 auto; padding: 56px 32px; background: radial-gradient(600px 240px at 50% 0, rgba(240,165,0,.12), transparent), var(--dark3); border: 1px solid rgba(240,165,0,.2); border-radius: 24px; }
.final-box h2 { font-size: 2.2rem; }
.final-box p { max-width: 520px; margin: 12px auto 26px; color: var(--muted); }

/* Phone: a start bar pinned to the bottom once the hero button has scrolled away */
.sticky-start { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(10,14,26,.98) 65%, rgba(10,14,26,0)); }
.sticky-start .btn { width: 100%; }

/* Quiz takeover */
.takeover { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto; background: radial-gradient(1200px 600px at 20% -10%, rgba(240,165,0,.10), transparent), var(--dark); }
.takeover[hidden] { display: none; }
.takeover-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 28px; background: rgba(10,14,26,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.05); }
.takeover-bar img { height: 30px; width: auto; }
.takeover-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--text); font-size: 1rem; cursor: pointer; }
.takeover-close:hover { border-color: var(--gold); color: var(--gold); }
.takeover-body { flex: 1; display: flex; justify-content: center; padding: 44px 28px 56px; }
.quiz.quiz--full { width: 100%; max-width: 680px; min-height: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.quiz--full .quiz-q { font-size: 2rem; }
.quiz--full .opt { min-height: 68px; font-size: 1rem; }
body.quiz-open { overflow: hidden; }

@media (max-width: 1000px) {
  .guide, .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .steps, .trust-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-right .nav-link { display: none; }
  .hero-b .container { padding-top: 36px; padding-bottom: 64px; }
  .teaser { margin-top: 30px; padding: 18px 16px; }
  .guide, .services { grid-template-columns: 1fr; }
  .final-box { padding: 40px 20px; }
  .final-box h2 { font-size: 1.8rem; }
  .sticky-start.show { display: block; }
  body { padding-bottom: 76px; }
  .takeover-bar { padding: 0 16px; }
  .takeover-body { padding: 22px 16px 0; }
  .quiz--full .quiz-q { font-size: 1.45rem; }
  .quiz--full .quiz-foot { margin: auto -16px 0; background: linear-gradient(to top, var(--dark) 70%, rgba(10,14,26,0)); }
}

/* Visible focus rings for keyboard users. */
.btn:focus-visible, .btn-back:focus-visible, .takeover-close:focus-visible, .nav a:focus-visible, .footer a:focus-visible, .faq summary:focus-visible, .services-foot a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Sending failed: shown inside the form, answers kept. */
.form-error { margin-top: 14px; padding: 12px 14px; font-size: .88rem; line-height: 1.5; color: var(--white); background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.45); border-radius: 12px; }
.form-error[hidden] { display: none; }
.footer .linkedin svg { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; }
@media (prefers-reduced-motion: reduce) {
  .service, .card, .takeover-close { transition: none; }
  .service:hover, .card:hover, .btn-gold:hover, .opt:hover { transform: none; }
}
