/* The Vault demo request form. Field names, order and behaviour are unchanged. */
.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.demo-intro {
  display: grid;
  gap: 0.9rem;
  grid-column: 1;
}
.demo-intro h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.9rem);
}
.demo-process {
  grid-column: 1;
  grid-row: 2;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.demo-process summary {
  padding-block: 0.4rem;
  font-weight: 600;
  cursor: pointer;
}
.demo-process > * + * {
  margin-top: 0.9rem;
}
.demo-steps {
  display: grid;
  gap: 0.9rem;
  padding-left: 1.3rem;
}
.demo-steps strong,
.demo-steps span {
  display: block;
}
.demo-steps span {
  color: var(--muted);
}
.demo-form {
  display: grid;
  gap: 1rem;
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.demo-fields {
  display: grid;
  gap: 0.45rem;
}
.demo-fields label {
  margin-top: 0.7rem;
  font-weight: 600;
}
.demo-fields label:first-child {
  margin-top: 0;
}
.demo-fields input,
.demo-fields select,
.demo-fields textarea {
  background: var(--bg);
}
.demo-fields .small {
  margin: 0;
}
.demo-form .button {
  justify-self: start;
}
.demo-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}
[data-demo-status] {
  overflow-wrap: anywhere;
}
[data-demo-status]:empty {
  display: none;
}
[data-demo-status][data-error="true"] {
  padding-left: 0.8rem;
  border-left: 3px solid var(--text);
  font-weight: 600;
}
#demo-title:focus-visible,
[data-demo-status]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.demo-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 760px) {
  .demo-section {
    grid-template-columns: 1fr;
  }
  .demo-intro,
  .demo-form,
  .demo-process {
    grid-column: auto;
    grid-row: auto;
  }
  .demo-form .button {
    justify-self: stretch;
  }
}
