/* SBA Loan Calculator — Scoped CSS | Plugin: smarttools-business */

.sba-wrap * { box-sizing: border-box; margin: 0; padding: 0; }

.sba-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
}

/* =====================
   HEADER
   ===================== */
.sba-header {
  background: #1c1917;
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sba-header-icon { font-size: 34px; flex-shrink: 0; }
.sba-header-title { color:white; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.sba-header-sub { font-size: 12px; color: #a8a29e; }

/* =====================
   BODY LAYOUT
   ===================== */
.sba-body { display: flex; flex-direction: column; }

@media(min-width: 720px) {
  .sba-body { flex-direction: row; align-items: flex-start; }
  .sba-form { width: 46%; border-right: 1px solid #e2e8f0; flex-shrink: 0; }
  .sba-results { width: 54%; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
}

/* =====================
   FORM
   ===================== */
.sba-form { padding: 20px; }
.sba-field-group { margin-bottom: 16px; }

.sba-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sba-required {
  font-weight: 400;
  color: #dc2626;
  font-size: 11px;
  margin-left: 6px;
  text-transform: none;
  letter-spacing: 0;
}
.sba-hint-inline {
  font-weight: 400;
  color: #6b7280;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

/* Choice / Toggle Buttons */
.sba-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.sba-choice {
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.sba-choice:hover { border-color: #1c1917; color: #1c1917; }
.sba-choice.active { background: #1c1917; border-color: #1c1917; color: #fff; }
.sba-choice.sba-dim { opacity: 0.4; pointer-events: none; }

/* Slider */
.sba-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  margin: 8px 0 4px;
}
.sba-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1c1917;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.sba-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1c1917;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.sba-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9ca3af;
}
.sba-amount-highlight {
  font-weight: 700;
  color: #1c1917;
  font-size: 15px;
}

/* Number Input */
.sba-input-wrap { position: relative; display: flex; align-items: center; }
.sba-input {
  width: 100%;
  padding: 9px 40px 9px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.sba-input::-webkit-inner-spin-button,
.sba-input::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.sba-input:focus { border-color: #1c1917; box-shadow: 0 0 0 3px rgba(28,25,23,0.08); }
.sba-unit {
  position: absolute;
  right: 12px;
  color: #6b7280;
  font-size: 13px;
  pointer-events: none;
}
.sba-input-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.sba-input-group:focus-within {
  border-color: #1c1917;
  box-shadow: 0 0 0 3px rgba(28,25,23,0.08);
}
.sba-input-addon {
  display: flex;
  align-items: center;
  padding: 0 10px 0 12px;
  color: #6b7280;
  font-size: 14px;
  background: #f9fafb;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.sba-input-addon-field {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  flex: 1;
  min-width: 0;
}

/* Hint */
.sba-hint {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 5px;
  font-style: italic;
}

/* Divider */
.sba-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 18px 0 14px;
}

/* Section Title */
.sba-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #78716c;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Disclaimer */
.sba-disclaimer {
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 11px;
  color: #713f12;
  line-height: 1.6;
  margin-top: 16px;
}

/* =====================
   RESULTS PANEL
   ===================== */
.sba-results {
  background: #fafaf9;
  padding: 20px;
}

/* Placeholder */
.sba-placeholder {
  text-align: center;
  padding: 50px 24px;
  color: #6b7280;
}
.sba-placeholder-icon { font-size: 52px; margin-bottom: 14px; }
.sba-placeholder p { font-size: 13px; line-height: 1.7; }

/* Hero Card */
.sba-hero-card {
  background: #1c1917;
  color: #fff;
  border-radius: 10px;
  padding: 22px 20px;
  text-align: center;
  margin-bottom: 14px;
}
.sba-hero-label {
  font-size: 11px;
  color: #a8a29e;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.sba-hero-value {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.sba-hero-sub { font-size: 12px; color: #a8a29e; }

/* Stats Grid */
.sba-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.sba-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}
.sba-stat-label {
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 4px;
  line-height: 1.3;
}
.sba-stat-value { font-size: 15px; font-weight: 700; color: #111827; }

/* Rate Tier Badge */
.sba-rate-tier {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #15803d;
  line-height: 1.5;
}
.sba-rate-tier-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* Breakdown */
.sba-breakdown {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.sba-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.sba-breakdown-row:last-child { border-bottom: none; }
.sba-breakdown-row span:last-child { font-weight: 600; color: #111827; }
.sba-breakdown-total {
  background: #f9fafb;
}
.sba-breakdown-total span { font-weight: 700 !important; font-size: 13px !important; color: #111827 !important; }

/* Compare Section */
.sba-compare-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.sba-compare-title {
  background: #1c1917;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.sba-compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 9px 14px;
  font-size: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  gap: 4px;
}
.sba-compare-row:last-child { border-bottom: none; }
.sba-compare-header {
  background: #f9fafb;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.4px;
}
.sba-compare-row div:nth-child(2),
.sba-compare-row div:nth-child(3) { text-align: center; font-weight: 600; }
.sba-savings-badge {
  padding: 10px 14px;
  font-size: 12px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

/* Eligibility */
.sba-eligibility {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.sba-eligibility-title {
  background: #1c1917;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
}
.sba-verdict-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid #f3f4f6;
  border-radius: 0;
}
.sba-verdict-icon { font-size: 26px; }
.sba-verdict-text { font-size: 17px; font-weight: 700; }
.sba-elig-rows { padding: 0 14px 10px; }
.sba-elig-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 11px;
  color: #374151;
  border-bottom: 1px solid #f9fafb;
  gap: 8px;
}
.sba-elig-row:last-child { border-bottom: none; }
.sba-elig-row span:first-child { color: #6b7280; }
.sba-elig-row span:last-child { font-weight: 600; font-size: 12px; text-align: right; white-space: nowrap; }

/* =====================
   MOBILE
   ===================== */
@media(max-width: 480px) {
  .sba-form, .sba-results { padding: 14px; }
  .sba-header { padding: 16px 14px; gap: 10px; }
  .sba-header-icon { font-size: 26px; }
  .sba-header-title { font-size: 16px; }
  .sba-hero-value { font-size: 30px; }
  .sba-stats-grid { gap: 6px; }
  .sba-stat-value { font-size: 13px; }
  .sba-stat-label { font-size: 9px; }
  .sba-compare-row { grid-template-columns: 1.2fr 1fr 1fr; font-size: 11px; padding: 8px 10px; }
  .sba-elig-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .sba-choice { padding: 6px 10px; font-size: 11px; }
}
