/* ============================================
   Business Profit & AI ROI Engine
   Beautiful shadow-based multi-step UI
   ============================================ */

.bai-engine {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-family: inherit;
}

/* Progress Steps */
.bai-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.bai-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.45;
  transition: opacity 0.25s;
}
.bai-step.active {
  opacity: 1;
}
.bai-step.done {
  opacity: 0.85;
}
.bai-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.bai-step.active .bai-step-num {
  background: #0f766e;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}
.bai-step.done .bai-step-num {
  background: #14b8a6;
  color: #fff;
}
.bai-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.bai-step.active .bai-step-label {
  color: #0f766e;
}
.bai-step-line {
  width: 40px;
  height: 3px;
  background: #e5e7eb;
  margin: 0 6px 18px;
  border-radius: 2px;
}

/* Panels */
.bai-panel {
  display: none;
}
.bai-panel.active {
  display: block;
  animation: baiFadeIn 0.35s ease;
}
@keyframes baiFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card with shadow */
.bai-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 10px 24px -4px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
}

.bai-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.bai-icon {
  font-size: 1.85rem;
  line-height: 1;
  flex-shrink: 0;
}
.bai-card-header h3 {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
  color: #1e3a5f;
}
.bai-card-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Form */
.bai-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.bai-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.bai-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}
.bai-field input {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}
.bai-field input:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  background: #fff;
}
.bai-field small {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Profit Preview */
.bai-result-preview {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.bai-result-preview span {
  font-size: 0.9rem;
  color: #047857;
  font-weight: 500;
}
.bai-result-preview strong {
  font-size: 1.5rem;
  color: #0f766e;
}

/* AI Areas Tags */
.bai-ai-areas {
  margin-bottom: 1.25rem;
}
.bai-areas-title {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}
.bai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bai-tags span {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Buttons */
.bai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.bai-btn-primary {
  background: #0f766e;
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}
.bai-btn-primary:hover {
  background: #0d5c56;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}
.bai-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  flex: 1;
}
.bai-btn-secondary:hover {
  background: #e2e8f0;
}
.bai-btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.bai-btn-row .bai-btn-primary {
  flex: 2;
}

/* WOW Result Card */
.bai-wow {
  text-align: center;
  background: linear-gradient(135deg, #0f766e 0%, #1e3a5f 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.3);
}
.bai-wow-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}
.bai-wow-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.bai-before {
  opacity: 0.75;
  text-decoration: line-through;
  font-size: 1.2rem;
}
.bai-arrow {
  opacity: 0.7;
}
.bai-after {
  color: #fbbf24;
  font-size: 1.85rem;
}
.bai-wow-gain {
  font-size: 1.15rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 0.2rem;
}
.bai-wow-year {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Metrics Grid */
.bai-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.bai-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.bai-metric.highlight {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.bai-metric-label {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
}
.bai-metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a5f;
}
.bai-metric.highlight .bai-metric-value {
  color: #0f766e;
}

/* Compare Table */
.bai-compare {
  margin-bottom: 1.25rem;
}
.bai-compare h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #1e3a5f;
}
.bai-compare-table {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.bai-compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}
.bai-compare-row:last-child {
  border-bottom: none;
}
.bai-compare-row.head {
  background: #f8fafc;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bai-compare-row.total {
  background: #ecfdf5;
  font-weight: 700;
  color: #0f766e;
}

/* ROI Box */
.bai-roi-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.9rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.bai-roi-box span {
  font-size: 0.9rem;
  color: #92400e;
  font-weight: 500;
}
.bai-roi-box strong {
  font-size: 1.35rem;
  color: #b45309;
}

/* Disclaimer */
.bai-disclaimer {
  font-size: 0.8rem;
  color: #6b7280;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
  .bai-form-grid {
    grid-template-columns: 1fr;
  }
  .bai-metrics {
    grid-template-columns: 1fr;
  }
  .bai-step-label {
    font-size: 0.7rem;
  }
  .bai-step-line {
    width: 24px;
  }
  .bai-wow-numbers {
    font-size: 1.3rem;
  }
  .bai-after {
    font-size: 1.5rem;
  }
  .bai-card {
    padding: 1.25rem 1rem;
  }
}
