.icon-compass {
  width: clamp(7rem, 0.956vw + 6.694rem, 8rem);
  height: clamp(7rem, 0.956vw + 6.694rem, 8rem);
}

.hero.test {
  margin-bottom: 0;
}

.hero-bottom-part.test {
  margin-top: unset;
}

.quiz {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  align-items: center;
}

/* Card like in screenshot */
.qcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 4rem 2rem;
  position: relative;
  max-width: 90rem;
  width: 100%;
  background-color: var(--grey-light);
  border-radius: 2rem;
  border-color: transparent;
}

.qtitle {
  font-family: var(--font-77-bold-condensed);
  font-size: var(--size-slider-head);
  line-height: var(--line-height-slider-head);
  text-align: center;
  color: var(--pre-blue);
  max-width: 78rem;
}

.qoptions {
  display: grid;
  gap: 2rem;
  max-width: 44rem;
  width: 100%;
}

/* test-pill radio buttons */
.test-pill {
  display: block;
  cursor: pointer;
  user-select: none;
}

/* Keep radios accessible, but visually hidden */
.test-pill > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The visible test-pill */
.test-pill__ui {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  height: auto;
  border-radius: var(--cta-radius);
  background: var(--grey); /* unselected test-pill */
  color: var(--pre-blue);
  font-family: var(--font-63-medium-extended);
  font-size: 1.6rem;
  text-align: center;
  text-wrap: balance;
  padding: 1.2rem 2rem;
  transition:
    transform 0.06s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover/active */
.test-pill:hover .test-pill__ui {
  transform: translateY(-1px);
}
.test-pill:active .test-pill__ui {
  transform: translateY(0);
}

/* Selected state */
.test-pill.blue-pill > input:checked + .test-pill__ui {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(47, 91, 255, 0.22);
}
.test-pill.orange-pill > input:checked + .test-pill__ui {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(47, 91, 255, 0.22);
}
.test-pill.red-pill > input:checked + .test-pill__ui {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(47, 91, 255, 0.22);
}
.test-pill.green-pill > input:checked + .test-pill__ui {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(47, 91, 255, 0.22);
}

/* Keyboard focus (important) */
.test-pill > input:focus-visible + .test-pill__ui {
  outline: 3px solid rgba(15, 23, 42, 0.35);
  outline-offset: 3px;
}

/* Optional: error styling */
.qerror {
  margin: 10px 0 0;
  color: #b00020;
  font-weight: 600;
  text-align: center;
}
.qcard.is-invalid {
  box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.35) inset;
}

button {
  border-color: var(--blue);
}
button:focus-visible {
  outline: 3px solid rgba(15, 23, 42, 0.35);
  outline-offset: 3px;
}

.result {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-block-start: 4rem;
  margin-block-end: 0;
}

.results-cta-wrapper {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 2rem;
}

.clipboard-toast{
  position: fixed;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--pre-blue);
  color: #fff;
  padding: 1.2rem 1.8rem;
  border-radius: var(--cta-radius);
  font-family: var(--font-63-medium-extended);
  font-size: 1.4rem;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 9999;
}
.clipboard-toast.is-visible{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


.display-none {
  display: none;
}
