/* =====================================================================
   온세종 공통 스타일 (임시 디자인)
   - 디자인 확정 전 뼈대용. 디자인 파일이 오면 이 파일만 바꾸면 됩니다.
   - 키컬러: 초록 #1E8A4A / 노랑 #F6C428 / 흰 바탕
   - 모바일 우선: 휴대폰 화면 기준으로 만들고, 넓은 화면은 가운데 정렬
   ===================================================================== */
:root {
  --green: #1E8A4A;
  --green-dark: #146B38;
  --green-soft: #EAF5EE;
  --yellow: #F6C428;
  --yellow-soft: #FFF6D6;
  --ink: #1A2420;
  --ink-2: #4A5852;
  --muted: #7C8A84;
  --line: #E3EAE6;
  --red: #C0392B;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dark); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.hide { display: none !important; }

/* ---- 상단 바 ---- */
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; align-items: center; height: 56px; gap: 8px; }
.top .brand { font-weight: 800; font-size: 17px; color: var(--green); text-decoration: none; }
.top .brand span { color: var(--ink); }

/* ---- 첫 화면 큰 영역 ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: #fff;
  padding: 48px 0 56px;
  border-radius: 0 0 28px 28px;
}
.hero .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; opacity: 0.85; }
.hero h1 { font-size: 36px; line-height: 1.2; margin: 12px 0; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { margin: 0; font-size: 15.5px; opacity: 0.95; }

/* 한글 자음 도형 장식 (임시 모티프) */
.jamo { position: absolute; font-weight: 900; line-height: 1; pointer-events: none; user-select: none; }
.jamo.j1 { right: -10px; top: 18px; font-size: 140px; color: rgba(246, 196, 40, 0.9); }
.jamo.j2 { right: 90px; bottom: -30px; font-size: 110px; color: rgba(255, 255, 255, 0.14); }

/* ---- 본문 ---- */
section { padding: 36px 0 4px; }
h2 { font-size: 21px; margin: 0 0 14px; letter-spacing: -0.02em; }
.lead { color: var(--ink-2); margin: 0 0 18px; font-size: 15px; }

/* 일정 목록 */
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.schedule li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
}
.schedule .date {
  flex: 0 0 auto; min-width: 74px; font-weight: 800; color: var(--green-dark);
  background: var(--green-soft); border-radius: 10px; padding: 4px 8px; text-align: center; font-size: 14px;
}
.schedule .what b { display: block; font-size: 15px; }
.schedule .what small { color: var(--muted); font-size: 13px; }

/* 신청 카드 (명함 카드 느낌) */
.cards { display: grid; gap: 14px; }
.card {
  position: relative; display: block; overflow: hidden;
  padding: 20px 20px 18px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: #fff;
  text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 10px rgba(20, 60, 40, 0.06);
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--green); }
.card.yellow::before { background: var(--yellow); }
.card .tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--green-dark); background: var(--green-soft); padding: 3px 10px; border-radius: 20px; }
.card.yellow .tag { color: #7A5B00; background: var(--yellow-soft); }
.card h3 { margin: 10px 0 4px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.card .go { margin-top: 12px; font-weight: 800; font-size: 14px; color: var(--green); }
.card .jamo { right: 14px; top: 8px; font-size: 54px; color: rgba(30, 138, 74, 0.10); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: 14px; border: none;
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--green); color: #fff; }
.btn.ghost { background: #fff; color: var(--green-dark); border: 1.5px solid var(--line); }
.btn.block { width: 100%; }

/* 안내 박스 */
.notice {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--yellow-soft); border: 1px solid #F2DE98; font-size: 14.5px; color: #5C4800;
}
.notice b { color: #3D3000; }

/* 준비 중 페이지 */
.soon { padding: 56px 0 24px; text-align: center; }
.soon .big { font-size: 64px; font-weight: 900; color: var(--yellow); line-height: 1; }
.soon h1 { font-size: 24px; margin: 18px 0 8px; }
.soon p { color: var(--ink-2); margin: 0 0 24px; }

/* ---- 하단 주최·주관 표기 ---- */
footer { margin-top: 48px; padding: 28px 0 40px; background: #F7F9F8; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
footer dt { font-weight: 700; color: var(--ink-2); }
footer dd { margin: 0; }
footer .note { margin-top: 12px; font-size: 12px; }

/* =====================================================================
   신청폼
   ===================================================================== */
.form-head { padding: 28px 0 8px; }
.form-head .tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--green-dark); background: var(--green-soft); padding: 3px 10px; border-radius: 20px; }
.form-head h1 { font-size: 26px; margin: 10px 0 6px; letter-spacing: -0.02em; line-height: 1.3; }
.form-head p { margin: 0; color: var(--ink-2); font-size: 15px; }

.info { margin: 18px 0 0; padding: 16px 18px; border-radius: var(--radius); background: var(--green-soft); font-size: 14px; color: var(--ink-2); }
.info ul { margin: 0; padding-left: 18px; }
.info li + li { margin-top: 4px; }
.info b { color: var(--ink); }
.tbd { color: var(--muted); font-size: 12px; font-weight: 600; }

.step { margin-top: 28px; padding-top: 4px; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 4px; }
.step-title .num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-size: 14px; font-weight: 800; }

.field { margin-top: 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.req { color: var(--red); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 4px; }
.hint { margin: -2px 0 8px; font-size: 13px; color: var(--muted); }

.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,138,74,.15); }

/* 동그라미·네모 선택지를 큰 버튼 모양으로 */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.col { flex-direction: column; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; min-height: 46px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; cursor: pointer; background: #fff; }
.choice input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30,138,74,.25); }
.choices.wide .choice { flex: 1 1 45%; }
.choices.wide .choice span { justify-content: center; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }

/* 팀원 입력 묶음 */
.member { margin-top: 12px; padding: 14px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.member-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; color: var(--green-dark); }
.member .field { margin-top: 10px; }
.link-btn { background: none; border: none; color: var(--red); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px; }
.btn.add { margin-top: 12px; width: 100%; border: 1.5px dashed var(--green); color: var(--green-dark); background: #fff; }

/* 동의 */
.consent { margin-top: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.consent.all { background: var(--yellow-soft); border-color: #F2DE98; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); }
.check b { font-weight: 700; }
.consent details { margin: 8px 0 0 32px; font-size: 13px; color: var(--ink-2); }
.consent summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.consent details p, .consent details ul { margin: 6px 0 0; }
.consent details ul { padding-left: 18px; }
.consent .sub { margin: 10px 0 0 32px; display: grid; gap: 8px; }

/* 오류 */
.err-msg { margin: 6px 0 0; color: var(--red); font-size: 13.5px; font-weight: 600; }
.err-msg:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error .choice span { border-color: var(--red); }
.consent.has-error { border-color: var(--red); }
.form-error { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #FDECEA; color: var(--red); font-weight: 700; font-size: 14.5px; }

.submit-area { margin-top: 28px; }
.submit-area .small { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* 접수 완료 */
.done { padding: 48px 0 8px; text-align: center; }
.done .big { font-size: 60px; font-weight: 900; color: var(--green); line-height: 1; }
.done h1 { font-size: 24px; margin: 16px 0 8px; }
.done .receipt { display: inline-block; margin: 8px 0 16px; padding: 14px 22px; border-radius: var(--radius); background: var(--green-soft); }
.done .receipt small { display: block; color: var(--muted); font-size: 13px; }
.done .receipt b { font-size: 24px; letter-spacing: 0.04em; color: var(--green-dark); }
.done p { color: var(--ink-2); margin: 0 0 8px; }
.done .notice { text-align: left; margin: 16px 0 24px; }

/* 긴 글 문항 (가족 지원 동기 등) */
.hint-list { margin: -2px 0 10px; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.hint-list li + li { margin-top: 2px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.counter { margin: 6px 0 0; text-align: right; font-size: 12.5px; color: var(--muted); }
