/* =========================================================
   Boat Loan Calculator — bl- prefix
   Header: #0c2340 (dark navy marine)
   ========================================================= */

/* ── Reset ── */
.bl-wrap *, .bl-wrap *::before, .bl-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Wrapper ── */
.bl-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: #1c1917;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Header ── */
.bl-header {
  background: #0c2340;
  color: #fff;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.bl-header-icon {
  font-size: 2rem;
  line-height: 1;
}
.bl-header-title {
    color: white;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.bl-header-sub {
  font-size: 0.78rem;
  color: #93c5fd;
  letter-spacing: 0.01em;
}

/* ── Body Layout ── */
.bl-body {
  display: flex;
  align-items: flex-start;
}

/* ── Form (Left) ── */
.bl-form {
  flex: 0 0 44%;
  padding: 24px 24px 28px;
  background: #ffffff;
  border-right: 1.5px solid #e7e5e4;
}

/* ── Section Title ── */
.bl-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #78716c;
  margin: 18px 0 10px;
  border-bottom: 1px solid #e7e5e4;
  padding-bottom: 6px;
}

/* ── Field Group ── */
.bl-field-group {
  margin-bottom: 14px;
}

/* ── Label ── */
.bl-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #44403c;
  margin-bottom: 6px;
}
.bl-hint-inline {
  font-size: 0.73rem;
  font-weight: 400;
  color: #78716c;
  margin-left: 4px;
}

/* ── Boat Type Grid ── */
.bl-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.bl-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 6px 8px;
  border: 1.5px solid #d6d3d1;
  border-radius: 7px;
  background: #fafaf9;
  font-size: 0.76rem;
  font-weight: 600;
  color: #44403c;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  transition: all 0.15s;
  gap: 2px;
}
.bl-type-btn:hover {
    color:#102340;
  border-color: #0c2340;
  background: #eff6ff;
}
.bl-type-btn.active {
  background: #0c2340;
  border-color: #0c2340;
  color: #ffffff;
}
.bl-type-sub {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.75;
  display: block;
}
.bl-type-info {
  margin-top: 6px;
  padding: 6px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  font-size: 0.73rem;
  color: #1d4ed8;
  font-weight: 600;
}

/* ── Choice Buttons ── */
.bl-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bl-choice {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1.5px solid #d6d3d1;
  border-radius: 7px;
  background: #fafaf9;
  font-size: 0.78rem;
  font-weight: 500;
  color: #44403c;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.bl-choice:hover {
  border-color: #0c2340;
  background: #eff6ff;
}
.bl-choice.active {
  background: #0c2340;
  border-color: #0c2340;
  color: #ffffff;
}
.bl-choice-sub {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
}
.bl-credit-choices .bl-choice {
  flex: 1 1 auto;
  min-width: 60px;
}

/* ── Credit / Age Warn ── */
.bl-credit-warn {
  margin-top: 6px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #b91c1c;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ── Input (with % suffix) ── */
.bl-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  overflow: hidden;
  transition: border-color 0.15s;
  background: #fff;
}
.bl-input-wrap:focus-within {
  border-color: #0c2340;
}
.bl-input-wrap .bl-input {
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 0.9rem;
  flex: 1;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
.bl-input-wrap .bl-input::-webkit-inner-spin-button,
.bl-input-wrap .bl-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.bl-unit {
  padding: 0 10px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #78716c;
  background: #f5f5f4;
  border-left: 1.5px solid #d1d5db;
  height: 100%;
  display: flex;
  align-items: center;
}

/* ── Input Group ($) ── */
.bl-input-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  overflow: hidden;
  transition: border-color 0.15s;
  background: #fff;
}
.bl-input-group:focus-within {
  border-color: #0c2340;
}
.bl-input-addon {
  padding: 8px 10px;
  background: #f5f5f4;
  border-right: 1.5px solid #d1d5db;
  font-size: 0.85rem;
  font-weight: 600;
  color: #78716c;
  display: flex;
  align-items: center;
}
.bl-input-addon-field {
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 0.9rem;
  flex: 1;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
.bl-input-addon-field::-webkit-inner-spin-button,
.bl-input-addon-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* ── Range Slider ── */
.bl-slider {
  width: 100%;
  margin: 6px 0 2px;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 4px;
  background: #e7e5e4;
  outline: none;
  cursor: pointer;
}
.bl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0c2340;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.bl-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0c2340;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.bl-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #a8a29e;
  margin-top: 2px;
}

/* ── Checkboxes ── */
.bl-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 6px;
}
.bl-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #44403c;
  cursor: pointer;
  padding: 8px 10px;
  border: 1.5px solid #e7e5e4;
  border-radius: 7px;
  background: #fafaf9;
  transition: all 0.15s;
}
.bl-checkbox-label:hover {
  border-color: #0c2340;
  background: #eff6ff;
}
.bl-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #0c2340;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Hint / Highlight ── */
.bl-hint {
  font-size: 0.72rem;
  color: #78716c;
  margin-top: 4px;
  line-height: 1.4;
}
.bl-highlight {
  font-weight: 700;
  color: #0c2340;
}

/* ── Disclaimer ── */
.bl-disclaimer {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 7px;
  font-size: 0.72rem;
  color: #78716c;
  line-height: 1.5;
}

/* ── Results (Right) ── */
.bl-results {
  flex: 1 1 0;
  padding: 24px 24px 28px;
  background: #f0f4f8;
  min-width: 0;
}

/* ── Placeholder ── */
.bl-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 14px;
}
.bl-placeholder-icon { font-size: 2.5rem; }
.bl-placeholder p {
  color: #a8a29e;
  font-size: 0.88rem;
  max-width: 300px;
  line-height: 1.5;
}

/* ── Hero Card ── */
.bl-hero-card {
  background: #0c2340;
  color: #fff;
  border-radius: 10px;
  padding: 22px 20px;
  margin-bottom: 14px;
  text-align: center;
}
.bl-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
  margin-bottom: 8px;
}
.bl-hero-value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.bl-hero-sub {
  font-size: 0.82rem;
  opacity: 0.72;
}

/* ── Cards ── */
.bl-card {
  background: #fff;
  border: 1.5px solid #e7e5e4;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.bl-card-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #78716c;
  margin-bottom: 12px;
}

/* ── True Cost Card ── */
.bl-true-cost-card {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.bl-true-cost-card .bl-card-title { color: #1d4ed8; }
.bl-cost-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.bl-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 5px;
  font-size: 0.82rem;
  color: #1c1917;
}
.bl-cost-total {
  font-weight: 700;
  font-size: 0.95rem;
  background: #0c2340 !important;
  color: #fff !important;
  border-radius: 6px;
  margin-top: 4px;
}
.bl-cost-note {
  font-size: 0.76rem;
  color: #1d4ed8;
  line-height: 1.5;
  border-top: 1px solid #bfdbfe;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bl-annual-note {
  color: #78716c;
  font-size: 0.72rem;
}

/* ── Tax Card ── */
.bl-tax-card {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.bl-tax-card .bl-card-title { color: #15803d; }
.bl-tax-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.bl-tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: rgba(255,255,255,0.7);
  border-radius: 5px;
  font-size: 0.82rem;
}
.bl-tax-savings {
  font-weight: 700;
  font-size: 0.88rem;
  background: #dcfce7 !important;
}
.bl-tax-monthly {
  font-weight: 700;
  font-size: 0.95rem;
  background: #15803d !important;
  color: #fff !important;
  border-radius: 6px;
}
.bl-tax-note {
  font-size: 0.72rem;
  color: #78716c;
  line-height: 1.5;
  margin-bottom: 6px;
}
.bl-tax-750k-warn {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.76rem;
  color: #b91c1c;
  font-weight: 600;
}

/* ── Secured vs Unsecured Card ── */
.bl-secured-card { border-color: #fde68a; background: #fffbeb; }
.bl-secured-card .bl-card-title { color: #b45309; }
.bl-hint-box {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.76rem;
  color: #78716c;
  margin-bottom: 10px;
}
.bl-compare-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bl-compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 4px;
}
.bl-compare-header {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bl-compare-row div {
  padding: 8px 10px;
  background: #fafaf9;
  border-radius: 5px;
  font-size: 0.8rem;
  color: #1c1917;
}
.bl-compare-header div { background: #f5f5f4; color: #78716c; font-weight: 700; }
.bl-compare-verdict div { font-weight: 700; }

/* ── Stats Grid ── */
.bl-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bl-stat {
  background: #fff;
  border: 1.5px solid #e7e5e4;
  border-radius: 8px;
  padding: 14px 14px 12px;
  text-align: center;
}
.bl-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a8a29e;
  margin-bottom: 6px;
}
.bl-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0c2340;
  letter-spacing: -0.01em;
}
.bl-stat-sm { font-size: 0.9rem; }

/* =========================================================
   RESPONSIVE — MOBILE (max 480px)
   ========================================================= */
@media (max-width: 480px) {
  .bl-header { padding: 16px 14px; gap: 10px; }
  .bl-header-icon { font-size: 1.6rem; }
  .bl-header-title { font-size: 1.05rem; }
  .bl-header-sub { font-size: 0.70rem; }

  .bl-body { flex-direction: column; }
  .bl-form {
    flex: none;
    width: 100%;
    padding: 16px 14px 18px;
    border-right: none;
    border-bottom: 1.5px solid #e7e5e4;
  }
  .bl-results { padding: 16px 14px 18px; }

  .bl-type-grid { grid-template-columns: 1fr 1fr; }
  .bl-hero-value { font-size: 1.85rem; }
  .bl-stats-grid { grid-template-columns: 1fr; }
  .bl-compare-row div { font-size: 0.72rem; padding: 6px 6px; }
}

/* =========================================================
   RESPONSIVE — TABLET (481px – 899px)
   ========================================================= */
@media (min-width: 481px) and (max-width: 899px) {
  .bl-body { flex-direction: column; }
  .bl-form {
    flex: none;
    width: 100%;
    padding: 18px 20px;
    border-right: none;
    border-bottom: 1.5px solid #e7e5e4;
  }
  .bl-results { padding: 18px 20px; }
  .bl-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .bl-type-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   RESPONSIVE — DESKTOP (900px+)
   ========================================================= */
@media (min-width: 900px) {
  .bl-form { overflow-y: auto; }
}
