@charset "UTF-8";
#self_test_list {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100%;
}

#self_test_list #self-test-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

#self_test_list .page {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

#self_test_list .page > .inner {
  height: 100%;
  min-height: 100%;
}

#self_test_list .page-header {
  position: relative;
  background-color: transparent;
  padding: 0;
}
#self_test_list .page-header .inner {
  background-color: #f6f7f9;
  height: 5.6rem;
  padding: 0 1.6rem;
}
#self_test_list .page-header__title {
  color: #000714;

  /* Tit-XS-SB */
  font-size: 18px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: -0.45px;
}

/* ============================================================
   Screen reader only
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.8rem 1.6rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: #ffffff;
  color: #2a2f38;
  z-index: 20;
}
#step-progressbar {
  width: 100%;
}
.step-tab .step-tab__meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.6rem;
}
.step-tab .max-step {
  display: inline-block;
  color: #696e77;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.4px;
}
.step-item__start {
  color: #2a2f38;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%; /* 22.4px */
  letter-spacing: -0.4px;
}
.step-item__end {
  display: inline-block;
  color: #696e77;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.4px;
}
.step-tab__count {
  color: #80858b;
  font-size: 12px;
  font-weight: 500;
  line-height: 140%; /* 16.8px */
  letter-spacing: -0.3px;
}
/* ============================================================
   Question Section
   ============================================================ */

.question {
  padding: 3.2rem 1.6rem 0;
}

.question__header {
  margin-bottom: 3.2rem;
}

.question__title {
  color: #2a2f38;
  font-size: 20px;
  font-weight: 700;
  line-height: 140%; /* 28px */
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
}

.question__hint {
  color: #696e77;
  font-size: 14px;
  font-weight: 400;
  line-height: 140%; /* 19.6px */
  letter-spacing: -0.35px;
}

/* ============================================================
   Option Fieldset
   ============================================================ */

.option-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

/* ============================================================
   Option List
   ============================================================ */

.option-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================================
   Option Card (숨긴 radio + label 카드)
   ============================================================ */

.option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  min-height: 6rem;
  height: 100%;
  padding: 1.2rem 1.6rem;
  border: 1px solid #edeff2;
  border-radius: 1.6rem;
  background-color: #ffffff;
  cursor: pointer;
  transition:
    border-color 150ms ease-out,
    background-color 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

/* 선택된 상태 */
.option__input:checked + .option-card {
  border-color: #ed1438;
  background-color: #fef6f7;
}

/* 포커스 상태 (키보드 접근성) */
.option__input:focus-visible + .option-card {
  outline: 2px solid #ed1438;
  outline-offset: 2px;
}

.option-card__text {
  color: #2a2f38;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 22.4px */
  letter-spacing: -0.4px;
}

.option-card__icon {
  flex-shrink: 0;
}

.option-card__icon--checked {
  display: none;
}

.option__input:checked + .option-card .option-card__icon--unchecked {
  display: none;
}

.option__input:checked + .option-card .option-card__icon--checked {
  display: block;
}

/* ============================================================
   Footer 버튼 영역
   ============================================================ */

.page-footer {
  margin-top: 4rem;
  background-color: transparent;
}
.page-footer .inner {
  background: #f6f7f9;
}
.quiz-footer {
  display: flex;
  gap: 0.8rem;
}

/* 이전 버튼 */
.btn-prev {
  flex: 0 0 auto;
  min-width: 106px;
  height: 48px;
  padding: 0 2rem;
  color: #2a2f38;
  font-size: 1.6rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;

  border-radius: 48px;
  border: 1px solid #d5d7db;
  background: #fff;
}

.btn-prev:hover {
  border-color: #80858b;
}

/* 다음/결과 버튼: layout.css .btn-next 기반, flex:1로 나머지 차지 */
.quiz-footer .btn-next {
  flex: 1;
  border-radius: 48px;
}
