.bhpf {
  background: #ffffff;
  border: 1px solid #e2e8dc;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(23, 48, 38, 0.1);
  color: #173026;
  margin: 1.5rem 0;
  overflow: hidden;
}

.bhpf__app {
  min-height: 760px;
  padding: clamp(1rem, 3vw, 2rem);
}

.bhpf__loading {
  display: block;
}

.bhpf__loadingHeader {
  display: grid;
  justify-items: center;
}

.bhpf__loadingStage {
  align-items: center;
}

.bhpf__loadingLine,
.bhpf__loadingCircle {
  animation: bhpf-shimmer 1.35s ease-in-out infinite;
  background: linear-gradient(90deg, #e8eee4 0%, #f9faf8 45%, #e8eee4 90%);
  background-size: 240% 100%;
  display: block;
}

.bhpf__loadingLine {
  border-radius: 999px;
  height: 16px;
}

.bhpf__loadingLine--title {
  height: 34px;
  max-width: 460px;
  width: 68%;
}

.bhpf__loadingLine--intro {
  height: 16px;
  margin-top: 0.85rem;
  max-width: 620px;
  width: 82%;
}

.bhpf__loadingProgress {
  margin: 0 auto 1.75rem;
  max-width: 720px;
  width: 100%;
}

.bhpf__loadingLine--progressText {
  height: 14px;
  margin-bottom: 0.65rem;
  width: 138px;
}

.bhpf__loadingLine--progressTrack {
  height: 7px;
  width: 100%;
}

.bhpf__loadingCircle {
  border-radius: 50%;
  height: 42px;
  margin: 0 auto 1rem;
  width: 42px;
}

.bhpf__loadingLine--question {
  height: 32px;
  max-width: 680px;
  width: 75%;
}

.bhpf__loadingOptions {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 720px;
  width: 100%;
}

.bhpf__loadingLine--option {
  background-color: #ffffff;
  border-radius: 14px;
  height: 54px;
  width: 100%;
}

@keyframes bhpf-shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bhpf__loadingLine,
  .bhpf__loadingCircle {
    animation: none;
  }
}

.bhpf__header {
  margin: 0 auto 1.5rem;
  max-width: 760px;
  text-align: center;
}

.bhpf__title {
  color: #173026;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.bhpf__intro,
.bhpf__subquestion,
.bhpf__optionDescription,
.bhpf__resultSummary,
.bhpf__message {
  color: #53645c;
  font-size: 15px;
  line-height: 1.55;
}

.bhpf__intro,
.bhpf__subquestion,
.bhpf__message {
  margin: 0;
}

.bhpf__form {
  display: grid;
  gap: 1.25rem;
}

.bhpf__progress {
  margin: 0 auto 1.75rem;
  max-width: 720px;
  width: 100%;
}

.bhpf__progressText {
  color: #245944;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.65rem;
  scroll-margin-top: 90px;
  text-transform: uppercase;
}

.bhpf__progressTrack {
  background: #dde7d7;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.bhpf__progressFill {
  background: #173026;
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 180ms ease;
}

.bhpf__stage {
  background: linear-gradient(180deg, #f8faf6 0%, #eef4ea 100%);
  border: 1px solid #d7ddd2;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.bhpf__stage--results {
  align-items: center;
  justify-content: flex-start;
}

.bhpf__question {
  background: transparent;
  border: 0;
  display: grid;
  justify-items: center;
  margin: 0;
  padding: 0;
}

.bhpf__question--error {
  color: #b91c1c;
}

.bhpf__questionTitle {
  color: #173026;
  display: grid;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  gap: 1rem;
  justify-items: center;
  line-height: 1.15;
  margin: 0;
  max-width: 760px;
  padding: 0;
  text-align: center;
}

.bhpf__questionNumber {
  align-items: center;
  background: #173026;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 15px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.bhpf__subquestion {
  max-width: 620px;
  margin-top: 0.75rem;
  text-align: center;
}

.bhpf__options {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 720px;
  width: 100%;
}

.bhpf__option {
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 48, 38, 0.08);
  cursor: pointer;
  min-height: 0;
  padding: 0.85rem 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bhpf__option:hover,
.bhpf__option:focus-within,
.bhpf__option--selected {
  border-color: rgba(23, 48, 38, 0.45);
  box-shadow: 0 14px 34px rgba(23, 48, 38, 0.14);
  transform: translateY(-2px);
}

.bhpf__optionLabel {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  margin: 0;
}

.bhpf__optionLabel input {
  accent-color: #173026;
  cursor: pointer;
  flex: 0 0 auto;
  margin-top: 0.2rem;
}

.bhpf__optionText {
  color: #173026;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.bhpf__optionDescription {
  margin: 0.55rem 0 0 1.55rem;
}

.bhpf__info {
  margin-top: 0.75rem;
}

.bhpf__infoSummary {
  color: #245944;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.bhpf__infoText {
  background: #eef4ea;
  border-left: 3px solid #245944;
  color: #53645c;
  font-size: 14px;
  line-height: 1.55;
  margin: 0.55rem 0 0;
  padding: 0.75rem;
}

.bhpf__error {
  color: #b91c1c;
  display: none;
  font-size: 14px;
  font-weight: 700;
  margin: 0.75rem 0 0;
}

.bhpf__noResults {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin: 1rem 0 0;
  max-width: 720px;
  padding: 0.85rem 1rem;
  text-align: center;
  width: 100%;
}

.bhpf__noResults:empty,
.bhpf__noResults[hidden] {
  display: none;
}

.bhpf__question--error .bhpf__error {
  display: block;
}

.bhpf__actions {
  align-items: center;
  border-top: 1px solid #e2e8dc;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 1.25rem;
}

.bhpf__button,
.bhpf__resultLink {
  background: #173026;
  border: 1px solid #173026;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  min-width: 136px;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  text-decoration: none;
  text-transform: uppercase;
}

.bhpf__button:hover,
.bhpf__button:focus,
.bhpf__button:visited,
.bhpf__resultLink:hover,
.bhpf__resultLink:focus,
.bhpf__resultLink:visited,
.bhpf__resultLink.amazon-card-link__button:hover,
.bhpf__resultLink.amazon-card-link__button:focus,
.bhpf__resultLink.amazon-card-link__button:visited {
  background: #173026;
  border-color: #173026;
  color: #ffffff;
  text-decoration: none;
}

.bhpf__button--secondary {
  background: #ffffff;
  color: #173026;
}

.bhpf__button--secondary:hover,
.bhpf__button--secondary:focus,
.bhpf__button--secondary:visited {
  background: #ffffff;
  border-color: #173026;
  color: #173026;
  text-decoration: none;
}

.bhpf__results {
  margin: 0;
  max-width: 900px;
  width: 100%;
}

.bhpf__results[hidden] {
  display: none;
}

.bhpf__resultsTitle {
  color: #173026;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.25;
  margin: 0 0 1.25rem;
  text-align: center;
}

.bhpf__result {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 48, 38, 0.08);
  display: grid;
  gap: 1rem;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-top: 1rem;
  padding: 1rem;
}

.bhpf__result:first-of-type {
  margin-top: 0;
}

.bhpf__alternativesTitle {
  color: #173026;
  font-size: 22px;
  line-height: 1.25;
  margin: 2.25rem 0 1.25rem;
  text-align: center;
}

.bhpf__result--alternative {
  margin-top: 0.75rem;
}

.bhpf__resultImage {
  aspect-ratio: 1;
  background: #eef4ea;
  border-radius: 6px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.bhpf__affiliate {
  align-self: start;
}

.bhpf__affiliate .product-link-box,
.bhpf__affiliate .large-product-link {
  margin: 0;
}

.bhpf__affiliate .large-product-link__heading,
.bhpf__affiliate .large-product-link__title {
  display: none;
}

.bhpf__affiliate .large-product-link__img-container {
  margin-bottom: 0;
}

.bhpf__affiliate .amazon-card-link {
  display: block;
}

.bhpf__affiliate .amazon-card-link__imageLink {
  margin-bottom: 0;
}

.bhpf__resultBadge {
  color: #245944;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.bhpf__resultTitle {
  color: #173026;
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
}

.bhpf__resultSummary {
  margin: 0.5rem 0 0;
}

.bhpf__features {
  color: #53645c;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
}

.bhpf__feature {
  background: #fbfbfb;
  border-radius: 999px;
  font-size: 13px;
  padding: 0.35rem 0.65rem;
}

.bhpf-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem;
}

@media (max-width: 640px) {
  .bhpf__app {
    min-height: 660px;
    padding: 0.85rem;
  }

  .bhpf__stage {
    min-height: 560px;
    padding: 1rem;
  }

  .bhpf__question,
  .bhpf__option,
  .bhpf__result {
    padding: 0.85rem;
  }

  .bhpf__questionTitle {
    font-size: 18px;
  }

  .bhpf__result {
    grid-template-columns: 1fr;
  }

  .bhpf__resultImage {
    max-width: 220px;
  }

  .bhpf__actions {
    flex-direction: column-reverse;
  }

  .bhpf__button {
    width: 100%;
  }
}
