/**
 * @module dashboard-wizard
 * @description Setup-required banner and 6-step setup wizard: header, progress bar,
 * step cards (complete/locked states), phone display, NPI status, practice-profile
 * form grid, go-live date input, and wizard button variants.
 */

/* ── Setup Required Banner ────────────────────────── */
.setup-required-banner {
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  background: rgba(245,158,11,0.08);
  border-bottom: 1px solid rgba(245,158,11,0.25);
  color: #92400e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.setup-required-banner button {
  background: none;
  border: none;
  color: #92400e;
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ── Setup Wizard ─────────────────────────────────── */
.setup-wizard {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: default;
}

.wizard-body {
  margin-top: 0.75rem;
}

.setup-wizard.collapsed .wizard-body {
  display: none;
}

.wizard-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.wizard-toggle-btn:hover {
  color: var(--text);
  background: var(--border);
}

.wizard-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.wizard-progress-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.wizard-progress-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.wizard-progress-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.wizard-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wizard-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.wizard-step.complete {
  border-color: rgba(8,145,178,0.3);
  background: rgba(8,145,178,0.04);
}

.wizard-step.locked {
  opacity: 0.6;
}

.wizard-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wizard-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wizard-step.complete .wizard-step-num {
  background: rgba(8,145,178,0.15);
  color: var(--green);
}

.wizard-step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.wizard-step-status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wizard-step.complete .wizard-step-status {
  color: var(--green);
}

.wizard-step-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.wizard-phone-display {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--teal-lt);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.wizard-helper {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.wizard-input {
  width: 100%;
  max-width: 280px;
  padding: 0.55rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: monospace;
  outline: none;
  transition: border-color 0.15s;
}

.wizard-input:focus { border-color: var(--teal); }

.wizard-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.wizard-btn {
  padding: 0.5rem 1rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.wizard-btn:hover { background: var(--teal-lt); }
.wizard-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wizard-btn-secondary {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--teal-lt);
  border: 1px solid var(--teal-dim);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.wizard-btn-secondary:hover {
  background: var(--primary-bg, rgba(8,145,178,0.10));
}

.wizard-npi-status {
  font-size: 0.83rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.wizard-locked-msg {
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wizard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wizard-form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.wizard-form-field input,
.wizard-form-field textarea {
  width: 100%;
  padding: 0.55rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}

.wizard-form-field input:focus,
.wizard-form-field textarea:focus { border-color: var(--teal); }

.wizard-msg-success {
  font-size: 0.82rem;
  color: var(--green);
  margin-top: 0.5rem;
}

.wizard-msg-error {
  font-size: 0.82rem;
  color: var(--red);
  margin-top: 0.5rem;
}

.wizard-date-input {
  padding: 0.55rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s;
}

.wizard-date-input:focus { border-color: var(--teal); }

.wizard-golive-status {
  padding: 0.6rem 0.85rem;
  background: var(--primary-bg, rgba(8,145,178,0.10));
  border: 1px solid rgba(8,145,178,0.3);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--teal-lt);
}
