.estimate-demo {
  --demo-navy: #10283b;
  --demo-cream: #fbf8ee;
  --demo-yellow: #f5ce4d;
  --demo-line: #d7dfdc;
  color: var(--demo-navy);
}

.estimate-demo * { box-sizing: border-box; }

.demo-intro { max-width: 680px; margin-bottom: 2rem; }
.estimate-demo .demo-intro h2 { margin: 0 0 .7rem; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.estimate-demo :is(.demo-eyebrow, .demo-kicker) {
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.demo-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1rem; }
.demo-panel {
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--demo-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px #10283b0f;
}

.demo-panel h3 { margin: 0 0 1rem; font-size: 1.3rem; }
.demo-cases fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.demo-cases legend { margin-bottom: .7rem; font-weight: 700; }

.demo-case {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .75rem;
  padding: 1rem;
  border: 1px solid var(--demo-line);
  border-radius: 12px;
  cursor: pointer;
}

.demo-case:has(input:checked) {
  padding: calc(1rem - 1px);
  border: 2px solid var(--demo-navy);
  background: var(--demo-cream);
}

.demo-case input { margin-top: .3rem; accent-color: var(--demo-navy); }
.demo-case :is(strong, small) { display: block; }
.demo-case small { margin: .25rem 0 .6rem; color: #52666d; line-height: 1.4; }
.demo-badge {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 99px;
  background: #eaf0ee;
  font-size: .75rem;
  font-weight: 750;
}
.demo-badge-due { background: #faeaa5; }

.estimate-demo :is(.demo-button, .demo-approve, .demo-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--demo-navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.demo-button { width: 100%; margin-top: .35rem; }
.demo-reset {
  min-height: 44px;
  margin-top: .25rem;
  padding: .45rem 0;
  border: 0;
  background: transparent;
  color: var(--demo-navy);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.estimate-demo :is(button, a, input):focus-visible { outline: 3px solid #bc7900; outline-offset: 3px; }

.demo-empty, .demo-draft, .demo-noscript {
  padding: 1rem;
  border-radius: 12px;
  background: var(--demo-cream);
}
.demo-empty { min-height: 170px; }
.demo-outcome h4 { margin: 0 0 .5rem; font-size: 1.3rem; }
.estimate-demo .demo-result-label { display: inline-block; margin: 0 0 .65rem; }
.demo-assignment {
  display: grid;
  gap: .25rem;
  margin: 1rem 0;
  padding: .75rem 0;
  border-block: 1px solid var(--demo-line);
}
.demo-assignment span { color: #52666d; font-size: .82rem; }
.estimate-demo .demo-approval { margin-bottom: 0; font-weight: 700; }
.estimate-demo .demo-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.demo-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 3vw, 2.25rem);
  border-radius: 18px;
  background: var(--demo-navy);
  color: #fff;
}
.demo-offer h3 { margin: 0 0 .5rem; font-size: 1.5rem; }
.demo-offer p { margin: 0; }
.demo-offer .demo-link { flex: none; background: var(--demo-yellow); color: var(--demo-navy); }
.demo-offer .demo-link:hover { background: #ffe68c; }
.estimate-demo [hidden] { display: none; }

@media (max-width: 740px) {
  .demo-layout { grid-template-columns: 1fr; }
  .demo-offer { flex-direction: column; align-items: flex-start; }
}
