/* Business Loan UI — reuse Personal Loan styling */

/* Layout */
.bln-wrap {
  display: flex;
  min-height: 100vh;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f7fa;
  color: #1f2937;
}

/* Sidebar */
.bln-sidebar {
  width: 240px;
  background: #23502a;
  color: #fff;
  padding: 20px 0;
  flex-shrink: 0;
}
.bln-sidebar-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bln-sidebar-inner li {
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.bln-sidebar-inner li:hover,
.bln-sidebar-inner li.active {
  background: #2f6a36;
}
.bln-sidebar-inner li a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* Hamburger (mobile) */
.bln-hamburger {
  display: none;
}

/* Main */
.bln-main {
  flex: 1;
  padding: 25px;
}

/* Header */
.bln-header-section {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.bln-header-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bln-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #164a2c;
  margin: 0;
}
.bln-btn.add {
  background: #23502a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.bln-btn.add:hover {
  background: #1d4e24;
  transform: scale(1.05);
}
.bln-header-separator {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}
.bln-bank-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #164a2c;
  margin: 10px 0 20px;
}

/* Grid placeholder */
.bln-bank-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.bln-bank-logo-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.bln-bank-logo-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border-color: #2f6a36;
}
.bln-bank-logo-item img {
  max-width: 120px;
  height: 60px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Popup (centered) */
#bln-popup.bln-popup {
  display: none;
  position: fixed !important;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center !important;
  align-items: center !important;
  z-index: 10000;
}
#bln-popup.bln-popup.show {
  display: flex !important;
}
.bln-popup-content {
  background: #fff;
  border-radius: 12px;
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.bln-popup-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}
.bln-popup-close:hover {
  color: #111827;
}

/* Steps + fields */
.bln-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bln-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bln-field label {
  font-weight: 600;
  color: #203247;
}
.bln-field input,
.bln-field textarea {
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}
.bln-field textarea {
  min-height: 70px;
}
.bln-step {
  display: none;
}
.bln-step.active {
  display: block;
}
.bln-form-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.bln-prev,
.bln-next,
.bln-submit {
  background: #23502a;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.bln-prev[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Flash */
.bln-flash {
  display: none;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 600;
}
.bln-flash.success {
  display: block;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}
.bln-flash.error {
  display: block;
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

/* Mobile footer hidden by default, shown on small screens */
.bln-mobile-footer {
  display: none;
}
@media (max-width: 900px) {
  .bln-wrap {
    flex-direction: column;
  }
  .bln-sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    bottom: 0;
    transition: left 0.3s;
    z-index: 9999;
  }
  .bln-sidebar.open {
    left: 0;
  }
  #bln-hamburger {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    background: #23502a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    z-index: 10000;
  }
  .bln-mobile-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }
  .bln-mobile-footer .footer-item {
    text-align: center;
    flex: 1;
    font-size: 13px;
    color: #374151;
  }
  .bln-mobile-footer .footer-item.active {
    color: #2f6a36;
    font-weight: 700;
  }
  .bln-grid {
    grid-template-columns: 1fr;
  }
}
