/* ====== Wizard shell ====== */
.wizard-main {
  padding: 56px 0 96px;
}

/* ====== Progress ====== */
.wizard-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 48px;
}
.wizard-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.wizard-progress-dot {
  width: 100%;
  height: 3px;
  border-radius: 100px;
  background: var(--border);
  transition: background 0.25s ease;
}
.wizard-progress-step.is-current .wizard-progress-dot,
.wizard-progress-step.is-done .wizard-progress-dot {
  background: var(--accent);
}
.wizard-progress-step.is-done .wizard-progress-dot {
  background: var(--add);
}
.wizard-progress-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: lowercase;
}
.wizard-progress-step.is-current .wizard-progress-label { color: var(--text); }
.wizard-progress-step.is-done .wizard-progress-label { color: var(--add); }

/* ====== Card / steps ====== */
.wizard-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
}
.wizard-step { display: none; }
.wizard-step.is-active { display: block; animation: card-in 0.4s ease-out; }

.step-eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 16px;
}
.wizard-step h1 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 12px;
}
.step-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 480px;
}

/* ====== Option cards (step 1) ====== */
.option-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}
.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option-card:hover { border-color: var(--text-dim); }
.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(91, 140, 255, 0.08);
}
.option-title { font-weight: 600; font-size: 0.98rem; }
.option-desc { color: var(--text-dim); font-size: 0.85rem; }
.option-card-other .option-other-input {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.option-card-other .option-other-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ====== Textarea / inputs (step 2 & 3) ====== */
.wizard-textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
}
.wizard-textarea::placeholder { color: var(--text-dim); }
.wizard-textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.wizard-field-hint {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 12px;
}

.wizard-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.wizard-input::placeholder { color: var(--text-dim); }
.wizard-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.wizard-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 0.82rem;
  margin: 24px 0;
}
.wizard-divider::before,
.wizard-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ====== Upload zone (step 3) ====== */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-zone:hover, .upload-zone:focus-visible {
  border-color: var(--accent);
  background: rgba(91, 140, 255, 0.05);
}
.upload-zone.is-dragover {
  border-color: var(--accent);
  background: rgba(91, 140, 255, 0.08);
}
.upload-icon {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  margin-bottom: 8px;
}
.upload-title { font-weight: 600; }
.upload-sub { color: var(--text-dim); font-size: 0.88rem; }
.upload-link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(91,140,255,0.3); }
.upload-filename {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--add);
}

/* ====== Summary (step 4) ====== */
.wizard-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.wizard-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ====== Actions ====== */
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
}
.wizard-actions-single .btn-large { flex-grow: 1; }

/* ====== Auth card ====== */
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-context { color: var(--add); }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--text);
  color: #0A0E14;
  margin-bottom: 0;
}
.btn-google:hover { background: #fff; }
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
/* Wizard steps are plain blocks (no flex gap like .dashboard-form), so a
   field placed above another control needs the same 20px breathing room. */
.wizard-step .auth-field { margin-bottom: 20px; }
.auth-field input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.auth-field input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth-field input[aria-invalid="true"] { border-color: var(--remove, #f85149); }
.auth-field input[aria-invalid="true"]:focus { outline-color: var(--remove, #f85149); }
.auth-fineprint {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}
.auth-fineprint a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border); }
.auth-switch {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.auth-switch a { color: var(--accent); }

.auth-error {
  background: var(--rem-bg);
  border: 1px solid rgba(248, 81, 73, 0.3);
  color: var(--rem);
  font-size: 0.88rem;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.check-icon-large {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  margin: 0 auto 22px;
}

/* ====== Responsive ====== */
@media (max-width: 640px) {
  .wizard-card { padding: 30px 22px; }
  .wizard-progress-label { font-size: 0.66rem; }
  .wizard-actions { flex-direction: column-reverse; gap: 12px; align-items: stretch; }
  .wizard-actions span { display: none; }
}
