* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
  background: #f0f4f8;
  color: #222;
  min-height: 100vh;
}

/* ════════════════════════════
   로그인 페이지 (관리자와 동일한 스타일)
════════════════════════════ */
#page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.lp-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  text-align: center;
}

.lp-icon { font-size: 3rem; display: block; margin-bottom: 0.4rem; }
.lp-org { font-size: 0.82rem; color: #888; margin-bottom: 0.2rem; }
.lp-title { font-size: 1.15rem; font-weight: 700; color: #003d99; margin-bottom: 1.6rem; }

.lp-field {
  text-align: left;
  margin-bottom: 0.9rem;
}

.lp-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.3rem;
}

.lp-field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #dde3ea;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  color: #222;
}

.lp-field input:focus { border-color: #0066cc; }
.lp-field input::placeholder { color: #bbb; }

.lp-error {
  background: #fff3f3;
  border: 1px solid #fcc;
  color: #d00;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.5;
  white-space: pre-line;
}

#login-btn {
  width: 100%;
  padding: 0.78rem;
  background: linear-gradient(135deg, #003d99, #0066cc);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(0,102,204,0.3);
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.1s;
}

#login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,102,204,0.38); }
#login-btn:active { transform: translateY(0); }
#login-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.lp-notice { font-size: 0.72rem; color: #bbb; line-height: 1.5; }

.lp-privacy {
  background: #f0f7ff;
  border: 1px solid #cce0ff;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  color: #334;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 1rem;
}

/* ════════════════════════════
   설문 페이지
════════════════════════════ */
#page-survey { padding: 2rem 1rem; }

.sv-wrap { max-width: 680px; margin: 0 auto; }

/* 헤더 (관리자와 동일) */
.sv-header {
  background: linear-gradient(135deg, #003d99, #0066cc);
  color: #fff;
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,61,153,0.25);
}

.sv-logo-area { display: flex; align-items: center; gap: 1rem; }
.sv-logo-icon { font-size: 2.5rem; }
.sv-org-name { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.2rem; }
.sv-title { font-size: 1.4rem; font-weight: 700; }

.sv-badge {
  display: inline-block;
  margin-top: 0.8rem;
  background: rgba(255,255,255,0.2);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* 과정 확인 카드 */
.confirm-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 1rem;
}

.confirm-card .icon { font-size: 2.8rem; margin-bottom: 0.6rem; }
.confirm-card .greet { font-size: 1.1rem; font-weight: 700; color: #003d99; margin-bottom: 1.2rem; }
.confirm-card .clabel { font-size: 0.78rem; color: #888; margin-bottom: 0.3rem; }
.confirm-card .cname {
  font-size: 1.05rem;
  font-weight: 700;
  color: #003d99;
  background: #eef4ff;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
}
.confirm-card .cnote { font-size: 0.82rem; color: #888; line-height: 1.65; margin-bottom: 1.5rem; }

/* 설문 안내 */
.sv-guide {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* 문항 카드 (관리자 section-card와 동일한 스타일) */
.q-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-left: 4px solid #0066cc;
}

.q-card.optional { border-left-color: #aaa; }

.q-num {
  display: inline-block;
  background: #0066cc;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.q-num.opt { background: #888; }
.q-num em { font-style: normal; font-size: 0.7rem; margin-left: 4px; opacity: 0.85; }

.q-txt {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* 별점 (관리자 색상 그대로) */
.rating-group { display: flex; gap: 10px; }
.rating-label { flex: 1; cursor: pointer; }
.rating-label input[type="radio"] { display: none; }

.rating-btn {
  display: block;
  text-align: center;
  padding: 0.6rem 0.2rem;
  border: 2px solid #dde3ea;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  background: #f8f9fb;
  color: #555;
  transition: all 0.15s;
}

.rating-btn small {
  display: block;
  font-size: 0.63rem;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
}

.rating-label input[type="radio"]:checked + .rating-btn {
  background: #0066cc;
  border-color: #0066cc;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,102,204,0.35);
  transform: translateY(-2px);
}

.rating-label input[type="radio"]:checked + .rating-btn small { color: rgba(255,255,255,0.85); }
.rating-btn:hover { border-color: #0066cc; color: #0066cc; }

textarea {
  width: 100%;
  border: 2px solid #dde3ea;
  border-radius: 10px;
  padding: 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

textarea:focus { border-color: #0066cc; }

.sv-error {
  background: #fff3f3;
  border: 1px solid #fcc;
  color: #d00;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

/* 버튼 (관리자와 동일) */
button {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #003d99, #0066cc);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0,102,204,0.35);
  transition: transform 0.1s, box-shadow 0.1s;
}

button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,102,204,0.4); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* 완료 화면 */
.result {
  background: #fff;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.result-icon { font-size: 4rem; margin-bottom: 1rem; }
.result h2 { font-size: 1.4rem; color: #003d99; margin-bottom: 0.8rem; }
.result p { color: #555; line-height: 1.7; font-size: 0.95rem; }

/* 공통 */
.loading, .no-data {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  color: #888;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .rating-group { gap: 6px; }
  .rating-btn { font-size: 0.95rem; padding: 0.5rem 0.1rem; }
  .rating-btn small { font-size: 0.6rem; }
  .sv-title { font-size: 1.15rem; }
}
