.bsfc-form,
.bsfc-form * {
  box-sizing: border-box;
}

.bsfc-form {
  --bsfc-accent: #52606d;
  --bsfc-focus: #2563eb;
  --bsfc-secondary-accent: var(--bsfc-focus);
  --bsfc-button: #364152;
  --bsfc-text: #303740;
  --bsfc-border: #cbd2d9;
  --bsfc-surface: #fff;
  --bsfc-error: #b42318;
  --bsfc-success: #4bb587;
  --bsfc-radius: 8px;
  --bsfc-button-radius: 8px;
  color: var(--bsfc-text);
  font: inherit;
  width: 100%;
}

.bsfc-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bsfc-section {
  border: 0;
  margin: 0 0 2rem;
  min-width: 0;
  padding: 0;
}

.bsfc-section__title {
  color: inherit;
  font: inherit;
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .75rem;
  padding: 0;
}

.bsfc-section__description {
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.bsfc-section__description > :last-child,
.bsfc-help > :last-child,
.bsfc-notice > div > :last-child,
.bsfc-feedback > div > :last-child {
  margin-bottom: 0;
}

.bsfc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.bsfc-width--full { grid-column: span 12; }
.bsfc-width--three-quarter { grid-column: span 9; }
.bsfc-width--half { grid-column: span 6; }
.bsfc-width--third { grid-column: span 4; }
.bsfc-width--quarter { grid-column: span 3; }

.bsfc-field {
  min-width: 0;
}

.bsfc-field.is-datetime-open {
  position: relative;
  z-index: 100;
}

.bsfc-floating {
  position: relative;
}

.bsfc-control {
  appearance: none;
  background: var(--bsfc-surface);
  border: 1px solid var(--bsfc-border);
  border-radius: var(--bsfc-radius);
  color: var(--bsfc-text);
  display: block;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  min-height: 3.75rem;
  outline: none;
  padding: 1.5rem 1rem .55rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  width: 100%;
}

textarea.bsfc-control {
  min-height: 8rem;
  resize: vertical;
}

.bsfc-floating label {
  color: color-mix(in srgb, var(--bsfc-text) 72%, transparent);
  font-size: 1rem;
  left: 1rem;
  line-height: 1.2;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  text-overflow: ellipsis;
  top: 1.28rem;
  transform-origin: left top;
  transition: color .2s, transform .2s, top .2s;
  white-space: nowrap;
}

.bsfc-floating .bsfc-control:focus + label,
.bsfc-floating .bsfc-control:not(:placeholder-shown) + label,
.bsfc-floating select.bsfc-control + label,
.bsfc-floating input[type='date'] + label {
  color: var(--bsfc-accent);
  font-size: .76rem;
  top: .65rem;
}

.bsfc-control:focus {
  border-color: var(--bsfc-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsfc-focus) 30%, transparent);
}

.bsfc-control::placeholder {
  opacity: 0;
  transition: opacity .2s;
}

.bsfc-control:focus::placeholder {
  color: color-mix(in srgb, var(--bsfc-text) 58%, transparent);
  opacity: 1;
}

.bsfc-floating--select::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: '';
  height: .55rem;
  pointer-events: none;
  position: absolute;
  right: 1.15rem;
  top: 1.35rem;
  transform: rotate(45deg);
  width: .55rem;
}

.bsfc-datetime {
  position: relative;
  z-index: 0;
}

.bsfc-datetime.is-open {
  z-index: 100;
}

.bsfc-datetime__input {
  height: 1px;
  left: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 1px;
}

.bsfc-form.bsfc-form .bsfc-datetime__control {
  align-items: center;
  background: var(--bsfc-surface);
  border: 1px solid var(--bsfc-border);
  border-radius: min(var(--bsfc-radius), 16px);
  color: color-mix(in srgb, var(--bsfc-text) 67%, transparent);
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 3rem;
  min-height: 3.75rem;
  margin: 0 !important;
  max-width: none !important;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  width: 100% !important;
}

.bsfc-datetime__control:hover {
  border-color: color-mix(in srgb, var(--bsfc-accent) 55%, var(--bsfc-border));
}

.bsfc-datetime__control:focus-within,
.bsfc-datetime.is-open .bsfc-datetime__control {
  border-color: var(--bsfc-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsfc-focus) 30%, transparent);
}

.bsfc-form.bsfc-form button.bsfc-datetime__trigger[data-bsfc-datetime-trigger] {
  align-items: center !important;
  align-self: stretch;
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 min(var(--bsfc-radius), 16px) min(var(--bsfc-radius), 16px) 0 !important;
  color: color-mix(in srgb, var(--bsfc-text) 67%, transparent) !important;
  cursor: pointer;
  display: flex !important;
  font: inherit !important;
  height: auto !important;
  justify-content: center !important;
  margin: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  outline: none;
  padding: 0 .9rem !important;
  width: 3rem !important;
}

.bsfc-form.bsfc-form button.bsfc-datetime__trigger:hover {
  background: color-mix(in srgb, var(--bsfc-accent) 5%, transparent) !important;
  color: var(--bsfc-accent) !important;
}

.bsfc-form.bsfc-form button.bsfc-datetime__trigger:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bsfc-focus) 60%, transparent);
}

.bsfc-form.bsfc-form .bsfc-datetime__content {
  align-self: center;
  display: flex !important;
  flex-direction: column !important;
  gap: .26rem !important;
  justify-content: center;
  line-height: 1.2 !important;
  margin: 0 !important;
  min-width: 0;
  padding: .58rem 0 .46rem 1rem;
  text-align: left !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-transform: none !important;
}

.bsfc-form.bsfc-form .bsfc-datetime__label {
  color: var(--bsfc-accent);
  display: block !important;
  font-size: .76rem !important;
  font-weight: 400;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
  margin: 0 !important;
  max-width: 100%;
  overflow: hidden;
  position: static !important;
  text-overflow: ellipsis;
  text-decoration: none !important;
  text-transform: none !important;
  transform: none !important;
  white-space: nowrap;
}

.bsfc-form.bsfc-form input.bsfc-datetime__value {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--bsfc-text) !important;
  display: block !important;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-style: normal !important;
  font-weight: 400;
  height: auto !important;
  letter-spacing: 0 !important;
  line-height: 1.28 !important;
  margin: 0 !important;
  min-height: 0 !important;
  min-width: 0;
  outline: none !important;
  overflow: hidden;
  padding: 0 !important;
  text-overflow: ellipsis;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
  width: 100% !important;
}

.bsfc-form.bsfc-form input.bsfc-datetime__value::placeholder {
  color: color-mix(in srgb, var(--bsfc-text) 62%, transparent);
  opacity: 1;
}

.bsfc-form.bsfc-form .bsfc-datetime__chevron {
  align-self: center !important;
  background: currentColor !important;
  display: block !important;
  height: .55rem !important;
  justify-self: end !important;
  margin: 0 !important;
  position: static !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  width: .95rem !important;
  -webkit-mask: url("icons/Angle-Up.svg") center / contain no-repeat !important;
  mask: url("icons/Angle-Up.svg") center / contain no-repeat !important;
}

.bsfc-datetime__time svg {
  display: block;
  height: 100%;
  width: 100%;
}

.bsfc-datetime__time svg path,
.bsfc-datetime__time svg circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.bsfc-datetime__chevron {
  background: currentColor;
  height: .55rem;
  justify-self: end;
  -webkit-mask: url("icons/Angle-Up.svg") center / contain no-repeat;
  mask: url("icons/Angle-Up.svg") center / contain no-repeat;
  transform: rotate(180deg);
  transition: color .2s, transform .2s;
  width: .95rem;
}

.bsfc-datetime.is-open .bsfc-datetime__chevron {
  color: var(--bsfc-accent);
  transform: none;
}

.bsfc-datetime__panel {
  background: var(--bsfc-surface);
  border: 1px solid color-mix(in srgb, var(--bsfc-border) 84%, transparent);
  border-radius: calc(var(--bsfc-radius) + 2px);
  box-shadow: 0 18px 48px rgb(31 26 20 / .14), 0 3px 12px rgb(31 26 20 / .06);
  color: var(--bsfc-text);
  left: 0;
  margin-top: .55rem;
  padding: .8rem;
  position: absolute;
  width: min(21rem, calc(100vw - 32px));
  z-index: 3;
}

.bsfc-datetime.is-drop-up .bsfc-datetime__panel {
  bottom: calc(100% + .55rem);
  margin-top: 0;
  top: auto;
}

.bsfc-datetime__header {
  align-items: center;
  display: grid;
  gap: .5rem;
  grid-template-columns: 2.1rem 1fr 2.1rem;
  margin-bottom: .4rem;
}

.bsfc-datetime__header strong {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
}

.bsfc-datetime__nav {
  align-items: center;
  appearance: none;
  background: color-mix(in srgb, var(--bsfc-border) 16%, var(--bsfc-surface));
  border: 0;
  border-radius: 50%;
  color: var(--bsfc-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  height: 2.1rem;
  justify-content: center;
  line-height: 1;
  padding: .66rem;
  transition: background-color .18s, color .18s, transform .18s;
  width: 2.1rem;
}

.bsfc-angle {
  display: block;
  flex: 0 0 .92rem;
  height: .92rem;
  width: .92rem;
}

.bsfc-angle path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.bsfc-datetime__nav:hover {
  background: color-mix(in srgb, var(--bsfc-accent) 9%, var(--bsfc-surface));
  color: var(--bsfc-accent);
  transform: scale(1.04);
}

.bsfc-datetime__weekdays,
.bsfc-datetime__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bsfc-datetime__days {
  row-gap: .12rem;
}

.bsfc-datetime__weekdays {
  color: color-mix(in srgb, var(--bsfc-text) 52%, transparent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: .25rem;
  text-transform: uppercase;
}

.bsfc-datetime__weekdays span {
  padding: .3rem 0;
  text-align: center;
}

.bsfc-datetime__day {
  align-items: center;
  appearance: none;
  height: 2rem;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--bsfc-text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: .88rem;
  justify-content: center;
  justify-self: center;
  margin: 0;
  min-width: 0;
  padding: 0;
  position: relative;
  transition: background-color .15s, color .15s, transform .15s;
  width: 2rem;
}

.bsfc-datetime__day:hover:not(:disabled),
.bsfc-datetime__day:focus-visible {
  background: color-mix(in srgb, var(--bsfc-accent) 10%, var(--bsfc-surface));
  color: var(--bsfc-accent);
  outline: none;
  transform: scale(1.04);
}

.bsfc-datetime__day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bsfc-accent) 58%, transparent);
  color: var(--bsfc-accent);
  font-weight: 700;
}

.bsfc-datetime__day.is-selected,
.bsfc-datetime__day.is-selected:hover,
.bsfc-datetime__day.is-selected:focus-visible {
  background: var(--bsfc-accent);
  color: #fff;
}

.bsfc-datetime__day:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsfc-focus) 50%, transparent);
}

.bsfc-datetime__day--empty {
  pointer-events: none;
  visibility: hidden;
}

.bsfc-datetime__day:disabled {
  color: color-mix(in srgb, var(--bsfc-text) 20%, transparent);
  cursor: not-allowed;
}

.bsfc-datetime__time {
  align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--bsfc-border) 68%, transparent);
  display: grid;
  gap: .6rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: .65rem;
  padding: .7rem .1rem 0;
}

.bsfc-datetime__time-label {
  align-items: center;
  display: flex;
  font-size: .82rem;
  font-weight: 650;
  gap: .45rem;
}

.bsfc-datetime__time svg {
  color: var(--bsfc-accent);
  height: 1.15rem;
  width: 1.15rem;
}

.bsfc-datetime__time-controls {
  align-items: center;
  display: flex;
  gap: .25rem;
}

.bsfc-datetime__time-select {
  position: relative;
}

.bsfc-datetime__time-select::after {
  background: currentColor;
  content: '';
  height: .34rem;
  -webkit-mask: url("icons/Angle-Up.svg") center / contain no-repeat;
  mask: url("icons/Angle-Up.svg") center / contain no-repeat;
  pointer-events: none;
  position: absolute;
  right: .55rem;
  top: calc(50% - .17rem);
  transform: rotate(180deg);
  width: .6rem;
}

.bsfc-datetime__time select {
  appearance: none;
  background: color-mix(in srgb, var(--bsfc-border) 10%, var(--bsfc-surface));
  border: 1px solid color-mix(in srgb, var(--bsfc-border) 82%, transparent);
  border-radius: 999px;
  color: var(--bsfc-text);
  font: inherit;
  font-size: .88rem;
  font-weight: 650;
  min-height: 2.25rem;
  outline: none;
  padding: .3rem 1.45rem .3rem .65rem;
  width: 3.55rem;
}

.bsfc-datetime__time-separator {
  color: color-mix(in srgb, var(--bsfc-text) 55%, transparent);
  font-weight: 700;
}

.bsfc-datetime__time select:focus-visible {
  border-color: var(--bsfc-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsfc-focus) 28%, transparent);
}

.bsfc-datetime__footer {
  align-items: center;
  display: flex;
  gap: .35rem;
  justify-content: flex-end;
  margin-top: .55rem;
}

.bsfc-datetime--date .bsfc-datetime__footer {
  border-top: 1px solid color-mix(in srgb, var(--bsfc-border) 68%, transparent);
  padding-top: .6rem;
}

.bsfc-datetime__footer button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  min-height: 2.2rem;
  padding: .48rem .7rem;
}

.bsfc-datetime__text-button {
  background: transparent;
  color: color-mix(in srgb, var(--bsfc-text) 72%, transparent);
}

.bsfc-datetime__text-button:hover {
  background: color-mix(in srgb, var(--bsfc-border) 16%, var(--bsfc-surface));
  color: var(--bsfc-text);
}

.bsfc-datetime__apply {
  background: var(--bsfc-button);
  color: #fff;
  margin-left: auto;
  padding-left: .95rem !important;
  padding-right: .95rem !important;
}

.bsfc-datetime__footer button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bsfc-focus) 42%, transparent);
  outline-offset: 2px;
}

.bsfc-datetime__footer button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.bsfc-choice-group {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.bsfc-visually-hidden {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.bsfc-choice-group legend {
  display: block;
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 .65rem;
}

.bsfc-choices {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
}

.bsfc-choice-group--stacked .bsfc-choices {
  align-items: flex-start;
  flex-direction: column;
  flex-wrap: nowrap;
}

.bsfc-choice {
  align-items: flex-start;
  cursor: pointer;
  display: inline-flex;
  gap: .65rem;
  line-height: 1.4;
  position: relative;
}

.bsfc-choice input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.bsfc-choice__indicator {
  align-items: center;
  background: var(--bsfc-surface);
  border: 1px solid var(--bsfc-border);
  border-radius: 5px;
  display: inline-flex;
  flex: 0 0 1.35rem;
  height: 1.35rem;
  justify-content: center;
  margin-top: .05rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  width: 1.35rem;
}

.bsfc-field--radio .bsfc-choice__indicator {
  border-radius: 50%;
}

.bsfc-choice input:focus-visible + .bsfc-choice__indicator {
  border-color: var(--bsfc-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsfc-focus) 30%, transparent);
}

.bsfc-choice input:checked + .bsfc-choice__indicator {
  background: var(--bsfc-secondary-accent);
  border-color: var(--bsfc-secondary-accent);
}

.bsfc-choice input:checked + .bsfc-choice__indicator::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: '';
  height: .62rem;
  transform: translateY(-1px) rotate(45deg);
  width: .3rem;
}

.bsfc-field--radio .bsfc-choice input:checked + .bsfc-choice__indicator::after {
  background: #fff;
  border: 0;
  border-radius: 50%;
  height: .5rem;
  transform: none;
  width: .5rem;
}

.bsfc-choice--single {
  display: flex;
}

.bsfc-file {
  display: block;
  min-width: 0;
}

.bsfc-file__label {
  display: block;
  font-weight: 650;
  line-height: 1.35;
  margin-bottom: .7rem;
}

.bsfc-file__input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.bsfc-file__dropzone {
  align-items: center;
  background: var(--bsfc-surface);
  border: 1px dashed var(--bsfc-border);
  border-radius: var(--bsfc-radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  justify-content: center;
  min-height: 9.5rem;
  padding: 1.6rem;
  text-align: center;
  transition: background-color .2s, border-color .2s, box-shadow .2s, opacity .2s;
}

.bsfc-file__dropzone:hover,
.bsfc-file__dropzone.is-dragging {
  background: color-mix(in srgb, var(--bsfc-accent) 5%, var(--bsfc-surface));
  border-color: var(--bsfc-accent);
}

.bsfc-file__input:focus-visible + .bsfc-file__dropzone {
  border-color: var(--bsfc-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsfc-focus) 30%, transparent);
}

.bsfc-file__dropzone.is-disabled {
  cursor: default;
  opacity: .48;
  pointer-events: none;
}

.bsfc-file__upload-icon {
  color: color-mix(in srgb, var(--bsfc-text) 72%, transparent);
  display: block;
  height: 2.25rem;
  width: 2.25rem;
}

.bsfc-file__upload-icon svg {
  display: block;
  height: 100%;
  overflow: visible;
  width: 100%;
}

.bsfc-file__upload-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.bsfc-file__copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.bsfc-file__prompt {
  color: var(--bsfc-text);
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
  transition: color .2s;
}

.bsfc-file__dropzone:hover .bsfc-file__prompt,
.bsfc-file__dropzone.is-dragging .bsfc-file__prompt {
  color: var(--bsfc-accent);
}

.bsfc-file__list {
  display: grid;
  gap: .65rem;
  margin-top: .75rem;
}

.bsfc-file__list:empty {
  display: none;
}

.bsfc-file__item {
  align-items: center;
  background: var(--bsfc-surface);
  border: 1px solid var(--bsfc-border);
  border-radius: var(--bsfc-radius);
  display: flex;
  gap: .85rem;
  min-width: 0;
  padding: .7rem .8rem;
}

.bsfc-file__item.is-invalid {
  border-color: var(--bsfc-error);
}

.bsfc-file__item.is-invalid .bsfc-file__size {
  color: var(--bsfc-error);
}

.bsfc-file__document {
  align-items: center;
  background: color-mix(in srgb, var(--bsfc-border) 20%, var(--bsfc-surface));
  border: 1px solid color-mix(in srgb, var(--bsfc-border) 72%, transparent);
  border-radius: calc(var(--bsfc-radius) * .7);
  color: var(--bsfc-text);
  display: flex;
  flex: 0 0 2.75rem;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.bsfc-file__document svg {
  display: block;
  height: 1.35rem;
  width: 1.35rem;
}

.bsfc-file__document path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.bsfc-file__details {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.bsfc-file__name {
  color: var(--bsfc-text);
  font-size: .92rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsfc-file__size {
  color: color-mix(in srgb, var(--bsfc-text) 62%, transparent);
  font-size: .78rem;
  line-height: 1.35;
}

.bsfc-file__remove {
  align-items: center;
  appearance: none;
  background: color-mix(in srgb, var(--bsfc-accent) 6%, var(--bsfc-surface));
  border: 1px solid color-mix(in srgb, var(--bsfc-accent) 16%, transparent);
  border-radius: 50%;
  color: var(--bsfc-accent);
  cursor: pointer;
  display: flex;
  flex: 0 0 2.25rem;
  height: 2.25rem;
  justify-content: center;
  padding: 0;
  transition: background-color .18s, border-color .18s, transform .18s;
  width: 2.25rem;
}

.bsfc-file__remove:hover {
  background: color-mix(in srgb, var(--bsfc-accent) 11%, var(--bsfc-surface));
  border-color: color-mix(in srgb, var(--bsfc-accent) 35%, transparent);
  transform: rotate(5deg) scale(1.04);
}

.bsfc-file__remove:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bsfc-focus) 42%, transparent);
  outline-offset: 2px;
}

.bsfc-file__remove svg {
  display: block;
  height: 1rem;
  width: 1rem;
}

.bsfc-file__remove path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bsfc-file__meta,
.bsfc-help {
  color: color-mix(in srgb, var(--bsfc-text) 70%, transparent);
  display: block;
  line-height: 1.45;
}

.bsfc-file__meta {
  font-size: .8rem;
}

.bsfc-help {
  font-size: .86rem;
  margin-top: .45rem;
}

.bsfc-field__error {
  align-items: center;
  color: var(--bsfc-error);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
  margin: .42rem .15rem 0;
}

.bsfc-field__error:not([hidden]) {
  display: flex;
  gap: .4rem;
}

.bsfc-field__error::before {
  background: currentColor;
  border-radius: 50%;
  content: '';
  flex: 0 0 .35rem;
  height: .35rem;
  width: .35rem;
}

.bsfc-field.is-invalid .bsfc-control,
.bsfc-field.is-invalid .bsfc-choice__indicator,
.bsfc-field.is-invalid .bsfc-file__dropzone,
.bsfc-field.is-invalid .bsfc-datetime__control {
  border-color: var(--bsfc-error);
}

.bsfc-field.is-invalid .bsfc-control {
  background: color-mix(in srgb, var(--bsfc-error) 2.5%, var(--bsfc-surface));
}

.bsfc-required {
  color: var(--bsfc-accent);
}

.bsfc-notice,
.bsfc-feedback,
.bsfc-error-summary {
  border-left: 4px solid var(--bsfc-accent);
  border-radius: var(--bsfc-radius);
  line-height: 1.5;
  padding: 1rem 1.15rem;
}

.bsfc-notice {
  background: color-mix(in srgb, var(--bsfc-accent) 7%, var(--bsfc-surface));
}

.bsfc-notice--success,
.bsfc-feedback--success {
  background: #ecfdf3;
  border-color: var(--bsfc-success);
}

.bsfc-feedback__icon {
  display: none;
}

.bsfc-feedback--success {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2.75rem) 1rem;
  text-align: center;
}

.bsfc-feedback--success .bsfc-feedback__icon {
  align-items: center;
  background: color-mix(in srgb, var(--bsfc-success) 7%, var(--bsfc-surface));
  border: 3px solid color-mix(in srgb, var(--bsfc-success) 18%, transparent);
  border-radius: 50%;
  color: var(--bsfc-success);
  display: flex;
  height: clamp(4.25rem, 8vw, 5.25rem);
  justify-content: center;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  width: clamp(4.25rem, 8vw, 5.25rem);
}

.bsfc-feedback--success .bsfc-feedback__icon svg {
  display: block;
  height: 42%;
  overflow: visible;
  width: 42%;
}

.bsfc-feedback--success .bsfc-feedback__icon path {
  fill: none;
  stroke: currentColor;
  stroke-dasharray: 45;
  stroke-dashoffset: 45;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.bsfc-feedback--success:not([hidden]) .bsfc-feedback__icon {
  animation: bsfc-success-pop .42s cubic-bezier(.2, .85, .25, 1) both;
}

.bsfc-feedback--success:not([hidden]) .bsfc-feedback__icon path {
  animation: bsfc-success-check .45s .18s ease-out forwards;
}

.bsfc-feedback--success .bsfc-feedback__content {
  max-width: 44rem;
}

.bsfc-feedback.bsfc-feedback--success h3 {
  color: var(--bsfc-text);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.15;
  margin: 0 0 clamp(.75rem, 2vw, 1.1rem);
}

.bsfc-feedback--success [data-bsfc-feedback-text] {
  color: color-mix(in srgb, var(--bsfc-text) 82%, transparent);
  font-size: clamp(.95rem, 1.5vw, 1.075rem);
  line-height: 1.5;
}

.bsfc-lightbox .bsfc-form.is-success {
  display: grid;
  min-height: min(320px, calc(100dvh - 190px));
  place-items: center;
}

.bsfc-notice--warning {
  background: #fffaeb;
  border-color: #dc6803;
}

.bsfc-notice h3,
.bsfc-feedback h3 {
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}

.bsfc-feedback {
  margin-bottom: 1.5rem;
}

.bsfc-feedback.bsfc-feedback--success {
  margin-bottom: 0;
}

@keyframes bsfc-success-pop {
  from { opacity: 0; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bsfc-success-check {
  to { stroke-dashoffset: 0; }
}

.bsfc-feedback--error,
.bsfc-error-summary {
  background: #fef3f2;
  border-color: var(--bsfc-error);
}

.bsfc-error-summary {
  background: color-mix(in srgb, var(--bsfc-error) 5%, var(--bsfc-surface));
  border: 1px solid color-mix(in srgb, var(--bsfc-error) 28%, var(--bsfc-border));
  border-radius: var(--bsfc-radius);
  margin-bottom: 1.5rem;
  padding: .9rem 1rem .9rem 3.25rem;
  position: relative;
}

.bsfc-error-summary::before {
  align-items: center;
  background: color-mix(in srgb, var(--bsfc-error) 12%, transparent);
  border-radius: 50%;
  color: var(--bsfc-error);
  content: '!';
  display: flex;
  font-size: .82rem;
  font-weight: 750;
  height: 1.65rem;
  justify-content: center;
  left: 1rem;
  position: absolute;
  top: .9rem;
  width: 1.65rem;
}

.bsfc-error-summary > strong {
  color: var(--bsfc-error);
  display: block;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.4;
}

.bsfc-error-summary ul {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  list-style: none;
  margin: .35rem 0 0;
  padding: 0;
}

.bsfc-error-summary li {
  margin: 0;
}

.bsfc-error-summary a,
.bsfc-error-summary__message {
  align-items: baseline;
  color: color-mix(in srgb, var(--bsfc-text) 82%, var(--bsfc-error));
  display: inline-flex;
  flex-wrap: wrap;
  font-size: .88rem;
  gap: .3rem;
  line-height: 1.45;
  text-decoration: none;
}

.bsfc-error-summary a::after {
  color: var(--bsfc-error);
  content: '→';
  font-size: .9em;
  transition: transform .18s;
}

.bsfc-error-summary a:hover,
.bsfc-error-summary a:focus-visible {
  color: var(--bsfc-error);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bsfc-error-summary a:hover::after,
.bsfc-error-summary a:focus-visible::after {
  transform: translateX(2px);
}

.bsfc-error-summary__field {
  font-weight: 650;
}

.bsfc-error-summary__separator {
  color: color-mix(in srgb, var(--bsfc-text) 45%, transparent);
}

.bsfc-error-summary:focus {
  outline: none;
}

.bsfc-error-summary:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bsfc-error) 14%, transparent);
  outline: 1px solid color-mix(in srgb, var(--bsfc-error) 35%, transparent);
  outline-offset: 2px;
}

.bsfc-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.bsfc-button {
  align-items: center;
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--bsfc-button-radius);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: .625rem;
  justify-content: center;
  line-height: 1;
  min-height: 3.25rem;
  padding: .9rem 1.5rem;
  transition: background-color .2s, color .2s, opacity .2s, transform .2s;
}

.bsfc-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bsfc-focus) 50%, transparent);
  outline-offset: 3px;
}

.bsfc-button--primary {
  background: var(--bsfc-button);
  color: #fff;
}

.bsfc-button--secondary {
  background: transparent;
  border-color: var(--bsfc-border);
  color: var(--bsfc-text);
}

.bsfc-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.bsfc-button:disabled {
  cursor: wait;
  opacity: .65;
  pointer-events: none;
}

.bsfc-spinner {
  animation: bsfc-spin .75s linear infinite;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  border-top-color: #fff;
  display: none;
  flex: 0 0 1rem;
  height: 1rem;
  width: 1rem;
}

.bsfc-form.is-loading .bsfc-button .bsfc-spinner {
  display: block;
}

.bsfc-editor-error {
  border-left: 4px solid #d63638;
  padding: .75rem 1rem;
}

.bsfc-form .bsfc-field--hidden,
.bsfc-form [hidden] {
  display: none !important;
}

.bsfc-form .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@keyframes bsfc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
  .bsfc-width--three-quarter,
  .bsfc-width--half,
  .bsfc-width--third,
  .bsfc-width--quarter {
    grid-column: span 12;
  }

  .bsfc-file__dropzone {
    min-height: 8rem;
    padding: 1.25rem 1rem;
  }

  .bsfc-file__item {
    gap: .7rem;
    padding: .65rem;
  }

  .bsfc-file__document {
    flex-basis: 2.5rem;
    height: 2.5rem;
    width: 2.5rem;
  }

  .bsfc-datetime__panel {
    border-radius: 18px;
    bottom: max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 22px 60px rgb(31 26 20 / .28), 0 0 0 100vmax rgb(24 21 18 / .22);
    left: 10px;
    margin: 0;
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    padding: .8rem;
    position: fixed;
    right: 10px;
    top: auto;
    width: auto;
    z-index: 100000;
  }

  .bsfc-datetime__panel::before {
    background: color-mix(in srgb, var(--bsfc-text) 20%, transparent);
    border-radius: 999px;
    content: '';
    display: block;
    height: 3px;
    margin: -.2rem auto .55rem;
    width: 2.25rem;
  }

  .bsfc-datetime__day {
    height: 2.55rem;
    width: 2.55rem;
  }

  .bsfc-datetime.is-drop-up .bsfc-datetime__panel {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .bsfc-datetime__panel {
    padding: .7rem;
  }

  .bsfc-datetime__day {
    font-size: .8rem;
  }

  .bsfc-datetime__footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsfc-form *,
  .bsfc-form *::before,
  .bsfc-form *::after {
    animation-delay: 0s !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
