/* =========================================================
   LLC Formation Multi-Step Wizard
   Uses the site's existing navy / teal / green design tokens.
   ========================================================= */

.wizard-page {
  padding-top: 90px;
  background: var(--bg-light);
  min-height: 100vh;
  padding-bottom: 60px;
}

.wizard-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px;
}

.wizard-intro h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.wizard-intro p {
  color: var(--text-gray);
}

/* ---------------- Progress bar ---------------- */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto 40px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.wizard-progress-step {
  flex: 1;
  min-width: 88px;
  text-align: center;
  position: relative;
}

.wizard-progress-step::before {
  content: '';
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--border-color);
  z-index: 0;
}

.wizard-progress-step:first-child::before {
  display: none;
}

.wizard-progress-step.completed::before {
  background: var(--accent-teal);
}

.wizard-progress-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--border-color);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.wizard-progress-step.active .wizard-progress-circle {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(0, 168, 150, 0.12);
}

.wizard-progress-step.completed .wizard-progress-circle {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: var(--white);
}

.wizard-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gray);
}

.wizard-progress-step.active .wizard-progress-label {
  color: var(--primary-dark);
}

/* ---------------- Layout ---------------- */
.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.wizard-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: wizardFadeIn 0.25s ease;
}

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

.wizard-step h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.wizard-step-subtitle {
  color: var(--text-gray);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.wizard-nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.wizard-nav-buttons .btn {
  min-width: 130px;
}

/* ---------------- Free inclusions (Step 1) ---------------- */
.free-inclusions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.free-inclusions-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.free-inclusions-item i {
  color: var(--accent-green);
}

.filing-fee-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 168, 150, 0.08);
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.filing-fee-note i {
  color: var(--accent-teal);
}

/* ---------------- Company name availability ---------------- */
.name-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.name-availability i {
  color: var(--accent-green);
}

/* ---------------- Toggle rows (Business details / Add-ons) ---------------- */
.wizard-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.wizard-toggle-row:last-child {
  border-bottom: none;
}

.wizard-toggle-row-label {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.wizard-toggle-row-desc {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ---------------- Add-on cards (Step 6) ---------------- */
.addon-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  transition: var(--transition);
}

.addon-card.active {
  border-color: var(--accent-teal);
  background: rgba(0, 168, 150, 0.03);
}

.addon-card-info h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.addon-card-info p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin: 0;
}

.addon-card-price {
  font-weight: 700;
  color: var(--accent-teal);
  white-space: nowrap;
}

/* ---------------- Members (Step 5) ---------------- */
.member-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
}

.member-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.member-card-header h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.member-remove-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 0.9rem;
}

.add-member-btn {
  border: 2px dashed var(--border-color);
  background: transparent;
  color: var(--accent-teal);
  font-weight: 600;
  padding: 14px;
  width: 100%;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.add-member-btn:hover {
  border-color: var(--accent-teal);
  background: rgba(0, 168, 150, 0.04);
}

/* ---------------- File upload (Step 7) ---------------- */
.upload-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
}

.upload-dropzone:hover {
  border-color: var(--accent-teal);
  background: rgba(0, 168, 150, 0.03);
}

.upload-dropzone i {
  font-size: 1.8rem;
  color: var(--accent-teal);
  margin-bottom: 10px;
  display: block;
}

.upload-dropzone-label {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.upload-dropzone-hint {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.upload-file-list {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.upload-file-list div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.upload-file-list i {
  color: var(--accent-green);
}

/* ---------------- Order summary sidebar ---------------- */
.wizard-summary {
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: sticky;
  top: 110px;
}

.wizard-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--white);
}

.wizard-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.wizard-summary-item span:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.wizard-summary-item span:last-child {
  font-weight: 600;
}

.wizard-summary-empty {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  padding: 10px 0;
}

.wizard-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
  font-weight: 800;
}

.wizard-summary-total span:last-child {
  color: var(--accent-teal);
}

.wizard-summary-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
  text-align: center;
}

/* ---------------- Payment step ---------------- */
.wizard-step-error {
  background: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: none;
}

.wizard-step-error.visible {
  display: block;
}

.logged-in-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.logged-in-banner i {
  color: var(--accent-green);
}

@media (max-width: 900px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }
  .wizard-summary {
    position: static;
    order: -1;
  }
  .free-inclusions {
    grid-template-columns: 1fr;
  }
  .wizard-progress-label {
    display: none;
  }
}
