/* 2026 완구세미나 — 공통 스타일 (시안 색상 기준) */
:root {
  --navy: #0B3D7A;
  --blue: #1E6FD9;
  --blue-soft: #EEF5FE;
  --blue-line: #CFE2FB;
  --teal: #0E8F7E;
  --teal-dark: #0B6357;
  --teal-soft: #E8F6F3;
  --teal-line: #BFE6DE;
  --yellow: #FFC83D;
  --pay-bg: #FFF4D6;
  --pay-line: #F3D78A;
  --pay-title: #7A4F00;
  --pay-text: #4A3A10;
  --red: #E5484D;
  --ink: #1A2433;
  --ink-2: #3D4756;
  --sub: #5B6675;
  --line: #D9E3EF;
  --line-2: #E6ECF3;
  --muted-bg: #F5F8FC;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  color: var(--ink);
  background: #E9F1FA;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--blue); }
a:hover { color: var(--navy); }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #8A94A3; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* 모바일 페이지 컨테이너 */
.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #DCEEFC 0px, #EAF4FD 700px, #FFFFFF 1400px, #FFFFFF 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(11, 61, 122, .06);
}
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.topbar .org { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.pill-link {
  font-size: 13px; font-weight: 500; text-decoration: none; padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
}

/* 버튼 */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; border-radius: 12px; border: none; padding: 0 16px;
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; width: 100%;
  transition: filter .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-primary:disabled { background: #C9D3DF; color: #4A5565; cursor: not-allowed; filter: none; transform: none; }
.btn-ghost { height: 48px; font-size: 14px; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--navy); background: #F7FAFE; }
.btn-danger-ghost { height: 48px; font-size: 14px; background: #fff; color: #C9373C; border: 1px solid #F2C9CB; }

/* 2지선다 토글 */
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg button {
  height: 52px; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer;
  background: #fff; color: var(--ink-2); border: 1px solid var(--line);
}
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; border: 2px solid var(--blue); }
.seg.teal button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); }
.seg.invalid button { border-color: var(--red); }

/* 폼 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 14px; font-weight: 700; }
.req { color: var(--red); }
.input {
  height: 52px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px;
  font-size: 16px; background: #fff; width: 100%; color: var(--ink);
}
.input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.input.invalid { border-color: var(--red); }
.help { font-size: 12px; color: var(--sub); line-height: 1.5; }
.err { font-size: 12px; color: #C9373C; font-weight: 500; }

.card-box { background: #fff; border-radius: 16px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); }
.card-box .head { display: flex; flex-direction: column; gap: 2px; }
.card-box .head b { font-size: 16px; font-weight: 800; }
.card-box .head span { font-size: 13px; color: var(--sub); }

.notice-free { border-radius: 14px; padding: 14px 16px; background: var(--teal-soft); color: var(--teal-dark); font-size: 14px; font-weight: 700; }

/* 비회원사 입금 안내 박스 */
.paybox { border-radius: 16px; padding: 18px 16px; background: var(--pay-bg); border: 1px solid var(--pay-line); display: flex; flex-direction: column; gap: 10px; }
.paybox .t { font-size: 15px; font-weight: 800; color: var(--pay-title); }
.paybox .d { font-size: 14px; line-height: 1.6; color: var(--pay-text); }
.paybox .acct { background: #fff; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.paybox .acct small { display: block; font-size: 12px; color: var(--sub); }
.paybox .acct b { font-size: 16px; font-variant-numeric: tabular-nums; }
.paybox .copy { flex-shrink: 0; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; }
.paybox .input { height: 48px; border-color: #E8D59B; border-radius: 10px; font-size: 15px; }
.paybox label { font-size: 13px; font-weight: 700; color: var(--pay-text); }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0;
  background: rgba(26, 36, 51, .92); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; z-index: 1000; pointer-events: none; transition: all .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 모달 / 오버레이 */
.overlay { position: fixed; inset: 0; background: rgba(10, 20, 35, .85); z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 14px; }
.overlay img { max-width: 100%; max-height: 72vh; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.4); -webkit-touch-callout: default; user-select: auto; }
.overlay p { color: #fff; font-size: 16px; font-weight: 700; margin: 0; text-align: center; }
.overlay .close { background: #fff; color: var(--ink); border: none; height: 44px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(30,111,217,.2); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
