body.bf-standalone {
  margin: 0;
  background: var(--bf-page-bg, #F0F0F0);
}

.bf {
  --bf-primary: #311D11;
  --bf-accent: #F16B04;
  --bf-bg: #F0F0F0;
  --bf-ink: #1f1a17;
  --bf-muted: #5c534c;
  /* 60% keeps field and chip borders above 3:1 (WCAG 1.4.11). */
  --bf-line: color-mix(in srgb, var(--bf-primary) 60%, transparent);
  --bf-heading-font: Georgia, "Times New Roman", serif;
  box-sizing: border-box;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  color: var(--bf-ink);
  font-family: var(--bf-body-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}
@supports not (color: color-mix(in srgb, red, blue)) {
  .bf { --bf-line: rgba(49, 29, 17, .6); }
}
.bf *, .bf *::before, .bf *::after { box-sizing: inherit; }

.bf-logo { display: block; max-width: 220px; height: auto; margin: 0 auto 1.25rem; }
.bf-headline {
  font-family: var(--bf-heading-font);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: var(--bf-ink);
}
.bf-intro { color: var(--bf-muted); margin: 0 auto 2rem; max-width: 36rem; }

.bf-cups { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.bf-cup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  padding: 1.25rem .75rem;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--bf-ink);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.bf-cup:hover { background: color-mix(in srgb, var(--bf-primary) 6%, transparent); }
.bf-cup:focus-visible { outline: 3px solid var(--bf-primary); outline-offset: 3px; }
.bf-cup[aria-pressed="true"] { border-color: var(--bf-primary); background: #fff; }
.bf-cup-icon { display: block; width: 56px; height: 84px; color: var(--bf-accent); }
.bf-cup-icon svg { display: block; width: 100%; height: 100%; }
.bf-cup-label { font-weight: 700; }
.bf-cup-sub { color: var(--bf-muted); font-size: .9rem; }

.bf-js .bf-panel:not(.is-open) { display: none; }
.bf-panel.is-open { animation: bf-in .25s ease-out; }
@keyframes bf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bf-panel h2 { font-family: var(--bf-heading-font); font-weight: 400; font-size: 1.5rem; margin: .5rem 0; }
.bf-social-heading { font-family: var(--bf-heading-font); font-weight: 400; font-size: 1.15rem; margin: 1rem 0 .5rem; }

.bf-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .75rem 1.75rem;
  margin: .5rem 0 1rem;
  border-radius: 999px;
  background: var(--bf-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.bf-google:focus-visible, .bf-submit:focus-visible { outline: 3px solid var(--bf-primary); outline-offset: 3px; }
.bf-social { display: flex; justify-content: center; gap: 1.5rem; }
.bf-social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--bf-primary); }
.bf-social svg { width: 32px; height: 32px; }

.bf-form { text-align: left; margin-top: 1rem; }
.bf-chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0 0 1.25rem; }
.bf-chips legend { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.bf-chip { position: relative; }
.bf-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bf-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1.5px solid var(--bf-line);
  border-radius: 999px;
  background: #fff;
}
.bf-chip input:checked + span { background: var(--bf-primary); border-color: var(--bf-primary); color: #fff; }
.bf-chip input:focus-visible + span { outline: 3px solid var(--bf-primary); outline-offset: 2px; }

.bf-field { display: block; margin-bottom: 1rem; }
.bf-field > span { display: block; font-weight: 700; margin-bottom: .35rem; }
.bf-field input, .bf-field textarea, .bf-field select {
  width: 100%;
  min-height: 44px;
  padding: .65rem .75rem;
  border: 1.5px solid var(--bf-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.bf-field textarea { resize: vertical; }
.bf-details { border: 0; padding: 0; margin: 0 0 .25rem; }
.bf-details legend { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.bf-details .bf-field > span { font-weight: 400; }
.bf-contact[hidden] { display: none; }
.bf-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .bf-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 480px) { .bf-row.bf-row-2 { grid-template-columns: repeat(2, 1fr); } }
.bf-field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; }
.bf-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.25rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23311D11' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .85rem center;
}

.bf-photo-field { margin-bottom: 1.25rem; }
.bf-label { display: block; font-weight: 700; margin-bottom: .5rem; }
.bf-photo-pick { position: relative; display: inline-flex; }
.bf-photo-pick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.bf-photo-pick span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1.25rem;
  border: 1.5px dashed var(--bf-line);
  border-radius: 999px;
  background: #fff;
}
.bf-photo-pick input:focus-visible + span { outline: 3px solid var(--bf-primary); outline-offset: 2px; }
.bf-photo-list { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; padding: 0; margin: 0 0 .75rem; }
.bf-photo-list[hidden], .bf-photo-pick[hidden] { display: none; }
.bf-photo-list li { display: flex; flex-direction: column; align-items: center; }
.bf-photo-list img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--bf-line); }
.bf-photo-remove {
  min-height: 44px;
  padding: .5rem 1rem;
  border: 0;
  background: none;
  color: var(--bf-primary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.bf-photo-remove:focus-visible { outline: 3px solid var(--bf-primary); outline-offset: 2px; }

.bf-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin-bottom: 1rem; }
.bf-check input { width: 22px; height: 22px; accent-color: var(--bf-primary); }
.bf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bf-error { color: #a0251b; font-weight: 600; }
.bf-error:empty { display: none; }
.bf-error:focus { outline: none; }
.bf-noscript { color: #a0251b; font-weight: 600; }
.bf-submit {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--bf-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.bf-submit:disabled { opacity: .6; cursor: progress; }
.bf-confirm { padding: 1rem 0; }
.bf-confirm:focus { outline: none; }
.bf-public { color: var(--bf-primary); }
.bf-admin-notice { padding: .75rem 1rem; border: 2px dashed #a0251b; text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .bf-panel.is-open { animation: none; }
  .bf-cup { transition: none; }
}
