/* BadCreditMotors.com — Car Buying Calculators
   All styles scoped under .bcm-calculator-wrapper
   ================================================ */

.bcm-calculator-wrapper {
  --bcm-primary:   #2563eb;
  --bcm-primary-d: #1d4ed8;
  --bcm-s50:  #f8fafc;
  --bcm-s100: #f1f5f9;
  --bcm-s200: #e2e8f0;
  --bcm-s300: #cbd5e1;
  --bcm-s400: #94a3b8;
  --bcm-s500: #64748b;
  --bcm-s600: #475569;
  --bcm-s700: #334155;
  --bcm-s800: #1e293b;
  --bcm-s900: #0f172a;
  --bcm-green:  #10b981;
  --bcm-red:    #ef4444;
  --bcm-amber:  #f59e0b;
  --bcm-orange: #f97316;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  color: #0f172a;
  line-height: 1.5;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.bcm-calculator-wrapper *,
.bcm-calculator-wrapper *::before,
.bcm-calculator-wrapper *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

/* ── Layout grid ─────────────────────────────────────────────────── */
.bcm-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

@media (min-width: 960px) {
  .bcm-calc-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}

/* ── Inputs card ─────────────────────────────────────────────────── */
.bcm-inputs-card {
  background: #fff;
  border: 1px solid var(--bcm-s200);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  overflow: hidden;
}

.bcm-card-header {
  background: var(--bcm-s50);
  border-bottom: 1px solid var(--bcm-s200);
  padding: 18px 24px 16px;
}

.bcm-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bcm-s900);
  margin: 0 0 4px;
}

.bcm-card-desc {
  font-size: .85rem;
  color: var(--bcm-s500);
  margin: 0;
}

.bcm-field-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 600px) {
  .bcm-field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bcm-field-full {
    grid-column: 1 / -1;
  }
}

.bcm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bcm-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--bcm-s700);
  display: flex;
  align-items: center;
  gap: 5px;
}

.bcm-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bcm-s200);
  color: var(--bcm-s500);
  font-size: .65rem;
  font-style: normal;
  cursor: help;
  flex-shrink: 0;
  position: relative;
}

.bcm-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  background: var(--bcm-s900);
  color: #fff;
  font-size: .75rem;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: normal;
  min-width: 200px;
  max-width: 280px;
  z-index: 99;
  pointer-events: none;
  line-height: 1.4;
}

.bcm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bcm-dollar {
  position: absolute;
  left: 12px;
  color: var(--bcm-s400);
  font-size: 1rem;
  pointer-events: none;
}

.bcm-input {
  width: 100%;
  padding: 10px 12px 10px 32px;
  border: 1px solid var(--bcm-s200);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--bcm-s900);
  background: #fff;
  transition: border-color .15s;
  -moz-appearance: textfield;
}

.bcm-input::-webkit-inner-spin-button,
.bcm-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.bcm-input-no-prefix {
  padding-left: 12px;
}

.bcm-input:focus {
  outline: none;
  border-color: var(--bcm-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.bcm-select {
  width: 100%;
  padding: 10px 32px 10px 12px;
  border: 1px solid var(--bcm-s200);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--bcm-s900);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s;
  cursor: pointer;
}

.bcm-select:focus {
  outline: none;
  border-color: var(--bcm-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.bcm-card-footer {
  background: var(--bcm-s50);
  border-top: 1px solid var(--bcm-s200);
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bcm-btn-primary {
  padding: 10px 28px;
  background: var(--bcm-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}

.bcm-btn-primary:hover { background: var(--bcm-primary-d); }

.bcm-btn-outline {
  padding: 10px 20px;
  background: #fff;
  color: var(--bcm-s700);
  border: 1px solid var(--bcm-s200);
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bcm-btn-outline:hover { background: var(--bcm-s50); }

/* ── Results card ────────────────────────────────────────────────── */
.bcm-results-card {
  background: var(--bcm-s900);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bcm-hero-band {
  background: var(--bcm-primary);
  padding: 24px 20px;
  text-align: center;
}

.bcm-hero-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bcm-hero-value {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.bcm-results-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bcm-result-rows { display: flex; flex-direction: column; }

.bcm-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.bcm-result-row:last-child { border-bottom: none; }

.bcm-result-label {
  font-size: .88rem;
  color: var(--bcm-s300);
}

.bcm-result-value {
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.bcm-amber   { color: var(--bcm-amber) !important; }
.bcm-green   { color: var(--bcm-green) !important; }
.bcm-red     { color: var(--bcm-red) !important; }
.bcm-orange  { color: var(--bcm-orange) !important; }
.bcm-large   { font-size: 1.1rem !important; font-weight: 800 !important; color: #fff !important; }

.bcm-results-footer {
  background: var(--bcm-s800);
  padding: 14px 20px;
  display: flex;
  gap: 10px;
}

.bcm-btn-dark {
  flex: 1;
  padding: 9px 12px;
  background: var(--bcm-s700);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}

.bcm-btn-dark:hover { background: var(--bcm-s600); }

/* ── Extra content (comparison tables, bars) ─────────────────────── */
.bcm-extra { font-size: .82rem; }

.bcm-extra-sep {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
}

.bcm-extra-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--bcm-s400);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bcm-table-wrap { overflow-x: auto; }

.bcm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}

.bcm-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.bcm-table th {
  padding: 5px 4px;
  color: var(--bcm-s400);
  font-weight: 600;
  text-align: right;
}

.bcm-table th:first-child { text-align: left; }

.bcm-table td {
  padding: 5px 4px;
  color: var(--bcm-s400);
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.bcm-table td:first-child { text-align: left; }

.bcm-row-active td { color: #fff; font-weight: 600; }

.bcm-amber-text { color: var(--bcm-amber) !important; }

/* Bar charts */
.bcm-bars { display: flex; flex-direction: column; gap: 10px; }

.bcm-bar-row { display: flex; flex-direction: column; gap: 3px; }

.bcm-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--bcm-s400);
}

.bcm-bar-meta span:last-child { font-weight: 600; color: #fff; }

.bcm-bar-track {
  height: 8px;
  background: var(--bcm-s700);
  border-radius: 999px;
  overflow: hidden;
}

.bcm-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .4s ease;
}

.bcm-bar-blue   { background: #3b82f6; }
.bcm-bar-amber  { background: var(--bcm-amber); }
.bcm-bar-slate  { background: var(--bcm-s500); }
.bcm-bar-green  { background: var(--bcm-green); }
.bcm-bar-red    { background: var(--bcm-red); }

/* Budget rating badge */
.bcm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.bcm-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bcm-badge-green  { background: rgba(16,185,129,.15); color: var(--bcm-green); }
.bcm-badge-green  .bcm-badge-dot { background: var(--bcm-green); }
.bcm-badge-yellow { background: rgba(245,158,11,.15); color: var(--bcm-amber); }
.bcm-badge-yellow .bcm-badge-dot { background: var(--bcm-amber); }
.bcm-badge-red    { background: rgba(239,68,68,.15); color: var(--bcm-red); }
.bcm-badge-red    .bcm-badge-dot { background: var(--bcm-red); }

/* Smart message */
.bcm-smart-msg {
  font-size: .78rem;
  line-height: 1.5;
  margin-top: 6px;
}

/* ── Disclaimer ──────────────────────────────────────────────────── */
.bcm-disclaimer {
  background: var(--bcm-s100);
  border: 1px solid var(--bcm-s200);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: .8rem;
  color: var(--bcm-s600);
  line-height: 1.6;
  font-style: italic;
  margin-top: 4px;
}

/* ── Buy With Confidence box ────────────────────────────────────────── */
.bcm-bwc-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  margin: 32px auto;
  border: 2px solid #1a2e44;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #1a2e44;
}
.bcm-bwc-wrapper * { box-sizing: border-box; }

.bcm-bwc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1a2e44;
  color: #fff;
  padding: 18px 24px;
}
.bcm-bwc-shield {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.bcm-bwc-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 2px;
  letter-spacing: -.01em;
}
.bcm-bwc-subtitle {
  font-size: .9rem;
  margin: 0;
  opacity: .85;
}

.bcm-bwc-copy {
  margin: 0;
  padding: 18px 24px 14px;
  font-size: .95rem;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

/* Clickable banner */
.bcm-bwc-banner {
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, #0f2a44 0%, #1a4a6e 60%, #0e7a6e 100%);
  color: #fff;
  transition: opacity .2s;
  margin: 0;
}
.bcm-bwc-banner:hover { opacity: .92; }
.bcm-bwc-banner-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.bcm-bwc-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 22px;
  border-right: 1px solid rgba(255,255,255,.15);
  min-width: 130px;
}
.bcm-bwc-cv-logo {
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -.02em;
}
.bcm-bwc-cv-logo strong { color: #2dd4c0; }
.bcm-bwc-partner-badge {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.15);
  color: #d1faf5;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.bcm-bwc-offer-area {
  flex: 1;
  padding: 18px 20px;
  min-width: 160px;
}
.bcm-bwc-offer-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  opacity: .75;
  margin: 0 0 4px;
}
.bcm-bwc-discount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2dd4c0;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.bcm-bwc-code-line {
  font-size: .85rem;
  margin: 0;
  opacity: .9;
}
.bcm-bwc-code {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px dashed rgba(255,255,255,.5);
  border-radius: 4px;
  padding: 1px 8px;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: .05em;
  color: #fff;
}
.bcm-bwc-cta-area {
  padding: 18px 20px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.bcm-bwc-cta-btn {
  display: inline-block;
  background: #2dd4c0;
  color: #0f2a44;
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s;
}
.bcm-bwc-banner:hover .bcm-bwc-cta-btn { background: #5eead4; }

/* Checklist */
.bcm-bwc-checks {
  padding: 18px 24px 14px;
  border-top: 1px solid #e5e7eb;
}
.bcm-bwc-checks-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6b7280;
  margin: 0 0 10px;
}
.bcm-bwc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.bcm-bwc-list-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  color: #374151;
}
.bcm-bwc-check {
  color: #10b981;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Footer CTA */
.bcm-bwc-footer {
  padding: 18px 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  background: #f9fafb;
}
.bcm-bwc-footer-btn {
  display: inline-block;
  background: #1a2e44;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
  margin-bottom: 10px;
}
.bcm-bwc-footer-btn:hover { background: #0f2a44; color: #fff; }
.bcm-bwc-fine {
  font-size: .72rem;
  color: #9ca3af;
  margin: 0;
}

/* Responsive */
@media (max-width: 540px) {
  .bcm-bwc-banner-inner { flex-direction: column; }
  .bcm-bwc-logo-area { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); width: 100%; flex-direction: row; padding: 14px 18px; }
  .bcm-bwc-cta-area { border-left: none; border-top: 1px solid rgba(255,255,255,.15); width: 100%; padding: 14px 18px; text-align: center; }
  .bcm-bwc-list { grid-template-columns: 1fr; }
  .bcm-bwc-header { padding: 14px 16px; }
  .bcm-bwc-copy, .bcm-bwc-checks, .bcm-bwc-footer { padding-left: 16px; padding-right: 16px; }
}
