/* ===== Tokens ===== */
:root {
  --bg: #0a0a0a;
  --card: rgba(8, 8, 8, 0.72);
  --line: #2b2b2b;
  --line-strong: #444;
  --text: #f3f3f3;
  --muted: #9b9b9b;
  --accent: #ff6b2c;
  --accent-soft: rgba(255, 107, 44, 0.14);
  --error: #ff5a5a;
  --radius: 10px;
  --max: 780px;
  --pad: 24px;
  --header-h: 71px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* 스크롤바 자리를 항상 비워둬서, 스크롤 유무가 다른 페이지로 이동해도 내용이 좌우로 밀리지 않게 */
  scrollbar-gutter: stable;
}
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  /* 콘텐츠 바깥: 회색 질감 */
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(255,255,255,0.07), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 35%, rgba(255,255,255,0.05), transparent 70%),
    radial-gradient(ellipse 70% 40% at 30% 70%, rgba(255,255,255,0.045), transparent 70%),
    radial-gradient(ellipse 50% 30% at 80% 92%, rgba(255,255,255,0.05), transparent 70%);
  background-attachment: fixed;
  line-height: 1.6;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--accent); }
fieldset { border: 0; min-width: 0; }

/* ===== Page (780px 콘텐츠 영역 · 블랙, 바깥은 body 의 회색 질감) ===== */
.page {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  /* 콘텐츠 영역: 블랙 */
  background-color: #050505;
  box-shadow: 0 0 0 1px #151515;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #1c1c1c;
}

.logo {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.header .logo { display: inline-flex; align-items: center; }
.logo-img { display: block; height: 30px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.btn-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: #2a2522;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-chip:hover { background: #3a302b; }

.menu-btn {
  position: relative;
  width: 24px;
  height: 24px;
}
.menu-btn span {
  position: absolute;
  left: 2px;
  right: 2px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, top 0.25s;
}
.menu-btn span:nth-child(1) { top: 7px; }
.menu-btn span:nth-child(2) { top: 15px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 11px; transform: rotate(-45deg); }

/* ===== Drawer ===== */
.drawer {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  z-index: 25;
  height: 0;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.96);
  transition: height 0.3s ease;
}
.drawer.open { height: 230px; border-bottom: 1px solid #1c1c1c; }
.drawer ul { list-style: none; padding: 12px var(--pad) 20px; }
.drawer a {
  display: block;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #1c1c1c;
}
.drawer a:hover { color: var(--accent); }

/* ===== Sections ===== */
.section { padding: 64px var(--pad) 16px; }
.hero { padding-top: 56px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #cfcfcf;
  margin-bottom: 14px;
}
.eyebrow-icon { color: #bdbdbd; font-size: 13px; }

.headline {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.04em;
}
.headline em { font-weight: 800; }

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

.req { color: var(--accent); }
.muted { color: var(--muted); }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition: filter 0.2s, transform 0.1s;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.hero-cta { margin-top: 32px; }

/* ===== Accordion ===== */
.accordion { margin-top: 40px; display: grid; gap: 14px; }

.acc-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.acc-item.open { border-color: var(--line-strong); }

.acc-head {
  position: relative;
  display: block;
  width: 100%;
  padding: 36px 72px 38px 28px;
  text-align: left;
}

.acc-num {
  display: block;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.acc-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.acc-icon {
  position: absolute;
  top: 38px;
  right: 30px;
  width: 20px;
  height: 20px;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 1.5px;
  background: #cfcfcf;
  transition: transform 0.3s;
}
.acc-icon::after { transform: rotate(90deg); }
.acc-item.open .acc-icon::after { transform: rotate(0deg); }

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p {
  margin: 0 28px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

/* ===== Overview ===== */
.overview {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ov-item {
  padding: 24px 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ov-item dt {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.ov-item dd { font-size: 17px; font-weight: 600; line-height: 1.5; }
.ov-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

/* ===== Form ===== */
.form { margin-top: 32px; display: grid; gap: 14px; padding-bottom: 48px; }

.card {
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-title {
  float: left;            /* lets legend sit inside the padded card */
  width: 100%;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 24px;
}
.card-title + * { clear: both; }

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.field-row .field:last-child { margin-bottom: 22px; }

.field label,
.field .label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #dcdcdc;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;          /* 16px+ prevents iOS zoom on focus */
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
}
textarea { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #666; }
/* 브라우저 자동완성 시 밝은 배경/검정 글씨로 바뀌는 것 방지 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset;
  transition: background-color 9999s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.invalid input, .invalid select, .invalid textarea { border-color: var(--error); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #bbb;
  border-bottom: 1.5px solid #bbb;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
select:invalid { color: #666; }
select option { color: var(--text); background: #151515; }
/* 드롭다운 안의 그룹 제목 (윈도우 크롬에서 어둡게 묻히지 않도록 색 지정) */
select optgroup { color: #ff8a3d; background: #151515; font-style: normal; font-weight: 700; }
select optgroup option { color: var(--text); font-weight: 400; }
select option:disabled { color: #8a8a8a; }

/* chips (radio) */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
  font-weight: 600;
  color: #bbb;
  transition: all 0.2s;
}
.chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.invalid .chip span { border-color: var(--error); }

.field-foot { display: flex; justify-content: space-between; gap: 12px; }
.counter { margin-top: 6px; font-size: 13px; color: #777; white-space: nowrap; }

.error {
  min-height: 0;
  margin-top: 6px;
  font-size: 13px;
  color: var(--error);
}
.error:empty { display: none; }
.field-foot .error:empty { display: block; }

/* terms */
.terms {
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 14px;
  color: #c9c9c9;
  display: grid;
  gap: 6px;
}
.terms b { display: inline-block; min-width: 100px; color: var(--text); font-weight: 600; }

/* checkbox */
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; }
.check-box {
  flex: none;
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid #666;
  border-radius: 5px;
  transition: all 0.2s;
}
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-submit { width: 100%; margin-top: 10px; height: 60px; font-size: 18px; }

/* ===== Footer ===== */
.footer {
  padding: 40px var(--pad) calc(48px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #1c1c1c;
  color: #777;
  font-size: 14px;
  display: grid;
  gap: 4px;
}
.logo-sm { font-size: 18px; color: #bbb; margin-bottom: 8px; }
.footer .logo-img { height: 22px; opacity: 0.75; }
.copy { margin-top: 8px; font-size: 12px; color: #555; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  animation: fade 0.2s ease;
}
.modal[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 28px 28px;
  background: #111;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.modal-title { font-size: 24px; font-weight: 700; line-height: 1.45; letter-spacing: -0.04em; }
.modal-card .btn-primary { width: 100%; margin-top: 28px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.pc-only { display: inline; }

/* ===== Round buttons (1차/2차/3차) ===== */
.rounds {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.round {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
}
.round-name { font-size: 17px; font-weight: 700; }
.round-state { font-size: 13px; color: #777; }
.round.is-open { background: var(--accent); border-color: var(--accent); transition: filter 0.2s; }
.round.is-open:hover { filter: brightness(1.08); }
.round.is-open .round-state { color: rgba(255, 255, 255, 0.85); }
.round:disabled { cursor: not-allowed; }
.round:disabled .round-name { color: #666; }

/* ===== Participants ===== */
.hint { margin-top: 8px; font-size: 13px; color: var(--muted); }

.card-group-title {
  margin-top: 18px;
  padding: 0 4px;
  font-size: 19px;
  font-weight: 700;
}
.participants { display: grid; gap: 14px; }

.person-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.person-sub { font-size: 16px; font-weight: 700; color: var(--accent); white-space: nowrap; }

.sub-title {
  margin: 30px 0 16px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-size: 16px;
  font-weight: 700;
}
.price-tag { font-size: 12px; font-weight: 600; color: var(--accent); margin-left: 4px; }

.ox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 12px;
}
.ox-grid .field { margin-bottom: 0; }
.ox-grid .chips { gap: 6px; }
.ox-grid .chip span { height: 46px; padding: 0 4px; font-size: 14px; white-space: nowrap; letter-spacing: -0.02em; }

/* ===== Summary ===== */
.summary .card-title { float: none; }
.summary-list { list-style: none; display: grid; gap: 12px; }
.summary-list li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; }
.summary-detail { margin-top: 2px; font-size: 13px; color: var(--muted); }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
}
.summary-total strong { font-size: 26px; color: var(--accent); letter-spacing: -0.03em; }

.done-total { color: var(--accent); }

/* ===== Floating total bar ===== */
.totalbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
}
.totalbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad);
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
}
.totalbar-text { display: flex; flex-direction: column; line-height: 1.3; }
.totalbar-text span { font-size: 13px; color: var(--muted); }
.totalbar-text strong { font-size: 20px; color: var(--accent); }
.totalbar .btn-primary { height: 48px; padding: 0 28px; font-size: 16px; }
body.has-bar .footer { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

/* ===== Mobile ===== */
@media (max-width: 600px) {
  :root { --pad: 20px; }

  .logo { font-size: 20px; }
  .logo-img { height: 25px; }
  .btn-chip { font-size: 13px; height: 32px; padding: 0 10px; }

  .section { padding-top: 52px; }
  .hero { padding-top: 44px; }
  .headline { font-size: 23px; }
  .lead { font-size: 15px; }
  .pc-only { display: none; }

  .rounds { gap: 8px; }
  .round { height: 64px; }
  .round-name { font-size: 15px; }
  .round-state { font-size: 12px; }

  .ox-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .person-sub { font-size: 15px; }
  .summary-total strong { font-size: 22px; }

  .accordion { margin-top: 32px; gap: 12px; }
  .acc-head { padding: 28px 60px 30px 24px; }
  .acc-icon { top: 30px; right: 24px; }
  .acc-num { font-size: 14px; margin-bottom: 10px; }
  .acc-title { font-size: 16px; }
  .acc-inner p { margin: 0 24px 26px; font-size: 15px; }

  .overview { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .ov-item { display: flex; gap: 16px; padding: 20px; }
  .ov-item dt { flex: none; width: 72px; margin: 2px 0 0; }
  .ov-item dd { font-size: 16px; }

  .card { padding: 26px 20px; }
  .card-title { font-size: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .field-row .field { margin-bottom: 22px; }
}


/* ===== Header: 신청서 확인 버튼 ===== */
.btn-chip-line {
  background: transparent;
  border: 1px solid #3a3330;
  color: #e6e6e6;
}
.btn-chip-line:hover { background: #1d1a18; border-color: var(--accent); color: var(--accent); }

/* ===== Lookup modal ===== */
body.modal-open { overflow: hidden; }
.modal { overflow-y: auto; }
.lookup-card {
  position: relative;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: auto;
}
.modal-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.modal-x::before,
.modal-x::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  width: 18px;
  height: 1.5px;
  background: #ccc;
  transform: rotate(45deg);
}
.modal-x::after { transform: rotate(-45deg); }
.modal-x:hover { background: #1f1f1f; }

.lookup-form { margin-top: 24px; }
.lookup-form .field-row .field:last-child { margin-bottom: 0; }
.lookup-form .error { margin: 14px 0 0; }
.lookup-form .btn-primary { width: 100%; margin-top: 20px; }
.modal-card .hint { margin-top: 12px; }

#lookupResult { margin-top: 24px; display: grid; gap: 14px; }
.lk-app {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.lk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lk-round { color: var(--accent); font-weight: 700; font-size: 16px; }
.lk-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #222;
  color: #ddd;
}
.lk-status-입금확인 { background: rgba(95, 211, 141, 0.14); color: #5fd38d; }
.lk-status-취소 { background: rgba(255, 122, 122, 0.12); color: #ff7a7a; }
.lk-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }

.lk-people { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.lk-person {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: #cfcfcf;
}
.lk-person p { margin-top: 2px; }
.lk-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--text); }
.lk-row span { font-weight: 600; white-space: nowrap; }

.lk-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-weight: 700;
}
.lk-total strong { font-size: 22px; color: var(--accent); }

.btn-ghost-full {
  width: 100%;
  height: 50px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  font-size: 15px;
  font-weight: 600;
}
.btn-ghost-full:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 600px) {
  .header-actions { gap: 6px; }
  .menu-btn { margin-left: 4px; }
  .modal { padding: 12px; align-items: flex-start; }
  .lookup-card { max-height: none; padding: 28px 20px 22px; }
  .lookup-form .field-row { grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .lookup-form .field-row .field { margin-bottom: 0; }
}
@media (max-width: 380px) {
  .logo { font-size: 17px; }
  .logo-img { height: 21px; }
  .btn-chip { font-size: 12px; padding: 0 8px; }
}

/* ===== 일정 선택 ===== */
.schedule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.schedule { position: relative; display: block; cursor: pointer; margin: 0 !important; }
.schedule input { position: absolute; opacity: 0; inset: 0; }
.schedule-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}
.schedule-box b { font-size: 18px; font-weight: 700; color: var(--text); }
.schedule-box span { font-size: 14px; color: #cfcfcf; }
.schedule-box small { margin-top: 4px; font-size: 13px; color: var(--muted); }
.schedule input:checked + .schedule-box { border-color: var(--accent); background: var(--accent-soft); }
.schedule input:checked + .schedule-box b { color: var(--accent); }
.schedule input:focus-visible + .schedule-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.invalid .schedule-box { border-color: var(--error); }
[data-field="schedule"] .hint { margin-top: 10px; }

.summary-schedule {
  margin: -8px 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 600;
  color: #e6e6e6;
}
.lk-schedule { margin-top: 8px; font-size: 15px; font-weight: 600; }

@media (max-width: 600px) {
  .schedule-list { grid-template-columns: 1fr; }
}
.schedule-price { margin-top: 8px; font-style: normal; font-size: 15px; font-weight: 700; color: var(--text); }
.schedule input:checked + .schedule-box .schedule-price { color: var(--accent); }

/* ===== 메인 첫 화면 버튼 ===== */
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  font-size: 17px;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* ===== 신청 페이지: 차수 탭 ===== */
.apply-hero { padding-bottom: 0; }
.round-tabs {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line-strong);
}
.round-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 8px 14px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  color: #777;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.round-tab .round-name { font-size: 18px; font-weight: 700; }
.round-tab .round-state { font-size: 13px; color: #666; }
.round-tab:hover { color: #bbb; }
.round-tab.on { color: var(--accent); border-bottom-color: var(--accent); background: linear-gradient(to top, var(--accent-soft), transparent); }
.round-tab.on .round-state { color: #e0a080; }
.round-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.round-panel { padding-top: 48px; }

.closed-panel {
  padding: 48px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.closed-panel .eyebrow { justify-content: center; }
.closed-panel { margin-bottom: 48px; }

@media (max-width: 600px) {
  .hero-actions .btn-primary, .hero-actions .btn-line { flex: 1 1 140px; }
  .round-tabs { margin-top: 28px; }
  .round-tab { padding: 14px 4px 12px; }
  .round-tab .round-name { font-size: 16px; }
  .round-tab .round-state { font-size: 12px; }
  .round-panel { padding-top: 40px; }
  .closed-panel { padding: 40px 20px; }
}

/* ===== 접수 완료 창: 입금 안내 ===== */
.done-card { max-width: 460px; max-height: calc(100vh - 48px); overflow-y: auto; }
.done-schedule { margin-top: 14px; font-size: 15px; color: var(--muted); }
.done-amount { margin-top: 20px; font-size: 18px; font-weight: 700; }
.done-amount .done-total { font-size: 22px; }
.bank {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-size: 15px;
}
.bank div { display: flex; align-items: center; gap: 12px; }
.bank dt { flex: none; width: 64px; color: var(--muted); font-size: 14px; }
.bank dd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.copy-btn {
  height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 600;
  color: #ddd;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.done-note { margin-top: 16px; font-size: 14px; }

/* ===== 신청서 확인: 진행 상태 배너 ===== */
.lk-banner {
  --tone: #ffb547;
  margin: -20px -20px 18px;
  padding: 18px 20px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 18%, transparent), color-mix(in srgb, var(--tone) 6%, transparent));
}
.lk-banner-입금확인 { --tone: #5fd38d; }
.lk-banner-취소 { --tone: #ff7a7a; }
.lk-banner-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--tone); opacity: 0.85; }
.lk-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tone);
}
.lk-banner-title i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 25%, transparent);
}
.lk-banner-접수 .lk-banner-title i { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--tone) 10%, transparent); } }
.lk-banner-desc { margin-top: 6px; font-size: 14px; color: #ddd; }
.lk-banner-bank {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 13px;
  font-weight: 600;
  color: #eee;
}
.lk-id { font-size: 13px; color: var(--muted); }
.lk-id b { margin-left: 4px; font-size: 15px; color: var(--text); letter-spacing: 0.04em; }

@media (max-width: 600px) {
  .lk-banner-title { font-size: 19px; }
}

/* ===== 메뉴 높이 (항목 4개 · 항목을 늘리면 같이 늘려야 함) ===== */
.drawer.open { height: 250px; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===== 문의게시판 ===== */
.board { padding-bottom: 64px; }
.board-view { margin-top: 32px; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }

.board-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.board-count { font-size: 14px; color: var(--muted); }
.board-count b { color: var(--text); }

.board-list { list-style: none; border-top: 1px solid var(--line-strong); }
.board-list li { border-bottom: 1px solid var(--line); }
.board-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-areas: "no title state" "no meta state";
  align-items: center;
  gap: 2px 14px;
  padding: 16px 8px;
  transition: background 0.15s;
}
.board-row:hover { background: rgba(255, 255, 255, 0.03); }
.board-no { grid-area: no; font-size: 13px; color: #777; text-align: center; }
.board-title { grid-area: title; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 16px; font-weight: 600; }
.board-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-meta { grid-area: meta; font-size: 13px; color: var(--muted); }
.board-state {
  grid-area: state;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #222;
  color: #999;
  white-space: nowrap;
}
.board-state.done { background: var(--accent-soft); color: var(--accent); }
.board-empty { padding: 48px 12px; text-align: center; color: var(--muted); list-style: none; }

/* 자물쇠 아이콘 */
.lock {
  flex: none;
  position: relative;
  display: inline-block;
  width: 11px;
  height: 9px;
  margin-top: 4px;
  border-radius: 2px;
  background: #bbb;
}
.lock::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 7px;
  width: 7px;
  height: 6px;
  border: 1.5px solid #bbb;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}
.lock-lg { transform: scale(2); margin: 10px 0 18px 8px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager button {
  min-width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: #aaa;
}
.pager button.on { border-color: var(--accent); color: var(--accent); font-weight: 700; }

.board-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.board-actions .btn-line, .board-actions .btn-primary { height: 48px; font-size: 16px; padding: 0 22px; }
#writeForm .check { margin-top: 4px; }
#writeForm .hint { margin-top: 10px; }

.pin-gate { max-width: 420px; margin: 0 auto; text-align: center; }
.pin-gate .card-title { float: none; margin-bottom: 4px; }
.pin-gate .lead { margin-top: 0; font-size: 15px; }
.pin-gate input { margin-top: 20px; text-align: center; letter-spacing: 0.4em; }
.pin-gate .board-actions { justify-content: center; }

.post-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #222;
  color: #aaa;
  font-size: 12px;
  font-weight: 700;
}
.tag .lock { margin-top: 3px; transform: scale(0.85); }
.tag-done { background: var(--accent-soft); color: var(--accent); }
.post-title { margin-top: 12px; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; word-break: break-word; }
.post-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.post-body { margin-top: 18px; font-size: 16px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; color: #e6e6e6; }
.post-answer {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--accent-soft);
}
.post-answer-label { font-size: 14px; font-weight: 700; color: var(--accent); }
.post-answer-label span { margin-left: 6px; font-weight: 500; color: var(--muted); }
.post-answer .post-body { margin-top: 8px; }
.post-waiting { margin-top: 28px; padding: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 14px; text-align: center; }

.btn-danger:hover { border-color: var(--error); color: var(--error); }
.btn-danger-fill { background: #d64545; }
.del-box { margin-top: 12px; }
.del-box p:first-child { font-size: 14px; color: #ccc; }
.del-row { display: flex; gap: 8px; margin-top: 12px; }
.del-row input { flex: 1; }
.del-row .btn-primary { height: 52px; flex: none; }
.board-msg { text-align: center; }
.board-msg .btn-line { margin-top: 16px; }

@media (max-width: 600px) {
  .board-row { grid-template-columns: 1fr auto; grid-template-areas: "title state" "meta state"; padding: 14px 4px; }
  .board-no { display: none; }
  .board-title { font-size: 15px; }
  .post-title { font-size: 19px; }
  .post-body { font-size: 15px; }
  .board-actions .btn-line, .board-actions .btn-primary { flex: 1; }
}

/* ===== 빕 보증금 환불 계좌 (STEP 1) ===== */
.refund {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #262626);
}
.refund-title { font-size: 15px; font-weight: 700; }
.refund-desc { margin: 6px 0 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.refund-desc b { color: var(--accent); font-weight: 600; }
.refund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.refund-grid .field { margin-bottom: 18px; }
.refund-grid .field-wide { grid-column: 1 / -1; margin-bottom: 0; }
.lk-refund { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) {
  .refund-grid { gap: 0 10px; }
}

/* ===== 의류 '만 12세 미만' → 신장 · 몸무게 ===== */
.kid-size {
  margin: -4px 0 22px;
  padding: 16px 16px 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.kid-size-desc { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.kid-size .field-row .field:last-child,
.kid-size .field { margin-bottom: 16px; }
@media (max-width: 600px) {
  .kid-size .field-row { grid-template-columns: 1fr 1fr; gap: 0 10px; }
}
.schedule-price small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }

/* 강습 레벨 아래 유의사항 */
.notes { margin-top: 10px; list-style: none; display: grid; gap: 4px; }
.notes li { position: relative; padding-left: 12px; font-size: 13px; line-height: 1.55; color: var(--muted); word-break: keep-all; }
.notes li::before { content: "*"; position: absolute; left: 0; }

/* 확인 체크 (STEP 1 · STEP 3) */
.confirm { margin-top: 22px; }
.confirm-q { margin-bottom: 10px; font-size: 14px; line-height: 1.6; word-break: keep-all; }
.confirm .chips { max-width: 320px; }
.refund .field:last-child { margin-bottom: 0; }

/* 알게 된 경로 (중복 선택 · 체크박스) */
.referral { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.referral-item { display: grid; gap: 8px; align-content: start; }
.referral .check { margin: 0; }
.referral-detail { height: 42px; font-size: 14px; }

/* STEP 4 입금자명 */
.depositor { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

/* 렌탈 O/X: 항목명이 두 줄이 되어도 O/X 버튼 높이를 맞춤 */
.ox-grid .field { display: flex; flex-direction: column; }
.ox-grid .field > .label { flex: 1; }
.ox-grid .price-tag { white-space: nowrap; }

/* STEP 4 현금영수증 */
.receipt-chips { max-width: 320px; }
.receipt-phone { margin-top: 14px; }
.receipt-type { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 10px; }
.receipt-type .check { display: flex; align-items: center; margin: 0; font-size: 15px; font-weight: 500; color: var(--text); }
.receipt-num-label { display: block; margin-top: 16px; }
.kid-size + .kid-size { margin-top: 0; }
.lookup-forgot { margin: 4px 0 14px; line-height: 1.6; }
.lookup-forgot a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ===== 첫 페이지: 핵심포인트 · 접수 안내 ===== */
.kp-list { list-style: none; display: grid; gap: 10px; margin-top: 32px; }
.kp-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px 16px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 16px; font-weight: 500; line-height: 1.5; word-break: keep-all;
}
.kp-list li b { color: var(--text); font-weight: 700; }
.kp-check {
  flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #ff5a1f, #ffa02c);
}
.kp-check::after {
  content: ""; position: absolute; left: 14px; top: 10px; width: 9px; height: 16px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}

.reg-title { display: flex; align-items: center; gap: 16px; margin: 56px 0 20px; font-size: 20px; font-weight: 700; }
.reg-title::before, .reg-title::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.reg-box { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.reg-list { display: grid; gap: 10px; }
.reg-list + .reg-list { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.reg-list > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: start; }
.reg-list dt {
  padding: 3px 0; border-radius: 999px; background: #3a3a3a;
  font-size: 13px; font-weight: 600; text-align: center; color: #eee;
}
.reg-list dd { font-size: 14px; line-height: 1.7; color: #ddd; word-break: keep-all; }
.reg-list dd b { color: var(--text); }
.reg-list mark { padding: 0 4px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.reg-warn { margin-top: 4px; color: #ff6b6b; font-weight: 600; }
.reg-note { margin-top: 2px; }
.reg-foot { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--muted); word-break: keep-all; }

@media (max-width: 600px) {
  .kp-list li { gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; font-size: 14px; }
  .kp-check { width: 32px; height: 32px; }
  .kp-check::after { left: 11px; top: 7px; width: 8px; height: 14px; }
  .reg-box { padding: 20px 16px; }
  .reg-list > div { grid-template-columns: 1fr; gap: 6px; }
  .reg-list dt { justify-self: start; padding: 3px 12px; }
}

/* ===== 첫 페이지 상단 탭 ===== */
.page-tabs {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  z-index: 20;
  display: flex;
  gap: 28px;
  padding: 0 var(--pad);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #1c1c1c;
}
.page-tabs::-webkit-scrollbar { display: none; }
.page-tabs a {
  position: relative;
  flex: none;
  padding: 14px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #777;
  white-space: nowrap;
  transition: color 0.2s;
}
.page-tabs a:hover { color: #bbb; }
.page-tabs a.on { color: var(--text); }
.page-tabs a.on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
/* 탭이 있는 페이지는 바로가기 위치를 탭 높이만큼 더 내림 */
html:has(.page-tabs) { scroll-padding-top: calc(var(--header-h) + 64px); }
@media (max-width: 600px) {
  .page-tabs { gap: 22px; }
  .page-tabs a { font-size: 15px; }
}

/* ===== 첫 페이지: 팀 케슬러-코리아 라이더 ===== */
.riders { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 32px; }
.rider { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); text-align: center; }
.rider-cat { padding: 6px 4px; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.rider-cat .alpine { color: #5b8cff; }
.rider-cat .free { color: #ff5a5a; }
.rider-cat .ski { color: #e9a93a; }
.rider img { display: block; width: 100%; aspect-ratio: 168 / 134; object-fit: cover; }
.rider-name { margin-top: 10px; font-size: 16px; font-weight: 700; }
.rider-desc { padding: 4px 8px 14px; font-size: 12px; line-height: 1.5; color: var(--muted); word-break: keep-all; }
.riders-note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 600px) {
  .riders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rider-cat { font-size: 12px; }
}

/* 강습 레벨 아래 "강습반 자세히 보기" (펼침) */
.lesson-guide { margin-top: 12px; }
.lesson-guide summary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.lesson-guide summary::-webkit-details-marker { display: none; }
.lesson-guide summary::after { content: "펼치기"; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lesson-guide[open] summary::after { content: "접기"; }
.lesson-guide summary:hover::after { opacity: 0.8; }
.lg-body { display: grid; gap: 18px; padding-top: 2px; }
.lg-sport { margin: 14px 0 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.lg-group ul { list-style: none; display: grid; gap: 8px; }
.lg-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.lg-class { font-size: 14px; font-weight: 700; }
.lg-row dl { display: grid; gap: 4px; }
.lg-row dl div { display: grid; grid-template-columns: 58px 1fr; gap: 8px; font-size: 13px; line-height: 1.55; }
.lg-row dt { color: var(--muted); }
.lg-row dd { color: #ddd; word-break: keep-all; }
.lg-class { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lg-own { padding: 1px 7px; font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; white-space: nowrap; }
.lg-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lg-note { display: grid; gap: 4px; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.55; word-break: keep-all; }
.lg-note b { font-size: 14px; }
.lg-note.warn { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--accent); }
.lg-note.warn b { color: var(--accent); }
.lg-note.junior { background: var(--accent-soft); }
.lg-note span { color: #ddd; }
.lg-foot { list-style: none; display: grid; gap: 4px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.lg-foot li::before { content: "※ "; color: var(--accent); }
@media (max-width: 600px) {
  .lg-row { grid-template-columns: 1fr; gap: 6px; }
  .lg-class { flex-direction: row; align-items: center; }
  .lg-notes { grid-template-columns: 1fr; }
}

/* 신청서 확인: 취소요청 */
.lk-banner-취소요청 { --tone: #ffb547; }
.lk-banner-환불완료, .lk-banner-취소완료 { --tone: #ff7a7a; }
.lk-cancel { margin-top: 14px; text-align: right; }
.lk-cancel-btn { padding: 6px 2px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.lk-cancel-btn:hover { color: #ff7a7a; }
.lk-cancel-ask { margin-top: 4px; padding: 16px; border: 1px solid rgba(255, 122, 122, 0.35); border-radius: var(--radius); background: rgba(255, 122, 122, 0.06); text-align: left; font-size: 14px; line-height: 1.6; }
.lk-cancel-ask .muted { font-size: 13px; }
.lk-cancel-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.lk-cancel-actions { align-items: center; }
.lk-cancel-actions button, .modal-card .lk-cancel-actions .btn-primary { width: auto; height: 40px; margin: 0; padding: 0 16px; font-size: 14px; }

/* 푸터 사업자 정보 */
.biz { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; line-height: 1.6; color: #6f6f6f; }
.biz > div { display: flex; gap: 6px; }
.biz > div:not(:last-child)::after { content: "|"; margin-left: 8px; color: #333; }
.biz dt { color: #555; }

/* ===== STEP 2 참가자 탭 (넘치면 줄바꿈) ===== */
.person-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.person-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px; font-weight: 600; color: #999; white-space: nowrap;
  transition: all 0.2s;
}
.person-tab:hover { color: var(--text); border-color: var(--line-strong); }
.person-tab.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.person-tab.err { border-color: rgba(255, 90, 90, 0.6); color: #ff8a8a; }
.pt-check {
  position: relative; display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  background: #5fd38d;
}
.pt-check::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #0a0a0a; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.person-next {
  display: block; width: 100%; height: 48px; margin-top: 24px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 15px; font-weight: 600; color: var(--text);
}
.person-next:hover { border-color: var(--accent); color: var(--accent); }
.person-next[hidden] { display: none; }

/* 메인 비주얼: 캠프 소개 영역 맨 위, 섹션 여백을 상쇄해 콘텐츠 폭 가득 */
.hero .main-visual {
  display: block;
  width: calc(100% + var(--pad) * 2);
  max-width: none;
  height: auto;
  margin: 0 calc(var(--pad) * -1);
}
.hero.section { padding-top: 0; padding-bottom: 0; }

/* 신청서 STEP 사이 간격 약 50px (그리드 간격 14px + 36px) */
.form > .card + .card { margin-top: 36px; }
.person-tabs[hidden] { display: none; }

/* 신청서 STEP 제목 글씨 크게 */
.form .card-title, .form .card-group-title { font-size: 26px; letter-spacing: -0.02em; }
.form .card-title .acc-num, .form .card-group-title .acc-num { margin-bottom: 4px; }

/* STEP 2: 라벨부터 하나의 박스로 묶고, 안쪽 참가자 입력란은 박스 없이 */
.step-people .card-group-title { margin: 0 0 24px; padding: 0; }
.step-people .person-tabs { margin-bottom: 20px; }
.step-people .participants .person {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.form .step-people .person-head { font-size: 18px; align-items: center; }
.participants.single .person-name { visibility: hidden; }

/* 하단 안전영역(홈 바 자리)까지 바 배경으로 채움 — 사파리 주소창이 접힐 때 바 아래가 비어 떠 보이던 문제 */
.totalbar-inner { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.hero.apply-hero.section { padding-top: 30px; }
.lk-goal { white-space: pre-wrap; }
.goal-desc { margin: 2px 0 4px; font-size: 14px; line-height: 1.6; color: var(--text); opacity: .85; }
.goal-note { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ===== 객실 유형 (STEP 3) ===== */
.room-list { display: grid; gap: 10px; }
.room .schedule-box span { color: var(--muted); }
.room .schedule-box .room-desc { color: #cfcfcf; }
.room .schedule-box .room-desc strong { font-weight: 700; color: var(--text); }
.room-private { margin-top: 4px; }
.room-fee { margin: -6px 0 14px; font-size: 15px; color: var(--text); }
.room-fee b { color: var(--accent); font-size: 18px; margin-left: 6px; }
.room-fee small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.room-table-wrap { overflow-x: auto; margin-bottom: 22px; }
.room-table { width: 100%; border-collapse: collapse; font-size: 12px; letter-spacing: -0.03em; text-align: center; white-space: nowrap; }
.room-table caption { caption-side: top; text-align: left; padding-bottom: 8px; font-size: 13px; color: var(--muted); }
.room-table th, .room-table td { padding: 7px 2px; border: 1px solid var(--line); }
.room-table thead th { background: rgba(255, 255, 255, 0.05); font-weight: 600; color: #cfcfcf; }
.room-table tbody th { font-weight: 600; color: var(--text); text-align: left; }
.room-table td { color: var(--accent); font-weight: 600; }
.room-table td.free { color: var(--muted); font-weight: 400; }
.room-table tbody th { padding-left: 8px; padding-right: 6px; }
.room-table tbody th small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }

/* 일정 선택 전 STEP 2~4 잠금 */
.lock-msg { display: none; }
.step-lock.locked .lock-msg {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 20px; padding: 14px 16px;
  border: 1px dashed var(--accent); border-radius: 8px; background: var(--accent-soft);
  color: var(--accent); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.step-lock.locked .lock-msg::before { content: "🔒"; font-size: 14px; }
.step-lock.locked > :not(.lock-msg):not(.card-title):not(.card-group-title) { opacity: 0.35; filter: grayscale(1); user-select: none; }

/* 포함사항: 이미지 구역은 탭 바로 아래에 딱 붙게 (기본 바로가기 여백 16px 상쇄) */
#included, #rental, #team, #lessons, #schedule, #stay, #register, #gifts { scroll-margin-top: -13px; }

/* 일정 카드: 프리미엄 주니어 금액은 1인 금액 오른쪽, 보증금 안내는 아래 줄로 */
.schedule-price small { display: block; margin: 4px 0 0; }

/* 접수기간 전 안내 창 */
.closed-card { max-width: 420px; text-align: center; align-self: center; }
.closed-card .eyebrow { justify-content: center; }
.closed-period { display: grid; gap: 4px; margin: 18px 0 10px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.closed-period span { font-size: 13px; color: var(--muted); }
.closed-period b { font-size: 16px; color: var(--accent); }
.closed-card .lead { font-size: 14px; }
.closed-card .btn-primary { margin-top: 18px; }

/* 상단 참가 신청 버튼: 연한 주황 테두리 (신청서 확인 버튼과 높이 맞춤) */
.btn-chip:not(.btn-chip-line) { border: 1px solid rgba(255, 107, 44, 0.35); }
.btn-chip:not(.btn-chip-line):hover { border-color: rgba(255, 107, 44, 0.6); }

/* 첫 페이지 탭: 가로로 넘길 때 위아래로 흔들리지 않게 (세로 스크롤 막고, 밑줄이 탭 줄 밖으로 1px 나가지 않게) */
.page-tabs { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.page-tabs a.on::after { bottom: 0; }

/* 신청서 임시저장 */
.draft-note { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); font-size: 13px; color: var(--muted); line-height: 1.6; }
.draft-note > p { color: var(--text); }
.draft-note > p b { font-weight: 700; margin-right: 6px; }
.draft-note ul { margin-top: 4px; padding-left: 16px; }
.draft-note li b { color: #ddd; font-weight: 600; }
.draft-status { color: var(--accent); font-weight: 600; white-space: nowrap; }
.draft-card { max-width: 420px; align-self: center; text-align: center; }
.draft-card .eyebrow { justify-content: center; }
.draft-meta { margin: 12px 0 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.draft-card .lead { font-size: 14px; }
.draft-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.draft-actions .btn-primary, .draft-actions .btn-ghost { width: 100%; margin: 0; height: 48px; }
.draft-actions .btn-ghost { border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--text); font-size: 16px; font-weight: 700; }
.draft-actions .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 관리자 미리보기 표시 줄 (화면 맨 위) */
.preview-bar { position: relative; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px; background: #ffb547; color: #111; font-size: 12px; font-weight: 700; }
.preview-bar button { padding: 3px 10px; border-radius: 99px; background: #111; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* 임시저장 버튼 */
.totalbar-actions { display: flex; gap: 8px; flex: none; }
.btn-draft { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(10, 10, 10, 0.6); color: var(--text); font-size: 15px; font-weight: 700; white-space: nowrap; transition: border-color .2s, color .2s; }
.btn-draft:hover { border-color: var(--accent); color: var(--accent); }
.btn-draft-wide { width: 100%; height: 52px; margin-top: 8px; font-size: 16px; }
.save-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px; background: #f3f3f3; color: #111; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); animation: fade .2s ease; }
@media (max-width: 600px) {
  .totalbar .btn-primary { padding: 0 18px; }
  .btn-draft { padding: 0 12px; font-size: 14px; }
}

/* 취소요청: 환불 계좌 안내 */
.lk-cancel-refund { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); font-size: 13px; line-height: 1.6; }
.lk-cancel-refund b { color: var(--text); }
.lk-cancel-refund span { color: var(--accent); font-weight: 700; }

.room-fee small.room-onsite { display: block; margin-top: 4px; color: #ffb547; }

/* 개별객실 추가 금액 결제 방법 (3개 버튼) */
.room-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.room-pay-chip span { flex-direction: column; gap: 2px; height: auto; min-height: 64px; padding: 10px 6px; text-align: center; line-height: 1.3; }
.room-pay-chip span b { font-size: 15px; font-weight: 700; }
.room-pay-chip span small { font-size: 11px; font-weight: 500; color: var(--muted); }
.room-pay-chip input:checked + span small { color: inherit; opacity: .85; }
#roomPayWrap, #roomPayerWrap { margin-bottom: 14px; }

/* STEP 5 입금 계좌 */
.summary-bank { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.summary-bank-label { display: block; font-size: 13px; color: var(--muted); }
.summary-bank p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 18px; }
.summary-bank p b { letter-spacing: -0.01em; }
.summary-bank small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.lk-cancel-change { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 개별객실 숙박 인원 안내 */
.room-users-guide { margin: -8px 0 50px; display: grid; gap: 6px; font-size: 13px; line-height: 1.6; color: #cfcfcf; word-break: keep-all; }
.room-fee:empty { display: none; }
.room-users-guide b { color: var(--text); font-weight: 700; }
.room-users-note { color: var(--muted); }
.room-users-ex { color: var(--accent); font-weight: 600; }
.season-gift { margin-bottom: 10px; }
.season-gift b { color: var(--accent); font-weight: 700; }
.sp-junior { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-strong, #333); font-size: 14px; font-weight: 600; color: #cfcfcf; }
.season-chips { max-width: 50%; }
@media (max-width: 600px) { .season-chips { max-width: none; } }

/* STEP 4 개인정보 수집·이용 동의 (펼치기) */
.privacy-terms { margin: 0 0 14px; }
.privacy-terms .terms { margin: 8px 0 0; display: block; }
.terms-list { list-style: none; display: grid; gap: 8px; font-size: 13px; line-height: 1.65; word-break: keep-all; }
.terms-list > li { position: relative; padding-left: 12px; }
.terms-list > li::before { content: "-"; position: absolute; left: 0; color: var(--muted); }
.terms-list b { display: inline; min-width: 0; margin-right: 6px; }
.terms-list b::after { content: ":"; }
.terms-list ul { list-style: none; margin-top: 4px; display: grid; gap: 2px; color: var(--muted); }
.terms-list ul li::before { content: "· "; }
/* 동의 항목마다 제목 · 내용 · 체크박스를 한 박스로 */
.consent-box { clear: both; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.consent-box .privacy-terms { margin: 0 0 12px; }
.consent-box .terms { background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.consent-box .check { margin: 0; }
.consent-box .error:empty { display: none; }

/* 신청 페이지 상단: 접수 기간 · 신청 순서 */
.apply-period { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; color: var(--text); }
.apply-period b { padding: 3px 10px; font-size: 13px; font-weight: 700; color: var(--text); border: 1px solid #666; border-radius: 99px; }
.apply-steps { margin-top: 14px; list-style: none; counter-reset: st; display: grid; gap: 6px; font-size: 14px; line-height: 1.6; color: #bdbdbd; word-break: keep-all; }
.apply-steps li { counter-increment: st; position: relative; padding-left: 26px; }
.apply-steps li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #111; background: #cfcfcf; border-radius: 50%; }
.round-tab .round-state { display: grid; gap: 2px; margin-top: 2px; }
select:disabled { opacity: .45; cursor: not-allowed; }
.equip-note { color: #e0a080; }
.consent-people { display: grid; gap: 10px; }
.consent-people .consent-all { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
.consent-name { margin-right: 4px; color: var(--text); }
/* 만 19세 미만: 법정대리인 확인 및 참가 동의 */
.guardian { margin: 4px 0 22px; padding: 16px 18px 4px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; }
.guardian .check .req { color: #bdbdbd; font-weight: 600; }
.guardian-title { font-size: 15px; font-weight: 700; color: var(--text); }
.guardian-desc { margin: 4px 0 14px; font-size: 13px; line-height: 1.55; color: #cfcfcf; word-break: keep-all; }
.guardian-row { grid-template-columns: 1fr 1fr 1.2fr; }
.guardian .field label.check { display: flex; margin-bottom: 0; font-size: 14px; font-weight: 500; }
.guardian .check span { word-break: keep-all; line-height: 1.6; }
@media (max-width: 600px) { .guardian-row { grid-template-columns: 1fr; } }
