.hero-copy > p.hero-lead {
  font-weight: 650;
}

.demo-trigger,
.demo-form .button {
  font-family: inherit;
  cursor: pointer;
}

.demo-trigger[hidden],
.demo-form[hidden],
.demo-confirmation[hidden] {
  display: none;
}

.hero-screens .phone-screen {
  top: 125px;
}

.demo-dialog {
  width: min(560px, calc(100vw - 20px));
}

.demo-dialog .gallery-body {
  max-height: calc(100dvh - 120px);
}

.demo-dialog p:first-child {
  margin-top: 0;
}

.demo-form > p:first-child {
  margin-bottom: 14px;
}

.demo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.demo-fields label {
  display: block;
  font-weight: 650;
  line-height: 1.4;
}

.demo-fields input,
.demo-fields textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid #9fb3c6;
  border-radius: 5px;
  background: #fafafa;
  color: inherit;
  font: inherit;
  font-weight: 400;
}

.demo-fields textarea {
  min-height: 80px;
  resize: vertical;
}

.demo-message {
  grid-column: 1 / -1;
}

.demo-trap {
  display: none;
}

.demo-privacy,
.demo-status {
  font-size: .9375rem;
}

.demo-privacy {
  margin: 12px 0;
}

.demo-privacy a,
.demo-confirmation a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-status:not(:empty) {
  margin-top: 12px;
}

.demo-form .button:disabled {
  cursor: wait;
  opacity: .7;
}

@media (max-width: 760px) {
  .hero-screens .phone-screen {
    top: 90px;
  }
}

@media (max-width: 460px) {
  .demo-fields {
    grid-template-columns: 1fr;
  }
}
