/* ============================================================
   WiseIQ UX Features v129
   ============================================================ */

/* ── 1. WHY WE PICKED THIS ── */
.wiq-why-picked {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0;
}
.wiq-why-picked-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.wiq-why-picked-icon { font-size: 16px; }
.wiq-why-picked-label {
  font-size: 12px;
  font-weight: 800;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wiq-why-picked-text {
  font-size: 13px;
  color: #166534;
  line-height: 1.6;
  margin: 0;
}

/* ── 2. INLINE LOAN CALCULATOR ── */
.wiq-calc {
  border-top: 1px solid #e2e8f0;
  margin-top: 12px;
  padding-top: 4px;
}
.wiq-calc-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #1a6fd4;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  text-align: left;
}
.wiq-calc-toggle:hover { color: #1558b0; }
.wiq-calc-chevron {
  margin-left: auto;
  font-size: 11px;
  transition: transform 0.2s;
}
.wiq-calc-toggle[aria-expanded="true"] .wiq-calc-chevron {
  transform: rotate(180deg);
}
.wiq-calc-body {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 6px;
}
.wiq-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.wiq-calc-row label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  min-width: 90px;
}
.wiq-calc-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #64748b;
}
.wiq-calc-input-wrap input,
.wiq-calc-row select {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
  color: #0b1f3a;
  background: #fff;
  width: 90px;
}
.wiq-calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 8px;
}
.wiq-calc-result-label {
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
}
.wiq-calc-result-value {
  font-size: 20px;
  font-weight: 800;
  color: #1a6fd4;
}
.wiq-calc-total {
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
  margin-top: 6px;
}
.wiq-calc-total strong { color: #64748b; }

/* ── 3. APPROVAL ODDS ── */
.wiq-odds {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 8px 0 4px;
}
.wiq-odds-high  { background: #dcfce7; color: #15803d; }
.wiq-odds-med   { background: #fef9c3; color: #854d0e; }
.wiq-odds-low   { background: #ffedd5; color: #9a3412; }
.wiq-odds-no    { background: #fee2e2; color: #991b1b; }

/* ── 4. SIDEBAR QUIZ ── */
.wiq-quiz {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}
.wiq-quiz-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.wiq-quiz-icon { font-size: 18px; }
.wiq-quiz-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e3a8a;
}
.wiq-quiz-sub {
  font-size: 12px;
  color: #3b82f6;
  margin: 0 0 14px;
}
.wiq-quiz-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 10px;
}
.wiq-quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wiq-quiz-opt {
  background: #fff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.wiq-quiz-opt:hover,
.wiq-quiz-opt.selected {
  background: #1a6fd4;
  color: #fff;
  border-color: #1a6fd4;
}
.wiq-quiz-progress {
  height: 4px;
  background: #bfdbfe;
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}
.wiq-quiz-progress-bar {
  height: 100%;
  background: #1a6fd4;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.wiq-quiz-result {
  text-align: center;
  padding: 8px 0;
}
.wiq-quiz-result-icon { font-size: 28px; margin-bottom: 8px; }
.wiq-quiz-result-text {
  font-size: 13px;
  color: #1e3a8a;
  margin-bottom: 12px;
}
.wiq-quiz-result-btn {
  display: block;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.wiq-quiz-result-btn:hover { background: #15803d; }

/* ── 6. READING PROGRESS BAR ── */
.wiq-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,0.08);
  z-index: 9999;
  pointer-events: none;
}
.wiq-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a6fd4, #16a34a);
  width: 0%;
  transition: width 0.1s linear;
}

/* ── 7. PINNED TOP LENDER (MOBILE) ── */
.wiq-pinned-lender {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: #0b1f3a;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.wiq-pinned-lender[hidden] { display: none; }
.wiq-pinned-star { font-size: 14px; flex-shrink: 0; }
.wiq-pinned-name { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiq-pinned-name strong { color: #60a5fa; }
.wiq-pinned-apr { font-size: 11px; color: #94a3b8; white-space: nowrap; }
.wiq-pinned-cta {
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.wiq-pinned-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
@media (min-width: 769px) {
  .wiq-pinned-lender { display: none !important; }
}
