/* ── Onboarding Wizard ─────────────────────────────────────────────────────── */

.wizard-wrap {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Header */
.wizard-header {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wizard-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--fg);
}
.wizard-logo span { color: var(--accent); }

.wizard-back {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.wizard-back:hover { color: var(--fg); }

/* Steps indicator */
.steps-bar {
  padding: 24px 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}
.step-circle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.step-circle.done {
  background: var(--fg);
  border-color: var(--fg);
  color: white;
}
.step-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.step-label.active { color: var(--fg); }
.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  max-width: 60px;
}

/* Card */
.wizard-card {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 48px 80px;
}
.wizard-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 32px rgba(26,26,46,0.06);
}

.wizard-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.wizard-form h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin-bottom: 8px;
}
.wizard-form .subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Form fields */
.field-group {
  margin-bottom: 24px;
}
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.field-label span.req { color: var(--accent); margin-left: 2px; }

.field-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.field-input.error {
  border-color: #d93025;
}
.field-input::placeholder { color: var(--muted); }

.field-select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b7e' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.field-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.field-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.field-error {
  font-size: 13px;
  color: #d93025;
  margin-top: 6px;
  display: none;
}
.field-error.visible { display: block; }

/* CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.btn-primary:hover { background: #b07509; }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--fg); color: var(--fg); }

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.btn-row .btn-primary { flex: 1; }

/* Hidden step1 data passed through step 2 */
.hidden-fields { display: none; }

/* Done page */
.done-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 48px;
  width: 100%;
  max-width: 600px;
  text-align: center;
}
.done-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
  font-size: 36px;
}
.done-card h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.done-card .done-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
}
.done-details {
  background: var(--bg);
  border-radius: 14px;
  padding: 24px;
  text-align: left;
  margin-bottom: 36px;
}
.done-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.done-detail-row:last-child { border-bottom: none; }
.done-detail-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.done-detail-value { font-size: 14px; color: var(--fg); font-weight: 600; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.status-badge.completed { background: #d4edda; color: #155724; }
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.provisioning { background: #cce5ff; color: #004085; }
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Error page */
.error-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.error-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 48px;
  max-width: 480px;
  text-align: center;
}
.error-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.error-card p { font-size: 16px; color: var(--muted); }

/* Loading state */
.btn-loading { position: relative; }
.btn-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}
.alert.visible { display: block; }
.alert-error { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* Responsive */
@media (max-width: 640px) {
  .wizard-header { padding: 16px 20px; }
  .steps-bar { padding: 16px 20px; }
  .step-label { display: none; }
  .wizard-card { padding: 20px; }
  .wizard-form { padding: 28px 20px; }
  .wizard-form h1 { font-size: 28px; }
  .btn-row { flex-direction: column-reverse; }
}