/*
 * 나답게 공통 테마 — 남색 + 골드.
 *
 * 히어로 이미지(밤하늘·달·가로등)와 같은 색을 쓴다.
 * 밤 모임이라는 성격에 맞춰 라이트 모드를 두지 않고 어두운 화면으로 고정한다.
 */

:root {
  --bg: #101a2e;
  --bg-deep: #0b1322;
  --surface: #18253f;
  --border: #263551;
  --border-strong: #35476a;
  --text: #eaeff8;
  --muted: #94a3bf;
  --accent: #e9ba6a;
  --accent-soft: #f3d9a8;
  --accent-text: #1a1204;
  --danger: #f2a49f;
  --warn: #e9ba6a;
  --track: #263551;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px calc(40px + env(safe-area-inset-bottom));
}

h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }

/* 화면에는 안 보이지만 스크린리더에는 읽히는 제목 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 히어로 */
.hero {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: var(--bg-deep);
}

/* 폼 요소 */
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.req { color: var(--accent); margin-left: 2px; }

label.f { display: block; margin-bottom: 14px; }
.lab { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.hint { color: var(--muted); font-weight: 400; }

input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-deep);
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  min-height: 46px;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6d7d9c; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

button {
  width: 100%; font: inherit; font-weight: 700;
  background: var(--accent); color: var(--accent-text);
  border: 0; border-radius: 10px; padding: 14px;
  min-height: 50px; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
button.ghost {
  background: transparent; color: var(--muted); font-weight: 600;
  border: 1.5px solid var(--border-strong); margin-top: 10px;
}

.msg { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.msg.err {
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
}

.note { color: var(--muted); font-size: 12.5px; margin-top: 14px; text-align: center; }
.note a { color: var(--accent); }
.skel, .empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
