/* Forms sandbox — version 1. Loaded only on the Forms page. */

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

.bd-f1 {
  --bd-blue: #2096F4;
  --bd-blue-hi: #63B0F9;
  --bd-green: #038664;
  --bd-green-hi: #57A186;
  --bd-orange: #F79009;
  --bd-orange-hi: #FBAB61;
  --bd-f1-line: #d5d7da;
  --bd-f1-fill: var(--bd-bg-page, #F6F6F7);
  /* Medium rule grey. Darker than the active fill, not the near-black text. */
  --bd-f1-line-on: #d5d7da;
  --bd-f1-mark: 18px;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: paint;
  padding: var(--bd-space-8, 32px) 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-f1--blue {
  --bd-green: var(--bd-blue);
  --bd-green-hi: var(--bd-blue-hi);
}

/* Blue form: Submit uses the V10 Hero CTA dark (#0c0c0d, hover #1b1c21). */
.bd-f1--blue .bd-f1__submit {
  background: #0c0c0d;
}

.bd-f1--blue .bd-f1__submit:hover {
  background: #1b1c21;
}

.bd-f1--blue .bd-f1__submit:focus-visible {
  outline-color: #0c0c0d;
}

.bd-f1 + .bd-f1 {
  padding-top: 0;
}

.bd-f1__card {
  display: flex;
  flex-direction: column;
  gap: var(--bd-space-8, 32px);
  width: 100%;
  max-width: 760px;
  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-f1__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bd-f1__step {
  margin: 0;
  padding: 0;
  border: 0;
  /* UA fieldset uses min-inline-size: min-content. A long legend then
     pushes the card through the right page pad. */
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
}

.bd-f1__legend {
  display: flex;
  align-items: center;
  gap: var(--bd-space-3, 12px);
  float: none;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 0 var(--bd-space-4, 16px);
  font-size: var(--bd-text-base, 16px);
  font-weight: var(--bd-weight-heading, 500);
  font-variation-settings: "wght" var(--bd-weight-heading, 500);
  line-height: 1.3;
  color: var(--bd-text, #000);
}

.bd-f1__req {
  margin-left: 2px;
  color: var(--bd-text, #000);
}

.bd-f1__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--bd-f1-mark, 24px);
  height: var(--bd-f1-mark, 24px);
  border-radius: var(--bd-radius-badge, 3px);
  background: var(--bd-bar-bg, #ededed);
  color: var(--bd-text-2, #252B37);
  font-size: var(--bd-text-sm, 14px);
  font-weight: var(--bd-weight-heading, 500);
  font-variation-settings: "wght" var(--bd-weight-heading, 500);
  line-height: 1;
}

.bd-f1__badge-check {
  display: none;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

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

.bd-f1__step.is-complete .bd-f1__badge {
  background: var(--bd-green, #038664);
  color: var(--bd-on-accent, #fff);
}

.bd-f1__step.is-complete .bd-f1__badge-num {
  display: none;
}

.bd-f1__step.is-complete .bd-f1__badge-check {
  display: block;
}

.bd-f1__hint {
  margin: calc(var(--bd-space-2, 8px) * -1) 0 var(--bd-space-4, 16px);
  padding-left: calc(var(--bd-f1-mark, 24px) + var(--bd-space-3, 12px));
  font-size: var(--bd-text-sm, 14px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--bd-text-2, #252B37);
}

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

.bd-f1__types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bd-space-3, 12px);
}

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

.bd-f1__type,
.bd-f1__sol {
  display: flex;
  min-width: 0;
  background: var(--bd-surface, #fff);
  border: 1px solid var(--bd-f1-line);
  border-radius: var(--bd-radius, 8px);
  color: var(--bd-text, #000);
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.3;
  transition: background var(--bd-dur, 0.3s) var(--bd-ease, ease),
    border-color var(--bd-dur, 0.3s) var(--bd-ease, ease);
}

.bd-f1__type {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bd-space-2, 8px);
  height: 100%;
  padding: var(--bd-space-3, 12px);
}

.bd-f1__type-name {
  display: block;
}

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

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

.bd-f1__sols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--bd-space-3, 12px);
}

.bd-f1__sol {
  align-items: center;
  gap: var(--bd-space-3, 12px);
  min-height: 48px;
  padding: var(--bd-space-3, 12px) var(--bd-space-4, 16px);
}

.bd-f1__choice--dashed .bd-f1__sol {
  border-style: dashed;
}

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

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

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

.bd-f1__choice:hover .bd-f1__type,
.bd-f1__choice:hover .bd-f1__sol {
  background: var(--bd-f1-fill);
}

.bd-f1__choice:has(:checked) .bd-f1__type,
.bd-f1__choice:has(:checked) .bd-f1__sol {
  background: var(--bd-f1-fill);
  border-color: var(--bd-f1-line-on);
  border-style: solid;
}

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

.bd-f1__choice:has(:checked) .bd-f1__tick svg {
  opacity: 1;
}

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

.bd-f1__more {
  display: inline-flex;
  margin: var(--bd-space-4, 16px) 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bd-link, #2563EB);
  font-family: inherit;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.bd-f1__more:hover {
  text-decoration: underline;
}

.bd-f1__more:focus-visible {
  outline: 2px solid var(--bd-link, #2563EB);
  outline-offset: 2px;
}

.bd-f1__extra {
  display: flex;
  flex-direction: column;
  gap: var(--bd-space-2, 8px);
  margin-top: var(--bd-space-4, 16px);
}

.bd-f1__extra[hidden] {
  display: none;
}

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

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

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

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

.bd-f1__field input,
.bd-f1__extra textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: var(--bd-space-3, 12px) var(--bd-space-4, 16px);
  border: 1px solid var(--bd-f1-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-f1__field input {
  min-height: 48px;
}

.bd-f1__extra textarea {
  min-height: 7rem;
  resize: vertical;
}

.bd-f1__field input::placeholder,
.bd-f1__extra textarea::placeholder {
  color: var(--bd-text-2, #252B37);
}

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

.bd-f1__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--bd-space-6, 24px);
  padding-top: var(--bd-space-6, 24px);
  border-top: 1px solid var(--bd-f1-line);
}

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

.bd-f1__send {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--bd-space-2, 8px);
}

.bd-f1__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bd-space-2, 8px);
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--bd-radius, 8px);
  background: var(--bd-green, #038664);
  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-f1__submit svg {
  width: 20px;
  height: 20px;
}

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

.bd-f1__submit:hover {
  background: var(--bd-green-hi, #57A186);
}

.bd-f1__submit:focus-visible {
  outline: 2px solid var(--bd-text, #000);
  outline-offset: 2px;
}

.bd-f1__count {
  margin: 0;
  font-size: var(--bd-text-sm, 14px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--bd-text-2, #252B37);
}

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

  .bd-f1__types,
  .bd-f1__sols,
  .bd-f1__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-f1__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .bd-f1__send {
    align-items: flex-start;
  }
}
