/* style.css */

/* 전체 레이아웃 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f9fafb;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

/* 카드 박스 */
.card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
}

/* 제목 */
h2 {
  color: #111;
  margin-bottom: 0.5rem;
}


/* 제목 */
h3 {
  color: #111;
  margin-bottom: 0.5rem;
  text-align: left;
}


h4 {
    font-size: 0.9rem; /* 제목보다 작은 글씨 크기 */
    color: #666;      /* 연한 회색 글씨 */
    text-align: left;


}

/* 버튼 */
button,
a.button {
  background: #2563eb;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

button:hover,
a.button:hover {
  background: #1d4ed8;
}

/* 라디오 버튼 그룹 */
.options {
  display: flex;
  gap: 1rem;
  margin: 0.8rem 0 1.5rem;
}

/* 라디오 버튼 숨김 */
.options input {
  display: none;
}

/* 라벨 전체 영역 스타일 */
.options label {
  flex: 1;
  background: #f3f4f6; /* 기본 색상 */
  border-radius: 8px;
  padding: 0.6rem 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  user-select: none;
}

/* 라벨 호버 색상 */
.options label:hover {
  background: #e5e7eb;
}

/* 체크 시 라벨 전체 배경 색상 변경 */
.options input:checked + label {
  background: #2563eb; /* 체크 시 색상 */
  color: #fff;
  border: 1px solid #1d4ed8;
}

/* 오류 메시지 스타일 */
.error-message {
    color: #ef4444; /* 빨간색 글씨 */
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    display: none; /* 초기에는 숨기기 */
}


/* --- 모바일 최적화 (화면 너비 768px 이하) --- */
@media (max-width: 768px) {
    /* 카드 박스 */
    .card {
        padding: 1rem; /* 모바일에서 여백 줄이기 */
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    /* 폰트 크기 조정 */
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.1rem;
    }
    h4 {
        font-size: 0.8rem;
    }
    p {
        font-size: 0.9rem;
    }

    /* 라디오 버튼 그룹 */
    .options {
        flex-direction: column; /* 세로로 쌓기 */
        gap: 0.5rem; /* 간격 줄이기 */
    }

    /* 버튼 */
    button,
    a.button {
        width: 100%; /* 버튼 너비를 꽉 채우기 */
        box-sizing: border-box; /* 패딩과 테두리를 너비에 포함 */
    }
}


.back-to-index {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #1a086d;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, background 0.2s;
}

.back-to-index i {
  font-size: 1.5rem;
}

.back-to-index:hover {
  background: #370cb0;
  transform: scale(1.1);
}