/* ============================================================
   BNI ALABAMA MEMBERSHIP WIZARD — Stylesheet
   Version 1.1.0 — Compact layout
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

#bni-wizard {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Progress bar ---- */
.bni-progress {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  padding-top: 6px;
}
.bni-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}
.bni-progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #ddd;
  z-index: 0;
  transition: background 0.3s;
}
.bni-progress-step.done:not(:last-child)::after { background: #cc0000; }
.bni-progress-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddd;
  border: 3px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s;
}
.bni-progress-step.active .bni-progress-dot,
.bni-progress-step.done .bni-progress-dot {
  background: #cc0000;
  border-color: #cc0000;
}
.bni-progress-label {
  font-size: 10px;
  color: #888;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}
.bni-progress-step.active .bni-progress-label,
.bni-progress-step.done .bni-progress-label {
  color: #cc0000;
  font-weight: 600;
}

/* ---- Step card ---- */
.bni-step { display: none; animation: bniFadeIn 0.25s ease; }
.bni-step.active { display: block; }
@keyframes bniFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bni-step h2 { font-size: 19px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.bni-step .bni-subtitle { font-size: 13px; color: #666; margin-bottom: 14px; }

/* ---- Option cards ---- */
.bni-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.bni-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fff;
  user-select: none;
}
.bni-option:hover { border-color: #cc0000; background: #fff8f8; }
.bni-option.selected { border-color: #cc0000; background: #fff0f0; }
.bni-option input[type="radio"] {
  accent-color: #cc0000;
  width: 17px; height: 17px;
  margin-top: 2px; flex-shrink: 0;
}
.bni-option-text { display: flex; flex-direction: column; }
.bni-option-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.bni-option-desc  { font-size: 12px; color: #666; margin-top: 1px; }

/* ---- Dropdown ---- */
#bni-wizard .bni-select-wrap { margin-bottom: 18px; }
#bni-wizard .bni-select-wrap label { display: block; font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
#bni-wizard .bni-select-wrap select {
  width: 100% !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  color: #333 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  cursor: pointer !important;
  transition: border-color 0.2s;
  height: auto !important;
  min-height: 44px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  margin: 0 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}
#bni-wizard .bni-select-wrap select:focus {
  outline: none !important;
  border-color: #cc0000 !important;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1) !important;
}

/* ---- Error ---- */
.bni-error {
  display: none;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-left: 4px solid #cc0000;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #cc0000;
  margin-bottom: 14px;
}
.bni-error.visible { display: block; }

/* ---- Alert ---- */
.bni-alert {
  display: none;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  color: #7c5a00;
  margin-bottom: 14px;
  line-height: 1.5;
}
.bni-alert.visible { display: block; }
.bni-alert a { color: #cc0000; font-weight: 600; }

/* ---- Buttons ---- */
.bni-btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bni-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.bni-btn:active { transform: scale(0.98); }
.bni-btn-primary { background: #cc0000; color: #fff; }
.bni-btn-primary:hover { background: #aa0000; }
.bni-btn-secondary { background: transparent; color: #666; border: 2px solid #ddd; }
.bni-btn-secondary:hover { border-color: #999; color: #333; }

/* ---- Summary ---- */
.bni-summary {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.bni-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.bni-summary-row:last-child { border-bottom: none; }
.bni-summary-row .label { color: #888; font-weight: 500; }
.bni-summary-row .value { font-weight: 700; color: #1a1a1a; text-align: right; max-width: 60%; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .bni-progress-label { display: none; }
  .bni-btn { width: 100%; }
  .bni-btn-row { flex-direction: column-reverse; }
}
