@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette - Deep Ocean */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --accent: #06b6d4;
  --gradient-start: #0ea5e9;
  --gradient-end: #06b6d4;

  /* Neutrals */
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Status */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Spacing */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   WIZARD CARD
   ============================================ */
.wizard-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.04),
    0 6px 16px rgba(0,0,0,0.06),
    0 24px 48px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Card Header */
.wizard-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 28px 32px 22px;
  color: white;
}

.wizard-header .brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 6px;
}

.wizard-header h1 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  padding: 0 32px;
  margin-top: -14px;
  position: relative;
  z-index: 2;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--border);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
  transform: scale(1.1);
}

.step-dot.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.35s ease;
  margin: 0 4px;
}

.step-line.completed {
  background: var(--success);
}

/* Card Body */
.wizard-body {
  padding: 28px 32px 24px;
}

/* Steps */
.wizard-step {
  display: none;
  animation: stepFadeIn 0.4s ease forwards;
}

.wizard-step.active {
  display: block;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.step-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Form Elements */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.form-input:hover, .form-textarea:hover {
  border-color: #cbd5e1;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* Terms Box */
.terms-box {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  max-height: 160px;
  overflow-y: auto;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.terms-box::-webkit-scrollbar { width: 6px; }
.terms-box::-webkit-scrollbar-track { background: transparent; }
.terms-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.terms-box strong {
  color: var(--text);
}

/* Checkbox & Radio */
.check-row, .radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.check-row input[type="checkbox"],
.radio-row input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.check-row label, .radio-row label {
  cursor: pointer;
  margin: 0;
  font-size: 14px;
}

/* Review Panel */
.review-panel {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
  max-height: 250px;
  overflow-y: auto;
}

.review-panel::-webkit-scrollbar { width: 6px; }
.review-panel::-webkit-scrollbar-track { background: transparent; }
.review-panel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.review-panel .review-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

.review-panel .review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-panel strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.review-panel .review-item span {
  color: var(--text);
  font-weight: 500;
}

/* Actions */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: var(--border-light);
  border-color: #cbd5e1;
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(14, 165, 233, 0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Toast */
#toast {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toastSlide 0.3s ease;
  max-width: 360px;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Success State */
.success-state {
  text-align: center;
  padding: 20px 0;
}

.success-state .success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.success-state h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.success-state p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Conditional Area */
.conditional-area {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  animation: stepFadeIn 0.3s ease;
}

.conditional-area.visible {
  display: block;
}

/* Helper */
.text-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 16px;
  font-style: italic;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  body { padding: 12px; align-items: flex-start; padding-top: 20px; }
  .wizard-card { border-radius: var(--radius); }
  .wizard-header { padding: 20px 20px 18px; }
  .wizard-body { padding: 20px; }
  .step-indicator { padding: 0 20px; margin-top: -12px; }
  .wizard-actions { flex-direction: column-reverse; gap: 10px; }
  .wizard-actions .btn { width: 100%; justify-content: center; }
}
