/* 세계문화 어울림 축제 · 교육용 가상 행사 · 실제 모집 아님 */
:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --ink: #2b2420;
  --muted: #6b5f57;
  --line: #eadfd2;
  --brand: #c2532b;      /* 따뜻한 주황 */
  --brand-ink: #ffffff;
  --brand-soft: #fbe7dc;
  --accent: #2f7a6d;     /* 차분한 초록 */
  --accent-soft: #e2f1ee;
  --band: #3b2f2a;
  --band-ink: #fff3d6;
  --ok: #1f7a3a;
  --ok-soft: #e4f4e8;
  --err: #b3261e;
  --err-soft: #fde8e6;
  --warn-soft: #fff4d6;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 맨 위 띠: 모든 화면에 보이게 */
.notice-band {
  position: sticky; top: 0; z-index: 10;
  background: var(--band); color: var(--band-ink);
  text-align: center; font-weight: 700; font-size: 15px;
  padding: 8px 16px;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

section { padding: 40px 0 8px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 26px; }
h2::before {
  content: ""; display: inline-block; width: 10px; height: 22px;
  background: var(--brand); border-radius: 3px; margin-right: 10px; vertical-align: -3px;
}
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* 첫 화면 */
.hero {
  padding: 36px 0 28px;
  background:
    radial-gradient(circle at 90% 10%, var(--accent-soft) 0 70px, transparent 71px),
    radial-gradient(circle at 8% 85%, var(--brand-soft) 0 90px, transparent 91px);
}
.tag {
  display: inline-block; background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.hero h1 { font-size: 34px; }
.hero .lead { font-size: 19px; }
.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.facts li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; display: grid; gap: 2px;
}
.facts b { font-size: 14px; color: var(--muted); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--brand); color: var(--brand-ink);
  font: inherit; font-weight: 700; font-size: 19px; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(0.95); }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.block { width: 100%; }
.btn.secondary { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }

/* 카드 */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
}
.program .time { font-weight: 700; color: var(--accent); }
.program h3 { font-size: 20px; margin: 4px 0 6px; }
.program .zone { font-size: 15px; color: var(--muted); }
.badge {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  margin-top: 8px;
}
.badge.pick { background: var(--brand-soft); color: var(--brand); }
.badge.common { background: #efe9e3; color: var(--muted); }

ol.steps { padding-left: 22px; margin: 0; }
ol.steps li { margin-bottom: 8px; }

.tbd { list-style: none; padding: 0; margin: 0; }
.tbd li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.tbd li span:last-child { color: var(--muted); white-space: nowrap; }

.contact { font-size: 16px; }
.contact dt { font-weight: 700; margin-top: 8px; }
.contact dd { margin: 0; }

/* 신청 폼 */
.form-hint {
  background: var(--warn-soft); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; font-size: 16px;
}
.field { margin-bottom: 18px; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.req { color: var(--brand); font-size: 14px; margin-left: 4px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"] {
  width: 100%; min-height: 52px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: 12px;
}
input[aria-invalid="true"] { border-color: var(--err); }
.check {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
}
.check input { width: 24px; height: 24px; margin: 3px 0 0; flex: none; accent-color: var(--brand); }
.check small { display: block; color: var(--muted); font-size: 15px; }
.field-error { color: var(--err); font-size: 15px; margin-top: 6px; }
.field-error:empty { display: none; }

.status {
  border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; font-size: 17px;
}
.status.error { background: var(--err-soft); color: var(--err); }
.status.unknown { background: var(--warn-soft); color: #6a4b00; }
.status[hidden] { display: none; }

.done {
  background: var(--ok-soft); border: 2px solid var(--ok); border-radius: var(--radius);
  padding: 20px 16px; text-align: center;
}
.done h3 { color: var(--ok); font-size: 24px; }
.receipt { font-size: 30px; font-weight: 800; letter-spacing: 1px; margin: 8px 0 12px; }

footer { padding: 40px 0 56px; text-align: center; color: var(--muted); font-size: 15px; }

/* 관리자 표 */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: var(--surface); }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { background: #f6efe7; white-space: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }

@media (min-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 42px; }
}
