@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.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%; }
}
