/* ===== 16 Personalities Test - Option Styles (compact spacing) ===== */

.options-container {
  display: flex;
  flex-direction: column;
  gap: 6px;              /* 原 12px → 6px */
  margin: 16px 0 18px;   /* 原 20px 0 24px → 更紧凑 */
}

.option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;    /* 原 14px 18px → 更紧凑 */
  background: #f8f9fb;
  border: 2px solid #e0e4eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
  color: #2c3e50;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.option-label:hover {
  background: #eef3ff;
  border-color: #7b9cff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 156, 255, 0.15);
}

/* 隐藏原生 radio，用自定义圆圈代替 */
.option-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #b0b8c8;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin: 0;
}

.option-label input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a6cf7;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.option-label input[type="radio"]:checked {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.option-label input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

/* 选中整个选项卡片的高亮 */
.option-label:has(input[type="radio"]:checked) {
  background: #e8efff;
  border-color: #4a6cf7;
  box-shadow: 0 2px 10px rgba(74, 108, 247, 0.18);
  font-weight: 500;
}

.option-label:has(input[type="radio"]:checked)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #4a6cf7;
  border-radius: 10px 0 0 10px;
}

/* 键盘聚焦可访问性 */
.option-label input[type="radio"]:focus-visible {
  outline: 3px solid rgba(74, 108, 247, 0.4);
  outline-offset: 2px;
}

/* 移动端适配 */
@media (max-width: 600px) {
  .options-container {
    gap: 5px;
    margin: 12px 0 14px;
  }
  .option-label {
    padding: 9px 12px;
    font-size: 0.95rem;
    gap: 8px;
  }
  .option-label input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }
}
