/* Book a demo: a white panel over a faint grid, the way the reference contact form is set. */

.site-frame section.bd {
  --bd-line: #e5e7eb;
  position: relative;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--bd-line);
}

/* The header: icon, title, one line of context, then a hairline */
.bd-head {
  padding: clamp(2.5rem, 6vw, 3.75rem) 24px clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border-bottom: 1px solid var(--bd-line);
}
.bd-icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 1.25rem;
  color: #171717;
}
.bd-head h2 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.bd-head p {
  max-width: 34rem;
  margin: 0.875rem auto 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.5;
  color: #525252;
  text-wrap: balance;
}

/* The grid band: the white form panel runs its full height, grid squares show either side */
.bd-band {
  background-color: #fafafa;
  background-image:
    linear-gradient(#eeeeee 1px, transparent 1px),
    linear-gradient(90deg, #eeeeee 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
}
.bd-panel {
  width: min(100%, 800px);
  margin-inline: auto;
  padding: 1.5rem 24px 2rem;
  background: #ffffff;
  border-inline: 1px solid var(--bd-line);
}

.bd-form {
  display: grid;
  gap: 1.5rem;
}
.bd-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #171717;
}
.bd-field label span {
  color: #ef4444;
}
.bd-field input,
.bd-field textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d5d9e0;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #171717;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.bd-field input {
  height: 2.5rem;
  padding-block: 0;
}
.bd-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.bd-field input::placeholder,
.bd-field textarea::placeholder {
  color: #9ca3af;
}
.bd-field input:focus,
.bd-field textarea:focus {
  outline: 0;
  border-color: #a3a3a3;
  box-shadow: 0 0 0 4px #f0f0f0;
}
.bd-field [aria-invalid="true"] {
  border-color: #ef4444;
}

/* A field only a bot would fill in */
.bd-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.bd-btn {
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  background: #f3f4f6;
  color: #6b7280;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: not-allowed;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.bd-btn:not(:disabled) {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
  cursor: pointer;
}
.bd-btn:not(:disabled):hover {
  background: #262626;
}
.bd-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}
.bd-status {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #6b7280;
}
.bd-status[data-tone="error"] {
  color: #b91c1c;
}
.bd-done {
  margin-top: 0.5rem;
  padding: 1.25rem;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  background: #f0fdf4;
  color: #166534;
}
.bd-done b {
  display: block;
  font-size: 1.0625rem;
}
.bd-done p {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
}
