/* ==========================================================================
   Market Your Daycare — Child Care Subsidy (CCS) Calculator Stylesheet
   Production-ready, modular, responsive, high-fidelity design system.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Palette */
  --brand-red: #e31b23;
  --brand-red-dark: #b8141a;
  --brand-red-light: #fff1f2;
  --brand-red-border: #fecdd3;
  --brand-red-glow: rgba(227, 27, 35, 0.2);

  /* Brand Yellow Palette (Replacing Green) */
  --yellow-dark: #b45309;
  --yellow-primary: #ffc700;
  --yellow-mid: #f59e0b;
  --yellow-light: #fffbeb;
  --yellow-border: #fde68a;
  --yellow-glow: rgba(245, 158, 11, 0.2);

  /* Subsidy Yellow & Gold Accents */
  --green-dark: #78350f;
  --green-primary: #f59e0b;
  --green-mid: #d97706;
  --green-light: #fffbeb;
  --green-border: #fde68a;
  --green-glow: rgba(245, 158, 11, 0.18);

  /* Amber / Gold Accents */
  --amber-primary: #f59e0b;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;

  /* Neutrals & Surfaces */
  --ink-900: #0b0c0e;
  --ink-800: #172033;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;
  --surface-white: #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 48px -8px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Base & Typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-family);
  background-color: #f8fafc;
  color: var(--ink-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.calc-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   3. Breadcrumb Trail
   -------------------------------------------------------------------------- */
.calc-breadcrumbs {
  padding: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-500);
}

.calc-breadcrumbs a {
  color: var(--ink-600);
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.calc-breadcrumbs a:hover {
  color: var(--brand-red);
}

.calc-breadcrumbs span.sep {
  color: var(--ink-300);
  font-size: 12px;
}

.calc-breadcrumbs span.current {
  color: var(--ink-800);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Hero Header Section
   -------------------------------------------------------------------------- */
.calc-hero {
  position: relative;
  padding: 32px 0 44px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--ink-200);
  overflow: hidden;
}

.calc-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(227, 27, 35, 0.08) 0%, rgba(245, 158, 11, 0.06) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.calc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.calc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-red-light);
  border: 1px solid var(--brand-red-border);
  color: var(--brand-red-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease-spring);
}

.calc-badge-interactive {
  cursor: pointer;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
  box-shadow: 0 2px 8px rgba(227, 27, 35, 0.12);
  text-decoration: none;
}

.calc-badge-interactive:hover {
  background: #fee2e2;
  border-color: #f87171;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(227, 27, 35, 0.22);
}

.calc-badge-interactive .trust-shield-icon {
  color: #E31B23;
  animation: pulseShield 2s infinite ease-in-out;
}

@keyframes pulseShield {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.trust-pill-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E31B23;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.calc-badge-interactive:hover .trust-pill-action {
  background: #b91c1c;
}

.calc-badge-pill svg {
  width: 16px;
  height: 16px;
  color: var(--brand-red);
}

/* Card Top Trust Bar */
.calc-card-trust-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--ink-200);
  padding: 9px 18px;
}

.btn-card-trust-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  white-space: nowrap;
  flex-wrap: nowrap;
  gap: 12px;
}

.btn-card-trust-info:hover {
  background: #f1f5f9;
}

.trust-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #bbf7d0;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.trust-pill-tag svg {
  flex-shrink: 0;
}

.trust-bar-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-600);
  white-space: nowrap;
  flex: 1;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trust-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 750;
  color: var(--brand-red);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  transition: color 0.2s;
}

.btn-card-trust-info:hover .trust-bar-link {
  color: var(--brand-red-dark);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .trust-bar-text {
    display: none;
  }
}

.calc-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.calc-title-highlight {
  background: linear-gradient(135deg, var(--brand-red) 0%, #c4131a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calc-subtitle {
  font-size: 1.125rem;
  color: var(--ink-600);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 24px;
}

.calc-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 12px;
}

.calc-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
}

.calc-trust-item svg {
  width: 18px;
  height: 18px;
  color: #d97706;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Calculator Main Layout & App Container
   -------------------------------------------------------------------------- */
.calc-main-section {
  padding: 44px 0 70px;
}

.calc-container-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1080px) {
  .calc-container-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   6. Left Column: Multi-Step Interactive Form
   -------------------------------------------------------------------------- */
.calc-card {
  background: var(--surface-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

/* Progress Step Bar */
.calc-steps-nav {
  display: flex;
  border-bottom: 1px solid var(--ink-200);
  background: var(--ink-50);
}

.calc-step-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  transition: all 0.2s;
  position: relative;
  text-align: left;
}

.calc-step-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.2s;
}

.calc-step-btn.is-active {
  background: var(--surface-white);
  color: var(--brand-red);
}

.calc-step-btn.is-active::after {
  background: var(--brand-red);
}

.calc-step-btn.is-completed {
  color: #b45309;
}

.calc-step-btn.is-completed::after {
  background: #ffc700;
}

.calc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--ink-200);
  color: var(--ink-600);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}

.calc-step-btn.is-active .calc-step-num {
  background: var(--brand-red);
  color: #fff;
}

.calc-step-btn.is-completed .calc-step-num {
  background: #ffc700;
  color: #0b0c0e;
}

@media (max-width: 640px) {
  .calc-step-label {
    display: none;
  }
  .calc-step-btn {
    padding: 12px;
  }
}

/* Card Body & Step Panes */
.calc-card-body {
  padding: 32px;
}

@media (max-width: 640px) {
  .calc-card-body {
    padding: 20px;
  }
}

.calc-step-pane {
  display: none;
}

.calc-step-pane.is-active {
  display: block;
  animation: fadeInStep 0.35s var(--ease-spring);
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-pane-header {
  margin-bottom: 24px;
}

.step-pane-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-pane-desc {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Step 1: Income Input Styles
   -------------------------------------------------------------------------- */
.income-input-box {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
}

.income-input-box:focus-within {
  border-color: var(--brand-red);
  background: #ffffff;
}

.income-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.income-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.income-rate-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-full);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
}

.income-number-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.income-currency-prefix {
  position: absolute;
  left: 20px;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-400);
  pointer-events: none;
}

.income-text-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-family: inherit;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-900);
  background: var(--surface-white);
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s;
}

.income-text-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px var(--brand-red-glow);
}

/* Range Slider */
.income-slider-wrap {
  position: relative;
  margin-bottom: 12px;
}

.income-range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--brand-red) 0%, var(--brand-red) 30%, var(--ink-200) 30%, var(--ink-200) 100%);
  outline: none;
  cursor: pointer;
  transition: background 0.1s;
}

.income-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-red);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(227, 27, 35, 0.4);
  cursor: pointer;
  transition: transform 0.15s;
}

.income-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.income-range-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-red);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(227, 27, 35, 0.4);
  cursor: pointer;
  transition: transform 0.15s;
}

.income-slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}

/* Preset Quick Pills */
.income-presets-group {
  margin-bottom: 24px;
}

.presets-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.presets-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-pill-btn {
  padding: 8px 14px;
  background: var(--surface-white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-pill-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-red-light);
}

.preset-pill-btn.is-selected {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 2px 6px var(--brand-red-glow);
}

/* Income Brackets Guide Banner */
.income-guide-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.5;
}

.income-guide-icon {
  width: 20px;
  height: 20px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   8. Step 2: Children & Sessions Cards
   -------------------------------------------------------------------------- */
.children-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.child-card {
  background: var(--surface-white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all 0.2s;
}

.child-card:hover {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-sm);
}

.child-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-100);
}

.child-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.child-avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--brand-red-light);
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.child-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
}

.child-higher-rate-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.child-higher-rate-badge svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.btn-remove-child {
  background: transparent;
  border: none;
  color: var(--ink-400);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-remove-child:hover {
  color: var(--brand-red);
  background: var(--brand-red-light);
}

.child-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.child-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.child-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.child-select,
.child-input {
  padding: 10px 14px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink-800);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.child-select:focus,
.child-input:focus {
  border-color: var(--brand-red);
}

/* Days in care selector pills */
.days-pills-row {
  display: flex;
  gap: 6px;
}

.day-pill-btn {
  flex: 1;
  padding: 9px 4px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-600);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.day-pill-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.day-pill-btn.is-active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

/* Session Format Cards */
.session-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.session-type-card {
  padding: 10px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: var(--ink-50);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.session-type-card:hover {
  border-color: var(--brand-red);
  background: #fff;
}

.session-type-card.is-active {
  border-color: var(--brand-red);
  background: var(--brand-red-light);
}

.session-type-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-800);
}

.session-type-card.is-active .session-type-title {
  color: var(--brand-red-dark);
}

.session-type-fee {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-600);
  margin-top: 2px;
}

.session-type-card.is-active .session-type-fee {
  color: var(--brand-red);
}

.child-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px dashed var(--ink-200);
  font-size: 13px;
  color: var(--ink-600);
}

.cap-badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #15803d;
  font-weight: 600;
  font-size: 12.5px;
}

.cap-badge-ok svg {
  color: #16a34a;
  flex-shrink: 0;
}

.cap-badge-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b45309;
  font-weight: 600;
  font-size: 12.5px;
}

.cap-badge-warn svg {
  color: #d97706;
  flex-shrink: 0;
}

.btn-add-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--ink-50);
  border: 2px dashed var(--ink-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-child:hover {
  background: var(--brand-red-light);
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* --------------------------------------------------------------------------
   9. Step 3: Activity Level & Policy Switches
   -------------------------------------------------------------------------- */
.activity-toggle-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.activity-entitlement-badge-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
}

.activity-entitlement-badge-box.is-high-activity {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.entitlement-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.activity-entitlement-badge-box.is-high-activity .entitlement-icon {
  background: #dbeafe;
  color: #2563eb;
}

.entitlement-hours-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #14532d;
  line-height: 1.25;
  margin-bottom: 3px;
  transition: color 0.25s ease;
}

.activity-entitlement-badge-box.is-high-activity .entitlement-hours-title {
  color: #1e40af;
}

.entitlement-hours-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

.activity-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: var(--surface-white);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.activity-switch-card:hover {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-sm);
}

.activity-switch-card.is-checked {
  border-color: var(--brand-red);
  background: #fffafa;
}

.switch-card-info {
  flex: 1;
}

.switch-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 4px;
}

.switch-card-desc {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.45;
}

/* Modern iOS Style Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 34px;
  transition: 0.25s ease;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s var(--ease-spring);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-checkbox:checked + .switch-slider {
  background-color: var(--brand-red);
}

.switch-checkbox:focus + .switch-slider {
  box-shadow: 0 0 0 3px var(--brand-red-glow);
}

.switch-checkbox:checked + .switch-slider:before {
  transform: translateX(24px);
}



/* Step Navigation Button Bar */
.calc-nav-buttons-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
}

.btn-calc-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-calc-prev {
  background: var(--surface-white);
  border: 1.5px solid var(--ink-200);
  color: var(--ink-700);
}

.btn-calc-prev:hover {
  background: var(--ink-100);
  border-color: var(--ink-300);
}

.btn-calc-next {
  background: var(--brand-red);
  border: 1.5px solid var(--brand-red);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-red-glow);
}

.btn-calc-next:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   10. Right Column: Live Results Summary Card
   -------------------------------------------------------------------------- */
.calc-summary-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--ink-200);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.07), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  padding: 24px 22px;
  position: sticky;
  top: 96px;
}

.summary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-100);
}

.summary-header-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  margin: 0;
}

.summary-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.summary-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Frequency Toggle Bar */
.freq-toggle-wrap {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 20px;
  gap: 2px;
}

.freq-btn {
  flex: 1;
  padding: 8px 4px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.freq-btn.is-active {
  background: #ffffff;
  color: var(--brand-red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Primary Gap Fee Highlight Card (Logo Yellow Theme) */
.gap-fee-highlight-card {
  background: linear-gradient(135deg, #ffc700 0%, #f59e0b 60%, #eab308 100%);
  border-radius: 18px;
  padding: 22px 20px;
  color: #0b0c0e;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px -4px rgba(245, 158, 11, 0.35);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.22);
}

.gap-fee-highlight-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gap-fee-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #78350f;
  margin-bottom: 6px;
}

.gap-fee-amount-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 14px;
}

.gap-fee-currency {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.gap-fee-value {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0f172a;
}

.gap-fee-period {
  font-size: 15px;
  font-weight: 700;
  color: #451a03;
  opacity: 0.9;
  margin-left: 4px;
}

.subsidy-pct-badge,
.gap-fee-subsidy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 750;
  color: #172033;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  max-width: 100%;
}

/* Detailed Calculation Breakdown Rows */
.breakdown-table-box,
.summary-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  line-height: 1.4;
}

.breakdown-label {
  color: #64748b;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breakdown-val {
  font-weight: 700;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.breakdown-val.highlight-green,
.breakdown-val.val-green {
  color: #16a34a;
  font-weight: 700;
}

.breakdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
  border: none;
}

.breakdown-row--total {
  padding-top: 2px;
}

.breakdown-row--total .breakdown-label {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.breakdown-row--total .breakdown-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--brand-red);
  letter-spacing: -0.01em;
}

/* Child Breakdown Mini Accordion */
.child-breakdown-accordion {
  background: var(--ink-50);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--ink-200);
}

.child-breakdown-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.child-breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--ink-700);
}

/* Action Buttons Grid in Summary Card */
.summary-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-summary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  text-align: center;
}

.btn-action-primary {
  background: var(--brand-red);
  border: 1.5px solid var(--brand-red);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--brand-red-glow);
}

.btn-action-primary:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px var(--brand-red-glow);
}

.btn-action-secondary {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
}

.btn-action-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.summary-disclaimer-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
}

.summary-disclaimer-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.summary-disclaimer-date svg {
  color: #64748b;
  flex-shrink: 0;
}

.summary-disclaimer-box small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   11. Educational Guide Section: How CCS Works
   -------------------------------------------------------------------------- */
.calc-guide-section {
  padding: 70px 0;
  background: #ffffff;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.section-heading-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.section-main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-main-desc {
  font-size: 1.05rem;
  color: var(--ink-600);
  line-height: 1.6;
}

.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.guide-card {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s;
}

.guide-card:hover {
  background: #ffffff;
  border-color: var(--brand-red-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.guide-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-red-light);
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.guide-card-icon svg {
  width: 26px;
  height: 26px;
}

.guide-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 12px;
}

.guide-card-text {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. FAQ Section
   -------------------------------------------------------------------------- */
.faq {
  padding: 80px 0;
  background: #F8FAFC;
}

@media (min-width: 1024px) {
  .faq {
    padding: 96px 0;
  }
}

.faq .section-heading {
  margin-bottom: 0;
}



/* --------------------------------------------------------------------------
   14. Lead Capture / Share Modal
   -------------------------------------------------------------------------- */
.calc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 14, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-smooth);
}

.calc-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.calc-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 36px 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s var(--ease-spring);
}

.calc-modal-dialog--wide {
  max-width: 840px;
  padding: 32px 36px;
  max-height: 90vh;
  overflow-y: auto;
}

.calc-modal-dialog--wide::-webkit-scrollbar {
  width: 6px;
}

.calc-modal-dialog--wide::-webkit-scrollbar-thumb {
  background: var(--ink-300);
  border-radius: 4px;
}

.trust-modal-header {
  margin-bottom: 20px;
  text-align: left;
}

.trust-badge-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.trust-badge-seal svg {
  color: #dc2626;
}

/* Analysis Notice Box in Trust Modal */
.trust-analysis-note-box {
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: var(--radius-md, 12px);
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.trust-analysis-note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #92400E;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.trust-note-icon {
  color: #D97706;
  flex-shrink: 0;
}

.trust-analysis-note-text {
  font-size: 13px;
  color: #78350F;
  line-height: 1.55;
  margin: 0;
}

.trust-analysis-note-text strong {
  color: #451A03;
  font-weight: 800;
}

/* Highlights Grid */
.trust-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 680px) {
  .trust-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.trust-hl-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-hl-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-hl-icon-wrap.icon-red {
  background: #fee2e2;
  color: #dc2626;
}

.trust-hl-icon-wrap.icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.trust-hl-icon-wrap.icon-blue {
  background: #e0f2fe;
  color: #0284c7;
}

.trust-hl-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
}

.trust-hl-sub {
  font-size: 11.5px;
  color: var(--ink-600);
}

/* Trust Regulatory Table */
.trust-table-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-900);
  margin: 16px 0 8px;
}

.trust-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 20px;
}

.trust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.trust-table th {
  background: #f1f5f9;
  color: var(--ink-800);
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.trust-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-700);
  line-height: 1.4;
}

.trust-table tr:last-child td {
  border-bottom: none;
}

.trust-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  display: inline-block;
}

/* Activity Explainer Box in Trust Modal */
.trust-activity-explainer-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.trust-activity-explainer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 12px;
}

.trust-activity-explainer-title svg {
  color: var(--brand-red);
}

.trust-activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.trust-act-item {
  background: var(--surface-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.trust-act-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.trust-act-badge.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.trust-act-badge.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}

.trust-act-badge.badge-amber {
  background: #fef3c7;
  color: #92400e;
}

.trust-act-item p {
  font-size: 12.5px;
  color: var(--ink-700);
  line-height: 1.45;
  margin: 0;
}

.calc-text-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-red);
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  display: inline;
  transition: color 0.15s ease;
}

.calc-text-link-btn:hover {
  color: var(--brand-red-dark);
}

/* Worked Example Callout */
.trust-example-box {
  background: #fffbeb;
  border: 1.5px solid #fef3c7;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.trust-example-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
}

.trust-example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-800);
}

@media (max-width: 680px) {
  .trust-example-grid {
    grid-template-columns: 1fr;
  }
}

.trust-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--ink-200);
}

.calc-modal-overlay.is-open .calc-modal-dialog {
  transform: translateY(0);
}

.calc-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--ink-100);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-600);
  transition: all 0.2s;
}

.calc-modal-close:hover {
  background: var(--brand-red-light);
  color: var(--brand-red);
}

.modal-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-red-light);
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.calc-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.calc-modal-desc {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.5;
  margin-bottom: 22px;
}

.calc-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-800);
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s;
}

.modal-input:focus {
  border-color: var(--brand-red);
}

/* Custom Fee & Session Modal Specifics */
.modal-header-icon--custom {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(244, 63, 94, 0.06));
  color: var(--brand-red);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.modal-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-label-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-500);
}

.modal-input-addon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.modal-input-prefix {
  position: absolute;
  left: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-500);
  pointer-events: none;
}

.modal-input-suffix {
  position: absolute;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.modal-input--with-prefix {
  padding-left: 30px;
  padding-right: 56px;
}

.modal-input--with-suffix {
  padding-right: 64px;
}

.modal-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.modal-pill-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-pill-btn:hover {
  background: var(--surface-white);
  border-color: var(--brand-red-border);
  color: var(--brand-red);
}

.modal-pill-btn.is-active {
  background: var(--brand-red-light);
  border-color: var(--brand-red);
  color: var(--brand-red);
  font-weight: 700;
}

/* Custom Rate Preview Box */
.custom-rate-preview-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.custom-rate-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-rate-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

.custom-rate-preview-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-900);
}

.custom-cap-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 4px;
}

.custom-cap-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-cap-icon-wrap svg {
  width: 15px;
  height: 15px;
  display: block;
}

.custom-cap-badge.is-ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.custom-cap-badge.is-ok .custom-cap-icon-wrap svg {
  color: #16a34a;
}

.custom-cap-badge.is-warn {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
}

.custom-cap-badge.is-warn .custom-cap-icon-wrap svg {
  color: #d97706;
}

.modal-actions-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .modal-actions-row {
    grid-template-columns: 1fr;
  }
}

/* Toast Notifications */
.calc-toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.calc-toast {
  pointer-events: auto;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s var(--ease-spring);
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   15. Screen vs Print Styles (Report Mode)
   -------------------------------------------------------------------------- */
.calc-print-report,
.calc-compliance-print-report {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 12mm 8mm 12mm;
  }

  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    font-family: var(--font-base, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif) !important;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Completely hide all non-report screen elements including footer and sections */
  header,
  nav,
  footer,
  #contact,
  .footer,
  .footer--premium,
  .footer-top,
  .footer-bottom,
  #site-header,
  .site-header,
  .nav-desktop,
  .nav-mobile,
  #mobile-menu,
  .calc-breadcrumbs,
  .calc-hero,
  .calc-main-section,
  .calc-guide-section,
  #book-strategy-session,
  .strategy-section,
  #faq,
  .faq,
  #newsletter,
  .newsletter,
  #site-footer,
  .site-footer,
  #calc-modal-overlay,
  .calc-modal-overlay,
  #calc-toast-box,
  .calc-toast-box,
  main > *:not(.calc-print-report):not(.calc-compliance-print-report) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
  }

  /* Mode A: Default Personalized Estimate Report */
  body:not(.print-compliance-mode) .calc-print-report {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
  }

  body:not(.print-compliance-mode) .calc-compliance-print-report {
    display: none !important;
  }

  /* Mode B: Official Compliance & Formula Guide */
  body.print-compliance-mode .calc-print-report {
    display: none !important;
  }

  body.print-compliance-mode .calc-compliance-print-report {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
  }

  /* Header & Logo */
  .print-report-header {
    border-bottom: 2px solid #E31B23;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .print-brand-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px;
  }

  .print-logo {
    height: 36px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .print-header-meta {
    text-align: right !important;
  }

  .print-badge {
    display: inline-block;
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }

  .print-date {
    font-size: 8pt !important;
    color: #64748b !important;
    font-weight: 500;
  }

  .print-main-title {
    font-size: 14pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
  }

  .print-sub-title {
    font-size: 8pt !important;
    color: #475569 !important;
    margin: 0 !important;
  }

  /* Highlight Banner */
  .print-highlight-banner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #fff5f5 !important;
    border: 1.5px solid #fca5a5 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
  }

  .print-hl-label {
    display: block;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #991b1b !important;
    margin-bottom: 2px;
  }

  .print-hl-val {
    font-size: 15pt !important;
    font-weight: 800 !important;
    color: #dc2626 !important;
    line-height: 1 !important;
  }

  .print-hl-freq {
    font-size: 8.5pt !important;
    font-weight: 600 !important;
    color: #64748b !important;
  }

  .print-hl-right {
    text-align: right !important;
  }

  .print-hl-sub {
    font-size: 9.5pt !important;
    font-weight: 700 !important;
    color: #166534 !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
  }

  /* Sections */
  .print-section {
    margin-bottom: 10px !important;
  }

  .print-section-heading {
    font-size: 9pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 5px 0 !important;
    padding-bottom: 2px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  /* Parameters Grid */
  .print-params-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
  }

  .print-param-item {
    font-size: 8pt !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1px 0;
  }

  .print-p-label {
    color: #64748b !important;
    font-weight: 500 !important;
  }

  .print-p-val {
    color: #0f172a !important;
    font-weight: 700 !important;
  }

  /* Tables */
  .print-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 8pt !important;
    margin-top: 3px !important;
  }

  .print-table th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 5px 7px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 7.5pt !important;
    text-transform: uppercase !important;
  }

  .print-th-right {
    text-align: right !important;
  }

  .print-table td {
    padding: 5px 7px !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
  }

  .print-num {
    text-align: right !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums !important;
  }

  .print-green {
    color: #15803d !important;
    font-weight: 700 !important;
  }

  /* Summary Table */
  .print-summary-table {
    margin-top: 3px !important;
    background: #ffffff !important;
  }

  .print-summary-table td {
    font-size: 8.5pt !important;
  }

  .print-sum-total-row td {
    background: #fef2f2 !important;
    border-top: 2px solid #dc2626 !important;
    font-size: 9.5pt !important;
  }

  .print-total-val {
    color: #dc2626 !important;
    font-size: 11pt !important;
    font-weight: 800 !important;
  }

  /* Footer Notes & Disclaimer */
  .print-footer-notes {
    margin-top: 8px !important;
    padding-top: 6px !important;
    border-top: 1px dashed #cbd5e1 !important;
  }

  .print-footer-notes p {
    font-size: 6.8pt !important;
    color: #64748b !important;
    line-height: 1.25 !important;
    margin: 0 0 5px 0 !important;
  }

  .print-footer-contact {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 7pt !important;
    color: #475569 !important;
    font-weight: 600 !important;
  }
}
