:root {
  --green-dark: #2d5a3f;
  --green-darker: #062823;
  --green-lime: #a8e063;
  --green-lime-hover: #98d055;
  --green-mint: #e8f5e9;
  --wizard-bg: #f3f7f4;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --surface: #ffffff;
  --border: #e5ebe8;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-w: 480px;
}

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

.wizard-body {
  font-family: var(--font);
  background: var(--wizard-bg);
  color: var(--text);
  line-height: 1.45;
}

.wizard-app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--wizard-bg);
}

/* —— Shared header (all 5 steps) —— */
.wizard-header {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 10px;
  background: var(--wizard-bg);
}

.wizard-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--green-darker);
  cursor: pointer;
  border-radius: 50%;
  text-decoration: none;
}

.wizard-back:hover {
  background: rgba(6, 40, 35, 0.06);
}

.wizard-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green-dark);
}

.wizard-demo-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  background: var(--green-mint);
  padding: 5px 10px;
  border-radius: 999px;
}

.wizard-progress-block {
  padding: 0 18px 14px;
  background: var(--wizard-bg);
}

.wizard-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.wizard-progress-meta span:last-child {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wizard-progress-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.wizard-progress-seg {
  height: 5px;
  border-radius: 999px;
  background: #dce3df;
  transition: background 0.25s ease;
}

.wizard-progress-seg.is-done {
  background: var(--green-dark);
}

.wizard-progress-seg.is-current {
  background: var(--green-lime);
}

.wizard-main {
  flex: 1;
  padding: 0 18px 24px;
}

.wizard-step[hidden] {
  display: none !important;
}

.wizard-page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green-darker);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.wizard-page-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
}

.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}

.wizard-field {
  margin-bottom: 14px;
}

.wizard-field:last-child {
  margin-bottom: 0;
}

.wizard-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-darker);
  margin-bottom: 6px;
}

.wizard-input,
.wizard-select,
.wizard-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.wizard-input:focus,
.wizard-select:focus,
.wizard-textarea:focus {
  outline: 2px solid var(--green-lime);
  outline-offset: 1px;
}

.wizard-input--prefix {
  padding-left: 36px;
}

.wizard-input-wrap {
  position: relative;
}

.wizard-input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 600;
}

.wizard-textarea {
  min-height: 120px;
  resize: vertical;
}

.wizard-char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 4px;
}

.wizard-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: #fafbfa;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
}

.wizard-upload strong {
  color: var(--green-darker);
}

.wizard-upload-hint {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.wizard-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wizard-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-darker);
}

.wizard-radio:has(input:checked) {
  background: var(--green-mint);
  border-color: var(--green-dark);
}

.wizard-radio input {
  accent-color: var(--green-dark);
}

.wizard-callout {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--green-mint);
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.wizard-callout strong {
  display: block;
  color: var(--green-darker);
  margin-bottom: 2px;
}

.wizard-callout-icon {
  flex-shrink: 0;
  color: var(--green-dark);
}

.wizard-doc-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--surface);
}

.wizard-doc-head {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.wizard-doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  flex-shrink: 0;
}

.wizard-doc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-darker);
}

.wizard-doc-title .req {
  color: #c0392b;
}

.wizard-doc-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.wizard-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--green-lime);
  color: var(--green-darker);
  margin-left: 6px;
  vertical-align: middle;
}

.wizard-upload-sm {
  padding: 16px;
  font-size: 0.82rem;
}

.wizard-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.wizard-check-row input {
  margin-top: 3px;
  accent-color: var(--green-dark);
}

.wizard-check-row a {
  color: var(--green-dark);
}

.wizard-review-summary {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--green-mint);
  border-radius: 14px;
  margin-bottom: 14px;
}

.wizard-review-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #dde3df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-soft);
  text-align: center;
  padding: 4px;
  flex-shrink: 0;
}

.wizard-review-block {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.wizard-review-block:last-child {
  border-bottom: none;
}

.wizard-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 6px;
}

.wizard-edit {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.wizard-info-banner {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #f0f2f1;
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 14px 0;
}

.wizard-footer {
  padding: 8px 18px 24px;
  background: var(--wizard-bg);
}

.wizard-btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-darker);
  background: var(--green-lime);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 12px;
}

.wizard-btn-next:hover {
  background: var(--green-lime-hover);
}

.wizard-btn-submit {
  background: var(--green-lime);
}

.wizard-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.wizard-link {
  font-family: inherit;
  font-weight: 600;
  color: var(--green-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wizard-link--back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.wizard-foot-demo {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-top: 16px;
}

.wizard-checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 12px 0;
}

.wizard-note {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 8px;
}

.wizard-btn-outline {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-darker);
  background: var(--surface);
  border: 1.5px solid var(--green-darker);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
