:root {
  --primary: #7A003C;
  --primary-light: #9a1a56;
  --primary-dark: #5c002d;
  --orange: #F69449;
  --orange-dark: #c4620a;
  --bg: #f7f3f4;
  --card: #ffffff;
  --border: #e7dbe0;
  --text: #222222;
  --text-light: #666666;
  --ok: #2e7d32;
}

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

body {
  font-family: 'Open Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, .display {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

a { color: var(--primary); }

/* ───── Header ───── */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.topbar .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar img { height: 32px; filter: brightness(0) invert(1); }
.topbar .tag { font-size: 13px; opacity: .85; margin-left: auto; }

.progress-track { height: 5px; background: rgba(255,255,255,.22); }
.progress-bar { height: 100%; width: 0; background: var(--orange); transition: width .35s ease; }

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

.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 16px;
  padding: 34px 30px;
  margin-bottom: 26px;
}
.hero h1 { font-size: 30px; margin-bottom: 14px; }
.hero p { opacity: .94; font-size: 16px; }
.hero .duration {
  margin-top: 16px;
  display: inline-block;
  background: rgba(255,255,255,.16);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
}

/* ───── Stepper (segmentirana premica) ───── */
.stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 4px 0 4px;
}
.stepper-line {
  position: absolute;
  top: 18px;
  left: 8.33%;
  right: 8.33%;
  height: 3px;
  background: #e6d8de;
  z-index: 0;
  border-radius: 3px;
}
.stepper-line-fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 3px;
  transition: width .35s ease;
}
.step {
  position: relative;
  z-index: 1;
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: inherit;
}
.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #e0cdd5;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  transition: all .2s ease;
}
.step.active .step-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(122, 0, 60, .12);
}
.step.done .step-dot {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.step-label {
  font-size: 11px;
  line-height: 1.25;
  color: var(--text-light);
  text-align: center;
  max-width: 96px;
}
.step.active .step-label { color: var(--primary); font-weight: 700; }
.step-status {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin: 8px 0 22px;
}
.step-status b { color: var(--primary); font-family: 'Raleway', sans-serif; }

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

/* ───── Section card ───── */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 26px 8px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.section-num {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--orange);
  flex: none;
}
.section h2 { font-size: 21px; color: var(--primary); }
.section-desc {
  background: #fdf4f8;
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0 4px;
  font-size: 15px;
  color: var(--text-light);
}

/* ───── Question ───── */
.q { padding: 20px 0; border-top: 1px solid #f0e8ec; }
.q:first-of-type { border-top: 0; }
.q-label { font-weight: 600; font-size: 16px; display: block; margin-bottom: 4px; }
.q-help { font-size: 13.5px; color: var(--text-light); margin-bottom: 12px; }
.q-help.inline { display: inline; margin-left: 6px; font-style: italic; }

/* options */
.options { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
  background: #fff;
}
.opt:hover { border-color: var(--orange); background: #fffaf4; }
.opt input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; cursor: pointer; }
.opt.checked { border-color: var(--primary); background: #fdf4f8; }
.opt.disabled { opacity: .45; 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: 'Raleway', sans-serif;
  font-size: 16px;
  background: #fff;
  transition: all .15s ease;
  user-select: none;
}
.scale-btn:hover { border-color: var(--orange); }
.scale-btn.checked { background: var(--primary); color: #fff; border-color: var(--primary); }
.scale-btn input { display: none; }
.scale-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-light); margin-top: 7px; }

/* text + number */
textarea, input[type=text], input[type=email], input[type=number] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  margin-top: 8px;
}
textarea { min-height: 84px; resize: vertical; }
textarea:focus, input:focus { outline: none; border-color: var(--primary); }
.eur-field { display: flex; align-items: center; gap: 10px; max-width: 280px; }
.eur-field input { margin-top: 0; }
.eur-suffix { font-size: 14px; color: var(--text-light); white-space: nowrap; }

.other-text { margin-top: 8px; display: none; }
.other-text.show { display: block; }
.contact-field { margin-top: 8px; display: none; }
.contact-field.show { display: block; }

/* ───── 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: 11px; align-items: flex-start; font-size: 14px; color: var(--text-light); cursor: pointer; }
.consent input { width: 19px; height: 19px; accent-color: var(--primary); flex: none; margin-top: 2px; }

.submit-btn {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 17px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  transition: background .15s ease;
}
.submit-btn:hover { background: var(--orange-dark); }
.submit-btn:disabled { background: #d9c7cd; cursor: not-allowed; }

.foot { text-align: center; color: var(--text-light); font-size: 13px; margin-top: 26px; }
.foot img { height: 16px; vertical-align: middle; opacity: .6; margin-left: 5px; }

/* ───── Thanks ───── */
.thanks-card {
  background: var(--card);
  border-radius: 16px;
  padding: 50px 36px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  margin-top: 40px;
}
.thanks-card .check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 38px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}
.thanks-card h1 { color: var(--primary); font-size: 26px; margin-bottom: 14px; }
.thanks-card p { color: var(--text-light); }

/* ───── Admin ───── */
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 28px 20px 80px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.kpi .v { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 30px; color: var(--primary); }
.kpi .l { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.panel h3 { color: var(--primary); font-size: 17px; margin-bottom: 14px; }
.vw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 12px; }
.vw-item { text-align: center; padding: 12px; border-radius: 10px; background: #fdf4f8; }
.vw-item .price { font-family:'Raleway'; font-weight: 800; font-size: 24px; color: var(--primary); }
.vw-item .lab { font-size: 12.5px; color: var(--text-light); margin-top: 3px; }
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.bar-row .name { flex: 0 0 46%; }
.bar-track { flex: 1; background: #f0e8ec; border-radius: 6px; height: 20px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--orange); }
.bar-row .cnt { flex: none; font-weight: 700; color: var(--primary); min-width: 28px; text-align: right; }
.btn-export { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-family:'Raleway'; }
table.resp { width: 100%; border-collapse: collapse; font-size: 13px; }
table.resp th, table.resp td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.resp th { color: var(--primary); }

@media (max-width: 560px) {
  .hero h1 { font-size: 24px; }
  .section { padding: 20px 18px 6px; }
  .scale-btn { font-size: 14px; padding: 10px 0; }
  .step-label { display: none; }
  .step-dot { width: 32px; height: 32px; font-size: 14px; }
  .stepper-line { top: 15px; }
  .btn-nav { padding: 13px 18px; font-size: 15px; }
}
