/* ================================
   CALCULATORS — FINAL
   ================================ */

.calculators {
  background:
    radial-gradient(ellipse at 25% 85%, rgba(15, 185, 168, 0.08), transparent 45%),
    linear-gradient(140deg, var(--calc-navy) 0%, #0a3a54 45%, var(--calc-teal) 100%);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
  border-radius: 36px 36px 0 0;
  margin-top: -2px;
}

.calculators .section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.calculators .section-label {
  color: var(--calc-accent);
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

.calculators .section-title {
  color: var(--calc-white);
  font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
}

.calculators .section-title .accent {
  color: var(--calc-accent);
}

.calculators-intro {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 0.65rem;
  font-size: 1rem;
  max-width: 680px;
  line-height: 1.75;
  text-align: center;
}

.calculators-disclaimer {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 auto 1.5rem;
  font-size: 0.8rem;
  max-width: 720px;
  line-height: 1.7;
  text-align: center;
}

@keyframes calcFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calc-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  max-width: 860px;
  margin: 0 auto;
}

.calc-title {
  color: var(--calc-navy);
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0 0 0.55rem;
  text-align: center;
}

.calc-desc {
  color: var(--calc-text);
  margin: 0 0 1.6rem;
  line-height: 1.7;
  font-size: 0.98rem;
  text-align: center;
}

.calc-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.25rem;
}

.calc-input-group label {
  color: var(--calc-navy);
  font-size: 0.92rem;
  font-weight: 700;
}
.calc-input-group input,
.calc-input-group select {
  width: 100%;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(8, 34, 61, 0.12);
  background: #fff;
  color: var(--calc-navy);
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.calc-input-group input::placeholder {
  color: #9aa7b3;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
  border-color: rgba(12, 92, 85, 0.45);
  box-shadow: 0 0 0 4px rgba(14, 154, 141, 0.1);
}

.calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  min-height: 56px;
  padding: 0.95rem 1.4rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--calc-navy) 0%, var(--calc-teal) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 14px 32px rgba(8, 34, 61, 0.22);
}

.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(8, 34, 61, 0.26);
}

.calc-btn:active {
  transform: translateY(0);
}

.calc-result {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.8rem;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--calc-soft, #f4f7f9);
  border: 1px solid var(--calc-border, rgba(7, 30, 54, 0.08));
  border-radius: 14px;
  transition: background 0.15s;
}

.result-label {
  color: var(--calc-text);
  font-size: 0.96rem;
  line-height: 1.5;
}

.result-value {
  color: var(--calc-navy);
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
  text-align: left;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.result-row--highlight {
  background: linear-gradient(135deg, rgba(8, 34, 61, 0.08) 0%, rgba(12, 92, 85, 0.14) 100%);
  border-color: rgba(12, 92, 85, 0.28);
  border-inline-start: 5px solid var(--calc-accent);
  padding: 1rem 1.2rem;
}

.result-row--highlight .result-label {
  color: var(--calc-navy);
  font-weight: 700;
  font-size: 1rem;
}

.result-row--highlight .result-value {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--calc-accent);
  letter-spacing: -0.02em;
}

.calc-insight {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(8, 34, 61, 0.04);
  border: 1px solid rgba(8, 34, 61, 0.08);
  color: var(--calc-text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.calc-insight strong {
  color: var(--calc-navy);
}

.calc-lead-box {
  margin-top: 1.5rem;
  padding: 1.6rem 1.75rem;
  background: linear-gradient(135deg, var(--calc-navy) 0%, #0c5c55 100%);
  border: none;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(8, 34, 61, 0.18);
}

.calc-lead-box h4 {
  margin: 0 0 0.55rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.calc-lead-box p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-size: 0.95rem;
}

.calc-lead-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  background: #ffffff;
  color: var(--calc-navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.calc-lead-btn:hover {
  background: var(--calc-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 185, 168, 0.35);
}

.calc-disclaimer {
  margin-top: 1rem;
  color: #667788;
  font-size: 0.85rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .calculators {
    padding: 64px 0 72px;
    border-radius: 24px 24px 0 0;
  }

  .calculators .section-inner {
    padding: 0 16px;
  }

  .calculators-intro,
  .calculators-disclaimer {
    max-width: 100%;
  }

  .calc-card {
    border-radius: 20px;
    padding: 1.2rem;
  }

  .calc-title {
    font-size: 1.4rem;
  }

  .calc-desc {
    font-size: 0.93rem;
    margin-bottom: 1.1rem;
  }

  .calc-inputs {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .calc-input-group {
    gap: 0.45rem;
  }

  .calc-input-group label {
    font-size: 0.9rem;
  }

  .calc-input-group input,
  .calc-input-group select {
    min-height: 52px;
    font-size: 16px; /* prevents iOS auto-zoom */
  }

  .calc-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 1.1rem;
    font-size: 1rem;
  }

  /* Stack result rows vertically on mobile */
  .result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
  }

  .result-value {
    text-align: right;
    white-space: normal;
    word-break: break-word;
  }

  /* Hero result — make the key number feel like a fintech payoff */
  .result-row--highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 1rem 1.1rem 1.1rem;
    background: linear-gradient(135deg, rgba(8, 34, 61, 0.08) 0%, rgba(12, 92, 85, 0.15) 100%);
    border: 1.5px solid rgba(12, 92, 85, 0.28);
    border-radius: 16px;
  }

  .result-row--highlight .result-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--calc-text);
    opacity: 0.75;
  }

  .result-row--highlight .result-value {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--calc-accent);
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  .calc-lead-btn {
    width: 100%;
  }

  .calc-lead-box {
    padding: 1.3rem 1.1rem;
    border-radius: 16px;
    margin-top: 1.2rem;
  }

  .calc-lead-box h4 {
    font-size: 0.95rem;
  }

  .calc-lead-box p {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
  }

  .calc-insight {
    padding: 0.85rem 0.95rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .calculators {
    padding: 52px 0 64px;
    border-radius: 18px 18px 0 0;
  }

  .calc-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .calc-title {
    font-size: 1.3rem;
  }

  .calculators-intro {
    font-size: 0.95rem;
  }

  .calculators-disclaimer {
    font-size: 0.78rem;
  }

  .result-label {
    font-size: 0.88rem;
  }

  .result-value {
    font-size: 1rem;
  }

  /* Hero number on small phones — still large, slightly scaled */
  .result-row--highlight .result-value {
    font-size: 2rem;
  }

  .calc-lead-box {
    padding: 1.1rem 0.9rem;
  }
}

/* =============================================
   CALCULATOR HUB GRID
   ============================================= */

.calc-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.calc-hub-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid var(--calc-accent);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.calc-hub-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(15, 185, 168, 0.18);
  border-top-color: #0dcfbc;
}

.calc-hub-icon {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.calc-hub-name {
  color: #071e36;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.calc-hub-desc {
  color: #4a5a6a;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 1.1rem;
  flex: 1;
}

.calc-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #071e36 0%, #0b6b63 100%);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  transition: opacity 0.2s ease;
  align-self: flex-start;
}

.calc-hub-card:hover .calc-hub-btn {
  background: linear-gradient(135deg, #0b6b63 0%, #0dcfbc 100%);
}

@media (max-width: 1024px) {
  .calc-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* ── Horizontal swipe carousel ─── */
  .calc-hub-grid {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0.875rem;
    padding-bottom: 0.5rem;
    /* Pull grid to full container width, breaking out of section-inner side padding */
    margin-top: 1.75rem;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .calc-hub-grid::-webkit-scrollbar { display: none; }

  .calc-hub-card {
    flex: 0 0 84vw;
    max-width: 360px;
    scroll-snap-align: center;
    padding: 1.35rem 1.2rem;
  }

  /* Peek margins so user sees the edge of adjacent cards */
  .calc-hub-card:first-child { margin-inline-start: 8vw; }
  .calc-hub-card:last-child  { margin-inline-end: 8vw; }

  .calc-hub-icon { font-size: 2rem; }
  .calc-hub-name { font-size: 1rem; }
  .calc-hub-desc { display: block; }
}

@media (max-width: 480px) {
  .calc-hub-grid {
    gap: 0.75rem;
  }

  .calc-hub-card {
    flex: 0 0 88vw;
    max-width: 320px;
    padding: 1.2rem 1.1rem;
  }

  .calc-hub-card:first-child { margin-inline-start: 6vw; }
  .calc-hub-card:last-child  { margin-inline-end: 6vw; }

  .calc-hub-desc {
    display: block;
  }

  .calc-hub-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }
}

/* =============================================
   JOURNEY SYSTEM (progress + snapshot)
   ============================================= */

.journey-system {
  margin-top: 1.75rem;
  margin-bottom: -0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Snapshot card */
.journey-snapshot {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
}

.snapshot-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 0.5rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}
.snapshot-item:last-child { border-inline-start: none; }

.snapshot-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.snapshot-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

/* Progress bar */
.journey-progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.journey-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.journey-progress-fill {
  height: 100%;
  background: var(--brand-accent, #0fb9a8);
  border-radius: 999px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.journey-progress-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Journey reset button ─── */
.journey-reset-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  font-family: var(--font-body, 'Heebo', sans-serif);
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.journey-reset-btn:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Swipe indicator ─── */
.calc-hub-swipe-indicator {
  display: none; /* shown via JS on mobile */
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .journey-snapshot { border-radius: 12px; }
  .snapshot-value { font-size: 1rem; }
}

/* =============================================
   PLANNER PROMO (in calculator hub)
   ============================================= */

.calc-planner-promo {
  margin-top: 2.5rem;
  padding: 2rem 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl, 24px);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.planner-promo-content h3 {
  color: var(--calc-white, #fff);
  font-family: var(--font-heading, 'Frank Ruhl Libre', serif);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.planner-promo-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 600px;
  margin-inline: auto;
}

.calc-planner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full, 999px);
  background: linear-gradient(135deg, #0fb9a8, #0b6b63);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: 0 10px 28px rgba(15, 185, 168, 0.25);
}

.calc-planner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 185, 168, 0.35);
}

@media (max-width: 768px) {
  .calc-planner-promo {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .calc-planner-promo {
    padding: 1.25rem 1rem;
  }
}

/* =============================================
   CHART CONTAINER
   ============================================= */

.calc-chart-wrap {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--calc-soft, #f4f7f9);
  border: 1px solid var(--calc-border, rgba(7, 30, 54, 0.08));
  border-radius: 18px;
  position: relative;
}

.calc-chart-wrap canvas {
  width: 100% !important;
  height: 280px !important;
  max-height: 320px;
}

.calc-chart-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--calc-navy, #071e36);
  margin-bottom: 0.75rem;
  text-align: center;
}

.calc-chart-explain {
  margin-top: 0.6rem;
  font-size: 0.84rem;
  color: var(--calc-text, #4a5a6a);
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 768px) {
  .calc-chart-wrap {
    padding: 1rem;
    margin-top: 1.25rem;
  }
  .calc-chart-wrap canvas {
    height: 220px !important;
  }
}

@media (max-width: 480px) {
  .calc-chart-wrap canvas {
    height: 200px !important;
  }
}

/* =============================================
   DYNAMIC REPEATABLE FIELDS
   ============================================= */

.dynamic-section {
  margin-top: 1rem;
}

.dynamic-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--calc-border, rgba(7, 30, 54, 0.08));
}

.dynamic-section-title h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--calc-navy, #071e36);
  margin: 0;
}

.dynamic-section-total {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--calc-teal, #0b6b63);
}

.dynamic-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dynamic-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  background: var(--white, #fff);
  border: 1px solid var(--calc-border, rgba(7, 30, 54, 0.08));
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dynamic-row:focus-within {
  border-color: rgba(12, 92, 85, 0.35);
  box-shadow: 0 0 0 3px rgba(14, 154, 141, 0.08);
}

.dynamic-row-label {
  flex: 1;
  min-width: 0;
}

.dynamic-row-label input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--calc-navy, #071e36);
  font-family: var(--font-body, 'Heebo', sans-serif);
  outline: none;
  padding: 0.2rem 0;
}

.dynamic-row-label input::placeholder {
  color: #9aa7b3;
  font-weight: 400;
}

.dynamic-row-amount {
  width: 140px;
  flex-shrink: 0;
}

.dynamic-row-amount input {
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(8, 34, 61, 0.1);
  background: var(--calc-soft, #f4f7f9);
  color: var(--calc-navy, #071e36);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body, 'Heebo', sans-serif);
  text-align: left;
  direction: ltr;
  outline: none;
  transition: border-color 0.2s;
}

.dynamic-row-amount input:focus {
  border-color: rgba(12, 92, 85, 0.45);
}

.dynamic-row-remove {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b0bec5;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  font-family: var(--font-body, 'Heebo', sans-serif);
}

.dynamic-row-remove:hover {
  background: #fdecea;
  border-color: #e74c3c;
  color: #e74c3c;
}

.dynamic-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px dashed rgba(12, 92, 85, 0.25);
  background: rgba(14, 154, 141, 0.04);
  color: var(--calc-teal, #0b6b63);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body, 'Heebo', sans-serif);
  transition: all 0.2s;
}

.dynamic-add-btn:hover {
  background: rgba(14, 154, 141, 0.1);
  border-color: rgba(12, 92, 85, 0.4);
}

.dynamic-add-btn .add-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--calc-teal, #0b6b63);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

/* Section divider for dynamic sections */
.calc-section-divider {
  border: none;
  border-top: 1px solid rgba(7, 30, 54, 0.08);
  margin: 1.25rem 0;
}

@media (max-width: 480px) {
  .dynamic-row {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .dynamic-row-label {
    flex: 1 1 100%;
    order: 1;
  }
  .dynamic-row-amount {
    flex: 1;
    width: auto;
    order: 2;
  }
  .dynamic-row-remove {
    order: 3;
  }
}

/* =============================================
   ACCESSIBILITY: FOCUS STATES
   ============================================= */

.calc-input-group input:focus-visible,
.calc-input-group select:focus-visible,
.calc-btn:focus-visible,
.calc-lead-btn:focus-visible,
.dynamic-add-btn:focus-visible {
  outline: 3px solid rgba(15, 185, 168, 0.5);
  outline-offset: 2px;
}

/* =============================================
   INPUT HELPER TEXT
   ============================================= */

.input-helper,
.input-hint {
  font-size: 0.8rem;
  color: #7b8fa3;
  margin-top: 0.25rem;
  line-height: 1.5;
  display: block;
  font-weight: 400;
}

/* ── Validation States ─────────────────────── */

.input-invalid {
  border-color: #d94a4a !important;
  box-shadow: 0 0 0 2px rgba(217, 74, 74, 0.15);
}

.input-error {
  display: block;
  font-size: 0.78rem;
  color: #d94a4a;
  margin-top: 0.2rem;
  font-weight: 600;
  line-height: 1.4;
}