:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --accent: #1a56db;
  --accent-dark: #123a9c;
  --border: #e5e7eb;
  --danger: #dc2626;
  --kakao: #fee500;
  --kakao-text: #191919;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header.hero {
  padding: 32px 0 24px;
  text-align: center;
}

header.hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

header.hero h1 {
  font-size: 22px;
  line-height: 1.4;
  margin: 8px 0 12px;
}

header.hero p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}

.trust-list li {
  list-style: none;
}

form {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

fieldset legend {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  padding: 0;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 64px;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-group label,
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
}

.radio-group input,
.checkbox-group input {
  margin: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.consent a {
  color: var(--accent);
}

.consent input {
  margin-top: 3px;
}

button.submit {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button.submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.error-msg {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

.error-msg.show {
  display: block;
}

.state {
  display: none;
  text-align: center;
  padding: 40px 16px;
}

.state.show {
  display: block;
}

.state h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.state p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.kakao-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-kakao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  background: var(--kakao);
  color: var(--kakao-text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

footer.site-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

footer.site-footer a {
  color: var(--muted);
}

/* ===== 위저드 (질문 1개 = 화면 1개) ===== */

#wizard {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.back-btn {
  border: none;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.progress {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.q-text {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
}

.q-help {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.q-text-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 12px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.option-list.multi {
  margin-bottom: 16px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.option-btn:hover {
  border-color: var(--accent);
  background: #f5f8ff;
}

.option-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

.next-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

.next-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* ===== 결과 화면 ===== */

.result-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  background: var(--card);
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.result-card p {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text);
}

.result-card .tone {
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
}

.warn-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  text-align: left;
  margin-bottom: 12px;
}

.urgent-badge {
  background: #fee2e2;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0;
}
