()
| 376 | |
| 377 | // Refresh the step indicator UI |
| 378 | function updateStepIndicator() { |
| 379 | const steps = document.querySelectorAll('.step'); |
| 380 | steps.forEach((step, index) => { |
| 381 | step.classList.remove('active', 'completed'); |
| 382 | if (index + 1 < state.step) { |
| 383 | step.classList.add('completed'); |
| 384 | } else if (index + 1 === state.step) { |
| 385 | step.classList.add('active'); |
| 386 | } |
| 387 | }); |
| 388 | } |
| 389 | |
| 390 | // Show progress feedback |
| 391 | function showProgress(text, percent) { |