:root {
  --green: #4cad49;
  --green-hover: #3d9f3a;
  --text: #101828;
  --muted: #667085;
  --border: #d0d5dd;
  --border-focus: rgba(76,173,73,.55);
  --focus-ring: rgba(76,173,73,.15);
  --surface: #ffffff;
  --surface-2: #f7f8f9;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: transparent;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.wiz {
  max-width: 940px;
  margin: 0 auto;
  padding: 24px 28px 32px;
}

h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}
.wiz-sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

/* ---- Progress ---- */
.wiz-progress {
  display: flex;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  counter-reset: step;
}
.wiz-progress li {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  position: relative;
  padding-top: 26px;
}
.wiz-progress li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.wiz-progress li::after {
  content: "";
  position: absolute;
  top: 9px; left: -50%;
  width: 100%; height: 1.5px;
  background: var(--border);
  z-index: -1;
}
.wiz-progress li:first-child::after { display: none; }
.wiz-progress li.done::before,
.wiz-progress li.active::before {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.wiz-progress li.active { color: var(--text); font-weight: 600; }

/* ---- Error ---- */
.wiz-error {
  background: #fef3f2;
  border: 1px solid #fda29b;
  color: #b42318;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---- Mode cards ---- */
.mode-cards { display: grid; gap: 12px; }
@media (min-width: 520px) { .mode-cards { grid-template-columns: repeat(3, 1fr); } }
.mode-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .12s, box-shadow .12s;
}
.mode-card:hover { border-color: var(--border-focus); }
.mode-card.selected { border-color: var(--green); box-shadow: 0 0 0 3px var(--focus-ring); }
.mode-ico { line-height: 0; margin-bottom: 2px; }
.mode-name { font-weight: 700; font-size: 15px; }
.mode-desc { color: var(--muted); font-size: 12px; }

/* ---- Option list (services) ---- */
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt {
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .12s, box-shadow .12s;
}
.opt:hover { border-color: var(--border-focus); }
.opt.selected { border-color: var(--green); box-shadow: 0 0 0 3px var(--focus-ring); }
.opt-title { font-weight: 600; }
.opt-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---- Fields ---- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.req { color: #d92d20; }
.opt-tag, .opt-label .opt, span.opt { all: unset; }
.field .opt, label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.form-row { display: grid; gap: 12px; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---- Slots ---- */
.slot-area { margin-top: 6px; }
.slot-hint { color: var(--muted); font-size: 13px; padding: 8px 0; }
.expert-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}
.expert-name { font-weight: 600; margin-bottom: 8px; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.slot {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.slot:hover { border-color: var(--border-focus); }
.slot.selected { background: var(--green); border-color: var(--green); color: #fff; }

/* ---- Summary ---- */
.summary {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.summary div:last-child { border-bottom: none; }
.summary dt { color: var(--muted); font-size: 13px; margin: 0; }
.summary dd { margin: 0; font-weight: 600; text-align: right; }

/* ---- Done ---- */
.done-box { text-align: center; padding: 24px 8px; }
.done-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #e9f7e9;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.done-box p { color: var(--muted); }

/* ---- Nav / buttons ---- */
.wiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.btn-primary, .btn-ghost {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 11px 22px;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-focus); color: var(--text); }
.wiz-nav .btn-primary { margin-left: auto; }

[hidden] { display: none !important; }

/* ---- Mobile ---- */
@media (max-width: 560px) {
  .wiz { padding: 20px 16px 28px; }
  h2 { font-size: 18px; }
  .wiz-sub { margin-bottom: 14px; }
  .wiz-progress { margin-bottom: 18px; }
  .wiz-progress li { font-size: 9.5px; padding-top: 24px; }
  .mode-card { padding: 14px; }
  .summary div { flex-direction: column; gap: 3px; }
  .summary dd { text-align: left; }
  .wiz-nav { gap: 8px; }
  .wiz-nav .btn-primary, .wiz-nav .btn-ghost { padding: 11px 16px; }
}
@media (max-width: 380px) {
  .wiz-progress li { font-size: 0; }          /* tiny screens: show step dots only */
  .wiz-progress li::before { font-size: 11px; }
}
