.demo-review-shell {
  max-width: 560px;
}

.demo-review-card {
  background: #fff;
  border: 1px solid var(--guest-line);
  border-radius: 23px;
  padding: clamp(18px, 5vw, 30px);
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
}

.demo-review-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e8f0fe;
  color: #174ea6;
  font-size: .8rem;
  font-weight: 700;
}

.demo-review-header h1 {
  margin-bottom: 4px;
  font-size: clamp(1.65rem, 6vw, 2.1rem);
  line-height: 1.3;
}

.demo-review-business {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.demo-review-note {
  padding: 11px 13px;
  border: 1px solid #d9e6fb;
  border-radius: 10px;
  background: #f3f7fe;
  color: #29486f;
  font-size: .87rem;
}

.demo-review-card fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.demo-review-card legend {
  padding: 0;
  font-size: .91rem;
  font-weight: 700;
}

.demo-review-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 18px;
}

.demo-review-rating {
  position: relative;
  cursor: pointer;
}

/* Keep the native radio operable while the star is its visible control. */
.demo-review-rating input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.demo-review-rating span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #6b7280;
  background: #fff;
  border: 1px solid #d5d9e0;
  border-radius: 10px;
  font: 24px/1 system-ui, sans-serif;
}

.demo-review-rating input:checked + span,
.demo-review-rating:has(~ .demo-review-rating input:checked) span {
  color: #925200;
  background: #fff3d9;
  border-color: #d3a53c;
}

.demo-review-rating input:focus-visible + span {
  outline: 3px solid #215cb8;
  outline-offset: 2px;
}

.demo-review-card textarea {
  display: block;
  width: 100%;
  margin: 6px 0 14px;
  padding: 10px 12px;
  resize: vertical;
  background: #fff;
  border: 1px solid #cdd2ca;
  border-radius: 10px;
  color: inherit;
  font: inherit;
}

.demo-review-submit {
  width: 100%;
  background: #174ea6;
  color: #fff;
}

.demo-review-submit:hover:not(:disabled) {
  background: #123d81;
}

.demo-review-done {
  padding: 12px 14px;
  border-radius: 10px;
  background: #e9f5ec;
  color: #174d30;
  font-size: 1.1rem;
}

.demo-review-back {
  justify-self: start;
}
