:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --danger: #dc2626;
  --success: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .brand { font-weight: 700; font-size: 18px; }
header nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-size: 14px; }
header nav a:hover { color: var(--primary); }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

h1 { font-size: 24px; margin-bottom: 4px; }
.subtitle { color: var(--muted); margin-top: 0; margin-bottom: 24px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .value { color: var(--primary); font-weight: 700; }
.field input[type="range"] { width: 100%; }
.field input[type="number"], .field input[type="email"], .field input[type="text"], .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge.verified { background: #dcfce7; color: #166534; }
.badge.estimated { background: #fef3c7; color: #92400e; }

.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.result-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--muted); }
.result-row .num { font-weight: 700; }
.result-row .num.negative { color: var(--danger); }
.result-row .num.positive { color: var(--success); }

button.primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
button.primary:hover { background: var(--primary-dark); }
button.primary:disabled { background: #94a3b8; cursor: not-allowed; }

button.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.consent-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.consent-row input { margin-top: 3px; }
.consent-row a { color: var(--primary); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-weight: 600; }

.msg { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.msg.success { background: #dcfce7; color: #166534; }
.msg.error { background: #fee2e2; color: #991b1b; }
.msg.hidden { display: none; }

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

/* 허니팟: 봇만 채우도록 화면 밖으로. display:none은 일부 봇이 감지하므로 사용하지 않음 */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; overflow: hidden; }

a.secondary { display: inline-block; text-decoration: none; text-align: center; }
