/* Interactive KES Treatment & Insurance Cost Estimator — calm, airy editorial layout */
.est-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .85fr);
  gap: clamp(18px, 2.2vw, 28px);
  align-items: start;
}
.est-builder {
  padding: clamp(22px, 2.6vw, 34px);
}
.est-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.est-group-head h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--ink);
}
.est-group-head span {
  font-size: 12.5px;
  color: var(--soft);
}
.est-list {
  display: grid;
  gap: 2px;
}
.est-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition: background .16s;
}
.est-row:hover {
  background: #f5f6ff;
}
.est-row[aria-pressed="true"] {
  background: #eef1ff;
}
.est-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.est-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(101, 120, 238, .35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
  color: transparent;
  transition: background .16s, border-color .16s, color .16s;
}
.est-row[aria-pressed="true"] .est-check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--btn-ink, #fff);
}
.est-row strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.est-row small {
  display: block;
  font-size: 12.5px;
  color: var(--soft);
  margin-top: 1px;
}
.est-row em {
  font-style: normal;
  font-family: "Inter Tight", sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--soft);
  white-space: nowrap;
}
.est-row[aria-pressed="true"] em {
  color: var(--accent-deep);
  font-weight: 600;
}

.est-pay-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(101, 120, 238, .14);
}
.est-pay-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.est-insurers {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.est-insurers[hidden] { display: none; }
.est-ins-btn {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #f5f6ff;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(101, 120, 238, .2) inset;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.est-ins-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--btn-ink, #fff);
  box-shadow: none;
}

.est-summary {
  padding: clamp(26px, 3vw, 38px);
  background: #eef0fe;
  box-shadow: 0 0 0 1px rgba(101, 120, 238, .15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.est-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: .02em;
}
.est-total {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--ink);
  white-space: nowrap;
}
.est-meta {
  font-size: 13.5px;
  color: var(--soft);
}
.est-chosen {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(101, 120, 238, .18);
}
.est-chosen li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(101, 120, 238, .14);
  font-size: 13.5px;
}
.est-chosen li span { color: var(--ink); font-weight: 500; }
.est-chosen li b { font-weight: 500; color: var(--soft); white-space: nowrap; }
.est-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--soft);
}
.est-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}
.est-actions .btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
}
.est-actions .btn svg { width: 14px; height: 14px; }
.est-actions .text-link {
  font-size: 14px;
}

@media (max-width: 960px) {
  .est-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .est-total { white-space: normal; }
}
