.bf {
  --bf-ink: #3f322b;
  --bf-muted: #6f5f53;
  --bf-line: rgba(111, 95, 83, 0.22);
  --bf-gold: #e8a317;
  --bf-orange: #ff7600;
  --bf-green: #1a3413;
  --bf-green-2: #24481c;
  --bf-card: rgba(255, 250, 246, 0.88);
  width: min(76em, calc(100% - 2em));
  margin: 0 auto 3em;
  position: relative;
  z-index: 1;
}

.bf-intro {
  text-align: left;
  margin: 0 0 1.8em;
}

.bf-kicker,
.bf-title {
  text-align: center;
}

.bf-kicker {
  color: rgb(253, 144, 0);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: Lora, serif;
  font-size: 0.72em;
  font-weight: 600;
  margin: 0 0 0.4em;
}

.bf-title {
  font-family: Lora, serif;
  font-size: clamp(1.25em, 3.5vw, 2.2em);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.4em;
  background-image: linear-gradient(rgb(255, 205, 0), rgb(255, 118, 0) 76%, rgba(192, 168, 159, 0.4));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bf-copy {
  color: var(--bf-ink);
  font-family: "PT Serif", Lora, serif;
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0 0 0.7em;
}

.bf-list {
  margin: 0 0 1em;
  padding: 0 0 0 1.1em;
  color: var(--bf-ink);
  font-family: "PT Serif", Lora, serif;
  font-size: 0.95em;
  line-height: 1.45;
}

.bf-list li + li {
  margin-top: 0.25em;
}

.bf-books {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0.7em;
  margin: 0.45em 0 1.35em;
  padding: 0;
}

.bf-book {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.bf-book img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 10px 16px rgba(63, 50, 43, 0.18);
}

.bf-status {
  margin: 1.1em 0 0;
  color: var(--bf-ink);
  font-family: Lora, serif;
  font-size: 0.95em;
}

.bf-status strong {
  font-weight: 700;
}

.bf-card,
.bf-done {
  background: var(--bf-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1em;
  box-shadow:
    0 18px 40px rgba(95, 62, 42, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  padding: 1.7em 1.8em 1.8em;
  backdrop-filter: blur(8px);
}

.bf-card__title {
  font-family: Lora, serif;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--bf-ink);
  margin: 0 0 1.2em;
  text-align: center;
}

.bf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0em 1.2em;
}

.bf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}

.bf-field--wide {
  grid-column: 1 / -1;
}

.bf-label {
  font-family: Lora, serif;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--bf-ink);
}

.bf-req {
  color: var(--bf-orange);
  font-weight: 700;
}

.bf-input,
.bf-textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--bf-line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 0.45em;
  color: var(--bf-ink);
  font-family: "Fira Sans", sans-serif;
  font-size: 0.92em;
  line-height: 1.3;
  padding: 0.7em 0.8em;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.bf-input[type="date"] {
  min-height: 2.75em;
  color-scheme: light;
  position: relative;
}

.bf-input[type="date"].is-empty {
  color: rgba(111, 95, 83, 0.55);
}

.bf-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  margin-left: 0.25em;
  padding: 0.15em;
  border-radius: 0.25em;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.bf-input[type="date"]:hover::-webkit-calendar-picker-indicator,
.bf-input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  background-color: rgba(255, 118, 0, 0.1);
}

.bf-textarea {
  min-height: 6.2em;
  resize: vertical;
}

.bf-input:hover,
.bf-textarea:hover {
  border-color: rgba(255, 118, 0, 0.45);
}

.bf-input:focus,
.bf-textarea:focus {
  outline: none;
  border-color: var(--bf-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 118, 0, 0.16);
}

.bf-input.is-invalid,
.bf-textarea.is-invalid {
  border-color: rgba(196, 72, 28, 0.65);
  background: rgba(255, 248, 245, 0.95);
}

.bf-input.is-invalid:focus,
.bf-textarea.is-invalid:focus {
  border-color: rgba(196, 72, 28, 0.85);
  box-shadow: 0 0 0 3px rgba(196, 72, 28, 0.14);
}

.bf-input::placeholder,
.bf-textarea::placeholder {
  color: rgba(111, 95, 83, 0.55);
}

.bf-hint {
  color: rgba(111, 95, 83, 0.75);
  font-size: 0.72em;
  line-height: 1.3;
}

.bf-field-error {
  display: block;
  min-height: 1.25em;
  color: #8a3a18;
  font-size: 0.72em;
  line-height: 1.25;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bf-field-error.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bf-captcha {
  align-items: flex-start;
  gap: 0.45em;
}

.bf-captcha > div[data-netlify-recaptcha],
.bf-captcha .g-recaptcha {
  transform-origin: left top;
}

.bf-captcha iframe {
  max-width: 100%;
}

.bf-submit {
  width: 100%;
  margin-top: 0.4em;
  border: 0;
  cursor: pointer;
  border-radius: 0.5em;
  min-height: 2.8em;
  padding: 0.7em 1.2em;
  background: linear-gradient(180deg, #2d5a24 0%, var(--bf-green) 100%);
  color: #fff8e8;
  font-family: Lora, serif;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(26, 52, 19, 0.22);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.bf-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #3a7030 0%, var(--bf-green-2) 100%);
}

.bf-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.bf-submit:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  filter: grayscale(0.25);
  box-shadow: none;
  background: linear-gradient(180deg, #6f7d6a 0%, #556154 100%);
}

.bf-submit:disabled.is-submitting {
  cursor: wait;
  opacity: 0.7;
  filter: none;
  background: linear-gradient(180deg, #2d5a24 0%, var(--bf-green) 100%);
}

.bf-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bf-note {
  margin: 0.9em 0 0;
  text-align: center;
  color: var(--bf-muted);
  font-size: 0.78em;
  line-height: 1.4;
}

.bf-note a {
  color: var(--bf-orange);
}

.bf-error {
  display: none;
  margin: 0.9em 0 0;
  padding: 0.7em 0.85em;
  border-radius: 0.45em;
  background: rgba(196, 72, 28, 0.08);
  color: #8a3a18;
  font-size: 0.82em;
  line-height: 1.4;
}

.bf-error.is-visible {
  display: block;
}

.bf-done {
  display: none;
  text-align: center;
  padding: 2.4em 1.6em;
}

.bf-done.is-visible {
  display: block;
}

.bf-form.is-hidden,
.bf-form[hidden] {
  display: none;
}

.bf-done__mark {
  width: 3.2em;
  height: 3.2em;
  margin: 0 auto 0.8em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(26, 52, 19, 0.08);
  color: var(--bf-green);
  font-size: 1.4em;
}

.bf-done__title {
  font-family: Lora, serif;
  font-size: 1.45em;
  line-height: 1.25;
  color: var(--bf-ink);
  margin: 0 0 0.5em;
}

.bf-done__text {
  color: var(--bf-muted);
  font-family: "PT Serif", serif;
  font-size: 1em;
  line-height: 1.5;
  margin: 0 0 1.3em;
}

.bf-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6em;
  padding: 0.45em 1.1em;
  border-radius: 0.45em;
  background: rgba(255, 255, 255, 0.7);
  color: var(--bf-ink);
  text-decoration: none;
  font-family: Lora, serif;
  font-weight: 600;
  border: 1px solid var(--bf-line);
}

.bf-back:hover {
  background: #fff;
}

.bf-header-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
}

.bf-header-link .x_hare_txt {
  min-height: 0;
  padding-top: 0.7em;
  padding-bottom: 0.4em;
  font-size: 0.68em;
}

.bf-header-link .x_school_logo {
  height: 3.4em;
}

.bf-header-link .x_hctop--2 {
  padding-bottom: 0.4em;
}

.bf-header-link .x_2 {
  margin-bottom: 0.4em;
}

.bf-header-link .x_2_1 {
  font-size: 1.7em;
}

@media (min-width: 880px) {
  .bf {
    display: grid;
    grid-template-columns: minmax(18em, 0.85fr) minmax(28em, 1.25fr);
    gap: 2.5em 3.5em;
    align-items: start;
    width: min(78em, calc(100% - 4em));
    margin-top: 0.4em;
  }

  .bf-intro {
    margin: 0.6em 0 0;
  }

  .bf-kicker,
  .bf-title {
    text-align: left;
  }

  .bf-form,
  .bf-done {
    position: sticky;
    top: 1.4em;
  }

  .bf-card,
  .bf-done {
    padding: 2em 2.1em 2.1em;
  }

  .bf-header-link .x_school_logo {
    height: 4.4em;
  }

  .bf-header-link .x_2_1 {
    font-size: 2.1em;
  }
}

@media (max-width: 700px) {
  .bf-grid {
    grid-template-columns: 1fr;
  }

  .bf-card,
  .bf-done {
    padding: 1.2em 1em 1.3em;
  }
}
