/* ========================================================================
   DEPLOY PATH: /css/simple-results.css
   Tepuy Solutions — Retirement calculator — simple mode results panel styles
   Version: 2026-03-31 (headers added)
   Notes: Load with sidebar-polish.css in retirement.html.
   ======================================================================== */

/* ── Simple Mode Panel: clean, card-like, blank on load ─────────── */
.simple-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Question rows */
.simple-q-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.9rem;
}

.simple-q-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #3d5248;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.simple-q-emoji {
  font-size: 0.95rem;
}

.simple-q-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: #9aada6;
  margin-left: 1.35rem;
  line-height: 1.3;
}

.simple-q-input-wrap {
  display: flex;
  align-items: center;
  margin-top: 0.3rem;
}

.simple-q-prefix {
  background: #f0f5f2;
  border: 1.5px solid #c8ddd3;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0.55rem 0.65rem 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #9aada6;
  line-height: 1;
  flex-shrink: 0;
}

.simple-q-suffix {
  background: #f0f5f2;
  border: 1.5px solid #c8ddd3;
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 0.55rem 0.75rem 0.55rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #9aada6;
  line-height: 1;
  flex-shrink: 0;
}

.simple-q-input {
  flex: 1;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  font-weight: 500;
  color: #0f1c16;
  background: #fff;
  border: 1.5px solid #c8ddd3;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -moz-appearance: textfield;
  width: 100%;
  box-sizing: border-box;
}

.simple-q-input::-webkit-outer-spin-button,
.simple-q-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.simple-q-input--prefixed {
  border-radius: 0 8px 8px 0;
  border-left: none;
}

.simple-q-input--suffixed {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.simple-q-input:focus {
  border-color: #1a5236;
  box-shadow: 0 0 0 3px rgba(26,82,54,0.1);
  outline: none;
}

.simple-q-input--prefixed:focus {
  border-left: none;
  box-shadow: 0 0 0 3px rgba(26,82,54,0.1);
}

.simple-q-input--plain {
  border-radius: 8px;
  border-left: 1.5px solid #c8ddd3;
}

/* Section dividers between question groups */
.simple-section-divider {
  height: 1px;
  background: #e8f0eb;
  margin: 0.35rem 0 0.95rem;
  border: none;
}

/* Calculate button */
.simple-run-btn {
  display: block !important;
  width: 100% !important;
  margin-top: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #1a5236 0%, #247857 100%) !important;
  border: none !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  text-align: center !important;
  box-sizing: border-box !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 2px 8px rgba(26,82,54,0.22) !important;
  transition: transform 0.12s, box-shadow 0.12s !important;
}

.simple-run-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(26,82,54,0.28) !important;
}

.simple-run-btn:active {
  transform: translateY(0) !important;
}

/* "Switch to Advanced" nudge */
.simple-adv-nudge {
  margin: 0.65rem 0 0 !important;
  text-align: center !important;
  font-size: 0.75rem !important;
  color: #9aada6 !important;
}

.simple-adv-link {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0.75rem !important;
  color: #247857 !important;
  cursor: pointer !important;
  text-decoration: underline !important;
}


/* ══ SIMPLE RESULTS PANEL ══════════════════════════════════════════ */

#simpleResultsPanel {
  margin-top: 1.5rem;
  animation: srp-fadein 0.35s ease;
}

@keyframes srp-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.srp-results {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Loading state ───────────────────────────────────────────────── */
.srp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2.5rem 1rem;
  color: #9aada6;
  font-size: 0.9rem;
}

.srp-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e8f0eb;
  border-top-color: #1a5236;
  border-radius: 50%;
  animation: srp-spin 0.8s linear infinite;
}

@keyframes srp-spin {
  to { transform: rotate(360deg); }
}

.srp-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 10px;
  padding: 1rem;
  color: #c53030;
  font-size: 0.88rem;
}

/* ── Fan wheel ───────────────────────────────────────────────────── */
.srp-visual-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e3ede8;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.srp-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.srp-fan-svg {
  display: block;
  /* prevent SVG from inheriting weird heights */
  overflow: visible;
}

.srp-zone-label {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.28rem 0.95rem;
  border-radius: 20px;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.srp-zone--strong { background: #dcfce7; color: #15803d; }
.srp-zone--good   { background: #d1fae5; color: #1a7c4a; }
.srp-zone--warn   { background: #fef3c7; color: #92400e; }
.srp-zone--danger { background: #fee2e2; color: #b91c1c; }

/* ── Health bar ──────────────────────────────────────────────────── */
.srp-bar-wrap {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.srp-bar-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  display: flex;
  overflow: visible; /* needle can poke out */
}

.srp-bar-seg {
  height: 12px;
  display: block;
  flex-shrink: 0;
}

.srp-bar-seg:first-child { border-radius: 6px 0 0 6px; }
.srp-bar-seg:last-child  { border-radius: 0 6px 6px 0; }

.srp-bar-seg--danger { background: #fca5a5; }
.srp-bar-seg--warn   { background: #fcd34d; }
.srp-bar-seg--good   { background: #86efac; }

.srp-bar-needle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #111827;
  box-shadow: 0 1px 5px rgba(0,0,0,0.25);
  z-index: 2;
  transition: left 1.1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.srp-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9aada6;
  padding: 0 2px;
}

.srp-bar-labels span:first-child { color: #dc2626; }
.srp-bar-labels span:last-child  { color: #16a34a; }

/* ── Headline + body ─────────────────────────────────────────────── */
.srp-headline {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f1c16;
  text-align: center;
}

.srp-headline--good   { color: #15803d; }
.srp-headline--warn   { color: #92400e; }
.srp-headline--danger { color: #b91c1c; }

.srp-insight-body {
  font-size: 0.9rem;
  color: #3d5248;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* ── KPI mini-cards ──────────────────────────────────────────────── */
.srp-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.srp-kpi {
  background: #f7faf8;
  border: 1px solid #e3ede8;
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.srp-kpi--good { background: #f0fdf4; border-color: #bbf7d0; }
.srp-kpi--bad  { background: #fff5f5; border-color: #fecaca; }

.srp-kpi-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9aada6;
}

.srp-kpi-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1c16;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.srp-kpi--good .srp-kpi-val { color: #15803d; }
.srp-kpi--bad  .srp-kpi-val { color: #b91c1c; }

.srp-kpi-sub {
  font-size: 0.6rem;
  color: #9aada6;
}

/* ── Suggestions ─────────────────────────────────────────────────── */
.srp-suggestions {
  background: #fff8ed;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.srp-suggestions--good {
  background: #f0fdf4;
  border-color: #86efac;
}

.srp-suggestions--warn {
  background: #fffbeb;
  border-color: #fde68a;
}

.srp-suggestion-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3d5248;
  margin-bottom: 0.4rem;
}

.srp-suggestions-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.85rem;
  color: #3d5248;
  line-height: 1.7;
}

/* ── Divider ─────────────────────────────────────────────────────── */
.srp-divider {
  height: 1px;
  background: #e8f0eb;
  border: none;
  margin: 0;
}

/* ── CTA block ───────────────────────────────────────────────────── */
.srp-cta-block {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: center;
}

.srp-cta-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #1a5236;
}

.srp-cta-sub {
  font-size: 0.8rem;
  color: #3d5248;
  line-height: 1.55;
  margin: 0;
}

.srp-cta-btn {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1a5236 0%, #247857 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(26,82,54,0.2);
  transition: transform 0.12s, box-shadow 0.12s;
}

.srp-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,82,54,0.28);
}

/* ── Responsive adjustments ──────────────────────────────────────── */
@media (max-width: 500px) {
  .srp-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .srp-kpis .srp-kpi:last-child {
    grid-column: 1 / -1;
  }

  .srp-fan-svg {
    width: 220px;
    height: 135px;
  }
}

@media (min-width: 700px) {
  .srp-visual-block {
    padding: 1.5rem 2rem 1rem;
  }
}
