/* ── Pope Firm Calculator – scoped styles ─────────────────── */
.pope-calc-wrap {
  --green:       #3d8a3e;
  --green-dark:  #2c6b2d;
  --green-mid:   #4a9e4b;
  --green-light: #eaf4ea;
  --green-pale:  #f3faf3;
  --black:       #111111;
  --charcoal:    #2a2a2a;
  --slate:       #4a4a4a;
  --muted:       #737373;
  --rule:        #d8d8d8;
  --bg:          #f8f8f6;
  --white:       #ffffff;
  --red:         #c0392b;
  --amber:       #c07a1a;
  --r:           10px;
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--bg);
}

.pope-calc-wrap *, .pope-calc-wrap *::before, .pope-calc-wrap *::after {
  box-sizing: border-box;
}

/* ── PROGRESS ─────────────────────────────────────────────── */
.pope-calc-wrap .progress-wrap {
  background: var(--charcoal);
  border-bottom: 1px solid rgba(61,138,62,0.25);
}
.pope-calc-wrap .progress-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}
.pope-calc-wrap .step-tab {
  flex: 1;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
}
.pope-calc-wrap .step-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background .3s;
}
.pope-calc-wrap .step-tab.active::after { background: var(--green); }
.pope-calc-wrap .step-tab.done::after   { background: var(--green-dark); }

.pope-calc-wrap .step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.pope-calc-wrap .step-tab.pending .step-num { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.3); }
.pope-calc-wrap .step-tab.active  .step-num { background: var(--green); color: #fff; }
.pope-calc-wrap .step-tab.done    .step-num { background: var(--green-dark); color: #fff; }

.pope-calc-wrap .step-label {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pope-calc-wrap .step-tab.pending .step-label { color: rgba(255,255,255,0.28); }
.pope-calc-wrap .step-tab.active  .step-label { color: var(--green-mid); }
.pope-calc-wrap .step-tab.done    .step-label { color: rgba(255,255,255,0.55); }

/* ── MAIN ─────────────────────────────────────────────────── */
.pope-calc-wrap .pope-calc-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 28px 80px;
}

/* ── CARD ─────────────────────────────────────────────────── */
.pope-calc-wrap .card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid #e2e2e2;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
  padding: 36px 40px;
  animation: popecalc-fadeUp .35s ease both;
}
@media (max-width: 600px) { .pope-calc-wrap .card { padding: 24px 18px; } }
@keyframes popecalc-fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pope-calc-wrap .section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--green-light);
}
.pope-calc-wrap .section-head .icon-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 2px solid var(--green);
}
.pope-calc-wrap .section-head h2 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: .02em;
  margin: 0;
}
.pope-calc-wrap .section-head p {
  font-family: 'Lora', serif;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
  margin-bottom: 0;
}

.pope-calc-wrap .divider {
  height: 1px;
  background: #ececec;
  margin: 22px 0;
}

/* ── FORM ─────────────────────────────────────────────────── */
.pope-calc-wrap .form-grid { display: grid; gap: 18px; }
.pope-calc-wrap .form-grid.cols2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .pope-calc-wrap .form-grid.cols2 { grid-template-columns: 1fr; } }

.pope-calc-wrap .field { display: flex; flex-direction: column; gap: 5px; }
.pope-calc-wrap .field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}
.pope-calc-wrap .field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
}

.pope-calc-wrap input[type="number"],
.pope-calc-wrap select {
  height: 46px;
  border: 1.5px solid #d4d4d4;
  border-radius: 7px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  background: #fdfdfd;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
  margin: 0;
}
.pope-calc-wrap input[type="number"]:focus,
.pope-calc-wrap select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61,138,62,0.12);
}

.pope-calc-wrap .input-wrap { position: relative; display: flex; align-items: center; }
.pope-calc-wrap .input-wrap .prefix {
  position: absolute; left: 13px;
  color: var(--muted); font-size: 15px;
  pointer-events: none;
}
.pope-calc-wrap .input-wrap input { padding-left: 26px; }

.pope-calc-wrap .select-wrap { position: relative; }
.pope-calc-wrap .select-wrap::after {
  content: '▾';
  position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); font-size: 12px;
  pointer-events: none;
}
.pope-calc-wrap .select-wrap select { padding-right: 30px; }

/* ── DEBT ROWS ────────────────────────────────────────────── */
.pope-calc-wrap .debt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  gap: 12px;
  background: #fefefe;
  transition: border-color .2s, background .2s;
}
.pope-calc-wrap .debt-row:focus-within { border-color: var(--green); background: var(--green-pale); }
.pope-calc-wrap .debt-row-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500;
  color: var(--charcoal); flex: 1;
}
.pope-calc-wrap .debt-row-label .ico { font-size: 18px; width: 28px; text-align: center; }
.pope-calc-wrap .debt-row-label small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.pope-calc-wrap .debt-row input { width: 130px; height: 38px; font-size: 14px; flex-shrink: 0; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.pope-calc-wrap .btn-row {
  display: flex; gap: 12px;
  margin-top: 28px;
  justify-content: space-between;
  align-items: center;
}
.pope-calc-wrap .btn {
  height: 48px; padding: 0 26px;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: all .2s;
  margin: 0;
}
.pope-calc-wrap .btn-primary {
  background: var(--green);
  color: var(--white);
  flex: 1; max-width: 260px;
  margin-left: auto;
}
.pope-calc-wrap .btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(44,107,45,.3);
}
.pope-calc-wrap .btn-back {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid #d4d4d4;
}
.pope-calc-wrap .btn-back:hover { border-color: var(--black); color: var(--black); }

/* ── RESULT HERO ──────────────────────────────────────────── */
.pope-calc-wrap .result-hero {
  border-radius: 9px;
  padding: 30px 28px 24px;
  margin-bottom: 24px;
  display: flex; gap: 20px; align-items: flex-start;
  position: relative; overflow: hidden;
}
.pope-calc-wrap .result-hero.ch7  { background: var(--green); }
.pope-calc-wrap .result-hero.ch13 { background: var(--charcoal); }
.pope-calc-wrap .result-hero.both { background: var(--black); }
.pope-calc-wrap .result-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: rgba(255,255,255,0.3);
}
.pope-calc-wrap .result-hero .hero-icon { font-size: 42px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.pope-calc-wrap .result-hero h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  margin-bottom: 8px;
}
.pope-calc-wrap .result-hero p {
  font-family: 'Lora', serif;
  font-size: 14px; color: rgba(255,255,255,0.8);
  line-height: 1.6; font-style: italic;
  margin: 0;
}

/* ── STAT CARDS ───────────────────────────────────────────── */
.pope-calc-wrap .stat-grid { display: grid; gap: 12px; margin-bottom: 20px; }
.pope-calc-wrap .stat-grid.cols2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .pope-calc-wrap .stat-grid.cols2 { grid-template-columns: 1fr; } }

.pope-calc-wrap .stat-box {
  border-radius: 8px; padding: 15px 16px;
  border: 1.5px solid;
}
.pope-calc-wrap .stat-box.green { background: var(--green-pale); border-color: #b5d9b6; }
.pope-calc-wrap .stat-box.grey  { background: #f7f7f7; border-color: #ddd; }
.pope-calc-wrap .stat-box.amber { background: #fff9f0; border-color: #f0d09a; }
.pope-calc-wrap .stat-box.red   { background: #fff2f2; border-color: #f0b8b8; }

.pope-calc-wrap .stat-box .slabel {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 4px;
}
.pope-calc-wrap .stat-box.green .slabel { color: var(--green-dark); }
.pope-calc-wrap .stat-box.grey  .slabel { color: var(--slate); }
.pope-calc-wrap .stat-box.amber .slabel { color: var(--amber); }
.pope-calc-wrap .stat-box.red   .slabel { color: var(--red); }

.pope-calc-wrap .stat-box .sval {
  font-size: 21px; font-weight: 700;
  color: var(--black); line-height: 1;
  margin-bottom: 3px;
}
.pope-calc-wrap .stat-box .ssub { font-size: 11.5px; color: var(--muted); }

.pope-calc-wrap .meter { margin-top: 7px; }
.pope-calc-wrap .meter-bar { height: 5px; background: #e0e0e0; border-radius: 99px; overflow: hidden; }
.pope-calc-wrap .meter-fill { height: 100%; border-radius: 99px; transition: width .7s ease; }
.pope-calc-wrap .meter-fill.green { background: var(--green); }
.pope-calc-wrap .meter-fill.amber { background: var(--amber); }
.pope-calc-wrap .meter-fill.red   { background: var(--red); }
.pope-calc-wrap .meter-labs {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--muted); margin-top: 3px;
}

/* ── OPTION CARDS ─────────────────────────────────────────── */
.pope-calc-wrap .options-title {
  font-family: 'Cinzel', serif;
  font-size: 16px; font-weight: 700;
  color: var(--black);
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
  display: flex; align-items: center; gap: 8px;
}
.pope-calc-wrap .options-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 18px;
  background: var(--green);
  border-radius: 2px;
}
.pope-calc-wrap .option-cards { display: grid; gap: 12px; margin-bottom: 24px; }
.pope-calc-wrap .opt-card {
  border-radius: 9px;
  border: 2px solid;
  padding: 18px 20px;
  position: relative;
}
.pope-calc-wrap .opt-card.top { border-color: var(--green); background: var(--green-pale); }
.pope-calc-wrap .opt-card.alt { border-color: #e2e2e2; background: #fafafa; }
.pope-calc-wrap .opt-badge {
  position: absolute; top: -11px; left: 16px;
  background: var(--green); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 11px; border-radius: 99px;
}
.pope-calc-wrap .opt-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 16px; font-weight: 700;
  color: var(--black); margin-bottom: 6px; margin-top: 0;
}
.pope-calc-wrap .opt-card p {
  font-family: 'Lora', serif;
  font-size: 13px; color: var(--slate);
  line-height: 1.6; font-style: italic;
  margin: 0;
}
.pope-calc-wrap .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.pope-calc-wrap .tag {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
  border: 1px solid;
}
.pope-calc-wrap .opt-card.top .tag { background: rgba(61,138,62,0.12); color: var(--green-dark); border-color: rgba(61,138,62,0.25); }
.pope-calc-wrap .opt-card.alt .tag { background: #f0f0f0; color: var(--slate); border-color: #d8d8d8; }

/* ── CTA ──────────────────────────────────────────────────── */
.pope-calc-wrap .cta-block {
  background: var(--black);
  border-radius: 10px;
  padding: 28px 30px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border-left: 5px solid var(--green);
  margin-top: 24px;
}
.pope-calc-wrap .cta-block h3 {
  font-family: 'Cinzel', serif;
  font-size: 18px; font-weight: 700;
  color: #fff; margin-bottom: 4px; margin-top: 0;
  letter-spacing: .02em;
}
.pope-calc-wrap .cta-block p { font-size: 13px; color: rgba(255,255,255,0.6); font-style: italic; margin: 0; }
.pope-calc-wrap .cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.pope-calc-wrap .btn-green {
  height: 44px; padding: 0 22px;
  background: var(--green); color: #fff;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.pope-calc-wrap .btn-green:hover { background: var(--green-mid); transform: translateY(-1px); }

.pope-calc-wrap .btn-outline {
  height: 44px; padding: 0 22px;
  background: transparent; color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
  text-decoration: none;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.pope-calc-wrap .btn-outline:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* ── DISCLAIMER ───────────────────────────────────────────── */
.pope-calc-wrap .disclaimer {
  margin-top: 20px;
  padding: 13px 16px;
  background: #f5f5f5;
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  font-size: 11.5px; color: var(--muted);
  line-height: 1.65;
}

/* ── UTIL ─────────────────────────────────────────────────── */
.pope-calc-wrap .step-section { display: none; }
.pope-calc-wrap .step-section.active { display: block; }
