.ppc-section {
  font-family: 'Poppins', sans-serif;
  max-width: 880px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: #2b2b2b;
}

.ppc-section h1 {
  font-size: 1.625rem;
  font-weight: 700;
  color: #1c1c1c;
  margin-top: 0;
}
.ppc-section h1 span.purple { color: #5c1d91; }

.ppc-lede {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* --- form blocks --- */
.pension-block {
  border: 1px solid #e4e4ec;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: #fafbff;
}
.pension-block.pension-state { background: #fdf6ff; border-color: #ead6f5; }

.pension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pension-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #5c1d91;
  font-weight: 600;
}

.ppc-remove {
  background: transparent !important;
  color: #999 !important;
  border: 1px solid #ddd !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer;
  box-shadow: none !important;
}
.ppc-remove:hover { color: #c0392b !important; border-color: #c0392b !important; }

.ppc-section label {
  display: block;
  margin-top: 14px;
  font-weight: 600;
  color: #1c1c1c;
  font-size: 0.92rem;
}
.ppc-section input[type="text"],
.ppc-section input[type="number"],
.ppc-section select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d6d6e0;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  box-sizing: border-box;
}
.ppc-section input:focus,
.ppc-section select:focus {
  outline: none;
  border-color: #5c1d91;
  box-shadow: 0 0 0 3px rgba(92,29,145,0.12);
}

.ppc-hint {
  font-weight: 400;
  color: #666;
  font-size: 0.8rem;
  display: inline-block;
  margin-left: 4px;
}
.ppc-hint a { color: #5c1d91; }

.ppc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .ppc-row { grid-template-columns: 1fr; gap: 0; }
}

.ppc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 400;
  font-size: 0.9rem;
  color: #333;
}
.ppc-check input { width: auto !important; margin: 0 !important; }

/* --- buttons --- */
.ppc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ppc-section .ppc-btn-primary,
.ppc-section .ppc-btn-secondary {
  flex: 1 1 200px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.ppc-section .ppc-btn-primary {
  background: #ff5722;
  color: #fff;
}
.ppc-section .ppc-btn-primary:hover { background: #e64a19; }
.ppc-section .ppc-btn-secondary {
  background: #fff;
  color: #5c1d91;
  border: 1px solid #d3c0e4;
}
.ppc-section .ppc-btn-secondary:hover { background: #f4edfa; }

/* --- tabs & results --- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 30px;
  border-bottom: 1px solid #e4e4ec;
  padding-bottom: 8px;
}
.tabs button {
  background: #f2ecf9 !important;
  color: #5c1d91 !important;
  border: none !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  cursor: pointer;
  box-shadow: none !important;
  width: auto !important;
}
.tabs button.active {
  background: #5c1d91 !important;
  color: #fff !important;
}

.tab-content {
  display: none;
  padding: 18px 0;
}
.tab-content.active { display: block; }

.summary {
  background: #fafbff;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.summary strong { color: #5c1d91; }
.summary ul { margin: 6px 0 6px 20px; padding: 0; }
.summary ul li { margin: 3px 0; }
.summary p { margin: 6px 0; }

#totalSummary {
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #faf4ff 0%, #fff1e6 100%);
  border-radius: 10px;
  border: 1px solid #e4d6f0;
}
#totalSummary h3 {
  margin: 0 0 10px 0;
  color: #5c1d91;
  font-size: 1.1rem;
}

#ppc-result-output {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 20px;
  color: #5c1d91;
}

/* --- methodology expander --- */
.ppc-method {
  margin-top: 28px;
  border-top: 1px solid #eee;
  padding-top: 14px;
  font-size: 0.9rem;
}
.ppc-method summary {
  cursor: pointer;
  font-weight: 600;
  color: #5c1d91;
  padding: 6px 0;
}
.ppc-method-body { padding: 10px 0; color: #444; line-height: 1.6; }
.ppc-method-body p { margin: 0 0 10px 0; }
.ppc-method-body a { color: #5c1d91; }
.ppc-caveat {
  background: #fff4e6;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* --- mobile --- */
@media (max-width: 768px) {
  .ppc-section { padding: 20px; margin: 20px auto; }
  .ppc-section .ppc-btn-primary,
  .ppc-section .ppc-btn-secondary { flex: 1 1 100%; }
}

/* ---- Pensions Advice UK look: site fonts and colours, no extra font download ---- */
.ppc-section { font-family: var(--font-sans, "Nunito Sans", "Segoe UI", system-ui, sans-serif); color: var(--ink, #112B62); max-width: none; margin: 24px 0; padding: 24px; border: 1px solid var(--line-strong, #7D859E); border-radius: var(--radius-md, 16px); box-shadow: none; }
.ppc-section .ppc-title { margin: 0 0 12px; font-family: var(--font-display, Georgia, serif); font-size: 28px; line-height: 1.2; font-weight: 600; color: var(--ink, #112B62); }
.ppc-section .ppc-title .purple, .pension-head h3, .summary strong, #totalSummary h3, .ppc-method summary, #ppc-result-output { color: var(--violet-strong, #5B35B8); }
.ppc-lede, .ppc-method-body { color: var(--ink-muted, #48557A); font-size: 16px; }
.ppc-section a, .ppc-hint a, .ppc-method-body a { color: var(--violet, #714ACE); }
.ppc-section label { color: var(--ink, #112B62); font-size: 16px; }
.ppc-hint { color: var(--ink-muted, #48557A); font-size: 14px; }
.ppc-section input[type="text"], .ppc-section input[type="number"], .ppc-section select { min-height: 48px; font-size: 16px; border: 1px solid var(--line-strong, #7D859E); border-radius: 10px; color: var(--ink, #112B62); font-family: inherit; }
.ppc-section input:focus, .ppc-section select:focus { border-color: var(--violet, #714ACE); box-shadow: 0 0 0 3px rgba(113,74,206,.2); }
.ppc-check input { width: 20px !important; height: 20px; flex: none; }
.pension-block { background: var(--ground, #FBFAF7); border-color: var(--line, #E2DDD2); border-radius: 12px; }
.ppc-remove { width: 40px !important; height: 40px !important; color: var(--ink-muted, #48557A) !important; border-color: var(--line-strong, #7D859E) !important; }
.ppc-section .ppc-btn-primary, .ppc-section .ppc-btn-secondary { min-height: 52px; border-radius: 999px; font-family: inherit; font-size: 17px; font-weight: 700; box-shadow: none; }
.ppc-section .ppc-btn-primary { background: var(--violet, #714ACE); color: #fff; }
.ppc-section .ppc-btn-primary:hover { background: var(--violet-strong, #5B35B8); }
.ppc-section .ppc-btn-secondary { color: var(--violet-strong, #5B35B8); border: 1.5px solid var(--violet, #714ACE); }
.ppc-section .ppc-btn-secondary:hover { background: var(--violet-soft, #E6DFFA); }
.tabs button { background: var(--violet-soft, #E6DFFA) !important; color: var(--violet-strong, #5B35B8) !important; min-height: 44px; font-family: inherit !important; }
.tabs button.active { background: var(--violet, #714ACE) !important; color: #fff !important; }
.tabs:empty { display: none; }
.summary { background: var(--ground, #FBFAF7); }
.summary:empty, #totalSummary:empty { display: none; }
#totalSummary { background: var(--surface-tint, #EEEFFF); border-color: var(--lilac, #D2D7FF); }
.ppc-caveat { background: var(--warning-soft, #FDF1DC); color: var(--ink, #112B62); font-size: 15px; }
.ppc-section canvas { max-width: 100%; }
@media (max-width: 768px) { .ppc-section { padding: 16px; margin: 16px 0; } .pension-block { padding: 14px; } }
