/* ==========================================================================
   사라힐 신청 시스템 1단계 시안 스타일
   기준: renewal-preview/sarahill/DESIGN.md (claude/DESIGN.md 바탕색 · 의뢰인 딥레드)
       + 신청시스템-설계/DESIGN.md
       + typeform/DESIGN.md (단추 높이 48px · 한 단계씩 넘기는 신청서)
       + class101/DESIGN.md (제목 40/1.25 · 28/1.29 · 26/1.38 · 본문 18/1.67)
   ========================================================================== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --bg: #F5F4ED;
  --card: #FFFFFF;
  --ink: #161513;
  --ink-2: #383733;
  --muted: #5E5A52;
  --line: #DFDDD2;
  --red: #A10F19;
  --red-deep: #7E0B13;
  --rose: #FCE7E9;
  --espresso: #302D26;
  --st-up-bg: #ECEAE3;   --st-up-ink: #5E5A52;
  --st-closed-bg: #EFE9DC; --st-closed-ink: #9A9387;
  --radius-card: 24px;
  --radius-ctl: 12px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Gowun Dodum', 'Pretendard Variable', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(920px 420px at 14% -6%, rgba(161, 15, 25, 0.045), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.3; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* 시안 안내 띠 */
.demo-ribbon {
  background: var(--espresso);
  color: #F5F4ED;
  font-size: 13px;
  text-align: center;
  padding: 7px 14px;
}

/* ---------- 공통: 상태 이름표 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 11px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em;
  white-space: nowrap;
}
.badge.is-upcoming { background: var(--st-up-bg); color: var(--st-up-ink); }
.badge.is-open { background: var(--red); color: #fff; }
.badge.is-closing { background: var(--rose); color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.badge.is-closed { background: var(--st-closed-bg); color: var(--st-closed-ink); }
.badge.is-always { background: #fff; color: var(--espresso); box-shadow: inset 0 0 0 1px var(--espresso); }
.badge.is-open::before, .badge.is-closing::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

/* ---------- 공통: 단추 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 8px 24px;
  border-radius: var(--radius-ctl);
  border: 1px solid transparent;
  font-size: 16px; font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #F7F5EF; }
.btn-dark { background: var(--espresso); color: #fff; }
.btn[disabled] { background: #DAD6CB; color: #8D887D; border-color: transparent; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* ==========================================================================
   모집 게시판 (board.html) — 홈페이지 헤더와 1:1 품격 통일 (claude/DESIGN.md)
   ========================================================================== */
.board-header-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 244, 237, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.board-header {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(8px, 2vw, 12px);
  max-width: 1180px; margin: 0 auto;
  padding: 14px clamp(14px, 4vw, 32px);
  flex-wrap: nowrap;
}
.board-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.board-head-actions .share-pill-btn {
  margin-left: 0;
  min-height: 36px;
  padding: 5px 12px;
}
.home-link { font-size: clamp(13px, 3.4vw, 15px); color: var(--muted); text-decoration: none; padding: 10px 4px; white-space: nowrap; flex-shrink: 0; font-weight: 600; }
.home-link:hover { color: var(--red); }
@media (max-width: 420px) {
  .board-head-actions .share-pill-btn { padding: 4px 9px; font-size: 12px; }
}

.board-main { max-width: 1180px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 32px) calc(48px + var(--safe-b)); }
.board-hero { padding: clamp(18px, 3vw, 36px) 0 clamp(18px, 2.5vw, 28px); }
.board-eyebrow { font-size: 13px; letter-spacing: .14em; color: var(--red); font-weight: 700; margin-bottom: 10px; }
.board-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; }
.board-sub { margin-top: 10px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); line-height: 1.67; }

.board-filters {
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  padding: 2px 2px 14px; margin: 0 -2px 6px;
  scrollbar-width: none;
}
.board-filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2);
  font-size: 15px; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.chip .count { margin-left: 4px; opacity: .7; font-weight: 500; }

.cohort-grid {
  display: grid; gap: clamp(14px, 1.8vw, 22px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) { .cohort-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cohort-grid { grid-template-columns: 1fr; } }

.cohort-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.cohort-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(48, 45, 38, .35); }
.cohort-card.is-closed { opacity: .72; }
.cohort-card.is-closed .cohort-photo img { filter: grayscale(.6); }
.cohort-photo { position: relative; aspect-ratio: 16 / 10; background: #E8E6DC; overflow: hidden; }
.cohort-photo img { width: 100%; height: 100%; object-fit: cover; }
.cohort-photo .badge { position: absolute; top: 14px; left: 14px; }
.cohort-photo .dday {
  position: absolute; top: 14px; right: 14px;
  background: rgba(22, 21, 19, .78); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
}
.cohort-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.cohort-cat { font-size: 13px; color: var(--muted); }
.cohort-title { font-size: 21px; line-height: 1.36; }
.cohort-meta { display: grid; gap: 3px; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.cohort-meta b { color: var(--muted); font-weight: 600; margin-right: 6px; }
.seat-bar { height: 6px; border-radius: 99px; background: #EFECE3; overflow: hidden; margin-top: 6px; }
.seat-bar span { display: block; height: 100%; background: var(--red); border-radius: inherit; }
.seat-text { font-size: 13px; color: var(--muted); }
.cohort-price { font-size: 18px; font-weight: 800; margin-top: auto; padding-top: 10px; }
.cohort-actions { display: flex; gap: 8px; margin-top: 8px; }
.cohort-actions .btn { flex: 1; padding: 8px 12px; font-size: 15px; }
.cohort-actions .cohort-share-btn { flex: 0 0 48px; padding: 8px 0; font-size: 16px; }

.board-toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-b));
  transform: translate(-50%, 16px);
  background: var(--espresso);
  color: #FFFFFF;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 60;
  max-width: calc(100vw - 28px);
  white-space: nowrap;
}
.board-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.board-empty { padding: 48px 16px; text-align: center; color: var(--muted); }

/* ==========================================================================
   단독 신청 화면 (apply.html) — 메뉴 없음 · 한 화면에 한 단계
   ========================================================================== */
.apply-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.apply-shell {
  width: 100%; max-width: 560px; margin: 0 auto;
  flex: 1; display: flex; flex-direction: column;
  background: var(--card);
  min-height: 100vh; min-height: 100dvh;
}
@media (min-width: 640px) {
  .apply-body { padding: 28px 16px; }
  .apply-shell { min-height: auto; border-radius: var(--radius-card); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 24px 50px -30px rgba(48, 45, 38, .4); }
}
.apply-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px clamp(12px, 3.5vw, 16px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 5;
  flex-wrap: nowrap;
}
.apply-top .back {
  width: 36px; height: 36px; border: 0; background: transparent; border-radius: 10px;
  font-size: 20px; color: var(--ink); flex-shrink: 0;
}

.progress-text { font-size: 12.5px; color: var(--muted); min-width: 34px; text-align: right; white-space: nowrap; flex-shrink: 0; }
.progress-bar { height: 3px; background: #F0EDE4; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .35s ease; }

.step { display: none; flex: 1; flex-direction: column; animation: stepIn .35s ease; }
.step.active { display: flex; }
@keyframes stepIn { from { transform: translateY(8px); } to { transform: none; } }

.step-pad { padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 16px; }

/* 1단계: 요약 */
.sum-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #E8E6DC; }
.sum-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; position: absolute; inset: 0; }
.sum-photo img.on { opacity: 1; }
.sum-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0)); }
.sum-head { display: flex; flex-direction: column; gap: 10px; }
.sum-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sum-dday { font-size: 14px; color: var(--red); font-weight: 700; }
.share-pill-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.share-pill-btn:hover { background: #F7F5EF; border-color: #CFC9BB; }
.share-pill-btn.is-copied { background: var(--rose); border-color: rgba(161, 15, 25, .3); color: var(--red); }
.draft-resume-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FFF8F8;
  border: 1px solid rgba(161, 15, 25, .24);
  font-size: 14px;
  color: var(--ink);
}
.draft-resume-btns { display: flex; gap: 6px; margin-left: auto; }
.draft-resume-bar .draft-btn { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.sum-title { font-size: 26px; line-height: 1.38; }
.sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sum-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px;
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink);
}
.sum-list li::before { content: '✓'; color: var(--red); font-weight: 800; font-family: var(--font); }
.sum-info {
  display: grid; gap: 8px;
  background: #F7F5EF; border-radius: 16px; padding: 16px 18px;
  font-size: 15px;
}
.sum-info div { display: flex; justify-content: space-between; gap: 12px; }
.sum-info dt { color: var(--muted); flex: 0 0 auto; }
.sum-info dd { margin: 0; text-align: right; font-weight: 600; }
.sum-notice { font-size: 14px; color: var(--muted); line-height: 1.6; border-left: 3px solid var(--rose); padding-left: 12px; }
.more-link { font-size: 15px; color: var(--muted); text-align: center; padding: 6px; text-decoration: underline; text-underline-offset: 3px; }

/* 입력칸 (아이폰 확대 방지 16px 이상) */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 17px; font-weight: 700; line-height: 1.5; }
.field-label .req { color: var(--red); margin-left: 3px; }
.field-hint { font-size: 13px; color: var(--muted); }
.input, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit; font-size: 17px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #D8D3C6;
  border-radius: var(--radius-ctl);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 3px rgba(48, 45, 38, .12); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--red); }
.error-msg { display: none; font-size: 14px; color: var(--red); }
.field.has-error .error-msg { display: block; }

.opt-list { display: grid; gap: 8px; }
.opt {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 14px;
  border: 1px solid #D8D3C6; border-radius: var(--radius-ctl);
  background: #fff; font-size: 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark {
  flex: 0 0 22px; width: 22px; height: 22px;
  border: 1.5px solid #BDB7A9; border-radius: 50%;
  display: grid; place-items: center;
}
.opt.multi .mark { border-radius: 6px; }
.opt input:checked + .mark { background: var(--red); border-color: var(--red); }
.opt input:checked + .mark::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.opt:has(input:checked) { border-color: var(--red); background: #FFF8F8; }
.opt:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }

.section-cap { font-size: 13px; letter-spacing: .1em; color: var(--red); font-weight: 700; }
.step-title { font-size: 22px; line-height: 1.4; }
.step-desc { font-size: 15px; color: var(--muted); margin-top: -8px; }

/* 동의 */
.agree-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.agree-all { background: #F7F5EF; font-weight: 700; }
.agree-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.agree-row:first-child { border-top: 0; }
.agree-row input { width: 22px; height: 22px; accent-color: var(--red); flex: 0 0 auto; }
.agree-row .view { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: underline; background: none; border: 0; padding: 8px 0 8px 8px; }
.agree-detail { display: none; padding: 12px 14px 14px 48px; font-size: 13px; color: var(--muted); line-height: 1.6; background: #FCFBF8; border-top: 1px dashed var(--line); }
.agree-detail.open { display: block; }

/* 결제 요약 */
.pay-summary { display: grid; gap: 10px; background: #F7F5EF; border-radius: 16px; padding: 18px; }
.pay-summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pay-summary .row.total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 18px; font-weight: 800; }
.pay-summary .row.total span:last-child { color: var(--red); }
.toss-placeholder {
  border: 1.5px dashed #CFC9BB; border-radius: 16px;
  padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6;
  background: #fff;
}
.toss-placeholder strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* 완료 */
.done-wrap { text-align: center; align-items: center; padding-top: 44px; }
.done-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--rose); color: var(--red);
  display: grid; place-items: center; font-size: 34px; font-weight: 800;
}
.done-title { font-size: 24px; line-height: 1.4; }
.done-desc { font-family: var(--font-body); font-size: 16px; color: var(--ink-2); line-height: 1.7; }
.done-card { width: 100%; text-align: left; }

/* 아래 고정 단추 (엄지 영역 · 홈 막대 여백) */
.bottom-bar {
  position: sticky; bottom: 0; z-index: 5;
  margin-top: auto;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0));
  display: flex; gap: 8px;
}
.bottom-bar .btn { flex: 1; min-height: 54px; font-size: 17px; }
.bottom-bar .price-tag { display: flex; flex-direction: column; justify-content: center; padding-right: 6px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.bottom-bar .price-tag b { font-size: 17px; color: var(--ink); }

/* 짧은 화면 (카톡 · 인스타 앱 안) */
@media (max-height: 640px) {
  .sum-photo { aspect-ratio: 21 / 9; }
  .step-pad { padding-top: 16px; gap: 12px; }
}
/* 아주 작은 휴대폰 */
@media (max-width: 360px) {
  .sum-title { font-size: 23px; }
  .bottom-bar .price-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   좌측 상단 로고 — 홈페이지(styles.css .brand-logo)와 같은 모양 · 같은 수치
   ========================================================================== */
@font-face {
  font-family: 'GmarketSansBold';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
.brand-logo { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: clamp(7px, 1.2vw, 15px); text-decoration: none; color: inherit; min-width: 0; max-width: 100%; }
.brand-mark {
  height: clamp(34px, 4vw, 54px);
  padding: 0 clamp(9px, 1.5vw, 20px);
  border-radius: clamp(10px, 1.1vw, 13px);
  background: linear-gradient(180deg, #A9111C 0%, #980D17 100%);
  color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(161, 15, 25, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative; flex-shrink: 0; white-space: nowrap;
}
.brand-mark::after { content: ''; position: absolute; inset: 4px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.16); pointer-events: none; }
.brand-mark-word { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(14px, 1.75vw, 26px); letter-spacing: 0.02em; line-height: 1; padding-bottom: 3px; white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.brand-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-ko {
  font-family: 'GmarketSansBold', 'Pretendard Variable', sans-serif;
  font-size: clamp(14.5px, 1.7vw, 26px);
  letter-spacing: -0.02em; line-height: 1.15; color: #141413;
  display: flex; align-items: baseline; gap: clamp(4px, 0.55vw, 8px);
  flex-wrap: nowrap; white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.brand-ko .brand-eng-script { color: var(--red); font-family: 'Dancing Script', cursive; font-weight: 700; font-size: clamp(13.5px, 1.55vw, 24px); letter-spacing: 0.05em; line-height: 1; white-space: nowrap; word-break: normal; overflow-wrap: normal; flex-shrink: 0; }
.brand-sub { font-size: clamp(9.5px, 0.86vw, 13.5px); line-height: 1.25; color: #5E5D59; white-space: nowrap; word-break: normal; overflow-wrap: normal; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 768px) {
  .brand-logo { gap: clamp(7px, 2.2vw, 10px); }
  .brand-mark { height: clamp(33px, 9.5vw, 42px); padding: 0 clamp(8px, 2.6vw, 13px); border-radius: 10px; }
  .brand-mark::after { inset: 3px; border-radius: 7px; }
  .brand-mark-word { font-size: clamp(13.5px, 4.1vw, 20px); }
  .brand-ko { font-size: clamp(14px, 4.2vw, 20px); gap: clamp(3px, 1vw, 6px); flex-wrap: nowrap; white-space: nowrap; }
  .brand-ko .brand-eng-script { font-size: clamp(13px, 3.9vw, 18.5px); white-space: nowrap; }
  .brand-sub { font-size: clamp(9.5px, 2.5vw, 11.5px); line-height: 1.25; white-space: nowrap; }
}
@media (max-width: 380px) {
  .brand-logo { gap: 6px; }
  .brand-mark { height: clamp(31px, 9vw, 37px); padding: 0 8px; border-radius: 9px; }
  .brand-mark-word { font-size: clamp(13px, 3.9vw, 17px); }
  .brand-ko { font-size: clamp(13.5px, 4vw, 17.5px); gap: 4px; }
  .brand-ko .brand-eng-script { font-size: clamp(12.5px, 3.7vw, 16px); }
  .brand-sub { font-size: clamp(9px, 2.4vw, 10.5px); letter-spacing: -0.025em; }
}
/* 신청 화면 위쪽 줄: 좁은 폭에서도 로고 한 줄 유지 */
.apply-top .brand-logo { flex: 1; min-width: 0; }
.apply-top .brand-mark { height: clamp(32px, 9vw, 40px); padding: 0 clamp(8px, 2.4vw, 12px); border-radius: 10px; }
.apply-top .brand-mark::after { inset: 3px; border-radius: 7px; }
.apply-top .brand-mark-word { font-size: clamp(13px, 3.8vw, 19px); }
.apply-top .brand-ko { font-size: clamp(13.5px, 3.9vw, 19px); gap: 5px; flex-wrap: nowrap; white-space: nowrap; }
.apply-top .brand-ko .brand-eng-script { font-size: clamp(12.5px, 3.6vw, 18px); white-space: nowrap; }
.apply-top .brand-sub { font-size: clamp(9px, 2.4vw, 11px); line-height: 1.25; white-space: nowrap; }
.apply-top .back { flex: 0 0 auto; margin-left: -4px; }
.apply-top .back[hidden] { display: none; }
@media (max-width: 380px) {
  .apply-top .brand-logo { gap: 6px; }
  .apply-top .brand-mark { height: 32px; padding: 0 8px; border-radius: 9px; }
  .apply-top .brand-mark-word { font-size: 13px; }
  .apply-top .brand-ko { font-size: 13.5px; gap: 4px; }
  .apply-top .brand-ko .brand-eng-script { font-size: 12.5px; }
  .apply-top .brand-sub { font-size: 9px; }
}

/* ==========================================================================
   후기: 별점 고르기 · 별점 후기 카드 (2단계 시안)
   ========================================================================== */
.star-picker { display: flex; gap: 6px; }
.star-btn {
  width: 52px; height: 52px; border: 0; background: transparent; padding: 0;
  font-size: 40px; line-height: 1; color: #DAD6CB; transition: color .15s, transform .15s;
}
.star-btn.on { color: #E0A100; }
.star-btn:active { transform: scale(.9); }
.star-caption { font-size: 15px; color: var(--muted); }
#starField.has-error .error-msg { display: block; }

.review-preview { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.review-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.review-stars { color: #E0A100; font-size: 17px; letter-spacing: 1px; }
.review-meta { font-size: 13px; color: var(--muted); }
.review-prog { font-size: 12px; font-weight: 700; color: var(--red); }
.review-card p { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--ink-2); white-space: pre-line; }
.demo-tag { font-size: 11px; color: #fff; background: var(--espresso); padding: 2px 7px; border-radius: 6px; }

/* 신청 화면 요약 안 후기 줄 */
.sum-reviews { display: flex; flex-direction: column; gap: 10px; }
.sum-reviews-head { display: flex; align-items: baseline; gap: 8px; }
.sum-reviews-head strong { font-size: 17px; }
.sum-reviews-head .avg { color: #E0A100; font-weight: 800; }
.sum-reviews-head .cnt { font-size: 13px; color: var(--muted); }

/* 결제 방법 고르기 · 계좌 안내 상자 */
.pay-method { display: grid; gap: 8px; }
.pay-opt > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.pay-opt b { font-size: 16px; }
.pay-opt small { font-size: 13px; color: var(--muted); }
.bank-note { font-size: 14px; color: var(--muted); background: #F7F5EF; border-radius: 12px; padding: 12px 14px; line-height: 1.6; }
.bank-box-wrap { width: 100%; }
.bank-box {
  width: 100%; text-align: left; display: grid; gap: 10px;
  background: #FFF8F8; border: 1.5px solid rgba(161, 15, 25, .25); border-radius: 18px; padding: 18px;
}
.bank-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bank-row span { color: var(--muted); }
.bank-row .bank-num { font-size: 19px; letter-spacing: .02em; color: var(--ink); }
.bank-row.total { border-top: 1px solid var(--line); padding-top: 10px; }
.bank-row.total b { color: var(--red); font-size: 17px; }
.bank-tip { font-size: 13px; color: var(--muted); }

/* 다중 선택 안내 배지 & 완료 이메일 보관 상자 */
.multi-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #F4EFE6;
  border: 1px solid #E3DCD0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}
.done-email-wrap { width: 100%; }
.done-email-box {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 12px;
  background: #FBF9F4;
  border: 1px solid #E4DEC9;
  border-radius: 18px;
  padding: 18px;
}
.done-email-head strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.done-email-head p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }
.done-email-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.done-email-actions .btn { flex: 1 1 180px; font-size: 15px; padding: 11px 14px; min-height: 46px; }
.done-email-tip { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.done-mail-status {
  padding: 10px 13px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  word-break: keep-all;
}
.done-mail-status.is-info { background: #F4F1E8; color: #4B463F; border: 1px solid #DFDDD2; }
.done-mail-status.is-ok { background: #F3F8F4; color: #1F5C38; border: 1px solid #C8DFCE; }
.done-mail-status.is-warn { background: #FDF3F4; color: var(--red); border: 1px solid #EDC7CB; }

/* 모집 게시판 <-> 전체 교육 과정 안내 전환 바 */
.board-mode-bar {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.board-mode-bar span {
  font-size: 14px;
  color: var(--ink-2);
  word-break: keep-all;
}
.board-curric-btn {
  padding: 8px 14px;
  font-size: 14px;
  min-height: 40px;
}
