/* Bankability Check — step widgets inside farmer onboarding fo-shell */

.bc-shell .fo-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fo-text, #1e293b);
  margin-bottom: 0.4rem;
}

.bc-shell .fo-input,
.bc-shell input.fo-input,
.bc-shell select.fo-input {
  width: 100%;
  height: 42px;
  padding: 0 0.85rem;
  border: 1px solid var(--fo-border-strong, #cbd5e1);
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--fo-text, #1e293b);
  background: #fff;
  box-sizing: border-box;
}

.bc-error {
  color: #b91c1c;
  font-size: 0.875rem;
  margin: 0.75rem 0 0;
}

.bc-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}

.bc-cat {
  border: 1px solid var(--fo-border, #e2e8e4);
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem;
  text-align: left;
  cursor: pointer;
}

.bc-cat.is-on {
  border-color: var(--fo-leaf, #1b7a4e);
  background: var(--fo-leaf-soft, #e8f5ec);
}

.bc-cat img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.35rem;
}

.bc-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.bc-chip {
  border: 1px solid var(--fo-border, #e2e8e4);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.bc-chip.is-on {
  background: var(--fo-leaf, #1b7a4e);
  color: #fff;
  border-color: var(--fo-leaf, #1b7a4e);
}

.bc-produce-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--fo-border, #e2e8e4);
}

.bc-produce-row input {
  width: 6rem;
}

.bc-yesno {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bc-yesno button,
.bc-tenure button {
  border: 1px solid var(--fo-border, #e2e8e4);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font: inherit;
}

.bc-yesno button {
  flex: 1 1 12rem;
}

.bc-yesno button.is-on,
.bc-tenure button.is-on {
  border-color: var(--fo-leaf, #1b7a4e);
  background: var(--fo-leaf-soft, #e8f5ec);
}

.bc-tenure {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bc-tenure--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.bc-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--fo-border, #e2e8e4);
  border-radius: 10px;
  background: #fff;
}

.bc-check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.bc-wt-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bc-wt-primary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.bc-wt-side {
  min-width: 0;
}

.bc-wt-ha {
  max-width: 14rem;
}

.bc-tenure button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
}

.bc-strength {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  flex-shrink: 0;
}

.bc-strength.strong { background: #d1fae5; color: #065f46; }
.bc-strength.medium { background: #fef3c7; color: #92400e; }
.bc-strength.weak { background: #e2e8f0; color: #475569; }

@media (min-width: 720px) {
  .bc-tenure--grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .bc-wt-layout--split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem;
    align-items: start;
  }

  .bc-check-grid {
    grid-template-columns: 1fr;
  }
}

.bc-rating {
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.bc-rating.emerald { background: #047857; }
.bc-rating.teal { background: #0f766e; }
.bc-rating.amber { background: #b45309; }
.bc-rating.rose { background: #be123c; }

.bc-rating strong {
  font-size: 2rem;
  display: block;
}

.bc-water {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.bc-water.green { background: #ecfdf5; color: #065f46; }
.bc-water.amber { background: #fffbeb; color: #92400e; }
.bc-water.red { background: #fff1f2; color: #9f1239; }

.bc-ready-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--fo-border, #e2e8e4);
  font-size: 0.875rem;
}

.bc-ready-item .ok { color: #047857; font-weight: 700; }
.bc-ready-item .miss { color: #b45309; font-weight: 700; }

.bc-lead {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.bc-popia {
  font-size: 0.75rem;
  color: var(--fo-muted, #64748b);
}

.bc-ref {
  text-align: center;
  padding: 1rem;
  background: var(--fo-leaf-soft, #e8f5ec);
  border-radius: 12px;
}

.bc-ref code {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.bc-offtake-card {
  border: 1px solid var(--fo-border, #e2e8e4);
  border-radius: 12px;
  padding: 0.75rem;
  margin: 0.6rem 0;
  background: #fff;
}

.bc-asset-box {
  margin-top: 1rem;
  border: 1px solid var(--fo-border, #e2e8e4);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #f8fafc;
}

.bc-asset-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.bc-asset-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.875rem;
}

.bc-live {
  margin-left: 0.4rem;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 700;
  background: #d1fae5;
  color: #047857;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

.bc-liquid {
  margin-top: 1rem;
  border-radius: 12px;
  padding: 1rem;
  background: #0f172a;
  color: #fff;
}

.bc-liquid .fo-label { color: #fff; }

.bc-liquid-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.2rem 0;
  color: #cbd5e1;
}

.bc-liquid-row.is-total {
  border-top: 1px solid #334155;
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  color: #fff;
  font-weight: 600;
}

.bc-liquid-row.is-liquid {
  color: #34d399;
  font-weight: 700;
}

.bc-drivers {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.8125rem;
}

.bc-drivers .ok { color: #047857; }
.bc-drivers .miss { color: #b45309; }

.bc-rating-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .bc-drivers { grid-template-columns: 1fr; }
}

/* Public Bankability Check — React /BankabilityCheck chrome */
.bc-page {
  position: relative;
  min-height: 100vh;
  background: #f1f5f9;
  font-family: Poppins, "Source Sans 3", sans-serif;
  color: #0f172a;
  padding-bottom: 3rem;
}

.bc-hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 50vh;
  background-image: linear-gradient(rgba(6, 78, 59, 0.88), rgba(13, 42, 33, 0.92)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1600&h=900&fit=crop");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.bc-page .landing-header {
  position: relative;
  z-index: 2;
}

.bc-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 2.5rem 1rem 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.bc-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.bc-hero h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
}

.bc-hero-sub {
  margin: 0.5rem auto 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}

.bc-hero-popia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.bc-stepper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

.bc-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  cursor: pointer;
  padding: 0.25rem;
}

.bc-step:disabled {
  cursor: default;
}

.bc-step.is-done {
  color: #a7f3d0;
}

.bc-step.is-active {
  color: #fff;
}

.bc-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}

.bc-step.is-done .bc-step-num {
  background: #34d399;
  color: #064e3b;
}

.bc-step.is-active .bc-step-num {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
  background: #fff;
  color: #065f46;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.45);
}

.bc-step.is-active .bc-step-label {
  font-size: 1.25rem;
  font-weight: 700;
}

.bc-step-label {
  font-size: 0.75rem;
  font-weight: 600;
}

.bc-step-line {
  flex: 1;
  min-width: 1rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.bc-step-line.is-done {
  background: #6ee7b7;
}

.bc-step-meta {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bc-body {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

.bc-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.bc-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem 1.75rem 2rem;
}

.bc-card-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.bc-card-sub {
  margin: 0.35rem 0 1.25rem;
  color: #64748b;
  font-size: 0.875rem;
}

.bc-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.bc-btn-back,
.bc-btn-continue {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  font-family: inherit;
}

.bc-btn-back {
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
}

.bc-btn-back:disabled {
  opacity: 0.45;
  cursor: default;
}

.bc-btn-continue {
  border: 0;
  background: #059669;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.35);
}

.bc-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.85rem 0 0;
}

.bc-page .fo-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .bc-page .fo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .bc-page .fo-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.bc-status-banner {
  background: linear-gradient(90deg, #064e3b, #115e59);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  color: #fff;
  margin-bottom: 1rem;
}

.bc-status-banner h3 {
  margin: 0;
  font-size: 1rem;
}

.bc-status-banner > p {
  margin: 0.25rem 0 0.85rem;
  font-size: 0.75rem;
  color: #a7f3d0;
}

.bc-status-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bc-status-opt {
  flex: 1;
  min-width: 200px;
  text-align: left;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.bc-status-opt strong,
.bc-status-opt span {
  display: block;
}

.bc-status-opt span {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #a7f3d0;
}

.bc-status-opt.is-on {
  background: #fff;
  border-color: #fff;
  color: #064e3b;
}

.bc-status-opt.is-on span {
  color: #047857;
}

.bc-white-box {
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.bc-white-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.bc-org-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .bc-org-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .bc-org-grid { grid-template-columns: repeat(4, 1fr); }
}

.bc-org-btn {
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.bc-org-btn.is-on {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.bc-cat-rail,
.bc-type-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.bc-cat-rail button {
  flex: 0 0 117px;
  width: 117px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2px solid transparent;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.bc-cat-rail button img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  display: block;
}

.bc-cat-rail button[aria-selected="true"] {
  border-color: #10b981;
  box-shadow: 0 0 0 2px #10b981;
}

.bc-type-rail > div {
  flex: 0 0 133px;
  width: 133px;
}

.bc-type-input {
  width: 100%;
  height: 1.75rem;
  border: 1px solid #fcd34d;
  border-radius: 0.35rem;
  text-align: center;
  font-size: 0.75rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

.bc-produce-public .fo-btn-add {
  width: 100%;
  background: #facc15;
  border: 0;
  font-weight: 700;
  border-radius: 0.4rem;
  padding: 0.35rem;
  cursor: pointer;
}
