/* Granular Component Stylesheet: PaydayForm Wizard */
.payday-form-wizard {
  background: var(--bg-white, #ffffff);
  border-radius: var(--radius-md, 0.75rem);
  padding: 2.5rem;
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: 1rem;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 0.5rem;
}

.progress-line-bg {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
  border-radius: 4px;
}

.progress-line-bg .bar-fill {
  height: 100%;
  background: var(--primary-color, #0d9488);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-white, #ffffff);
  padding: 0 6px;
}

.step-node .number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: var(--text-light, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.step-node.active .number {
  background: var(--primary-color, #0d9488);
  border-color: var(--primary-color, #0d9488);
  color: white;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}

.step-node .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light, #64748b);
  text-transform: uppercase;
}

.step-node.active .label {
  color: var(--primary-color, #0d9488);
}

.form-step-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  color: var(--secondary-color, #1e293b);
  margin-bottom: 0.25rem;
}

.form-step-content .step-tagline {
  color: var(--text-light, #64748b);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.input-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.input-group {
  margin-bottom: 1.25rem;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-color, #1e293b);
  margin-bottom: 0.4rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm, 0.375rem);
  font-size: 0.95rem;
  color: var(--text-dark, #0f172a);
  background-color: #fff;
  transition: all 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary-color, #0d9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.input-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  font-weight: 600;
}

.action-row {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.btn-wizard-next {
  background: var(--primary-color, #0d9488);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm, 0.375rem);
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.2s ease;
}

.btn-wizard-next:hover {
  background: var(--primary-hover, #0f766e);
  transform: translateY(-1px);
}

.btn-wizard-prev {
  background: #f1f5f9;
  color: var(--secondary-color, #1e293b);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm, 0.375rem);
  font-weight: 600;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wizard-prev:hover {
  background: #e2e8f0;
}

.error-banner {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 1rem;
  border-radius: var(--radius-sm, 0.375rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
