/* Forms sandbox — version 3 (contact form). Loaded only on the Forms page. */

.bd-f3,
.bd-f3 *,
.bd-f3 *::before,
.bd-f3 *::after {
  box-sizing: border-box;
}

.bd-f3 {
  --bd-green: #038664;
  --bd-green-hi: #57A186;
  --bd-f3-line: #d5d7da;
  --bd-f3-fill: var(--bd-bg-page, #F6F6F7);
  --bd-f3-req: #d92d20;
  --bd-f3-mark: 18px;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: paint;
  padding: 0 0 64px;
  font-family: var(--bd-font, InterVariable, sans-serif);
  font-feature-settings: "liga" 1, "calt" 1, "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
  color: var(--bd-text, #000);
}

.bd-f3__card {
  display: flex;
  flex-direction: column;
  gap: var(--bd-space-8, 32px);
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding: var(--bd-space-8, 32px);
  background: var(--bd-surface, #fff);
  border-radius: var(--bd-radius, 8px);
  box-shadow: var(--bd-shadow-panel);
}

.bd-f3__title {
  margin: 0;
  font-size: 32px;
  font-weight: var(--bd-weight-heading, 500);
  font-variation-settings: "wght" var(--bd-weight-heading, 500);
  line-height: 1.2;
  color: var(--bd-text, #000);
}

.bd-f3__lead {
  margin: var(--bd-space-3, 12px) 0 0;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bd-text, #000);
}

.bd-f3__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--bd-space-5, 20px) var(--bd-space-4, 16px);
}

.bd-f3__field {
  display: flex;
  flex-direction: column;
  gap: var(--bd-space-2, 8px);
  min-width: 0;
}

.bd-f3__field--full {
  grid-column: 1 / -1;
}

.bd-f3__field label {
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--bd-text, #000);
}

.bd-f3__req {
  color: var(--bd-f3-req);
}

.bd-f3__field input,
.bd-f3__field textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: var(--bd-space-3, 12px) var(--bd-space-4, 16px);
  border: 1px solid var(--bd-f3-line);
  border-radius: var(--bd-radius, 8px);
  background: var(--bd-surface, #fff);
  color: var(--bd-text, #000);
  font-family: inherit;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.4;
}

.bd-f3__field input {
  min-height: 48px;
}

.bd-f3__field textarea {
  min-height: 8rem;
  resize: vertical;
}

.bd-f3__field input:focus-visible,
.bd-f3__field textarea:focus-visible {
  outline: 2px solid var(--bd-green, #038664);
  outline-offset: 2px;
}

.bd-f3__group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
}

.bd-f3__legend {
  float: none;
  width: 100%;
  padding: 0;
  margin: 0 0 var(--bd-space-3, 12px);
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--bd-text, #000);
}

.bd-f3__control {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Organization type: [radio | icon label], four across. */
.bd-f3__types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bd-space-3, 12px);
}

.bd-f3__choice {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.bd-f3__type {
  display: flex;
  align-items: center;
  gap: var(--bd-space-3, 12px);
  min-width: 0;
  min-height: 56px;
  padding: 0 var(--bd-space-3, 12px);
  background: var(--bd-surface, #fff);
  border: 1px solid var(--bd-f3-line);
  border-radius: var(--bd-radius, 8px);
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--bd-text, #000);
  transition: background var(--bd-dur, 0.3s) var(--bd-ease, ease);
}

.bd-f3__radio {
  position: relative;
  flex: 0 0 auto;
  width: var(--bd-f3-mark, 18px);
  height: var(--bd-f3-mark, 18px);
  border: 1px solid var(--bd-f3-line);
  border-radius: 50%;
  background: var(--bd-surface, #fff);
}

.bd-f3__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bd-green, #038664);
  transform: scale(0);
  transition: transform var(--bd-dur, 0.3s) var(--bd-ease, ease);
}

.bd-f3__rule {
  flex: 0 0 1px;
  align-self: stretch;
  margin-block: var(--bd-space-3, 12px);
  background: var(--bd-f3-line);
}

.bd-f3__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--bd-text-2, #252B37);
}

.bd-f3__icon :is(path, circle, line, rect, ellipse, polyline, polygon) {
  vector-effect: non-scaling-stroke;
}

.bd-f3__type-name {
  min-width: 0;
  margin-left: calc(var(--bd-space-1, 4px) * -1);
}

.bd-f3__choice:hover .bd-f3__type {
  background: var(--bd-f3-fill);
}

.bd-f3__choice:has(:checked) .bd-f3__type {
  background: var(--bd-f3-fill);
}

.bd-f3__choice:has(:checked) .bd-f3__radio {
  border-color: var(--bd-green, #038664);
}

.bd-f3__choice:has(:checked) .bd-f3__radio::after {
  transform: scale(1);
}

.bd-f3__choice:has(:focus-visible) .bd-f3__type {
  outline: 2px solid var(--bd-green, #038664);
  outline-offset: 2px;
}

/* Interested in: same tile as the org type, checkbox instead of radio. */
.bd-f3__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bd-space-3, 12px);
}

.bd-f3__tick {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--bd-f3-mark, 18px);
  height: var(--bd-f3-mark, 18px);
  border: 1px solid var(--bd-f3-line);
  border-radius: var(--bd-radius-badge, 3px);
  background: var(--bd-surface, #fff);
  color: var(--bd-on-accent, #fff);
}

.bd-f3__tick svg {
  width: 12px;
  height: 12px;
  opacity: 0;
}

.bd-f3__tick svg :is(path, circle, line, rect, ellipse, polyline, polygon) {
  vector-effect: non-scaling-stroke;
}

.bd-f3__choice:has(:checked) .bd-f3__tick {
  background: var(--bd-green, #038664);
  border-color: var(--bd-green, #038664);
}

.bd-f3__choice:has(:checked) .bd-f3__tick svg {
  opacity: 1;
}

.bd-f3__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bd-space-6, 24px);
  padding-top: var(--bd-space-6, 24px);
  border-top: 1px solid var(--bd-f3-line);
}

.bd-f3__legal {
  margin: 0;
  max-width: 48rem;
  font-size: var(--bd-text-sm, 14px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bd-text-2, #252B37);
}

.bd-f3__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--bd-radius, 8px);
  background: #0c0c0d;
  color: var(--bd-on-accent, #fff);
  font-family: inherit;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background var(--bd-dur, 0.3s) var(--bd-ease, ease);
}

.bd-f3__submit:hover {
  background: #1b1c21;
}

.bd-f3__submit:focus-visible {
  outline: 2px solid #0c0c0d;
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .bd-f3__types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-f3__title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .bd-f3__card {
    padding: var(--bd-space-5, 20px);
  }

  .bd-f3__fields,
  .bd-f3__types,
  .bd-f3__checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-f3__title {
    font-size: 24px;
  }
}
