.demo-hero .hero-grid { align-items: stretch; }

.demo-request {
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
}

.demo-request h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  margin: 0 0 18px;
}

.demo-fields {
  display: grid;
  gap: 15px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.demo-field {
  display: grid;
  gap: 5px;
}

.demo-field label {
  font-size: 14px;
  font-weight: 650;
}

.demo-field input,
.demo-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #81908f;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.demo-field input:focus,
.demo-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.demo-field textarea {
  resize: vertical;
}

.demo-fields .button {
  justify-self: start;
  cursor: pointer;
}

.demo-fields:disabled .button {
  cursor: wait;
}

.demo-request-status {
  margin: 0;
  overflow-wrap: anywhere;
}

.demo-request-status:not(:empty) {
  margin-top: 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  background: #f1f8f7;
}

.demo-request-status[data-state="error"] {
  border-left-color: #9b312c;
  background: #fbf2f2;
  color: #762622;
}

.demo-fallback {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
