/* ───── Opti CGP fonti (self-hosted) ───── */
@font-face {
  font-family: 'All Round Gothic';
  src: url('/static/assets/fonts/AllRoundGothic-Medium.otf') format('opentype');
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: 'All Round Gothic';
  src: url('/static/assets/fonts/AllRoundGothic-Bold.otf') format('opentype');
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --accent: #3D5AFE;
  --accent-dark: #2c40c9;
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e3e5ea;
  --text: #1b1d21;
  --muted: #6b6f76;
  --ok: #1faa59;
  --warn: #b5761a;
  --warn-bg: #fff6e8;
  --display: 'All Round Gothic', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --body: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 700; line-height: 1.2; }
a { color: var(--accent); }

/* ───── Header ───── */
.topbar {
  background: #000;
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.topbar .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar img { height: 30px; }
.topbar .tag { font-size: 13px; opacity: .7; margin-left: auto; letter-spacing: .2px; }
.progress-track { height: 4px; background: rgba(255,255,255,.14); }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }

/* ───── Layout ───── */
.wrap { max-width: 780px; margin: 0 auto; padding: 28px 20px 90px; }

.hero {
  background: linear-gradient(150deg, #111 0%, #000 100%);
  color: #fff;
  border-radius: 18px;
  padding: 38px 34px;
  margin-bottom: 26px;
  border: 1px solid #1c1c1c;
}
.hero h1 { font-size: 32px; margin-bottom: 16px; letter-spacing: -.3px; }
.hero p { opacity: .9; font-size: 16px; }
.hero-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(61,90,254,.14);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  opacity: .95;
}
.hero-note b { color: #fff; }
.hero .duration {
  margin-top: 18px;
  display: block;
  color: #cfd3dd;
  font-size: 14px;
  line-height: 1.5;
}

/* ───── Step status ───── */
.step-status {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 20px;
}
.step-status b { color: var(--ink); font-family: var(--display); font-weight: 700; }

/* ───── Section card ───── */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 10px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.section-head { margin-bottom: 4px; }
.section h2 { font-size: 23px; color: var(--ink); letter-spacing: -.2px; }
.section-desc {
  background: #f0f2ff;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0 4px;
  font-size: 14.5px;
  color: #3a3f57;
}

/* ───── Question ───── */
.q { padding: 22px 0; border-top: 1px solid #f0f1f4; }
.q:first-of-type { border-top: 0; }
.q-label { font-weight: 600; font-size: 16.5px; display: block; margin-bottom: 4px; color: var(--ink); }
.q-help { font-size: 13.5px; color: var(--muted); margin: 4px 0 10px; line-height: 1.45; }

/* options */
.options { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: all .13s ease;
  background: #fff;
}
.opt:hover { border-color: var(--accent); background: #f7f8ff; }
.opt input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; cursor: pointer; }
.opt.checked { border-color: var(--accent); background: #f0f2ff; box-shadow: inset 0 0 0 1px var(--accent); }
.opt.disabled { opacity: .4; cursor: not-allowed; }
.opt span { font-size: 15px; }

/* scale */
.scale { margin-top: 12px; }
.scale-row { display: flex; gap: 8px; }
.scale-row.wide { flex-wrap: wrap; }
.scale-btn {
  flex: 1; min-width: 44px; text-align: center; padding: 12px 0;
  border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer;
  font-weight: 700; font-family: var(--display); font-size: 16px; background: #fff;
  transition: all .13s ease; user-select: none;
}
.scale-btn:hover { border-color: var(--accent); }
.scale-btn.checked { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale-btn input { display: none; }
.scale-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 7px; }

/* text + inputs */
textarea, input[type=text], input[type=email], input[type=number] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  margin-top: 8px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
textarea:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,90,254,.12); }
.other-text { margin-top: 8px; display: none; }
.other-text.show { display: block; }

/* ───── Soft reminder ───── */
.reminder {
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--warn);
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14.5px;
  line-height: 1.45;
}
.reminder b { color: var(--ink); }
.q.missing { background: var(--warn-bg); border-radius: 10px; padding: 16px; margin: 8px 0; border-top-color: transparent; }
.q.missing .q-label { color: var(--warn); }

/* ───── Navigacija ───── */
.nav-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.btn-nav {
  padding: 14px 26px; border-radius: 12px; font-family: var(--display);
  font-weight: 700; font-size: 16px; cursor: pointer;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  transition: all .13s ease;
}
.btn-nav:hover { background: #f2f3f5; }
.btn-nav.next { background: var(--ink); color: #fff; margin-left: auto; border-color: var(--ink); }
.btn-nav.next:hover { background: #222; }
.nav-row .submit-btn { width: auto; margin-left: auto; padding: 15px 34px; font-size: 17px; }

/* ───── Consent + submit ───── */
.consent {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; margin-bottom: 20px;
}
.consent label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 19px; height: 19px; accent-color: var(--accent); flex: none; margin-top: 2px; }

.submit-btn {
  width: 100%; background: var(--accent); color: #fff; border: none;
  border-radius: 12px; padding: 17px; font-size: 18px; font-weight: 700;
  font-family: var(--display); cursor: pointer; transition: background .13s ease;
}
.submit-btn:hover { background: var(--accent-dark); }
.submit-btn:disabled { background: #c7cbd6; cursor: not-allowed; }

.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; letter-spacing: .3px; }

/* ───── Thanks ───── */
.thanks-card {
  background: var(--card); border-radius: 18px; padding: 54px 36px;
  text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.05); margin-top: 44px;
  border: 1px solid var(--border);
}
.thanks-card .check {
  width: 74px; height: 74px; border-radius: 50%; background: var(--ok); color: #fff;
  font-size: 38px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.thanks-card h1 { color: var(--ink); font-size: 28px; margin-bottom: 14px; }
.thanks-card p { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ───── Admin ───── */
.admin-wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 90px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.kpi .v { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--ink); }
.kpi .l { font-size: 13px; color: var(--muted); margin-top: 4px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; }
.panel h3 { color: var(--ink); font-size: 18px; margin-bottom: 14px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.bar-row .name { flex: 0 0 52%; }
.bar-track { flex: 1; background: #eef0f4; border-radius: 6px; height: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); }
.bar-row .cnt { flex: none; font-weight: 700; color: var(--accent); min-width: 28px; text-align: right; }
.btn-export {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 11px; font-weight: 700; font-family: var(--display);
  margin: 0 10px 10px 0;
}
.btn-export.accent { background: var(--accent); }
.btn-export:hover { opacity: .9; }
table.resp { width: 100%; border-collapse: collapse; font-size: 14px; }
table.resp th, table.resp td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.resp th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
table.resp a { font-weight: 700; text-decoration: none; }
table.resp a:hover { text-decoration: underline; }
.md-link { white-space: nowrap; }

@media (max-width: 560px) {
  .hero { padding: 28px 22px; }
  .hero h1 { font-size: 26px; }
  .section { padding: 22px 18px 6px; }
  .btn-nav { padding: 13px 18px; font-size: 15px; }
  .bar-row .name { flex: 0 0 44%; }
}
