.mib-finder,
html,
body {
  max-width: 100%;
}

html,
body {
  overflow-x: hidden;
}

.mib-finder {
  --mib-yellow: #ffbd20;
  --mib-green: #34d399;
  --mib-line: #292929;
  background: #090909;
  border-block: 1px solid var(--mib-line);
  color: #fff;
  padding: 88px 24px;
}

.mib-finder *,
.mib-finder *::before,
.mib-finder *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.mib-finder__inner {
  display: grid;
  gap: 56px 72px;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  margin: 0 auto;
  max-width: 1200px;
}

.mib-finder__intro {
  align-self: start;
  max-width: 390px;
  position: static;
}

.mib-finder__eyebrow {
  color: var(--mib-yellow);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.mib-finder h2 {
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 22px;
}

.mib-finder__intro > p:not(.mib-finder__eyebrow) {
  color: #a1a1aa;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

.mib-finder__live {
  align-items: center;
  color: #d4d4d8;
  display: flex;
  font-size: 14px;
  gap: 10px;
  margin-top: 28px;
}

.mib-finder__live span {
  background: var(--mib-green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12);
  height: 8px;
  width: 8px;
}

.mib-finder__controls {
  min-width: 0;
}

.mib-finder fieldset {
  border: 0;
  margin: 0 0 32px;
  min-width: 0;
  padding: 0;
}

.mib-finder legend {
  color: #f4f4f5;
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 13px;
}

.mib-finder__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mib-finder__options button,
.mib-finder__submit,
.mib-finder__appointment {
  border-radius: 4px;
  font: inherit;
  min-height: 50px;
}

.mib-finder__options button {
  align-items: center;
  background: #101010;
  border: 1px solid #3f3f46;
  color: #e4e4e7;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  padding: 12px 18px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mib-finder__options button:hover {
  border-color: #71717a;
}

.mib-finder__options button[aria-pressed="true"] {
  background: var(--mib-yellow);
  border-color: var(--mib-yellow);
  color: #090909;
}

.mib-finder__options button[aria-pressed="true"]::before {
  content: "✓";
  font-weight: 900;
  margin-right: 9px;
}

.mib-finder__submit,
.mib-finder__appointment {
  align-items: center;
  background: var(--mib-yellow);
  border: 1px solid var(--mib-yellow);
  color: #090909;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  padding: 13px 22px;
  text-decoration: none;
}

.mib-finder__submit:hover,
.mib-finder__appointment:hover {
  background: #ffd15b;
  border-color: #ffd15b;
}

.mib-finder__submit[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.mib-finder__results {
  border-top: 1px solid var(--mib-line);
  grid-column: 1 / -1;
  padding-top: 48px;
  scroll-margin-top: 140px;
}

.mib-finder__results-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mib-finder__results-head h3 {
  color: #fff;
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
}

.mib-finder__results-head .mib-finder__eyebrow {
  margin-bottom: 8px;
}

.mib-finder__results-head > a {
  color: var(--mib-yellow);
  font-size: 14px;
  font-weight: 750;
  text-underline-offset: 5px;
}

.mib-finder__products {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mib-finder-product {
  background: #111;
  border: 1px solid var(--mib-line);
  border-radius: 6px;
  display: grid;
  grid-template-rows: 240px 1fr;
  min-width: 0;
  overflow: hidden;
}

.mib-finder-product__media {
  background: #fff;
  display: block;
  padding: 18px;
}

.mib-finder-product__media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.mib-finder-product__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}

.mib-finder-product__category {
  color: var(--mib-yellow);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.mib-finder-product h4 {
  color: #fff;
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}

.mib-finder-product__status {
  align-items: center;
  color: var(--mib-green);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  margin: 18px 0;
}

.mib-finder-product__status::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.mib-finder-product__link {
  border-top: 1px solid var(--mib-line);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  margin-top: auto;
  padding-top: 15px;
  text-decoration: none;
}

.mib-finder-product__link:hover {
  color: var(--mib-yellow);
}

.mib-finder__next {
  align-items: center;
  border-top: 1px solid var(--mib-line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 28px;
}

.mib-finder__next p {
  color: #a1a1aa;
  line-height: 1.55;
  margin: 0;
}

.mib-finder__next strong {
  color: #fff;
}

.mib-finder__error {
  border: 1px solid #7f1d1d;
  color: #fecaca;
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
}

@media (max-width: 800px) {
  [class*="z-[100]"][class*="max-h-screen"][class*="w-full"] {
    left: 0;
    right: 0;
    width: auto !important;
  }

  .mib-finder {
    padding: 64px 20px;
  }

  .mib-finder__inner {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  .mib-finder__intro {
    max-width: none;
    position: static;
  }

  .mib-finder h2 {
    font-size: 38px;
  }

  .mib-finder__intro > p:not(.mib-finder__eyebrow) {
    font-size: 16px;
  }

  .mib-finder__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mib-finder__options button {
    padding-inline: 10px;
    width: 100%;
  }

  .mib-finder__submit {
    width: 100%;
  }

  .mib-finder__products {
    grid-template-columns: 1fr;
  }

  .mib-finder-product {
    grid-template-columns: 128px 1fr;
    grid-template-rows: minmax(190px, auto);
  }

  .mib-finder-product__media {
    padding: 12px;
  }

  .mib-finder__next {
    align-items: stretch;
    flex-direction: column;
  }

  .mib-finder__appointment {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .mib-finder__options {
    grid-template-columns: 1fr;
  }

  .mib-finder__results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mib-finder-product {
    grid-template-columns: 112px 1fr;
  }

  .mib-finder-product__body {
    padding: 16px;
  }

  .mib-finder-product h4 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mib-finder__options button {
    transition: none;
  }
}
