/* 신청 · 결제 화면 공용 (2026-11-16) — 홈페이지(홈.html)와 같은 색 · 글꼴 · 모서리. 회색 바탕 위 흰 칸(토스 주문서 꼴) */
:root {
  --ink: #1C1F25; --ink2: #333840; --body: #4E5968; --sub: #6E747E; --faint: #959CA6;
  --bg: #F3F4F6; --card: #FFFFFF; --soft: #F3F4F6; --soft2: #E9ECF0; --line: #E5E8EB; --rule: #D5D9DF;
  --accent: #2445E5; --accent-hover: #1C38C7; --accent-soft: #EEF1FD; --warn: #D93A2B;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6;
  letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within { outline: 3px solid rgba(36, 69, 229, .3); outline-offset: 2px; }

/* 머리 줄 */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { max-width: 600px; margin: 0 auto; height: 56px; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding: 0 4px; }
.bar-back { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--ink); }
.bar-back:hover { background: var(--soft); }
.bar-back svg { width: 22px; height: 22px; }
.bar-title { text-align: center; font-size: 16px; font-weight: 700; }
.testband { background: #FFF6DA; color: #7A5A00; font-size: 13px; font-weight: 600; text-align: center; padding: 9px 16px; line-height: 1.45; }

/* 본문 */
.page { max-width: 600px; margin: 0 auto; padding: 22px 16px 140px; display: grid; gap: 12px; }
.head { padding: 8px 6px 14px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--accent); }
.head h1 { margin-top: 6px; font-size: 26px; line-height: 1.35; font-weight: 700; letter-spacing: -0.035em; }
.head .sub { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--body); }
.blk { background: var(--card); border-radius: var(--r-lg); padding: 22px 20px; }
.blk h2 { font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: -0.03em; }
.blk h2 + * { margin-top: 14px; }
.grp { margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--sub); }
#pick > :first-child { margin-top: 0; }
.blk .note { margin-top: 12px; font-size: 14px; color: var(--sub); }
.err { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--warn); }
.err:empty { display: none; }

/* 고르는 칸 */
.opts { display: grid; gap: 8px; margin-top: 10px; }
.opt { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--rule); }
.opt .ck { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--rule); display: grid; place-items: center; background: #fff; transition: background .15s, border-color .15s; }
.opt .ck svg { width: 14px; height: 14px; opacity: 0; }
.opt b { display: block; font-size: 16px; line-height: 1.4; font-weight: 700; }
.opt small { display: block; margin-top: 2px; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.opt .pr { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt[aria-checked="true"] .ck { background: var(--accent); border-color: var(--accent); }
.opt[aria-checked="true"] .ck svg { opacity: 1; }
.opt[aria-disabled="true"] { cursor: default; }
.opt[data-full] { background: var(--soft); border-color: var(--line); }
.opt[data-full] b, .opt[data-full] small { color: var(--faint); }
.opt[data-full] .pr { color: var(--warn); }
.opt[data-full] .ck { background: var(--soft2); border-color: var(--line); }
.allbtn { margin-top: 12px; width: 100%; height: 46px; border-radius: var(--r-sm); border: 0; background: var(--soft); font-size: 15px; font-weight: 700; color: var(--ink2); }
.allbtn:hover { background: var(--soft2); }

/* 입력 칸 */
.fld { display: block; margin-top: 14px; }
.fld:first-of-type { margin-top: 14px; }
.fld span { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); }
.fld input { margin-top: 6px; width: 100%; height: 52px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; padding: 0 14px; font-size: 17px; }
.fld input:focus { border-color: var(--accent); outline: none; }
.fld input[aria-invalid="true"] { border-color: var(--warn); }
.fld .hint { display: block; margin-top: 2px; font-size: 13px; color: var(--sub); font-weight: 400; font-style: normal; }

/* 꼭 확인해 주세요 */
.terms { background: var(--soft); border-radius: var(--r-md); padding: 16px 16px 16px 18px; display: grid; gap: 8px; }
.terms li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.terms li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.agree { margin-top: 14px; display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: 0 0 auto; }

/* 결제 수단(토스페이먼츠가 그리는 칸) */
.toss { margin: 0 -8px; }
.blk.wait { color: var(--sub); font-size: 15px; }

/* 값 */
.sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--body); margin-top: 8px; font-variant-numeric: tabular-nums; }
.sumrow.total { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--ink); }
.sumrow.off span:last-child { color: var(--accent); font-weight: 700; }

/* 아래 고정 결제 단추 */
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.paybar-in { max-width: 568px; margin: 0 auto; }
.paybtn { width: 100%; height: 56px; border: 0; border-radius: var(--r-md); background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; transition: background .15s; }
.paybtn:hover { background: var(--accent-hover); }
.paybtn:disabled { background: #B9C2F3; cursor: default; }

/* 결과 화면 */
.done { text-align: center; padding: 34px 20px 26px; }
.done .mark { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.done .mark svg { width: 30px; height: 30px; }
.done .mark.bad { background: #FDEDEB; color: var(--warn); }
.done h1 { font-size: 24px; line-height: 1.4; font-weight: 700; letter-spacing: -0.035em; }
.done p { margin-top: 10px; font-size: 15px; color: var(--body); }
.spin { width: 36px; height: 36px; margin: 0 auto 18px; border-radius: 50%; border: 3.5px solid var(--soft2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
.kv { display: grid; gap: 10px; }
.kv div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; font-size: 15px; }
.kv dt, .kv span:first-child { color: var(--sub); }
.kv b { font-weight: 600; }
.next li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; color: var(--ink2); counter-increment: n; }
.next { counter-reset: n; display: grid; gap: 10px; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.btns { display: grid; gap: 8px; margin-top: 4px; }
.btn { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: var(--r-md); background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; }
.btn.line { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
button.btn { width: 100%; border: 0; cursor: pointer; }
button.btn:disabled { background: #B9C2F3; cursor: default; }
.btn.find { margin-top: 18px; }

/* 주문 조회 */
.ord h2 { margin-top: 10px; font-size: 17px; line-height: 1.5; }
.ord .kv { margin-top: 14px; }
.ord .btns { margin-top: 14px; }
.ord-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.tag.off { background: var(--soft2); color: var(--sub); }
.ord-day { font-size: 13px; color: var(--sub); }
.lnk { color: var(--accent); font-weight: 700; }

/* 바닥 */
.foot { max-width: 600px; margin: 0 auto; padding: 8px 22px 160px; font-size: 12px; line-height: 1.7; color: var(--faint); }
.foot a { text-decoration: underline; text-underline-offset: 2px; }
