/* =========================================================
   Förder-Check — frontend quiz styling
   Scoped under .fck-root so it never leaks into the theme.
   Mirrors the dark, accent-gradient prototype design.
   ========================================================= */

.fck-root {
  --fck-acc: #9d6bff;
  --fck-acc-grad: linear-gradient(120deg, color-mix(in srgb, var(--fck-acc) 40%, #ffffff), var(--fck-acc));
  position: relative;
  box-sizing: border-box;
  background: radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--fck-acc) 10%, transparent), transparent 60%), #070519;
  color: #f4f4fa;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  border-radius: 28px;
  padding: clamp(18px, 4vw, 34px);
}
.fck-root *,
.fck-root *::before,
.fck-root *::after { box-sizing: border-box; }
/* The `hidden` attribute must always win, even over elements that set an
   explicit display (e.g. .fck-form uses display:grid). Without this the form
   would stay visible behind the thank-you screen after submit. */
.fck-root [hidden] { display: none !important; }
.fck-root a { color: var(--fck-acc); text-decoration: none; }
.fck-root a:hover { color: #5ff0e6; }
.fck-root .material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24;
}

/* ---- Card ------------------------------------------------ */
.fck-quiz-card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow: hidden;
}
.fck-card-glow {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 190px;
  background: radial-gradient(circle, color-mix(in srgb, var(--fck-acc) 22%, transparent), transparent 70%);
  filter: blur(32px);
  pointer-events: none;
}

/* ---- Progress -------------------------------------------- */
.fck-progress { position: relative; margin-bottom: 28px; }
.fck-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.fck-progress-step { color: rgba(255,255,255,.6); font-weight: 500; font-size: 12.5px; letter-spacing: .03em; }
.fck-progress-pct  { color: var(--fck-acc); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 12.5px; }
.fck-progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
}
.fck-progress-bar {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: var(--fck-acc-grad);
  box-shadow: 0 0 16px color-mix(in srgb, var(--fck-acc) 60%, transparent);
  transition: width .45s cubic-bezier(.4,0,.2,1);
}

/* ---- Stage transition ------------------------------------ */
.fck-stage { position: relative; }
.fck-stage.is-out { opacity: 0; transform: translateY(14px); }
.fck-stage {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .24s ease, transform .24s ease;
}
.fck-step[hidden] { display: none; }

/* ---- Question -------------------------------------------- */
.fck-q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fck-q-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--fck-acc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--fck-acc) 30%, transparent);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.fck-q-icon .material-symbols-rounded { font-size: 24px; color: var(--fck-acc); }
.fck-q-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 11.5px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--fck-acc);
}
.fck-q-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.16; margin: 0 0 24px; color: #fff;
}

/* ---- Options --------------------------------------------- */
.fck-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}
.fck-option {
  display: flex; align-items: center; gap: 10px;
  text-align: left; width: 100%;
  padding: 14px 12px;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.fck-option:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--fck-acc) 55%, transparent);
  background: rgba(255,255,255,.06);
}
.fck-option.is-selected {
  background: color-mix(in srgb, var(--fck-acc) 15%, transparent);
  border-color: var(--fck-acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fck-acc) 20%, transparent);
}
.fck-option-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center; flex: none;
  color: rgba(255,255,255,.82);
}
.fck-option-icon .material-symbols-rounded { font-size: 20px; }
.fck-option.is-selected .fck-option-icon { color: var(--fck-acc); }
.fck-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fck-option-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: clamp(14px, 1.8vw, 16px); line-height: 1.2; color: #fff;
  overflow-wrap: break-word;
}
.fck-option-sub { font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---- Step nav -------------------------------------------- */
.fck-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; min-height: 20px;
}
.fck-btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  color: rgba(255,255,255,.55);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; padding: 6px 4px;
  transition: color .16s;
}
.fck-btn-back:hover { color: #fff; }
.fck-btn-back .material-symbols-rounded { font-size: 18px; }
.fck-btn-next {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 999px;
  padding: 12px 22px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14.5px;
  background: var(--fck-acc-grad); color: #05040f;
  cursor: pointer; transition: opacity .16s, transform .18s;
}
.fck-btn-next[disabled] { opacity: .4; cursor: not-allowed; }
.fck-btn-next:not([disabled]):hover { transform: translateY(-1px); }
.fck-btn-next .material-symbols-rounded { font-size: 18px; }

/* ---- Result ---------------------------------------------- */
.fck-result-head { text-align: center; }
.fck-result-badge-icon {
  width: 72px; height: 72px;
  border-radius: 22px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.fck-eligible-icon {
  background: var(--fck-acc-grad);
  box-shadow: 0 0 40px color-mix(in srgb, var(--fck-acc) 55%, transparent);
}
.fck-eligible-icon .material-symbols-rounded { font-size: 40px; color: #05040f; font-variation-settings: 'FILL' 1, 'wght' 600, 'opsz' 40; }
.fck-info-icon {
  background: rgba(59,123,255,.16);
  border: 1px solid rgba(59,123,255,.4);
}
.fck-info-icon .material-symbols-rounded { font-size: 38px; color: #7fa6ff; }
.fck-result-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--fck-acc); margin-bottom: 12px;
}
.fck-result-eyebrow.fck-muted { color: rgba(255,255,255,.5); }
.fck-result-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  line-height: 1.15; color: #fff; margin: 0 0 12px;
}
.fck-result-text {
  font-size: clamp(15px, 1.9vw, 17px); line-height: 1.6;
  color: rgba(255,255,255,.66); margin: 0 auto; max-width: 500px;
}
.fck-result-text strong { color: var(--fck-acc); font-weight: 700; }

/* ---- Form ------------------------------------------------ */
.fck-form {
  margin: 28px auto 0;
  max-width: 470px;
  display: grid; gap: 13px;
  text-align: left;
}
.fck-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 13px; }
.fck-field { display: flex; flex-direction: column; gap: 6px; }
.fck-field-label { font-size: 12.5px; color: rgba(255,255,255,.6); font-weight: 500; }
.fck-optional { color: rgba(255,255,255,.35); }
.fck-form input[type="text"],
.fck-form input[type="email"],
.fck-form input[type="tel"] {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 13px 15px;
  color: #fff; font-size: 15px; font-family: inherit;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.fck-form input::placeholder { color: rgba(255,255,255,.32); }
.fck-form input:focus {
  border-color: var(--fck-acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fck-acc) 20%, transparent);
}
.fck-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fck-consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; margin-top: 2px; }
.fck-consent input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--fck-acc); cursor: pointer; }
.fck-consent span { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.6); }
.fck-consent a { color: var(--fck-acc); text-decoration: underline; text-underline-offset: 2px; }
.fck-form-error {
  background: rgba(220,53,69,.12);
  border: 1px solid rgba(220,53,69,.4);
  color: #ff9aa6;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.fck-turnstile { display: flex; justify-content: center; margin-top: 2px; min-height: 65px; }
.fck-btn-submit {
  margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%;
  background: var(--fck-acc-grad); color: #05040f;
  border: none; border-radius: 14px;
  padding: 16px 24px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--fck-acc) 34%, transparent);
}
.fck-btn-submit:hover { transform: translateY(-2px); filter: brightness(1.06); }
.fck-btn-submit[disabled] { opacity: .7; cursor: wait; transform: none; }
.fck-btn-submit .material-symbols-rounded { font-size: 20px; }
.fck-form-note { margin: 2px 0 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.5; }
.fck-restart-link {
  justify-self: center;
  background: transparent; border: none;
  color: rgba(255,255,255,.45);
  font-size: 13px; cursor: pointer; padding: 4px;
  text-decoration: underline; text-underline-offset: 3px;
  font-family: inherit;
}
.fck-restart-link:hover { color: #fff; }

/* ---- Thank you ------------------------------------------- */
.fck-thankyou {
  margin-top: 8px;
  text-align: center;
  padding: 32px 24px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--fck-acc) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--fck-acc) 26%, transparent);
}
.fck-thankyou-icon {
  width: 60px; height: 60px;
  border-radius: 18px; margin: 0 auto 16px;
  background: var(--fck-acc-grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 34px color-mix(in srgb, var(--fck-acc) 50%, transparent);
}
.fck-thankyou-icon .material-symbols-rounded { font-size: 34px; color: #05040f; font-variation-settings: 'FILL' 1, 'wght' 600, 'opsz' 40; }
.fck-thankyou-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.9rem); color: #fff; margin: 0 0 10px; }
.fck-thankyou-body { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.66); margin: 0 auto 20px; max-width: 400px; }
.fck-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #f4f4fa;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.fck-btn-ghost:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
.fck-btn-ghost .material-symbols-rounded { font-size: 18px; }

/* ---- Confetti canvas ------------------------------------- */
.fck-confetti {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9000;
}

@media (prefers-reduced-motion: reduce) {
  .fck-stage, .fck-progress-bar, .fck-option, .fck-btn-submit, .fck-btn-next { transition: none; }
}
