/* =========================================================
   Register (content-only)
   - 모든 스타일은 .rb- 네임스페이스로 스코프됨
   - 헤더/푸터/글로벌 스타일과 충돌 최소화
   ========================================================= */

/* 토큰 */
.rb-reg {
  --ink: #0f172a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f7faff;
  --accent: #ef4444;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --container: min(1100px, 94vw);
}
.agreement-list-v1-agreementList {
  width: 100%;
}
/* 베이스 */
.rb-reg {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 16px;
  color: var(--ink);
}

.rb-reg * {
  box-sizing: border-box;
}

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

/* 단계 표시 */
.rb-steps {
  width: 100%;
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0 0 14px;
}

.rb-steps li {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.rb-steps span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.rb-steps em {
  font-style: normal;
  color: var(--muted);
}

.rb-steps .is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.rb-steps .is-active span {
  border-color: var(--accent);
  color: var(--accent);
}

/* 히어로 */
.rb-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  align-items: center;
  margin: 6px 0 14px;
}

.rb-hero-title {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.rb-hero-desc {
  margin: 0;
  color: var(--muted);
}

.rb-hero-box {
  position: relative;
  height: 110px;
}

.rb-hero-box .box {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 92px;
  border-radius: 14px;
  background: linear-gradient(180deg, #111827, #374151);
  box-shadow: var(--shadow);
}

.rb-hero-box .box:before {
  content: "?";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 44px;
  opacity: 0.9;
}

.rb-hero-box .sparkles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(6px 6px at 30% 20%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(5px 5px at 70% 35%, rgba(251, 113, 133, 0.9), transparent 60%),
    radial-gradient(4px 4px at 40% 70%, rgba(239, 68, 68, 0.9), transparent 60%);
  animation: rbTwinkle 2s linear infinite;
}

@keyframes rbTwinkle {
  50% {
    opacity: 0.4;
  }
}

.rb-note {
  width: 100%;
  margin: 4px 0 10px;
  color: var(--muted);
}

/* 카드 */
.rb-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
}

.rb-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

/* 텍스트영역 */
.rb-textarea {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line);
  outline: 0;
  resize: vertical;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
}

/* 체크박스(디자인용) */
.rb-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  user-select: none;
  cursor: pointer;
  position: relative;
}

/* 실제 체크박스 숨기기 */
.rb-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* 커스텀 박스 */
.rb-check i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 0 2px transparent;
}

/* 체크 시 */
.rb-check input[type="checkbox"]:checked + i {
  border-color: #4a7856;
  background-color: #4a7856;
  transform: scale(1.05);
}

/* 체크 표시(✔️) */
.rb-check i::after {
  content: "✓";

  color: #fff;
  opacity: 0;
}

/* 체크 시 애니메이션 */
.rb-check input[type="checkbox"]:checked + i::after {
  opacity: 1;
}

/* 라벨 텍스트 */
.rb-check span {
  font-size: 0.95rem;
  color: #374151;
}

/* hover 효과 */
.rb-check:hover i {
  border-color: #4a7856;
}

/* 액션 버튼 */
.rb-actions {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.rb-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: default;
}

.rb-btn.ghost {
  background: #fff;
  border: 1px solid var(--line);
}

.rb-btn.next {
  background: linear-gradient(90deg, #ef4444, #fb7185);
  color: #fff;
  opacity: 0.6;
}

/* 디자인만: 비활성 시안 */
.rb-btn[disabled] {
  cursor: not-allowed;
}

/* 반응형 */
@media (max-width: 640px) {
  .rb-hero {
    grid-template-columns: 1fr;
  }
}
