/* Boniforce CI — primary #0274BE, accent #FFB038, slate neutrals.
   Headings: Montserrat. Body: Source Sans Pro. */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --brand: #0274BE;
  --brand-dark: #015d99;
  --brand-tint: #eff6ff;
  --accent: #FFB038;
  --accent-dark: #f59e0b;
  --ok: #10b981;
  --err: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 10px 30px rgba(2, 116, 190, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 380px at 50% -120px, rgba(2, 116, 190, .08), transparent 70%),
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, .q-label, .btn { font-family: 'Montserrat', 'Source Sans Pro', sans-serif; }

.wrap {
  max-width: 660px;
  margin: 0 auto;
  padding: 26px 18px 64px;
}

/* Brand logo */
.brand { margin-bottom: 20px; }
.brand img { height: 34px; width: auto; display: block; }
.center-logo img { margin: 0 auto; }

h1 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}

.lead { color: var(--muted); font-size: 16.5px; margin: 0 0 22px; }

/* Intro */
.reward-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, #fff5e0, #fffaf0);
  border: 1px solid #ffd98a; border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 22px;
  font-size: 15.5px; color: #5c3d00;
}
.reward-banner .rb-icon { font-size: 24px; line-height: 1; }
.reward-banner strong { color: #92600a; font-weight: 800; }
.intro .meta { list-style: none; padding: 0; margin: 0 0 26px; }
.intro .meta li { padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.intro .meta li:last-child { border-bottom: none; }
.center { text-align: center; }
.check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 34px; line-height: 64px;
  margin: 8px auto 18px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, .3);
}
.reward-note {
  background: #fffaf0; border: 1px solid #ffe2b3; color: #92600a;
  padding: 14px 16px; border-radius: var(--radius); font-size: 15px;
}
.fineprint { color: var(--muted); font-size: 12.5px; margin-top: 22px; }
.fineprint a, .reward-note a { color: var(--brand); }

/* Sticky header: reward badge + counter + progress bar */
.sticky-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 660px; margin: 0 auto; padding: 9px 18px;
}
.reward-pill {
  display: inline-flex; align-items: center;
  background: linear-gradient(90deg, var(--accent), #ffc766);
  color: #7a4d00; font-weight: 700; font-size: 13.5px;
  padding: 7px 13px; border-radius: 999px; line-height: 1.2;
  box-shadow: 0 4px 12px rgba(255, 176, 56, .35);
  white-space: nowrap;
}
.reward-pill strong { font-weight: 800; margin-left: 5px; }
.counter { font-weight: 700; color: var(--brand); font-size: 13px; white-space: nowrap; }

.progress { height: 5px; background: var(--line); }
.progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width .25s ease;
}

@media (max-width: 480px) {
  .rp-eur, .rp-tail { display: none; }   /* keep "🎁 300 Credits 30 €" on mobile */
  .reward-pill { font-size: 12.5px; padding: 6px 11px; }
  .counter { font-size: 12px; }
}

/* Cards / questions */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  margin: 0 0 14px;
}
.q-label { display: block; font-weight: 700; font-size: 16px; line-height: 1.35; margin-bottom: 4px; }
.q-help { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.req { color: var(--accent-dark); }

.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  cursor: pointer; font-size: 15px; transition: border-color .12s, background .12s, box-shadow .12s;
}
.opt:hover { border-color: #9fcdee; background: var(--line-soft); }
.opt input { margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.opt.consent { background: #fafcff; }

.other-input, .text-input {
  width: 100%; margin-top: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 11px; font-size: 15px;
  font-family: inherit; color: var(--ink); background: #fff;
}
.text-input:focus, .other-input:focus { outline: 3px solid rgba(2, 116, 190, .18); border-color: var(--brand); }

/* Likert / numeric scale */
.scale { display: flex; gap: 6px; margin-top: 10px; }
.scale-item {
  flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 0; cursor: pointer; font-weight: 700; position: relative; color: var(--muted);
  transition: background .12s, color .12s, border-color .12s;
}
.scale-item:hover { border-color: #9fcdee; }
.scale-item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.scale-item:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
.scale-wide .scale-item { padding: 10px 0; font-size: 14px; }
.scale-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 7px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: none;
  padding: 14px 24px; border-radius: 11px; font-size: 16px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .12s, transform .04s, box-shadow .12s;
  box-shadow: 0 8px 18px rgba(2, 116, 190, .22);
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-lg { width: 100%; text-align: center; margin-top: 12px; }

/* Stepper: one question (step) visible at a time */
.step { display: none; }
.step.active { display: block; animation: stepin .22s ease; }
@keyframes stepin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.nav {
  position: sticky; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(180%) blur(8px); -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-top: 1px solid var(--line);
  padding: 12px 0 14px; margin-top: 10px;
}
.nav .btn { box-shadow: 0 6px 14px rgba(2, 116, 190, .2); white-space: nowrap; }
.btn-ghost {
  background: #fff; color: var(--muted); border: 1px solid var(--line);
  padding: 13px 18px; border-radius: 11px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; font-size: 15px; cursor: pointer;
}
.btn-ghost:hover { background: var(--line-soft); color: var(--ink); }

.finish-hint { color: var(--err); font-size: 13.5px; margin: 4px 2px 0; text-align: center; }
.q-flash { animation: qflash 1.2s ease; }
@keyframes qflash {
  0%, 100% { box-shadow: var(--shadow); }
  20%, 60% { box-shadow: 0 0 0 3px rgba(220, 38, 38, .35); }
}

/* Reward modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; animation: fadein .18s ease;
}
.modal-overlay[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  background: var(--card);
  width: 100%; max-width: 440px;
  border-radius: 18px;
  border-top: 6px solid var(--accent);
  box-shadow: 0 24px 60px rgba(2, 116, 190, .25), 0 4px 14px rgba(15, 23, 42, .2);
  padding: 26px 22px 22px;
  animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; font-size: 26px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.modal-close:hover { background: var(--line-soft); color: var(--ink); }
.modal-gift {
  font-size: 40px; text-align: center; line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(255, 176, 56, .45));
}
.modal h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 22px;
  text-align: center; margin: 10px 0 6px; letter-spacing: -.01em;
}
.modal-sub { color: var(--muted); font-size: 15px; text-align: center; margin: 0 0 18px; }
.modal-sub strong { color: var(--ink); }
.modal-label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.modal .opt { margin-top: 10px; font-size: 14px; }
.modal .btn { margin-top: 16px; }
.modal-fine { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 0 0; }

/* Notices */
.notice { background: #fffaf0; border: 1px solid #ffe2b3; color: #92600a; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.error { background: #fef2f2; border: 1px solid #fecaca; color: var(--err); padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }

@media (max-width: 420px) {
  .scale-wide { flex-wrap: wrap; }
  .scale-wide .scale-item { flex: 0 0 calc(18.18% - 5px); }
  h1 { font-size: 24px; }
}
