/* -- Wizard Styles (Adapted from BrightStartTax) -- */
:root {
  /* Inherit from FinTech theme */
  /* --bst-blue -> --primary-indigo (#4f46e5) */
  /* --bst-gold -> --accent-pink (#ec4899) */
  --wiz-primary: var(--primary-indigo);
  --wiz-primary-dark: #3730a3;
  /* darker indigo */
  --wiz-accent: var(--accent-pink);
  --wiz-accent-dark: #be185d;
  /* darker pink */

  --wiz-gray-900: #111827;
  --wiz-gray-700: #374151;
  --wiz-gray-600: #4b5563;
  --wiz-gray-200: #e5e7eb;
  --wiz-white: #ffffff;

  --wiz-shadow: 0 4px 12px rgba(0, 0, 0, .10);
  --wiz-radius: 16px;
}

.bst-flow {
  font-family: inherit;
  color: var(--wiz-gray-900);
  background: #fff;
  border: 1px solid var(--wiz-gray-200);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  width: 100%;
  max-width: 750px;
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
  z-index: 10;
  text-align: left;
}

.bst-flow header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bst-flow h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--wiz-gray-700);
  font-family: var(--font-heading);
}

.bst-progress {
  height: 6px;
  background: #eef2f7;
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0 15px;
}

.bst-progress>span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--wiz-primary), var(--accent-pink));
  transition: width .35s;
}

.bst-step {
  display: none;
  animation: .3s ease fadeIn;
}

.bst-step.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bst-question {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 10px 0 8px;
  font-family: var(--font-heading);
}

.bst-sub {
  color: var(--wiz-gray-600);
  font-size: 0.9rem;
  margin: -4px 0 16px;
}

.bst-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bst-chip {
  border: 2px solid var(--wiz-gray-200);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--wiz-gray-700);
  background: #f9fafb;
  transition: .2s;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.bst-chip:hover {
  border-color: var(--wiz-primary);
  color: var(--wiz-primary);
}

.bst-chip.is-selected {
  background: var(--wiz-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.bst-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.bst-field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.bst-field .full {
  grid-column: 1 / -1;
}

.bst-input {
  width: 100%;
  border: 2px solid var(--wiz-gray-200);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.bst-input:focus {
  outline: none;
  border-color: var(--wiz-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.bst-select {
  appearance: none;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%234f46e5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 12px center;
  background-size: 16px;
}

.bst-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

/* Wizard Buttons */
.wiz-btn {
  padding: 10px 20px;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.wiz-btn.primary {
  background: var(--wiz-primary);
  color: #fff;
}

.wiz-btn.primary:hover {
  background: var(--wiz-primary-dark);
  transform: translateY(-1px);
}

.wiz-btn.ghost {
  background: transparent;
  border-color: var(--wiz-gray-200);
  color: var(--wiz-gray-600);
}

.wiz-btn.ghost:hover {
  border-color: var(--wiz-primary);
  color: var(--wiz-primary);
  background: #fdfdfd;
}

.bst-kicker {
  font-size: 0.75rem;
  color: var(--wiz-gray-600);
  text-align: center;
  margin-top: 12px;
}

.bst-error {
  color: #ef4444;
  /* red-500 */
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
  font-weight: 500;
}

.bst-error.is-show {
  display: block;
}

.bst-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.bst-success.is-show {
  display: block;
}

/* Mobile responsive fixes */
@media (max-width: 640px) {
  .bst-options {
    grid-template-columns: 1fr;
  }

  .bst-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .bst-field {
    grid-template-columns: 1fr;
  }

  .bst-flow {
    width: 100%;
    border-radius: 12px;
    padding: 1rem;
  }
}