/* app/components/lx-wizard/lx-wizard.css */
.lx-wizard {
  font-family: var(--font-sans, 'Public Sans', sans-serif);
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e7e9ec);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-primary, #111827);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.lx-wizard--empty {
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.lx-wizard__stepsWrap {
  position: relative;
  padding: 12px 0 4px;
}

.lx-wizard__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.lx-wizard__stepItem {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.lx-wizard__step {
  border: none;
  background: transparent;
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text-secondary, #56687e);
  cursor: pointer;
}

.lx-wizard__step:focus {
  outline: none;
}

.lx-wizard__step:focus-visible .lx-wizard__stepNumber,
.lx-wizard__step:focus .lx-wizard__stepNumber {
  box-shadow: 0 0 0 3px var(--focus-ring, #f3803c);
}

.lx-wizard__step.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.lx-wizard__stepNumber {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, #e7e9ec);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bg-surface, #ffffff);
  color: var(--text-secondary, #56687e);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lx-wizard__stepLabel {
  display: block;
  font-size: 0.75rem;
  line-height: 1.2;
}

.lx-wizard__stepTitle {
  font-weight: 600;
  color: var(--text-primary, #111827);
  display: block;
}

.lx-wizard__stepSubtitle {
  display: block;
  margin-top: 2px;
  color: var(--neutral-500, #75757c);
  font-size: 0.7rem;
}

.lx-wizard__step.is-active .lx-wizard__stepNumber {
  background: var(--cta-bg, #f16a19);
  border-color: var(--cta-bg, #f16a19);
  color: var(--cta-text, #ffffff);
}

.lx-wizard__step.is-complete .lx-wizard__stepNumber {
  background: var(--brand-blue-700, #0d2746);
  border-color: var(--brand-blue-700, #0d2746);
  color: var(--cta-text, #ffffff);
}

.lx-wizard__line {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-subtle, #e7e9ec);
  z-index: 0;
}

.lx-wizard__lineProgress {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cta-bg, #f16a19);
  transition: width 0.3s ease;
}

.lx-wizard__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
}

.lx-wizard__contentHeader {
  margin-bottom: 6px;
}

.lx-wizard__contentTitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #111827);
}

.lx-wizard__contentSubtitle {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary, #56687e);
}

.lx-wizard__content {
  min-height: 0;
}

.lx-wizard__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--border-subtle, #e7e9ec);
  padding-top: 16px;
}

.lx-wizard__footer .btn {
  min-width: 96px;
}

.lx-wizard__emptyText {
  margin: 0;
  color: var(--text-secondary, #56687e);
  font-size: 0.85rem;
}

.lx-wizard-modal .modal-dialog {
  width: 880px;
  max-width: calc(100vw - 32px);
}

.lx-wizard-modal .modal-content {
  border-radius: 16px;
  overflow: hidden;
}

.lx-wizard-modal .modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 160px);
  overflow: hidden;
}

.lx-wizard-modal .lx-wizard {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  flex: 1 1 auto;
}

.lx-wizard-modal .lx-wizard__content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 767px) {
  .lx-wizard {
    padding: 16px;
  }

  .lx-wizard__steps {
    gap: 8px;
  }

  .lx-wizard__stepTitle {
    font-size: 0.7rem;
  }

  .lx-wizard__stepSubtitle {
    display: none;
  }

  .lx-wizard__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .lx-wizard__footer .btn {
    width: 100%;
  }

  .lx-wizard-modal .modal-dialog {
    width: auto;
    margin: 16px;
  }

  .lx-wizard-modal .modal-body {
    max-height: calc(100vh - 120px);
  }
}
