.bmfs,
.bmfs * {
  box-sizing: border-box;
}

.bmfs {
  --bmfs-primary: #223554;
  --bmfs-accent: #e8ad13;
  --bmfs-ink: #24324a;
  --bmfs-muted: #78808d;
  --bmfs-line: #deded9;
  --bmfs-paper: #fffefa;
  --bmfs-soft: #f6f3ed;
  color: var(--bmfs-ink);
  font-family: inherit;
  line-height: 1.5;
  width: 100%;
}

.bmfs button,
.bmfs input {
  font: inherit;
}

.bmfs-hero {
  align-items: center;
  background: var(--bmfs-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: clamp(48px, 8vw, 88px) 24px;
  text-align: center;
}

.bmfs-hero__badge {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid color-mix(in srgb, var(--bmfs-accent) 50%, transparent);
  border-radius: 999px;
  color: #e7e4b6;
  font-size: 13px;
  margin-bottom: 20px;
  padding: 5px 14px;
}

.bmfs-hero h1 {
  color: inherit;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.bmfs-hero p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  margin: 22px auto 0;
  max-width: 670px;
}

.bmfs-shell {
  background: var(--bmfs-paper);
  margin: 0 auto;
  max-width: 1180px;
  padding: 44px clamp(18px, 4vw, 46px) 74px;
}

.bmfs-progress {
  align-items: center;
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0 auto 54px;
  max-width: 650px;
  padding: 0;
}

.bmfs-progress li {
  align-items: center;
  color: #8f928f;
  display: flex;
  font-size: 14px;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}

.bmfs-progress li:not(:last-child)::after {
  background: #d8d3ca;
  content: '';
  display: block;
  height: 1px;
  margin: 0 18px;
  width: clamp(34px, 7vw, 74px);
}

.bmfs-progress li.is-active,
.bmfs-progress li.is-complete {
  color: var(--bmfs-ink);
}

.bmfs-progress li.is-complete:not(:last-child)::after {
  background: #9aa05d;
}

.bmfs-progress span {
  align-items: center;
  background: #d9d4ca;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
}

.bmfs-progress .is-active span {
  background: var(--bmfs-primary);
}

.bmfs-progress .is-complete span {
  background: #9aa05d;
}

.bmfs-step[hidden],
.bmfs-success[hidden] {
  display: none !important;
}

.bmfs-step {
  animation: bmfs-fade 180ms ease-out;
  scroll-margin-top: 24px;
}

.bmfs-step h2,
.bmfs-success h2 {
  color: var(--bmfs-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 30px;
}

.bmfs-step h2:focus {
  outline: none;
}

.bmfs-step__heading {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.bmfs-step__heading h2 {
  margin: 0;
}

.bmfs-selection-status {
  background: var(--bmfs-soft);
  border-radius: 9px;
  color: #70747b;
  min-width: 145px;
  padding: 11px 15px;
  position: relative;
  text-align: center;
}

.bmfs-selection-status strong {
  color: var(--bmfs-primary);
  font-size: 22px;
}

[data-bmfs-limit-message] {
  color: #a33b2f;
  display: block;
  font-size: 12px;
  font-weight: 700;
  min-height: 18px;
}

[data-bmfs-limit-message].is-pulsing {
  animation: bmfs-pulse 350ms ease-out;
}

.bmfs-group {
  margin: 0 0 38px;
}

.bmfs-group h3,
.bmfs-review-grid h3 {
  border-bottom: 1px solid var(--bmfs-line);
  color: var(--bmfs-ink);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
}

.bmfs-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bmfs-card {
  appearance: none;
  background: #fff;
  border: 1px solid var(--bmfs-line);
  border-radius: 11px;
  color: var(--bmfs-ink);
  cursor: pointer;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 6px 6px 12px;
  position: relative;
  text-align: center;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  width: 100%;
}

.bmfs-card:hover {
  border-color: color-mix(in srgb, var(--bmfs-primary) 45%, #fff);
  box-shadow: 0 8px 22px rgba(34, 53, 84, 0.1);
  transform: translateY(-2px);
}

.bmfs-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bmfs-accent) 65%, #fff);
  outline-offset: 2px;
}

.bmfs-card.is-selected {
  border-color: var(--bmfs-primary);
  box-shadow: 0 0 0 2px var(--bmfs-primary);
}

.bmfs-card__swatch,
.bmfs-review-item__swatch {
  background-color: var(--bmfs-swatch, #ded8c9);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 3px, rgba(0, 0, 0, 0.035) 3px 5px);
  display: block;
  overflow: hidden;
}

.bmfs-card__swatch {
  aspect-ratio: 1.75 / 1;
  border-radius: 7px 7px 3px 3px;
  width: 100%;
}

.bmfs-card__swatch img,
.bmfs-review-item__swatch img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bmfs-card__content {
  display: block;
  min-height: 52px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px 3px 0;
}

.bmfs-card__content strong,
.bmfs-card__content small {
  display: block;
}

.bmfs-card__content strong {
  font-size: 14px;
  line-height: 1.25;
}

.bmfs-card__content small {
  color: #969ba4;
  font-size: 11px;
  line-height: 1.3;
  margin-top: 3px;
}

.bmfs-card__check {
  align-items: center;
  background: var(--bmfs-primary);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 12px;
  height: 25px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  transform: scale(0.7);
  transition: opacity 120ms ease, transform 120ms ease;
  width: 25px;
}

.bmfs-card.is-selected .bmfs-card__check {
  opacity: 1;
  transform: scale(1);
}

.bmfs-actions {
  display: flex;
  gap: 12px;
  margin-top: 42px;
}

.bmfs-actions--end {
  justify-content: flex-end;
}

.bmfs-actions--split {
  justify-content: space-between;
}

.bmfs-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  transition: box-shadow 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.bmfs-button:hover:not(:disabled) {
  box-shadow: 0 8px 18px rgba(34, 53, 84, 0.14);
  transform: translateY(-1px);
}

.bmfs-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bmfs-accent) 65%, #fff);
  outline-offset: 2px;
}

.bmfs-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.bmfs-button--primary {
  background: var(--bmfs-accent);
  color: #1f2e48;
}

.bmfs-button--secondary {
  background: #fff;
  border-color: var(--bmfs-line);
  color: var(--bmfs-ink);
}

.bmfs-address-form {
  margin: 0 auto;
  max-width: 760px;
}

.bmfs-form-grid {
  display: grid;
  gap: 19px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmfs-field--full {
  grid-column: 1 / -1;
}

.bmfs-field label {
  color: var(--bmfs-ink);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.bmfs-optional {
  color: var(--bmfs-muted);
  font-size: 10px;
  font-weight: 400;
  margin-left: 6px;
}

.bmfs-field input {
  background: #fff;
  border: 1px solid #d5d4cf;
  border-radius: 7px;
  box-shadow: none;
  color: var(--bmfs-ink);
  min-height: 48px;
  padding: 10px 13px;
  width: 100%;
}

.bmfs-field input:focus {
  border-color: var(--bmfs-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bmfs-primary) 13%, transparent);
  outline: none;
}

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

.bmfs-consent {
  align-items: flex-start;
  color: var(--bmfs-ink);
  display: flex;
  font-size: 14px;
  gap: 10px;
  margin: 22px auto 0;
  max-width: 760px;
}

.bmfs-consent input {
  flex: 0 0 auto;
  height: 18px;
  margin: 2px 0 0;
  width: 18px;
}

.bmfs-consent a {
  color: var(--bmfs-primary);
  text-decoration: underline;
}

.bmfs-consent span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bmfs-turnstile {
  margin: 22px auto 0;
  max-width: 760px;
  min-height: 65px;
}

.bmfs-privacy {
  color: var(--bmfs-muted);
  font-size: 13px;
  margin: 22px 0 0;
  text-align: center;
}

.bmfs-review-grid {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.bmfs-review-samples {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmfs-review-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--bmfs-line);
  border-radius: 9px;
  display: flex;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 7px;
}

.bmfs-review-item__swatch {
  border-radius: 6px;
  flex: 0 0 78px;
  height: 55px;
}

.bmfs-review-item strong,
.bmfs-review-item small {
  display: block;
}

.bmfs-review-item strong {
  font-size: 14px;
}

.bmfs-review-item small {
  color: var(--bmfs-muted);
  font-size: 11px;
  margin-top: 2px;
}

.bmfs-review-address {
  background: var(--bmfs-soft);
  border-radius: 10px;
  color: var(--bmfs-ink);
  font-style: normal;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  padding: 19px;
}

.bmfs-review-address span {
  display: block;
}

.bmfs-total {
  background: #fff;
  border: 1px solid var(--bmfs-line);
  border-radius: 10px;
  padding: 18px;
}

.bmfs-total > div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.bmfs-total strong {
  color: #31813a;
}

.bmfs-total .bmfs-total__final {
  border-top: 1px solid var(--bmfs-line);
  font-size: 17px;
  font-weight: 700;
  margin-top: 8px;
  padding-top: 13px;
}

.bmfs-submit-error,
.bmfs-notice--error {
  background: #fff0ed;
  border: 1px solid #e3aaa1;
  border-radius: 7px;
  color: #8d2f25;
  margin-top: 24px;
  padding: 12px 15px;
}

.bmfs-success {
  margin: 15px auto;
  max-width: 620px;
  padding: 30px 0 50px;
  text-align: center;
}

.bmfs-success:focus {
  outline: none;
}

.bmfs-success__icon {
  align-items: center;
  background: #9aa05d;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 32px;
  height: 70px;
  justify-content: center;
  margin: 0 auto 22px;
  width: 70px;
}

.bmfs-success h2 {
  margin-bottom: 14px;
}

.bmfs-reference {
  color: var(--bmfs-muted);
  font-weight: 700;
}

.bmfs-empty {
  background: var(--bmfs-soft);
  border-radius: 8px;
  padding: 18px;
}

@keyframes bmfs-fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bmfs-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@media (max-width: 980px) {
  .bmfs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bmfs-shell {
    padding-bottom: 48px;
    padding-top: 30px;
  }

  .bmfs-progress {
    align-items: flex-start;
    margin-bottom: 38px;
  }

  .bmfs-progress li {
    flex: 1;
    flex-direction: column;
    font-size: 11px;
    gap: 5px;
    position: relative;
    text-align: center;
    white-space: normal;
  }

  .bmfs-progress li:not(:last-child)::after {
    left: calc(50% + 22px);
    margin: 0;
    position: absolute;
    top: 17px;
    width: calc(100% - 44px);
  }

  .bmfs-step__heading {
    align-items: flex-start;
  }

  .bmfs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bmfs-review-grid,
  .bmfs-form-grid {
    grid-template-columns: 1fr;
  }

  .bmfs-field--full {
    grid-column: auto;
  }
}

@media (max-width: 500px) {
  .bmfs-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bmfs-hero p {
    font-size: 15px;
  }

  .bmfs-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bmfs-step h2,
  .bmfs-success h2 {
    font-size: 28px;
  }

  .bmfs-step__heading {
    display: block;
  }

  .bmfs-selection-status {
    margin-top: 16px;
    width: 100%;
  }

  .bmfs-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bmfs-actions,
  .bmfs-actions--split,
  .bmfs-actions--end {
    flex-direction: column-reverse;
  }

  .bmfs-button {
    min-height: 52px;
    width: 100%;
  }

  .bmfs-review-samples {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bmfs-step,
  [data-bmfs-limit-message].is-pulsing {
    animation: none;
  }

  .bmfs-card,
  .bmfs-button {
    transition: none;
  }
}
