/* ═══════════════════════════════════════════════════
   TaxGuide — File Your Taxes Wizard Styles
   ═══════════════════════════════════════════════════ */

.wizard-container {
  max-width: 700px;
  margin: 0 auto;
}

/* ── Progress ────────────────────────────────── */
.wiz-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}

.wiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.wiz-step-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--mono);
  margin-bottom: 20px;
}

/* ── Header ──────────────────────────────────── */
.wiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.wiz-icon { font-size: 2rem; }

.wiz-title {
  font-size: 1.4rem;
  font-weight: 700;
}

/* ── Fields ──────────────────────────────────── */
.wiz-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wiz-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wiz-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wiz-label-sm {
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 140px;
}

.wiz-req { color: var(--red); }

.wiz-help {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
}

.wiz-input {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: var(--font);
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.wiz-input:focus {
  outline: none;
  border-color: var(--accent);
}

.wiz-field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wiz-field-inline .wiz-input {
  flex: 1;
}

/* ── Choices ──────────────────────────────────── */
.wiz-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.wiz-choice {
  display: block;
  text-align: left;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.wiz-choice:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.wiz-choice.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.wc-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.wc-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Dependents & W-2 Cards ──────────────────── */
.wiz-dep-card,
.wiz-rep-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.wiz-dep-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.wiz-dep-remove {
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wiz-dep-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wiz-dep-input {
  margin-bottom: 0;
}

.wiz-check-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

/* ── Navigation Buttons ──────────────────────── */
.wiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.wiz-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.wiz-btn-next {
  background: var(--accent);
  color: white;
  margin-left: auto;
}

.wiz-btn-next:hover { background: #2563eb; }

.wiz-btn-back {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.wiz-btn-back:hover { border-color: var(--text-dim); color: var(--text); }

.wiz-btn-add {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px dashed var(--accent);
  width: 100%;
  margin-top: 8px;
}

.wiz-btn-add:hover { background: var(--accent-glow); }

.wiz-btn-generate {
  background: var(--green);
  color: white;
  font-size: 1.1rem;
  padding: 14px 32px;
  width: 100%;
}

.wiz-btn-generate:hover { background: #16a34a; }

/* ── Review ──────────────────────────────────── */
.wiz-review-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.wiz-review-section h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.wr-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
}

.wr-row span:first-child { color: var(--text-muted); }
.wr-row span:last-child { font-family: var(--mono); font-weight: 500; }

.wr-total {
  font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 8px;
}

.wr-total span:first-child { color: var(--text); }

.wr-refund {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 0;
  color: var(--green) !important;
}

.wr-refund span { color: var(--green) !important; }

.wr-owed {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 0;
}

.wr-owed span { color: var(--red) !important; }

.wiz-generate { margin-top: 20px; }

.wiz-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 12px;
  line-height: 1.6;
}

.wiz-ded-info {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .wiz-fields {
    grid-template-columns: 1fr;
  }

  .wiz-dep-fields {
    grid-template-columns: 1fr;
  }

  .wiz-field-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .wiz-label-sm {
    min-width: auto;
  }
}
