.thbi {
  box-sizing: border-box;
  max-width: 900px;
  margin: 32px auto;
  padding: clamp(24px, 5vw, 64px);
  background: #fff;
  color: #55483f;
  border: 1px solid #eee8df;
  font:
    16px/1.6 Arial,
    Helvetica,
    sans-serif;
}
.thbi * {
  box-sizing: border-box;
}
.thbi [hidden] {
  display: none !important;
}
.thbi h2,
.thbi h3,
.thbi legend {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #55483f;
  line-height: 1.2;
}
.thbi h2 {
  font-size: clamp(30px, 5vw, 48px);
  margin: 14px 0 20px;
}
.thbi p {
  color: #665e55;
  margin: 0 0 20px;
}
.thbi__eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #786650;
}
.thbi__progress {
  margin: 38px 0;
}
.thbi__progress ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0;
  list-style: none;
  font-size: 12px;
}
.thbi__progress [aria-current] {
  font-weight: 700;
}
.thbi progress {
  width: 100%;
  height: 4px;
  accent-color: #88715a;
  appearance: none;
  border: 0;
  background: #eee8df;
  color: #88715a;
}
.thbi progress::-webkit-progress-bar {
  background: #eee8df;
}
.thbi progress::-webkit-progress-value {
  background: #88715a;
}
.thbi progress::-moz-progress-bar {
  background: #88715a;
}
.thbi fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.thbi legend {
  float: none;
  width: 100%;
  font-size: 28px;
  margin: 0 0 28px;
  padding: 0;
}
.thbi label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  color: #55483f;
}
.thbi input:not([type="checkbox"]):not([type="radio"]),
.thbi select,
.thbi textarea {
  appearance: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 13px 12px;
  border: 1px solid #d8d0c6;
  border-radius: 0;
  background: #fff;
  color: #443c35;
  font: inherit;
  line-height: 1.5;
  box-shadow: none;
}
.thbi textarea {
  min-height: 100px;
  resize: vertical;
}
.thbi :is(input, select, textarea, button, a):focus-visible {
  outline: 2px solid #80664e;
  outline-offset: 3px;
}
.thbi__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.thbi__full {
  grid-column: 1/-1;
}
.thbi [data-questions] {
  display: grid;
  gap: 22px;
  margin: 24px 0;
}
.thbi__choices {
  display: grid;
  gap: 12px;
  margin: 16px 0 26px;
}
.thbi .thbi__choice,
.thbi .thbi__check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.5;
}
.thbi .thbi__choice {
  padding: 15px;
  background: #f8f7f3;
  border: 1px solid #e5ded4;
}
.thbi input:is([type="radio"], [type="checkbox"]) {
  appearance: auto;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #80664e;
  opacity: 1;
  position: static;
}
.thbi__essential {
  padding: 20px;
  margin: 20px 0;
  background: #e9e1d5;
  font-size: 14px;
}
.thbi__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
}
.thbi button {
  appearance: none;
  border: 1px solid #80664e;
  border-radius: 0;
  margin: 0;
  padding: 14px 24px;
  min-height: 48px;
  background: #88715a;
  color: white;
  font:
    400 14px/1.4 Arial,
    sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: none;
  text-transform: none;
}
.thbi button[data-back] {
  background: white;
  color: #66513e;
}
.thbi button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.thbi .thbi__hint {
  font-size: 12px;
  margin-top: 22px;
}
.thbi a {
  color: #604b38;
  text-decoration: underline;
}
.thbi [data-message]:not(:empty) {
  padding: 14px;
  background: #f5ede0;
  border-left: 3px solid #80664e;
  overflow-wrap: anywhere;
}
.thbi__trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.thbi [data-receipt] {
  overflow-wrap: anywhere;
  font-size: 12px;
}
@media (max-width: 600px) {
  .thbi {
    margin: 16px auto;
    padding: 26px 18px;
  }
  .thbi__grid {
    grid-template-columns: 1fr;
  }
  .thbi__full {
    grid-column: auto;
  }
  .thbi__progress ol {
    font-size: 10px;
    gap: 5px;
  }
  .thbi legend {
    font-size: 25px;
  }
  .thbi__nav button {
    padding: 13px 16px;
  }
}

.thbi .thbi__intro {
  text-align: center;
  margin-bottom: 32px;
}
.thbi .thbi__intro h2 {
  text-align: center;
}
.thbi .thbi__intro p {
  text-align: center;
}
.thbi [data-availability]:not(:empty) {
  padding: 14px;
  background: #f5ede0;
  border-left: 3px solid #80664e;
  overflow-wrap: anywhere;
}
