  .estimator-shell {
    padding-top: 12px;
    padding-bottom: 132px;
    position: relative;
    overflow-x: clip;
    /* Transparent: gaps between glass panels + areas outside rounded corners
       show the same body.app-page shell as the rest of the site (no flat mat). */
    background: transparent;
  }
  .estimator-shell::before {
    content: "";
    position: absolute;
    pointer-events: none;
    top: -60px;
    right: min(-3%, -24px);
    width: min(420px, 50vw);
    height: min(420px, 50vw);
    background: radial-gradient(circle at 40% 40%, rgba(41, 194, 218, 0.12), transparent 65%);
    filter: blur(28px);
    opacity: 0.5;
    z-index: 0;
  }
  /* Lower-right wash so the hero column doesn’t fade into empty space */
  .estimator-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
    width: min(760px, 95vw);
    height: min(520px, 50vh);
    right: -10%;
    bottom: 6%;
    background: radial-gradient(
      circle at 88% 68%,
      rgba(41, 194, 218, 0.1),
      transparent 38%
    );
    filter: blur(44px);
    opacity: 0.9;
    z-index: 0;
  }
  .estimator-shell > .row {
    position: relative;
    z-index: 1;
  }

  .estimator-hero-stage {
    position: relative;
    /* visible: float cards sit near rounded corners; hidden clips map / bench cards */
    overflow: visible;
    border-radius: 34px;
    padding: 2.4rem clamp(2rem, 4vw, 3rem) 3rem clamp(2rem, 4vw, 3rem);
    margin: 0 auto clamp(2.5rem, 5vw, 3.25rem);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
      radial-gradient(circle at 78% 28%, rgba(41, 194, 218, 0.16), transparent 34%),
      radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.1), transparent 36%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.1));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      0 28px 90px rgba(15, 23, 42, 0.038);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
  }
  .estimator-hero-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
      circle at 78% 22%,
      rgba(41, 194, 218, 0.18),
      transparent 32%
    );
    filter: blur(30px);
    opacity: 0.95;
  }
  .estimator-hero-stage::after {
    content: "";
    position: absolute;
    inset: auto 8% 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(41, 194, 218, 0.22),
      transparent
    );
    pointer-events: none;
    z-index: 1;
  }
  .estimator-hero-stage > .row {
    position: relative;
    z-index: 2;
  }
  @media (min-width: 992px) {
    .estimator-hero-stage {
      padding-right: clamp(2.75rem, 4.5vw, 4rem);
    }
  }
  @media (max-width: 768px) {
    .estimator-hero-stage {
      border-radius: 26px;
      padding: 2rem 1.25rem 2.5rem;
    }
  }

  /* Decorative glass stack — sits in the same light field as the shell, not pasted on */
  .estimator-hero-float {
    position: relative;
    min-height: min(360px, 46vw);
    margin-top: 0.5rem;
    margin-left: auto;
    max-width: 400px;
    isolation: isolate;
  }
  @media (min-width: 1200px) {
    .estimator-hero-float {
      min-height: 400px;
      max-width: 440px;
      margin-top: 0;
    }
  }
  .estimator-hero-float::before {
    content: "";
    position: absolute;
    inset: -12% -18% -10% -14%;
    border-radius: 40px;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 85% 75% at 65% 25%, rgba(41, 194, 218, 0.12), transparent 58%),
      radial-gradient(ellipse 70% 60% at 25% 85%, rgba(33, 139, 167, 0.08), transparent 52%),
      radial-gradient(ellipse 90% 80% at 50% 50%, rgba(255, 255, 255, 0.35), transparent 72%);
    opacity: 0.85;
  }
  .estimator-float-card {
    position: absolute;
    z-index: 1;
    border-radius: 20px;
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(241, 245, 249, 0.32) 100%
    );
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow:
      0 12px 36px rgba(15, 23, 42, 0.04),
      0 4px 14px rgba(41, 194, 218, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    padding: 14px 16px 16px;
    will-change: transform;
  }
  .estimator-float-card--savings {
    top: 0;
    right: -2%;
    width: min(228px, 92%);
    z-index: 3;
    background: linear-gradient(
      160deg,
      rgba(236, 253, 245, 0.42) 0%,
      rgba(241, 245, 249, 0.36) 55%,
      rgba(255, 255, 255, 0.28) 100%
    );
    box-shadow:
      0 14px 40px rgba(5, 150, 105, 0.06),
      0 6px 20px rgba(15, 23, 42, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(16, 185, 129, 0.16);
    animation: estimator-float-savings 8.5s ease-in-out infinite;
  }
  .estimator-float-card--map {
    top: 28%;
    left: 0;
    width: min(256px, 104%);
    z-index: 2;
    animation: estimator-float-map 9s ease-in-out -2.5s infinite;
  }
  .estimator-float-card--bench {
    bottom: -8%;
    right: 2%;
    width: min(264px, 96%);
    z-index: 1;
    animation: estimator-float-bench 8s ease-in-out -5s infinite;
  }
  @keyframes estimator-float-savings {
    0%, 100% { transform: rotate(-0.95deg) translateY(0); }
    50% { transform: rotate(-0.95deg) translateY(-5px); }
  }
  @keyframes estimator-float-map {
    0%, 100% { transform: rotate(0.9deg) translateY(0); }
    50% { transform: rotate(0.9deg) translateY(-4px); }
  }
  @keyframes estimator-float-bench {
    0%, 100% { transform: rotate(-1.18deg) translateY(0); }
    50% { transform: rotate(-1.18deg) translateY(-6px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .estimator-float-card--savings,
    .estimator-float-card--map,
    .estimator-float-card--bench {
      animation: none;
    }
    .estimator-float-card--savings { transform: rotate(-0.95deg); }
    .estimator-float-card--map { transform: rotate(0.9deg); }
    .estimator-float-card--bench { transform: rotate(-1.18deg); }
  }
  .estimator-float-kicker {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
  }
  .estimator-float-card--savings .estimator-float-kicker {
    color: #047857;
  }
  .estimator-float-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #047857;
  }
  .estimator-float-value--md {
    font-size: 1.35rem;
    color: #0f172a;
  }
  .estimator-float-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #64748b;
    font-weight: 500;
  }
  .estimator-float-mono {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
  }
  .estimator-float-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
  }
  .estimator-float-range {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
  }
  .estimator-float-map {
    position: relative;
    height: 92px;
    border-radius: 12px;
    background:
      linear-gradient(
        145deg,
        rgba(226, 232, 240, 0.75) 0%,
        rgba(241, 245, 249, 0.85) 45%,
        rgba(224, 242, 254, 0.35) 100%
      );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.1);
  }
  .estimator-float-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 55% 45%, rgba(41, 194, 218, 0.1), transparent 58%);
    pointer-events: none;
  }
  .estimator-float-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #218ba7, #29c2da);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 4px 10px rgba(33, 139, 167, 0.22);
    left: 22%;
    top: 38%;
  }
  .estimator-float-pin:nth-child(2) {
    left: 48%;
    top: 52%;
  }
  .estimator-float-pin:nth-child(3) {
    left: 68%;
    top: 32%;
  }
  .estimator-float-pin:nth-child(4) {
    left: 78%;
    top: 62%;
  }
  .estimator-float-pin--best {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.98), 0 6px 16px rgba(217, 119, 6, 0.4);
  }

  .estimator-hero-ribbon {
    display: none;
  }

  /* Asymmetric hero — left column copy */
  .estimator-head.estimator-hero {
    max-width: none;
    width: 100%;
    margin: 0 0 0.25rem 0;
    padding: 0 0 0.15rem;
    text-align: left;
  }
  @media (min-width: 992px) {
    .estimator-head.estimator-hero {
      margin-bottom: 0;
      max-width: 40rem;
    }
  }
  .estimator-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 7px 16px 8px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(41, 194, 218, 0.22);
    box-shadow:
      0 6px 22px rgba(15, 23, 42, 0.05),
      0 4px 20px rgba(41, 194, 218, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1rem;
  }
  .estimator-hero-badge i {
    font-size: 0.84rem;
    color: #0d9488;
    opacity: 1;
  }
  .estimator-hero-title {
    margin: 0 0 0.6rem;
    padding: 0;
    position: relative;
    z-index: 0;
    font-size: clamp(2.15rem, 4.2vw + 0.6rem, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.96;
    color: #0f172a;
    max-width: 17em;
  }
  .estimator-hero-title-accent {
    position: relative;
    background: linear-gradient(105deg, #0d9488 0%, #218ba7 48%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .estimator-hero-title-accent::after {
    content: "";
    position: absolute;
    left: -0.12em;
    right: -0.12em;
    bottom: 0.02em;
    height: 0.42em;
    background: radial-gradient(ellipse 90% 80% at 50% 100%, rgba(41, 194, 218, 0.22), transparent 72%);
    z-index: -1;
    pointer-events: none;
  }
  .estimator-hero-lead {
    margin: 0 0 1.1rem;
    max-width: min(34rem, 100%);
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 400;
    color: #64748b;
    letter-spacing: -0.012em;
  }
  @media (min-width: 768px) {
    .estimator-hero-lead {
      font-size: 1.14rem;
      max-width: 36rem;
    }
  }
  .estimator-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.012em;
    line-height: 1.4;
  }
  .estimator-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    padding: 0.38rem 0.72rem 0.42rem;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(241, 245, 249, 0.35) 100%
    );
    box-shadow: 0 3px 14px rgba(15, 23, 42, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .estimator-hero-meta-item i {
    font-size: 0.72rem;
    color: #14b8a6;
    opacity: 0.95;
  }
  @media (max-width: 575.98px) {
    .estimator-hero-meta-item {
      flex: 1 1 calc(50% - 0.35rem);
      min-width: 0;
      white-space: normal;
      font-size: 0.74rem;
      padding: 0.35rem 0.6rem;
    }
    .estimator-hero-meta {
      gap: 0.45rem 0.55rem;
    }
  }
  .estimator-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(148,175,230,.45);
    color: #1d4ed8;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 4px 12px rgba(37,99,235,.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .estimator-eyebrow i { color: #2563eb; font-size: .72rem; }
  .estimator-body {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.62) 100%
    );
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    padding: 2rem 1.75rem 2.25rem;
    box-shadow:
      0 10px 40px rgba(15, 23, 42, 0.065),
      0 1px 0 rgba(255, 255, 255, 0.85) inset;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    position: relative;
  }
  .estimator-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(41, 194, 218, 0.22) 38%,
      rgba(33, 139, 167, 0.28) 50%,
      rgba(41, 194, 218, 0.18) 62%,
      transparent
    );
    opacity: 0.9;
    pointer-events: none;
  }
  @media (min-width: 768px) {
    .estimator-body {
      padding: 2.15rem 2.25rem 2.4rem;
    }
    .estimator-body::before {
      left: 2.25rem;
      right: 2.25rem;
    }
  }

  /* Section scaffolding in the main card */
  .estimator-section-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    letter-spacing: -.01em;
  }
  .estimator-section-step {
    width: 26px; height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #29c2da, #218ba7);
    color: #ffffff;
    font-weight: 800;
    font-size: .78rem;
    box-shadow: 0 4px 12px rgba(33, 139, 167, 0.28), inset 0 1px 0 rgba(255,255,255,.4);
  }
  .estimator-form-section { position: relative; }

  .estimator-body label.form-label {
    font-size: .92rem;
    letter-spacing: -.01em;
    color: #334155;
  }
  /* Glassier inputs — translucent background, soft inset highlight, real focus ring. */
  .estimator-body .form-control,
  .estimator-body .form-select {
    border-radius: 14px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 175, 230, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  }
  .estimator-body .form-control:hover,
  .estimator-body .form-select:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(14, 116, 144, 0.35);
  }
  .estimator-body .form-control:focus,
  .estimator-body .form-select:focus {
    background: rgba(255, 255, 255, 0.94);
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(41, 194, 218, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    outline: none;
  }
  .estimator-body .form-control.is-invalid,
  .estimator-body .form-select.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220,38,38,.10);
  }
  .estimator-body textarea.form-control { min-height: 150px; line-height: 1.5; }

  /* Input-with-icon wrapper */
  .estimator-input-icon {
    position: relative;
  }
  .estimator-input-icon > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: .9rem;
    pointer-events: none;
    z-index: 2;
  }
  .estimator-input-icon > .form-control,
  .estimator-input-icon > .form-select {
    padding-left: 40px;
  }
  .estimator-input-icon:focus-within > i { color: #2563eb; }

  /* Primary CTA — brand cyan gradient, luminous glass */
  .estimator-cta-btn {
    border-radius: 999px !important;
    padding: .9rem 1.85rem !important;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -.01em;
    background: linear-gradient(135deg, #29c2da 0%, #1fb8d4 38%, #218ba7 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow:
      0 14px 36px rgba(33, 139, 167, 0.35),
      0 6px 16px rgba(41, 194, 218, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  }
  .estimator-cta-btn:hover,
  .estimator-cta-btn:focus {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow:
      0 20px 44px rgba(33, 139, 167, 0.42),
      0 8px 20px rgba(41, 194, 218, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.55),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    color: #ffffff !important;
  }
  .estimator-cta-btn:disabled,
  .estimator-cta-btn[disabled] {
    opacity: .7;
    transform: none;
    box-shadow: 0 6px 14px rgba(37,99,235,.18);
  }
  .estimator-status-line {
    color: #475569;
    font-weight: 500;
  }

  /* Alerts — glassy, not flat Bootstrap. */
  .estimator-alert {
    border-radius: 14px;
    padding: 12px 14px;
    font-size: .95rem;
    line-height: 1.45;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
  }
  .estimator-alert--info {
    background: linear-gradient(180deg, rgba(219,234,254,.7), rgba(219,234,254,.5));
    border-color: rgba(37,99,235,.22);
    color: #1e3a8a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  }
  .estimator-alert--danger {
    background: linear-gradient(180deg, rgba(254,226,226,.7), rgba(254,226,226,.5));
    border-color: rgba(220,38,38,.25);
    color: #991b1b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  }

  /* Results section — lives inside the main glass card, but gets its own panel
     so it reads as a distinct "step 3" with clear hierarchy. */
  .estimator-results {
    position: relative;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    box-shadow:
      0 10px 36px rgba(15, 23, 42, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(155%);
    -webkit-backdrop-filter: blur(16px) saturate(155%);
  }
  .estimator-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.25rem;
  }
  .estimator-results-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 4px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(37,99,235,.22);
    margin-bottom: .35rem;
  }

  /* Matched codes — stacked cards (not spreadsheet table) */
  .estimator-code-stack-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
  }
  .estimator-code-stack {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 0.5rem;
  }
  .estimator-code-card {
    border-radius: var(--fhc-radius-lg);
    background: rgba(255, 255, 255, 0.78);
    border: none;
    box-shadow:
      0 8px 28px rgba(15, 23, 42, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px) saturate(145%);
    -webkit-backdrop-filter: blur(12px) saturate(145%);
    padding: 1.15rem 1.25rem 1.2rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  .estimator-code-card:hover {
    transform: translateY(-1px);
    box-shadow:
      0 18px 48px rgba(15, 23, 42, 0.1),
      0 6px 20px rgba(41, 194, 218, 0.12),
      0 0 0 1px rgba(41, 194, 218, 0.18) inset,
      inset 0 1px 0 rgba(255, 255, 255, 1);
  }
  .estimator-code-card--unmatched {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.85), rgba(254, 243, 199, 0.35));
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.08);
  }
  .estimator-code-card-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.25rem;
    align-items: start;
    margin-bottom: 0.85rem;
  }
  @media (max-width: 699.98px) {
    .estimator-code-card-head {
      grid-template-columns: 1fr;
    }
  }
  .estimator-code-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
  }
  .estimator-code-kicker-hint {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
    color: #94a3b8;
    font-size: 0.62rem;
  }
  .estimator-code-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.3;
  }
  .estimator-code-pill {
    display: inline-block;
    margin-top: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9d174d;
    background: rgba(251, 207, 232, 0.35);
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
  }
  .estimator-code-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    min-width: min(100%, 280px);
    text-align: right;
  }
  @media (max-width: 699.98px) {
    .estimator-code-card-stats {
      text-align: left;
      grid-template-columns: 1fr 1fr;
      min-width: 0;
    }
  }
  .estimator-code-stat--range .estimator-code-range {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    font-variant-numeric: tabular-nums;
  }
  .estimator-code-typical {
    display: block;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0e7490;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
  }
  .estimator-code-card-matched {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
  }
  .estimator-code-card-matched .nearby-hospitals-btn {
    margin-top: 0.25rem;
  }
  .estimator-code-card-foot {
    margin-top: 0.75rem;
  }
  .estimator-code-hosp-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    background: rgba(241, 245, 249, 0.9);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
  }
  .estimator-code-card-matched code {
    color: #be185d;
    background: rgba(251, 207, 232, 0.22);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.82rem;
  }

  /* Floating regional total — hero insight, not dashboard footer bar */
  .estimator-insight-card {
    border-radius: 24px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .estimator-insight-card-inner {
    padding: 1.5rem 1.65rem 1.6rem;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(236, 254, 255, 0.88) 45%, rgba(207, 250, 254, 0.55) 100%);
    border: none;
    box-shadow:
      0 20px 56px rgba(8, 145, 178, 0.15),
      0 8px 24px rgba(15, 23, 42, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
  }
  .estimator-insight-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
    margin-bottom: 0.35rem;
  }
  .estimator-insight-value {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 55%, #218ba7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 12px rgba(6, 182, 212, 0.25));
  }
  .estimator-insight-caption {
    margin-top: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    max-width: 46ch;
  }
  .estimator-accent-icon {
    color: #0d9488;
  }
  .estimator-fineprint { color: #64748b !important; }
  /* Side-panel: glassy card that matches .estimator-body. */
  .estimator-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.62);
    border: none;
    box-shadow:
      0 8px 26px rgba(15, 23, 42, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
    border-radius: 20px !important;
    backdrop-filter: blur(14px) saturate(155%);
    -webkit-backdrop-filter: blur(14px) saturate(155%);
    overflow: hidden;
  }
  .estimator-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(380px 140px at 12% 0%, rgba(41, 194, 218, 0.08), transparent 58%),
      radial-gradient(280px 120px at 100% 100%, rgba(33, 139, 167, 0.06), transparent 55%);
  }
  .estimator-panel h5 {
    letter-spacing: -0.01em;
    color: #0f172a;
  }
  .estimator-panel-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: .85rem;
    position: relative;
  }
  .estimator-panel-list li {
    position: relative;
    padding: .1rem 0 .45rem 1.7rem;
    color: #334155;
    font-size: .99rem;
    line-height: 1.55;
  }
  .estimator-panel-list li::before {
    content: "\f00c"; /* fa-check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0; top: .25rem;
    width: 20px; height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    color: #0e7490;
    background: rgba(20, 184, 166, 0.12);
    border-radius: 999px;
  }

  /* Example procedures: same glass, dashed accent. */
  .estimator-examples {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62) 0%,
      rgba(249, 252, 255, 0.4) 100%
    );
    border: none;
    border-radius: 22px !important;
    box-shadow:
      0 10px 28px rgba(15,23,42,.06),
      0 0 0 1px rgba(148,175,230,.22) inset,
      inset 0 1px 0 rgba(255,255,255,.75);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
  }
  .estimator-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(148,175,230,.45);
    color: #1e3a8a;
    font-weight: 600;
    font-size: .85rem;
    padding: .38rem .75rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  }
  .estimator-chip:hover,
  .estimator-chip:focus {
    background: #ffffff;
    border-color: #2563eb;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37,99,235,.14);
    outline: none;
  }

  /* Inline "Nearby hospitals (N)" chip-style button in the estimate table. */
  .nearby-hospitals-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    color: #1d4ed8;
    background: rgba(234,242,255,.78);
    border: 1px solid rgba(37,99,235,.22);
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  }
  .nearby-hospitals-btn:hover,
  .nearby-hospitals-btn:focus {
    background: #eaf2ff;
    border-color: #2563eb;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37,99,235,.14);
    outline: none;
  }
  .nearby-hospitals-btn i { font-size: .7rem; }

  /* ── Find Care map panel (primary hero of the fused product) ─────────────
     Map + ranked hospital list. Cheapest hospital pin is gold; others blue.
     Grid collapses to stacked (map on top, list below) under 720px. */
  .find-care-map-panel {
    margin: 16px -10px 36px;
    padding: 0;
    border-radius: 22px;
    border: none;
    overflow: visible;
    background: rgba(248, 250, 252, 0.42);
    box-shadow:
      0 14px 48px rgba(15, 23, 42, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
  }
  .find-care-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 14px;
    margin-bottom: 0;
  }
  .find-care-map-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(41, 194, 218, 0.35);
    box-shadow: 0 4px 16px rgba(41, 194, 218, 0.12);
  }
  .find-care-map-badge i { font-size: 0.72rem; opacity: 0.9; }
  .find-care-map-title {
    font-size: clamp(1.32rem, 2.5vw, 1.62rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-top: 10px;
  }
  .find-care-map-sub {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 6px;
    color: #64748b !important;
  }
  .find-care-map-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 16px 18px;
  }
  .find-care-map-surface {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: min(44vh, 360px);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
  }
  @media (min-width: 781px) {
    .find-care-map-panel {
      margin-left: -18px;
      margin-right: -18px;
    }
    .find-care-map-head {
      padding-left: 28px;
      padding-right: 28px;
    }
    /* Side-by-side only: overlap + Leaflet pane z-index caused the map to paint
       over the list. minmax(0,1fr) avoids grid blowout widening the map column. */
    .find-care-map-stage {
      grid-template-columns: minmax(0, 1fr) minmax(300px, 40%);
      align-items: stretch;
      gap: 20px;
      padding: 0 24px 22px;
      min-height: min(54vh, 500px);
      isolation: isolate;
    }
    .find-care-map-surface {
      position: relative;
      z-index: 0;
      min-width: 0;
      min-height: 100%;
      height: 100%;
      border-radius: 18px;
      box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
    }
    .find-care-map {
      border-radius: 18px !important;
      position: absolute;
      inset: 0;
      width: 100% !important;
      height: 100% !important;
      min-height: 100% !important;
    }
    .find-care-map .leaflet-container {
      z-index: 0;
    }
    .find-care-list-wrap {
      position: relative;
      z-index: 1;
      margin-left: 0;
      min-width: 0;
      align-self: stretch;
      padding: 22px 24px 24px;
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.9);
      -webkit-backdrop-filter: blur(20px) saturate(165%);
      backdrop-filter: blur(20px) saturate(165%);
      box-shadow:
        0 28px 64px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.95) inset;
      max-height: min(50vh, 480px);
    }
  }
  .find-care-map {
    position: relative;
    width: 100%;
    height: min(52vh, 460px);
    min-height: min(44vh, 360px);
    border-radius: 18px;
    overflow: hidden;
    border: none;
    box-shadow:
      0 12px 36px rgba(15, 23, 42, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    background: linear-gradient(145deg, #e8eef9 0%, #dbeafe 100%);
  }
  .find-care-map::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 600;
    box-shadow: inset 0 0 80px rgba(15, 23, 42, 0.12);
  }
  @media (max-width: 780px) {
    .find-care-map-panel {
      margin-left: 0;
      margin-right: 0;
    }
    .find-care-map-stage {
      padding: 0 12px 16px;
    }
  }
  .find-care-map .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255,255,255,.75);
  }
  .find-care-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: min(52vh, 460px);
    min-height: 0;
    padding: 8px 6px 6px;
  }
  .find-care-list-header {
    padding: 4px 8px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
  }
  .find-care-hospital-list {
    list-style: none;
    padding: 0 10px 10px 6px;
    margin: 0;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
  }
  .find-care-hospital-list::-webkit-scrollbar {
    width: 8px;
  }
  .find-care-hospital-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
  }
  .find-care-hospital-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
  }
  .find-care-hospital-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 16px 20px;
    align-items: center;
    position: relative;
    padding: 18px 22px 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: none;
    box-shadow:
      0 8px 26px rgba(15, 23, 42, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 1);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    text-align: left;
    width: 100%;
  }
  .find-care-hospital-item:hover {
    transform: translateY(-2px);
    box-shadow:
      0 16px 40px rgba(41, 194, 218, 0.14),
      0 8px 22px rgba(15, 23, 42, 0.08),
      0 0 0 1px rgba(41, 194, 218, 0.22) inset;
  }
  .find-care-hospital-item.is-cheapest {
    background: linear-gradient(135deg, rgba(236, 253, 245, .95), rgba(209, 250, 229, .65));
    box-shadow:
      0 10px 28px rgba(5, 150, 105, 0.12),
      0 0 0 1px rgba(16, 185, 129, 0.22) inset;
  }
  .find-care-hospital-item.is-partial {
    background: linear-gradient(135deg, rgba(255, 251, 235, .92), rgba(254, 243, 199, .55));
    box-shadow:
      0 8px 24px rgba(245, 158, 11, 0.08),
      0 0 0 1px rgba(245, 158, 11, 0.25) inset;
  }
  .find-care-hospital-item.is-selected {
    box-shadow:
      0 14px 36px rgba(33, 139, 167, 0.2),
      0 0 0 2px rgba(41, 194, 218, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 1);
  }
  .find-care-hospital-item.is-selected.is-cheapest {
    box-shadow:
      0 16px 40px rgba(5, 150, 105, 0.18),
      0 0 0 2px rgba(245, 180, 0, 0.75),
      inset 0 1px 0 rgba(255, 255, 255, 1);
  }
  .find-care-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(59, 130, 246, .12);
    color: #1d4ed8;
    font-weight: 700;
    font-size: .86rem;
  }
  .find-care-hospital-item.is-cheapest .find-care-rank-badge {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: #fff;
    box-shadow: 0 4px 10px rgba(234, 179, 8, .35);
  }
  .find-care-hospital-item.is-partial .find-care-rank-badge {
    background: rgba(245, 158, 11, .18);
    color: #b45309;
  }
  .find-care-hospital-body {
    min-width: 0;
    /* Extra belt-and-braces: clip anything descendants try to paint outside
       their column. Without this, an inline <span> name with `overflow:hidden`
       doesn't actually clip (inline overflow is a no-op) and long hospital
       names render over the price column. */
    overflow: hidden;
  }
  .find-care-hospital-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.45;
    word-break: break-word;
  }
  .find-care-hospital-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.45;
  }
  .find-care-hospital-meta .is-partial-tag {
    color: #b45309;
    font-weight: 600;
  }
  .find-care-hospital-price {
    text-align: right;
    font-weight: 800;
    font-size: 1.14rem;
    color: #0f172a;
    line-height: 1.22;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .find-care-hospital-item.is-cheapest .find-care-hospital-price { color: #047857; }
  .find-care-hospital-price-label {
    display: block;
    font-weight: 500;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 6px;
  }
  .find-care-map-pin {
    background: transparent;
    border: 0;
  }
  .find-care-map-pin-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 6px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    box-shadow:
      0 4px 10px rgba(37, 99, 235, .35),
      0 0 0 2px rgba(255,255,255,.9);
    white-space: nowrap;
  }
  .find-care-map-pin-inner.is-cheapest {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow:
      0 4px 12px rgba(217, 119, 6, .45),
      0 0 0 2px rgba(255,255,255,.95);
  }
  .find-care-map-pin-inner.is-partial {
    background: #94a3b8;
  }
  .find-care-map-pin-inner i { font-size: .68rem; }

  /* ── Best-bundle card (cross-code cheapest hospital) ────────────────────
     Appears above the per-code table whenever there are >= 2 matched codes
     with nearby-hospital pricing. Uses the same emerald palette as the
     Average Cost card so they visually tie together. */
  .best-bundle-card {
    margin: 10px 0 32px;
    padding: 28px 30px;
    border-radius: 26px;
    border: none;
    background:
      linear-gradient(135deg,
        rgba(240, 255, 248, 1) 0%,
        rgba(225, 250, 240, 0.94) 42%,
        rgba(210, 245, 235, 0.82) 100%);
    box-shadow:
      0 26px 64px rgba(16, 185, 129, 0.12),
      0 10px 28px rgba(5, 150, 105, 0.08),
      0 0 0 1px rgba(16, 185, 129, 0.14) inset,
      inset 0 1px 0 rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
  }
  .best-bundle-card.is-partial {
    background:
      linear-gradient(135deg,
        rgba(255, 253, 245, 0.98) 0%,
        rgba(254, 243, 199, 0.65) 50%,
        rgba(219, 234, 254, 0.48) 100%);
    box-shadow:
      0 26px 64px rgba(217, 119, 6, 0.09),
      0 10px 28px rgba(245, 158, 11, 0.09),
      0 0 0 1px rgba(245, 158, 11, 0.2) inset,
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }
  .best-bundle-emotional {
    margin-bottom: 1.35rem;
    padding: 1.05rem 1.2rem 1.1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: 0 10px 32px rgba(5, 150, 105, 0.08);
  }
  .best-bundle-emotional-kicker {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #059669;
    margin-bottom: 0.4rem;
  }
  .best-bundle-emotional-text {
    font-size: 1.04rem;
    line-height: 1.55;
    color: #166534;
    font-weight: 500;
  }
  .best-bundle-card.is-partial .best-bundle-emotional {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 32px rgba(217, 119, 6, 0.07);
  }
  .best-bundle-card.is-partial .best-bundle-emotional-kicker {
    color: #c2410c;
  }
  .best-bundle-card.is-partial .best-bundle-emotional-text {
    color: #78350f;
  }
  .best-bundle-head {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .best-bundle-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow:
      0 10px 22px rgba(5, 150, 105, .22),
      inset 0 1px 0 rgba(255,255,255,.4);
  }
  .best-bundle-card.is-partial .best-bundle-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow:
      0 10px 22px rgba(217, 119, 6, .22),
      inset 0 1px 0 rgba(255,255,255,.4);
  }
  .best-bundle-head-text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .best-bundle-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #047857;
  }
  .best-bundle-card.is-partial .best-bundle-eyebrow { color: #b45309; }
  .best-bundle-name {
    font-size: 1.48rem;
    font-weight: 800;
    color: #022c22;
    line-height: 1.18;
    margin-top: 6px;
    letter-spacing: -0.025em;
    word-break: break-word;
  }
  .best-bundle-card.is-partial .best-bundle-name { color: #713f12; }
  .best-bundle-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.45;
    letter-spacing: 0.01em;
  }
  .best-bundle-card.is-partial .best-bundle-sub { color: #a16207; }
  .best-bundle-total {
    flex: 0 0 auto;
    text-align: right;
    padding-left: 10px;
  }
  .best-bundle-total-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #047857;
    opacity: .85;
  }
  .best-bundle-card.is-partial .best-bundle-total-label { color: #b45309; }
  .best-bundle-total-value {
    font-size: clamp(2.4rem, 5.8vw, 3.25rem);
    font-weight: 800;
    color: #047857;
    letter-spacing: -0.04em;
    line-height: 0.98;
  }
  .best-bundle-card.is-partial .best-bundle-total-value { color: #b45309; }
  .best-bundle-savings {
    margin-top: 8px;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: #047857;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
  }
  .best-bundle-card.is-partial .best-bundle-savings {
    background: rgba(255, 255, 255, 0.82);
    color: #b45309;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
  }
  .best-bundle-details {
    margin-top: 18px;
    border-top: 1px solid rgba(16, 185, 129, .14);
    padding-top: 14px;
  }
  .best-bundle-card.is-partial .best-bundle-details {
    border-top-color: rgba(245, 158, 11, .35);
  }
  .best-bundle-details > summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    color: #047857;
    list-style: none;
    user-select: none;
    letter-spacing: -0.01em;
  }
  .best-bundle-card.is-partial .best-bundle-details > summary { color: #b45309; }
  .best-bundle-details > summary::-webkit-details-marker { display: none; }
  .best-bundle-details > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 6px;
    transition: transform .15s ease;
  }
  .best-bundle-details[open] > summary::before { transform: rotate(90deg); }
  .best-bundle-table {
    width: 100%;
    font-size: 0.88rem;
    border-collapse: separate;
    border-spacing: 0 8px;
  }
  .best-bundle-table thead th {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    padding: 4px 10px 8px;
    border-bottom: none;
    background: transparent;
  }
  .best-bundle-card.is-partial .best-bundle-table thead th { color: #94a3b8; }
  .best-bundle-table tbody tr {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  }
  .best-bundle-table tbody td {
    padding: 12px 10px;
    border-bottom: none;
    color: #0f172a;
    vertical-align: top;
  }
  .best-bundle-table tbody td:first-child {
    border-radius: 12px 0 0 12px;
  }
  .best-bundle-table tbody td:last-child {
    border-radius: 0 12px 12px 0;
  }
  .best-bundle-table tbody tr:last-child td { border-bottom: none; }
  .best-bundle-svc-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.35;
  }
  .best-bundle-svc-code {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #64748b;
    text-transform: uppercase;
  }
  .best-bundle-table code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
  }
  .best-bundle-card.is-partial .best-bundle-table tbody tr {
    background: rgba(255, 251, 235, 0.65);
  }
  .best-bundle-table .best-bundle-missing {
    color: #b91c1c;
    font-size: .78rem;
    font-style: italic;
  }
  @media (max-width: 575.98px) {
    .best-bundle-head { flex-wrap: wrap; }
    .best-bundle-total {
      text-align: left;
      padding-left: 0;
      width: 100%;
      margin-top: 6px;
    }
    .best-bundle-total-value { font-size: clamp(2rem, 7vw, 2.65rem); }
  }

  /* Find Care: footer bridges into the same atmospheric shell as the page */
  body.page-cost_estimator .footer {
    margin-top: clamp(1.5rem, 5vw, 2.75rem);
    padding-top: 2.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.11);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.28) 45%,
      rgba(238, 244, 255, 0.42) 100%
    );
  }
  body.page-cost_estimator .footer-bottom {
    border-top-color: rgba(148, 163, 184, 0.09);
  }

  @media (max-width: 991.98px) {
    .estimator-shell { padding-top: 12px; padding-bottom: 88px; }
    .estimator-body { padding: 1.35rem; border-radius: 22px; }
    .estimator-results { padding: 1.15rem; border-radius: 20px; }
    .estimator-insight-card-inner { padding: 1.25rem 1.35rem; }
    .estimator-cta-btn { width: 100%; justify-content: center; }
    .estimator-cta-row { width: 100%; }
  }

  /* ===== "View last estimate" reopen button (inline next to CTA) ===== */
  .estimator-reopen-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1d4ed8;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(37,99,235,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  }
  .estimator-reopen-btn:hover,
  .estimator-reopen-btn:focus {
    background: #eaf2ff;
    border-color: #2563eb;
    color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37,99,235,.16);
    outline: none;
  }

  /* ===== Estimate Results modal: reuses the glass treatment from
     .nearby-hospitals-modal so both modals look like part of the same family. ===== */
  .estimate-results-modal .modal-dialog {
    max-width: 960px;
    margin-top: calc(var(--fhc-nav-h, 72px) + 20px);
    margin-bottom: 28px;
    max-height: calc(100vh - var(--fhc-nav-h, 72px) - 48px);
  }
  .estimate-results-modal .modal-content {
    max-height: calc(100vh - var(--fhc-nav-h, 72px) - 48px);
    border: none;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.18),
      0 12px 40px rgba(15, 23, 42, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    backdrop-filter: blur(24px) saturate(175%);
    -webkit-backdrop-filter: blur(24px) saturate(175%);
  }
  .estimate-results-modal .modal-header {
    padding: 14px 24px 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  }
  .estimate-results-modal .modal-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: 1.38rem;
    color: #0f172a;
  }
  .estimate-results-modal .estimate-modal-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, rgba(41, 194, 218, 0.22), rgba(33, 139, 167, 0.14));
    border: 1px solid rgba(41, 194, 218, 0.38);
    color: #0e7490;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
  .estimate-results-modal .modal-header .btn-close {
    margin: 0 0 auto auto;
    flex-shrink: 0;
  }
  .estimate-results-modal .modal-body {
    padding: 20px 26px 26px 26px;
    background: transparent;
  }
  /* Inside the modal, the results block no longer needs its own card chrome —
     the modal IS the card. Strip the outer .estimator-results padding/border
     so the content sits flush against the modal body. */
  .estimate-results-modal .estimator-results-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  @media (max-width: 767.98px) {
    .estimate-results-modal .modal-dialog {
      margin: 0;
      max-width: 100%;
      max-height: 100vh;
    }
    .estimate-results-modal .modal-content {
      max-height: 100vh;
      border-radius: 0;
    }
    .estimate-results-modal .modal-header { padding: 14px 16px; }
    .estimate-results-modal .modal-body { padding: 14px 16px 18px 16px; }
  }

  /* ===== Nearby Hospitals modal: glassy card to match .estimator-body ===== */
  .nearby-hospitals-modal .modal-dialog {
    /* Anchor the dialog clear of the sticky navbar (~72px) so the header is
       never hidden, and cap height so it doesn't spill off the bottom either.
       modal-dialog-scrollable keeps the header fixed while the hospital list scrolls. */
    max-width: 780px;
    margin-top: calc(var(--fhc-nav-h, 72px) + 20px);
    margin-bottom: 28px;
    max-height: calc(100vh - var(--fhc-nav-h, 72px) - 48px);
  }
  .nearby-hospitals-modal .modal-content {
    max-height: calc(100vh - var(--fhc-nav-h, 72px) - 48px);
    border: none;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
      0 30px 80px rgba(0, 0, 0, 0.18),
      0 12px 40px rgba(15, 23, 42, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.65) inset;
    backdrop-filter: blur(24px) saturate(175%);
    -webkit-backdrop-filter: blur(24px) saturate(175%);
  }
  .nearby-hospitals-modal .modal-header {
    padding: 14px 24px 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  }
  .nearby-hospitals-modal .modal-title {
    font-weight: 800;
    letter-spacing: -0.025em;
    font-size: 1.3rem;
    color: #0f172a;
  }
  .nearby-hospitals-modal .nearby-modal-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, rgba(41, 194, 218, 0.22), rgba(33, 139, 167, 0.14));
    border: 1px solid rgba(41, 194, 218, 0.38);
    color: #0e7490;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
  .nearby-hospitals-modal .modal-header .btn-close {
    margin: 0 0 auto auto;
    flex-shrink: 0;
  }
  .nearby-hospitals-modal .modal-body {
    padding: 20px 26px 26px 26px;
    background: transparent;
  }
  .nearby-hospitals-modal .nearby-modal-hint {
    display: flex;
    align-items: flex-start;
    gap: .25rem;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(219,232,255,.9);
    border-left: 4px solid #2563eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  }
  .nearby-hospitals-modal .nearby-modal-stack-wrap {
    border-radius: 20px;
    padding: 4px 2px 2px 0;
    max-height: min(52vh, 420px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .nearby-hospitals-modal .nearby-modal-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding-right: 8px;
    margin: 0;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
  }
  .nearby-hospitals-modal .nearby-modal-stack::-webkit-scrollbar {
    width: 8px;
  }
  .nearby-hospitals-modal .nearby-modal-stack::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 999px;
  }
  .nearby-hospitals-modal .nearby-modal-stack::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
  }
  .nearby-hospital-card {
    border-radius: 18px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow:
      0 8px 28px rgba(15, 23, 42, 0.07),
      0 0 0 1px rgba(255, 255, 255, 0.85) inset;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
  }
  .nearby-hospital-card:hover {
    transform: translateY(-1px);
    box-shadow:
      0 12px 32px rgba(15, 23, 42, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  }
  .nearby-hospital-card.is-best {
    background: linear-gradient(145deg, rgba(240, 253, 244, 0.95), rgba(220, 252, 231, 0.72));
    box-shadow:
      0 10px 32px rgba(5, 150, 105, 0.12),
      inset 0 0 0 1px rgba(16, 185, 129, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }
  .nearby-hospital-card.is-worst {
    background: linear-gradient(145deg, rgba(254, 242, 242, 0.88), rgba(254, 226, 226, 0.45));
    box-shadow:
      0 8px 24px rgba(220, 38, 38, 0.08),
      inset 0 0 0 1px rgba(252, 165, 165, 0.35);
  }
  .nearby-hospital-card-head {
    margin-bottom: 14px;
  }
  .nearby-hospital-card-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
  }
  .nearby-hospital-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
  }
  .nearby-hospital-card-chips {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .nearby-hospital-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-bottom: 14px;
  }
  .nearby-hospital-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .nearby-hospital-meta-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
  }
  .nearby-hospital-meta span:last-child {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.45;
  }
  .nearby-hospital-card-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }
  .nearby-hospital-card.is-best .nearby-hospital-card-price {
    border-top-color: rgba(16, 185, 129, 0.2);
  }
  .nearby-hospital-price-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
  }
  .nearby-hospital-price-value {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
    line-height: 1.1;
  }
  .nearby-hospital-card.is-best .nearby-hospital-price-value {
    color: #047857;
  }
  .nearby-modal-empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
  }
  .nearby-best-badge {
    display: inline-flex;
    align-items: center;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: .4px;
    text-transform: uppercase;
    line-height: 1.1;
    box-shadow: 0 1px 2px rgba(22,163,74,.25);
  }
  .nearby-worst-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(220,38,38,.1);
    color: #991b1b;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: .4px;
    text-transform: uppercase;
    line-height: 1.1;
    border: 1px solid rgba(220,38,38,.25);
  }

  .modal-backdrop.show {
    --bs-backdrop-bg: rgba(15, 23, 42, 0.22);
    --bs-backdrop-opacity: 1;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  @media (max-width: 575.98px) {
    /* modal-fullscreen-sm-down takes over: let it actually be full-screen. */
    .nearby-hospitals-modal .modal-dialog {
      margin: 0 !important;
      max-height: 100vh;
    }
    .nearby-hospitals-modal .modal-content {
      max-height: 100vh;
      border-radius: 0;
    }
    .nearby-hospitals-modal .modal-header { padding: 14px 16px; }
    .nearby-hospitals-modal .modal-body { padding: 14px 16px 18px 16px; }
    .nearby-hospitals-modal .nearby-modal-icon { width: 36px; height: 36px; }
    .nearby-hospitals-modal .nearby-modal-stack-wrap {
      max-height: min(58vh, 480px);
    }
  }
