/* =========================================================
   ICONGCED — 포토에세이 공모전 디자인 시스템 (v2)
   3 페이지(공고문/신청서/완료) 공용. .contest-v2 컨테이너에 스코프됨.
   ========================================================= */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

:root {
  /* Brand — Navy */
  --navy-950: #07153a;
  --navy-900: #0d2454;
  --navy-800: #143372;
  --navy-700: #1d4694;
  --navy-600: #2563b8;
  --navy-500: #3b82f6;
  --navy-100: #dbeafe;
  --navy-50:  #eff5ff;

  /* Brand — Accents */
  --gold-500: #f5b942;
  --gold-400: #f7c969;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-100: #ffedd5;

  /* Neutrals */
  --ink-900: #0a1428;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #eef2f7;
  --ink-50:  #f6f8fc;
  --white: #ffffff;

  /* Semantic */
  --success-600: #16a34a;
  --success-500: #22c55e;
  --success-100: #dcfce7;
  --danger-500: #ef4444;
  --danger-100: #fee2e2;
  --warning-500: #f59e0b;

  /* Radii */
  --r-4: 4px;
  --r-8: 8px;
  --r-12: 12px;
  --r-16: 16px;
  --r-20: 20px;
  --r-24: 24px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, .12), 0 8px 24px rgba(15, 23, 42, .06);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;

  /* Type scale */
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: 48px;
  --fs-56: 56px;
  --fs-64: 64px;
}

/* ============ Scoped reset ============ */
.contest-v2,
.contest-v2 *,
.contest-v2 *::before,
.contest-v2 *::after { box-sizing: border-box; }

.contest-v2 {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink-800);
  background: var(--white);
  font-size: var(--fs-16);
  line-height: 1.6;
  font-feature-settings: "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.contest-v2 img,
.contest-v2 svg { display: block; max-width: 100%; }
.contest-v2 button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
.contest-v2 input,
.contest-v2 textarea,
.contest-v2 select { font: inherit; color: inherit; }
.contest-v2 a { color: inherit; text-decoration: none; }
.contest-v2 h1,
.contest-v2 h2,
.contest-v2 h3,
.contest-v2 h4,
.contest-v2 h5 { margin: 0; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; text-wrap: balance; }
.contest-v2 p { margin: 0; text-wrap: pretty; }
.contest-v2 ul,
.contest-v2 ol { margin: 0; padding: 0; list-style: none; }

/* Container */
.contest-v2 .container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.contest-v2 .container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding-inline: 24px; }

/* ============ Buttons ============ */
.contest-v2 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: var(--fs-15);
  letter-spacing: -0.01em;
  transition: transform .12s ease, box-shadow .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.contest-v2 .btn:active { transform: translateY(1px); }
.contest-v2 .btn-lg { padding: 16px 32px; font-size: var(--fs-16); }
.contest-v2 .btn-sm { padding: 10px 18px; font-size: var(--fs-14); }

.contest-v2 .btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.32);
}
.contest-v2 .btn-primary:hover { background: var(--orange-600); box-shadow: 0 8px 22px rgba(249, 115, 22, 0.4); }

.contest-v2 .btn-secondary {
  background: var(--white);
  color: var(--ink-800);
  border-color: var(--ink-200);
}
.contest-v2 .btn-secondary:hover { border-color: var(--ink-300); background: var(--ink-50); }

.contest-v2 .btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.contest-v2 .btn-ghost-light:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); }

.contest-v2 .btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.contest-v2 .btn-dark:hover { background: var(--navy-800); }

/* ============ PAGE 1: 공고문 (index) ============ */

.contest-v2 .hero {
  position: relative;
  background-color: #f3f3f2;
  color: #dddddd;
  overflow: hidden;
  isolation: isolate;
}

.contest-v2 .hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.contest-v2 .hero h1 {
  color: var(--navy-950);
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 44px 0 18px;
}
.contest-v2 .hero h1 .accent {
  color: var(--gold-500);
  font-style: normal;
  position: relative;
  display: inline-block;
}
.contest-v2 .hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: rgba(245, 185, 66, 0.18);
  border-radius: 2px;
  z-index: -1;
}
.contest-v2 .hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--navy-950);
  max-width: 540px;
  line-height: 1.3;
}

/* 신청하기 + 동의서 다운로드(HWP/PDF) 버튼을 한 줄로 정렬 */
.contest-v2 .hero-cta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.contest-v2 .hero-cta .btn { white-space: nowrap; }
.contest-v2 .hero-cta .btn-lg { padding: 14px 20px; }


.contest-v2 .hero-collage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  min-height: 460px;
}


/* 접수 기간 pill — 라벨 + 날짜 + D-day 카운트 */
.contest-v2 .period-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 50px;
    margin-bottom: 15px;
    padding: 14px 8px 14px 28px;
    background: var(--navy-950);
    color: #ffffff;
    font-size: var(--fs-18);
    border-radius: var(--r-full);
}
.contest-v2 .period-pill .dday {
    margin-left: 8px;
    padding: 8px 16px;
    background: var(--orange-500);
    color: #ffffff;
    border-radius: var(--r-full);
    font-weight: 800;
    font-size: var(--fs-20);
    letter-spacing: 0.02em;
}

@media (max-width: 880px) {
    .contest-v2 .period-pill {
        padding: 10px 6px 10px 18px;
        gap: 8px;
        flex-wrap: wrap;
    }
}

.contest-v2 .period-pill .lbl {
    font-size: var(--fs-14);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}
.contest-v2 .period-pill .val {
  font-variant-numeric: tabular-nums;
}

/* hero-badge — D-day 라벨 (접수 시작까지 / 접수 마감까지 등) */
.contest-v2 .hero-badge {
  display: inline-block;
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: var(--fs-13);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(245, 185, 66, 0.4);
  margin-bottom: 10px;
}
.contest-v2 .hero-badge strong {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

/* Quick stats strip */
.contest-v2 .stats-strip { position: relative; margin-top: -56px; z-index: 5; }
.contest-v2 .stats-card {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-20);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.contest-v2 .stat-item { padding: 22px 24px; border-radius: var(--r-16); transition: background .15s; }
.contest-v2 .stat-item:hover { background: var(--ink-50); }
.contest-v2 .stat-item + .stat-item { border-left: 1px solid var(--ink-100); }
.contest-v2 .stat-label {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-13); color: var(--ink-500); font-weight: 500;
}
.contest-v2 .stat-label svg { width: 14px; height: 14px; stroke: var(--navy-500); }
.contest-v2 .stat-value {
  margin-top: 6px;
  font-size: var(--fs-24); font-weight: 700; color: var(--ink-900);
  letter-spacing: -0.025em;/*  font-variant-numeric: tabular-nums */;
}
.contest-v2 .stat-value .unit { font-size: var(--fs-16); color: var(--ink-500); font-weight: 600; margin-left: 4px; }
.contest-v2 .stat-sub { font-size: var(--fs-13); color: var(--ink-500); margin-top: 2px; }

/* Section base */
.contest-v2 section.page-section { padding: 30px 0; }
.contest-v2 .section-head {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
}
.contest-v2 .section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--ink-900); letter-spacing: -0.03em; font-weight: 800;
}
.contest-v2 .section-title .num {
  display: inline-block;
  font-size: var(--fs-14); font-weight: 700; color: var(--navy-600);
  letter-spacing: 0.1em; margin-bottom: 14px;
  display: none;
}
.contest-v2 .section-desc {
  color: var(--ink-500); font-size: var(--fs-15);
  max-width: 380px; text-align: right;
}

/* Topic cards */
.contest-v2 .topic-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.contest-v2 .topic-card {
  position: relative; background: var(--white);
  border: 1px solid var(--ink-100); border-radius: var(--r-20);
  padding: 32px; transition: border-color .2s, transform .2s, box-shadow .2s; overflow: hidden;
}
.contest-v2 .topic-card:hover { border-color: var(--navy-500); box-shadow: var(--shadow-md); }
.contest-v2 .topic-card::before {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(245, 185, 66, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.contest-v2 .topic-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-12);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #ffffff; font-weight: 600; font-size: 22px;
}
.contest-v2 .topic-head { display: flex; align-items: center; gap: 12px; }
.contest-v2 .topic-head .topic-num { flex: 0 0 auto; }
.contest-v2 .topic-card h3 { margin: 0; font-size: var(--fs-24); color: var(--ink-900); line-height: 1.3; }
.contest-v2 .topic-card h3 .em { color: var(--orange-600); font-weight: 800; }
.contest-v2 .topic-card p { margin-top: 12px; color: var(--ink-600); line-height: 1.7; font-size: var(--fs-15); }
.contest-v2 .topic-examples { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.contest-v2 .chip {
  padding: 6px 12px; background: var(--ink-50);
  border-radius: var(--r-full); color: var(--ink-700);
  font-size: var(--fs-13); border: 1px solid var(--ink-100);
}


/* Specs */
.contest-v2 .specs {
  max-width: var(--container); margin: 28px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.contest-v2 .spec {
  background: var(--ink-50); border-radius: var(--r-16);
  padding: 22px; border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.contest-v2 .spec:hover { background: var(--white); border-color: var(--ink-200); }
.contest-v2 .spec dt {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-13); color: var(--ink-500); font-weight: 600;
  margin-bottom: 8px;
}
.contest-v2 .spec dt svg { width: 14px; height: 14px; stroke: var(--navy-500); }
.contest-v2 .spec dd { margin: 0; font-size: var(--fs-15); color: var(--ink-900); font-weight: 600; line-height: 1.5; }
.contest-v2 .spec dd .note { display: block; font-weight: 400; color: var(--ink-500); font-size: var(--fs-13); margin-top: 4px; }

/* Criteria */
.contest-v2 .criteria-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.contest-v2 .criteria-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-20); padding: 32px;
}
.contest-v2 .criteria-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
}
.contest-v2 .criteria-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--navy-50); color: var(--navy-700);
  border-radius: var(--r-full); font-size: var(--fs-13); font-weight: 700;
}
.contest-v2 .criteria-total { font-size: var(--fs-13); color: var(--ink-500); }
.contest-v2 .criteria-total strong {
  color: var(--ink-900); font-weight: 800; font-size: var(--fs-20);
  margin-right: 4px; font-variant-numeric: tabular-nums;
}
.contest-v2 .criteria-list {}
.contest-v2 .crit-row { display: inline-block; margin-right: 30px;}
.contest-v2 .crit-bar {
  height: 10px; background: var(--ink-100);
  border-radius: var(--r-full); overflow: hidden; position: relative;
}
.contest-v2 .crit-bar > span {
  display: block; height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--navy-700), var(--navy-500));
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.contest-v2 .criteria-card.phase-2 .crit-bar > span {
  background: linear-gradient(90deg, var(--orange-600), var(--gold-500));
}
.contest-v2 .crit-row .pts {
  text-align: right; font-weight: 700;
  color: var(--ink-900); font-variant-numeric: tabular-nums;
}

/* Schedule timeline */
.contest-v2 .schedule { background: var(--ink-50); padding: 50px 0; }
.contest-v2 .timeline { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; }
.contest-v2 .timeline-track {
  position: relative; display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 56px;
}
.contest-v2 .timeline-track::before {
  content: ""; position: absolute;
  top: 22px; left: 18%; right: 18%;
  height: 2px; background: var(--ink-200); z-index: 0;
}
.contest-v2 .milestone { position: relative; text-align: center; z-index: 1; }
.contest-v2 .milestone .dot {
  width: 44px; height: 44px; border-radius: var(--r-full);
  background: var(--white); border: 2px solid var(--ink-200);
  margin: 0 auto; display: grid; place-items: center;
  color: var(--ink-400); font-weight: 700; transition: all .2s;
}
.contest-v2 .milestone.is-current .dot {
  background: var(--orange-500); border-color: var(--orange-500);
  color: #ffffff; box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.15);
}
.contest-v2 .milestone.is-key .dot {
  background: var(--gold-500); border-color: var(--gold-500);  color: #ffffff;
}
.contest-v2 .milestone.is-key.is-award .dot {
  background: var(--navy-500); border-color: var(--navy-500); color: #ffffff;
}
.contest-v2 .milestone .date {
  margin-top: 18px; font-size: var(--fs-17); font-weight: 700;
  color: var(--ink-900); letter-spacing: -0.01em; line-height: 1.5;
}
.contest-v2 .milestone .date .unit {font-size: var(--fs-14); font-weight: 500; line-height: 1.1;}
.contest-v2 .milestone .name { margin-top: 4px; font-size: var(--fs-14); color: var(--ink-500); }
.contest-v2 .milestone .note { margin-top: 6px; font-size: var(--fs-13); color: var(--ink-400); }
.contest-v2 .milestone.is-current .name { font-weight: 600; }

/* Awards */
.contest-v2 .awards-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.contest-v2 .award-card {
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-20); padding: 32px;
  display: flex; flex-direction: column;
}
.contest-v2 .award-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px; border-bottom: 1px solid var(--ink-100);
}
.contest-v2 .award-head h3 { font-size: var(--fs-24); color: var(--ink-900); }
.contest-v2 .award-head .grade { font-size: var(--fs-13); color: var(--ink-500); }
.contest-v2 .award-rows { padding: 18px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.contest-v2 .award-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed var(--ink-100);
}
.contest-v2 .award-row:last-child { border-bottom: 0; }
.contest-v2 .award-row .icon {
  width: 32px; height: 32px; border-radius: var(--r-8);
  background: linear-gradient(135deg, var(--gold-500), var(--orange-500));
  color: #ffffff; display: grid; place-items: center; flex-shrink: 0;
}
/* 중·고등부 카드 — 아이콘 배경 파란톤 */
.contest-v2 .award-card--secondary .award-row .icon {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
}
/* 시상 내용 하단 안내 문구 */
.contest-v2 .awards-note {
  max-width: var(--container); margin: 16px auto 0; padding: 0 24px;
  font-size: var(--fs-14); color: var(--ink-500); line-height: 1.6;
}
.contest-v2 .award-row .meta { flex: 1; margin-left: 14px; }
.contest-v2 .award-row .meta .nm { font-weight: 700; color: var(--ink-900); font-size: var(--fs-15); }
.contest-v2 .award-row .meta .qt { font-size: var(--fs-13); color: var(--ink-500); margin-top: 2px; margin-left: 50px; }
.contest-v2 .award-perks {
  margin-top: 18px; padding: 18px;
  background: linear-gradient(135deg, var(--navy-50), var(--ink-50));
  border-radius: var(--r-12);
}
.contest-v2 .award-perks ul { display: flex; flex-direction: column; gap: 6px; }
.contest-v2 .award-perks li {
  font-size: var(--fs-14); color: var(--ink-700);
  padding-left: 22px; position: relative; line-height: 1.5;
}
.contest-v2 .award-perks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 14px; background: var(--orange-500);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z"/></svg>') center/contain no-repeat;
}

/* Submit checklist */
.contest-v2 .submit-section { background: var(--navy-950); color: #ffffff; padding: 100px 0; position: relative; overflow: hidden; }
.contest-v2 .submit-section::before {
  content: ""; position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 60%);
  filter: blur(40px);
}
.contest-v2 .submit-section .section-title { color: #ffffff; }
.contest-v2 .submit-section .section-title .num { color: var(--gold-400); }
.contest-v2 .submit-section .section-desc { color: rgba(255,255,255,0.6); }
.contest-v2 .checklist {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative;
}
.contest-v2 .check-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-20); padding: 28px;
  backdrop-filter: blur(8px); transition: background .2s, border-color .2s;
}
.contest-v2 .check-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.contest-v2 .check-card .num {
  display: inline-block; font-size: 13px; font-weight: 700;
  color: var(--gold-400); letter-spacing: 0.1em;
}
.contest-v2 .check-card h4 { margin-top: 8px; color: #ffffff; font-size: var(--fs-20); }
.contest-v2 .check-card p { margin-top: 10px; color: rgba(255,255,255,0.7); line-height: 1.6; font-size: var(--fs-14); }
.contest-v2 .check-card .icon-box {
  width: 48px; height: 48px; border-radius: var(--r-12);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center; margin-bottom: 18px;
}
.contest-v2 .check-card .icon-box svg { width: 22px; height: 22px; stroke: var(--gold-400); }

/* Final CTA */
.contest-v2 .final-cta { background: var(--white); padding: 60px 0 0; }
.contest-v2 .final-cta .card {
  max-width: var(--container); margin: 0 auto;
  background: linear-gradient(135deg, #f5b942 0%, #f97316 50%, #ea580c 100%);
  border-radius: var(--r-24); padding: 56px 64px;
  color: #ffffff; display: flex; justify-content: space-between; align-items: center;
  gap: 32px; position: relative; overflow: hidden;
}
.contest-v2 .final-cta .card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(255,255,255,0.2) 0%, transparent 50%);
}
.contest-v2 .final-cta h2 {
  color: #ffffff; font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25; position: relative;
}
.contest-v2 .final-cta p {
  color: rgba(255,255,255,0.85); margin-top: 10px;
  font-size: var(--fs-15); position: relative;
}
.contest-v2 .final-cta .actions {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 10px; position: relative; flex-shrink: 0;
  width: 260px; max-width: 38%;
}
.contest-v2 .final-cta .btn-primary {
  background: #ffffff; color: var(--orange-600);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.contest-v2 .final-cta .btn-primary:hover { background: var(--ink-50); }
.contest-v2 .final-cta .btn-secondary {
  background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.4);
}
.contest-v2 .final-cta .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
/* 동의서 다운로드(HWP/PDF) 버튼 너비 축소 */
.contest-v2 .final-cta .actions .btn-secondary { padding: 14px 18px; font-size: var(--fs-14); }

/* Contact */
.contest-v2 .contact-card { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.contest-v2 .contact-card .inner {
  background: var(--ink-50); border-radius: var(--r-20);
  padding: 40px; display: grid;
  grid-template-columns: 1fr auto;
  align-items: center; gap: 32px;
}
.contest-v2 .contact-card h4 { font-size: var(--fs-20); color: var(--ink-900); }
.contest-v2 .contact-card .info { margin-top: 14px; display: flex; gap: 28px; flex-wrap: wrap; }
.contest-v2 .contact-card .info > div { display: flex; align-items: center; gap: 8px; color: var(--ink-700); }
.contest-v2 .contact-card .info svg { width: 16px; height: 16px; stroke: var(--navy-600); }
.contest-v2 .contact-card .info strong { font-weight: 600; color: var(--ink-900); }

/* ============ PAGE 2: 신청서 (apply) ============ */

.contest-v2.contest-apply { background: var(--ink-50); }

/* Page hero (slim) */
.contest-v2 .form-hero {
  background: #fff;
  color: #0a1b48; padding: 56px 0 64px;
  position: relative; overflow: hidden;
}
.contest-v2 .form-hero::before {
  content: ""; position: absolute;
  top: -40%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,185,66,0.12) 0%, transparent 60%);
  filter: blur(60px);
}
.contest-v2 .form-hero .inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative;
}
.contest-v2 .form-hero .crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-13); color: rgba(0,0,0,0.6); margin-bottom: 16px;
}
.contest-v2 .form-hero .crumbs a { color: rgba(0,0,0,0.85); }
.contest-v2 .form-hero .crumbs svg { width: 12px; height: 12px; opacity: .5; }
.contest-v2 .form-hero h1 {
  color: color: rgba(0,0,0,0.85);
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.025em; margin-bottom: 10px;
}
.contest-v2 .form-hero h1 .accent { color: var(--gold-500); }
.contest-v2 .form-hero p { color: rgba(0,0,0,0.7); font-size: var(--fs-15); max-width: 720px; }

/* Layout */
.contest-v2 .form-layout {
  max-width: var(--container); margin: -40px auto 0;
  padding: 0 24px 120px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px; align-items: flex-start;
  position: relative; z-index: 2;
}

/* Sidebar
   주의: CiBoard 의 .wrapper { overflow:hidden } 때문에 native position:sticky 는
   동작하지 않는다. 정적 배치 + JS transform 으로 sticky 흉내. (script.js 의 updateSticky)
*/
.contest-v2 .form-sidebar {
  position: relative; top: 0;
  background: var(--white); border-radius: var(--r-20);
  padding: 24px; box-shadow: var(--shadow-md);
  will-change: transform;
}
.contest-v2 .progress-meta {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
}
.contest-v2 .progress-meta .label { font-size: var(--fs-13); color: var(--ink-500); font-weight: 500; }
.contest-v2 .progress-meta .value { font-size: var(--fs-14); font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.contest-v2 .progress-bar {
  height: 6px; background: var(--ink-100);
  border-radius: var(--r-full); overflow: hidden;
}
.contest-v2 .progress-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--orange-500), var(--gold-500));
  border-radius: var(--r-full);
  transition: width .4s cubic-bezier(.2,.8,.2,1);
}
.contest-v2 .nav-sections { margin-top: 22px; display: flex; flex-direction: column; gap: 2px; }
.contest-v2 .nav-sections a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-12);
  color: var(--ink-600); font-size: var(--fs-14); font-weight: 500;
  transition: all .15s; position: relative;
}
.contest-v2 .nav-sections a:hover { background: var(--ink-50); color: var(--ink-900); }
.contest-v2 .nav-sections a.active {
  background: var(--navy-50); color: var(--navy-700); font-weight: 700;
}
.contest-v2 .nav-sections a .nm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: var(--r-full);
  background: var(--ink-100); color: var(--ink-500);
  font-size: 11px; font-weight: 700; transition: all .15s; flex-shrink: 0;
}
.contest-v2 .nav-sections a.active .nm { background: var(--orange-500); color: #ffffff; }
.contest-v2 .nav-sections a.done .nm { background: var(--success-100); color: var(--success-600); }
.contest-v2 .nav-sections a.done .nm::after { content: "✓"; font-size: 12px; font-weight: 800; }
.contest-v2 .nav-sections a.done .nm-text { display: none; }
.contest-v2 .sidebar-help {
  margin-top: 22px; padding: 16px;
  background: var(--ink-50); border-radius: var(--r-12);
  font-size: var(--fs-13); color: var(--ink-600); line-height: 1.6;
}
.contest-v2 .sidebar-help strong { color: var(--ink-900); font-weight: 700; }

/* Main column */
.contest-v2 .form-main { display: flex; flex-direction: column; gap: 20px; }
.contest-v2 .form-card {
  background: var(--white); border-radius: var(--r-20);
  box-shadow: var(--shadow-sm); border: 1px solid var(--ink-100);
  overflow: hidden;
}
.contest-v2 .form-card .head {
  padding: 24px 32px; border-bottom: 1px solid var(--ink-100);
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ink-50) 100%);
}
.contest-v2 .form-card .head .num {
  display: inline-flex;
  width: 36px; height: 36px; border-radius: var(--r-12);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #ffffff; align-items: center; justify-content: center;
  font-weight: 800; font-size: var(--fs-15);
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.contest-v2 .form-card .head h2 { font-size: var(--fs-20); color: var(--ink-900); letter-spacing: -0.02em; }
.contest-v2 .form-card .head .opt { margin-left: auto; font-size: var(--fs-13); color: var(--ink-500); }
.contest-v2 .form-card .body { padding: 28px 32px; }

/* Form field row */
.contest-v2 .form-card .field {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 24px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px dashed var(--ink-100);
}
.contest-v2 .form-card .field:last-child { border-bottom: 0; padding-bottom: 0; }
.contest-v2 .form-card .field:first-child { padding-top: 0; }
.contest-v2 .field-label {
  padding-top: 11px; font-size: var(--fs-14);
  font-weight: 600; color: var(--ink-800);
}
.contest-v2 .field-label .req { color: var(--orange-500); margin-left: 2px; }
.contest-v2 .field-control { min-width: 0; }
.contest-v2 .field-hint { font-size: var(--fs-13); color: var(--ink-500); margin-top: 6px; line-height: 1.5; }
.contest-v2 .field-hint.warn { color: var(--orange-600); }

/* Inputs */
.contest-v2 .input,
.contest-v2 .textarea,
.contest-v2 .select {
  width: 100%; padding: 11px 14px;
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--r-12); font-size: var(--fs-15);
  color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.contest-v2 .input:hover,
.contest-v2 .textarea:hover,
.contest-v2 .select:hover { border-color: var(--ink-300); }
.contest-v2 .input:focus,
.contest-v2 .textarea:focus,
.contest-v2 .select:focus {
  border-color: var(--navy-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.contest-v2 .input::placeholder,
.contest-v2 .textarea::placeholder { color: var(--ink-400); }
.contest-v2 .textarea { min-height: 220px; resize: vertical; line-height: 1.7; }
.contest-v2 .select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

.contest-v2 .input-suffix { position: relative; }
.contest-v2 .input-suffix .suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: var(--fs-13); color: var(--ink-500); font-variant-numeric: tabular-nums;
}

/* Dual lang */
.contest-v2 .dual-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contest-v2 .input-wrap { position: relative; }
.contest-v2 .input-wrap .lang-tag {
  position: absolute; top: -8px; left: 12px;
  padding: 2px 8px; background: var(--white);
  border-radius: var(--r-full); font-size: 11px;
  color: var(--ink-500); font-weight: 600;
  border: 1px solid var(--ink-200); z-index: 1;
}

/* Option chips/radios */
.contest-v2 .options-row { display: flex; flex-wrap: wrap; gap: 8px; }
.contest-v2 .option { position: relative; cursor: pointer; }
.contest-v2 .option input { position: absolute; opacity: 0; pointer-events: none; }
.contest-v2 .option .box {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-full);
  border: 1px solid var(--ink-200); background: var(--white);
  font-size: var(--fs-14); color: var(--ink-700);
  transition: all .15s; user-select: none;
}
.contest-v2 .option:hover .box { border-color: var(--navy-500); color: var(--navy-700); }
.contest-v2 .option input:checked + .box {
  background: var(--navy-50); border-color: var(--navy-500);
  color: var(--navy-700); font-weight: 700;
}
.contest-v2 .option input:checked + .box::before {
  content: "";
  width: 14px; height: 14px; border-radius: var(--r-full);
  background: var(--navy-500);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" fill="white"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" fill="white"/></svg>') center/contain no-repeat;
}

/* Segmented (division/gender) */
.contest-v2 .segmented {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px;
}
.contest-v2 .segmented .option .box {
  width: 100%; padding: 14px 18px; border-radius: var(--r-12);
  justify-content: center; font-size: var(--fs-15);
}
.contest-v2 .segmented .option input:checked + .box {
  background: var(--white); border-color: var(--navy-600);
  border-width: 2px; padding: 13px 17px;
  box-shadow: 0 6px 16px rgba(37, 99, 184, 0.12);
}

/* Photo upload grid */
.contest-v2 .photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px;
}
.contest-v2 .photo-slot {
  position: relative; aspect-ratio: 4 / 3;
  border: 2px dashed var(--ink-200); border-radius: var(--r-16);
  background: var(--ink-50);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink-500); transition: all .2s; overflow: hidden; cursor: pointer;
}
.contest-v2 .photo-slot:hover {
  border-color: var(--navy-500); background: var(--navy-50); color: var(--navy-700);
}
.contest-v2 .photo-slot.is-filled {
  border-style: solid; border-color: var(--ink-200);
  background: var(--ink-900);
}
.contest-v2 .photo-slot .placeholder-icon {
  width: 36px; height: 36px; border-radius: var(--r-12);
  background: var(--white); border: 1px solid var(--ink-200);
  display: grid; place-items: center; margin-bottom: 8px; transition: all .2s;
}
.contest-v2 .photo-slot:hover .placeholder-icon { background: var(--navy-100); border-color: var(--navy-500); }
.contest-v2 .photo-slot .placeholder-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.contest-v2 .photo-slot .placeholder-text { font-size: var(--fs-13); font-weight: 600; }
.contest-v2 .photo-slot .placeholder-num {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; font-weight: 700; color: var(--ink-400);
  background: var(--white); padding: 2px 8px; border-radius: var(--r-full);
  border: 1px solid var(--ink-200);
}
.contest-v2 .photo-slot input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.contest-v2 .photo-slot .preview {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
}
.contest-v2 .photo-slot.is-filled .placeholder-icon,
.contest-v2 .photo-slot.is-filled .placeholder-text { display: none; }
.contest-v2 .photo-slot .represent-toggle {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.6); color: #ffffff;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 4px;
  backdrop-filter: blur(8px); z-index: 2;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all .15s; cursor: pointer;
}
.contest-v2 .photo-slot .represent-toggle:hover { background: rgba(0,0,0,0.8); }
.contest-v2 .photo-slot.is-represent .represent-toggle {
  background: var(--orange-500); color: #ffffff; border-color: var(--orange-500);
}
.contest-v2 .photo-slot.is-represent { box-shadow: 0 0 0 3px var(--orange-500); }
.contest-v2 .photo-slot .file-meta {
  position: absolute; bottom: 8px; left: 10px; right: 10px;
  color: #ffffff; font-size: 11px; z-index: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
}
.contest-v2 .photo-slot .file-meta .name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}
.contest-v2 .photo-slot .remove-btn {
  background: rgba(0,0,0,0.55); color: #ffffff;
  border-radius: var(--r-full);
  width: 22px; height: 22px; display: grid; place-items: center;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.2); z-index: 2;
}
.contest-v2 .photo-slot .remove-btn:hover { background: var(--danger-500); }
.contest-v2 .photo-info {
  margin-top: 14px; padding: 14px 16px;
  background: var(--navy-50); border-left: 3px solid var(--navy-500);
  border-radius: var(--r-8);
  font-size: var(--fs-13); color: var(--ink-700); line-height: 1.6;
}
.contest-v2 .photo-info strong { color: var(--navy-700); font-weight: 700; }

/* Char counter */
.contest-v2 .char-counter {
  display: flex; justify-content: flex-end; align-items: center; gap: 6px;
  margin-top: 6px; font-size: var(--fs-13); color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}
.contest-v2 .char-counter .now { font-weight: 700; color: var(--ink-700); }
.contest-v2 .char-counter.ok .now { color: var(--success-600); }
.contest-v2 .char-counter.over .now { color: var(--danger-500); }

/* AI contribution */
.contest-v2 .contrib { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.contest-v2 .contrib .input-wrap input { width: 100%; }
.contest-v2 .contrib-visual {
  height: 12px; border-radius: var(--r-full);
  background: var(--ink-100);
  overflow: hidden; margin-top: 10px; display: flex;
}
.contest-v2 .contrib-visual .ai-bar { background: linear-gradient(90deg, var(--navy-700), var(--navy-500)); transition: width .3s; }
.contest-v2 .contrib-visual .me-bar { background: linear-gradient(90deg, var(--gold-500), var(--orange-500)); transition: width .3s; }
.contest-v2 .contrib-legend {
  display: flex; justify-content: space-between;
  margin-top: 8px; font-size: var(--fs-13); color: var(--ink-500);
}
.contest-v2 .contrib-legend .swatch {
  display: inline-block; width: 10px; height: 10px;
  border-radius: var(--r-4); vertical-align: middle; margin-right: 5px;
}

/* Agreement download */
.contest-v2 .agreement-download {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding: 14px 16px;
  background: var(--navy-50); border-left: 3px solid var(--navy-500);
  border-radius: var(--r-8);
  font-size: var(--fs-13); color: var(--ink-700); line-height: 1.6;
}
.contest-v2 .agreement-download .text { font-size: var(--fs-14); color: var(--ink-700); line-height: 1.5; }
.contest-v2 .agreement-download .text strong { color: var(--ink-900); }
.contest-v2 .agreement-download .warn { color: var(--orange-600); font-weight: 600; display: block; margin-top: 4px; }

/* File drop */
.contest-v2 .file-drop {
  border: 2px dashed var(--ink-200); border-radius: var(--r-16);
  padding: 24px; text-align: center;
  color: var(--ink-500); background: var(--ink-50);
  transition: all .2s; position: relative; cursor: pointer;
}
.contest-v2 .file-drop:hover,
.contest-v2 .file-drop.is-drag {
  border-color: var(--navy-500); background: var(--navy-50); color: var(--navy-700);
}
.contest-v2 .file-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.contest-v2 .file-drop .drop-icon {
  width: 44px; height: 44px;
  background: var(--white); border-radius: var(--r-12);
  display: grid; place-items: center; margin: 0 auto 10px;
  border: 1px solid var(--ink-200);
}
.contest-v2 .file-drop strong { color: var(--ink-900); font-weight: 700; }
.contest-v2 .file-drop .meta { font-size: var(--fs-13); color: var(--ink-500); margin-top: 6px; }
.contest-v2 .file-drop.is-filled {
  border-style: solid; border-color: var(--success-500);
  background: var(--success-100); color: var(--ink-900);
  text-align: left; padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
}
.contest-v2 .file-drop.is-filled .drop-icon { margin: 0; background: var(--success-500); border-color: var(--success-500); }
.contest-v2 .file-drop.is-filled .drop-icon svg { stroke: #ffffff; }
.contest-v2 .file-drop.is-filled .file-name { font-weight: 700; flex: 1; }
.contest-v2 .file-drop.is-filled .replace-btn { color: var(--navy-700); font-weight: 600; text-decoration: underline; }

/* Notice */
.contest-v2 .notice {
  padding: 20px 22px;
  background: var(--ink-50); border-radius: var(--r-12);
  border: 1px solid var(--ink-100);
  max-height: 550px; overflow-y: auto;
}
.contest-v2 .notice h3 {
    font-size: var(--fs-17); 
    margin-bottom:10px;
}
.contest-v2 .notice ul { display: flex; flex-direction: column; gap:5px;  margin-bottom:30px;}
.contest-v2 .notice li {
  position: relative; padding-left: 14px;
  font-size: var(--fs-14); color: var(--ink-600); line-height: 1.5;
}
.contest-v2 .notice li::before {
  content: ""; position: absolute;
  left: 4px; top:6px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-400);
}
.contest-v2 .notice li strong { color: var(--ink-900); font-weight: 700; }

/* Big consent checkbox */
.contest-v2 .big-consent {
  margin-top: 16px;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--ink-200); border-radius: var(--r-12);
  cursor: pointer; transition: all .15s;
}
.contest-v2 .big-consent:has(input:checked) {
  border-color: var(--orange-500); background: #fff7ed;
}
.contest-v2 .big-consent input {
  margin-top: 3px; width: 18px; height: 18px;
  accent-color: var(--orange-500);
}
.contest-v2 .big-consent span { font-size: var(--fs-14); color: var(--ink-800); line-height: 1.6; }
.contest-v2 .big-consent strong { color: var(--ink-900); font-weight: 700; }

/* Sticky submit footer */
.contest-v2 .submit-bar {
  position: sticky; bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ink-100);
  border-radius: var(--r-20) var(--r-20) 0 0;
  padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-top: 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.04);
  z-index: 3;
}
.contest-v2 .submit-bar .status {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-13); color: var(--ink-600);
}
.contest-v2 .submit-bar .status .auto-save {
  color: var(--success-600);
  display: inline-flex; align-items: center; gap: 4px; font-weight: 600;
}
.contest-v2 .submit-bar .actions { display: flex; gap: 10px; }

/* Apply page extra: validation alert */
.contest-v2 .form-alert {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: var(--r-12);
  border: 1px solid var(--danger-500);
  background: var(--danger-100);
  color: #7f1d1d;
  font-size: var(--fs-14);
  line-height: 1.6;
}
.contest-v2 .form-alert b { font-weight: 700; color: #7f1d1d; }
.contest-v2 .form-alert.info {
  border-color: var(--navy-500); background: var(--navy-50); color: var(--navy-800);
}
.contest-v2 .form-alert.info b { color: var(--navy-800); }
.contest-v2 .form-alert div + div { margin-top: 4px; }

/* ============ PAGE 3: 완료 (complete) ============ */

.contest-v2.contest-done { background: var(--ink-50); }

.contest-v2 .done-hero {
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(245,185,66,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0a1b48 0%, #143372 100%);
  color: #ffffff; padding: 56px 0 100px;
  position: relative; overflow: hidden;
}
.contest-v2 .done-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.05) 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 30%, rgba(255,255,255,.04) 0 1px, transparent 1.5px);
  background-size: 80px 80px, 120px 120px;
  pointer-events: none;
}
.contest-v2 .done-hero .inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 24px; text-align: center;
  position: relative; z-index: 1;
}
.contest-v2 .done-hero .tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: var(--fs-13); font-weight: 600; color: #4ade80;
}
.contest-v2 .done-hero h1 {
  color: #ffffff;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 18px 0 8px; letter-spacing: -0.025em;
}
.contest-v2 .done-hero p {
  color: rgba(255,255,255,0.7); font-size: var(--fs-16);
  max-width: 600px; margin: 0 auto;
}

.contest-v2 .check-anim {
  width: 92px; height: 92px; border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.4);
  animation: contest-pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.contest-v2 .check-anim::before,
.contest-v2 .check-anim::after {
  content: ""; position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.3);
}
.contest-v2 .check-anim::before { inset: -10px; animation: contest-ripple 2s ease-out infinite; }
.contest-v2 .check-anim::after { inset: -18px; animation: contest-ripple 2s ease-out infinite .5s; }
@keyframes contest-pop { 0% { transform: scale(0); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes contest-ripple { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.4); } }
.contest-v2 .check-anim svg {
  width: 44px; height: 44px;
  stroke: #ffffff; stroke-width: 3;
  animation: contest-draw .6s .3s ease both;
}
@keyframes contest-draw {
  from { opacity: 0; stroke-dasharray: 40; stroke-dashoffset: 40; }
  to { opacity: 1; stroke-dasharray: 40; stroke-dashoffset: 0; }
}

/* Receipt */
.contest-v2 .receipt {
  max-width: 720px; margin: -56px auto 0;
  background: var(--white); border-radius: var(--r-24);
  box-shadow: var(--shadow-lg); overflow: hidden;
  position: relative; z-index: 2;
}
.contest-v2 .receipt .top {
  padding: 36px 40px 28px; text-align: center;
  border-bottom: 1px dashed var(--ink-200);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(245, 185, 66, 0.08) 0%, transparent 50%),
    var(--white);
}
.contest-v2 .receipt .top .label {
  font-size: var(--fs-13); color: var(--ink-500); font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.contest-v2 .receipt .top .num {
  font-size: clamp(36px, 5vw, 48px); font-weight: 800;
  color: var(--navy-700); letter-spacing: -0.04em;
  margin-top: 6px; font-variant-numeric: tabular-nums;
}
.contest-v2 .receipt .top .num small {
  font-size: 0.5em; color: var(--ink-400);
  font-weight: 700; margin-right: 8px; vertical-align: middle;
}
.contest-v2 .receipt .perforation {
  height: 16px;
  background: radial-gradient(circle at 8px 8px, var(--ink-50) 6px, transparent 7px) repeat-x;
  background-size: 16px 16px; background-position: 0 50%;
  border-top: 1px dashed var(--ink-200);
  border-bottom: 1px dashed var(--ink-200);
  position: relative;
}
.contest-v2 .receipt .perforation::before,
.contest-v2 .receipt .perforation::after {
  content: ""; position: absolute; top: 50%;
  width: 24px; height: 24px;
  background: var(--ink-50);
  border-radius: 50%;
  transform: translateY(-50%);
}
.contest-v2 .receipt .perforation::before { left: -12px; }
.contest-v2 .receipt .perforation::after { right: -12px; }

.contest-v2 .receipt-body { padding: 28px 40px 36px; }
.contest-v2 .info-row {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px dashed var(--ink-100);
  align-items: center;
}
.contest-v2 .info-row:last-child { border-bottom: 0; }
.contest-v2 .info-row dt {
  font-size: var(--fs-13); color: var(--ink-500);
  display: flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.contest-v2 .info-row dt svg { width: 14px; height: 14px; stroke: var(--navy-500); }
.contest-v2 .info-row dd {
  margin: 0; font-size: var(--fs-15);
  color: var(--ink-900); font-weight: 600;
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.contest-v2 .info-row dd .small { font-size: var(--fs-13); color: var(--ink-500); font-weight: 400; margin-left: 6px; }
.contest-v2 .info-row dd strong { color: var(--orange-600); }

/* Notice card (done) */
.contest-v2 .notice-card {
  max-width: 720px; margin: 24px auto 0;
  background: var(--white); border: 1px solid var(--ink-100);
  border-radius: var(--r-16); padding: 24px 28px;
}
.contest-v2 .notice-card h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-16); color: var(--ink-900); margin-bottom: 14px;
}
.contest-v2 .notice-card h3::before {
  content: ""; width: 4px; height: 16px;
  background: var(--navy-700); border-radius: 2px;
}
.contest-v2 .notice-card ul { display: flex; flex-direction: column; gap: 8px; }
.contest-v2 .notice-card li {
  position: relative; padding-left: 16px;
  font-size: var(--fs-14); color: var(--ink-700); line-height: 1.7;
}
.contest-v2 .notice-card li::before {
  content: ""; position: absolute;
  left: 0; top: 11px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink-400);
}
.contest-v2 .notice-card li strong { color: var(--ink-900); font-weight: 700; }
.contest-v2 .notice-card li a { color: var(--navy-600); text-decoration: underline; }

.contest-v2 .done-actions {
  max-width: 720px; margin: 28px auto 0;
  display: flex; justify-content: center; gap: 12px;
}

/* Confetti */
.contest-v2 .confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.contest-v2 .confetti i {
  position: absolute; top: -10%;
  width: 8px; height: 12px; border-radius: 1px;
  animation: contest-fall var(--dur, 3s) var(--delay, 0s) linear infinite;
  opacity: 0.85;
}
@keyframes contest-fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(720px) rotate(720deg); }
}

/* ============ Responsive ============ */

@media (max-width: 980px) {
  /* Apply form layout */
  .contest-v2 .form-layout { grid-template-columns: 1fr; gap: 16px; }
  .contest-v2 .form-sidebar { position: static; }
  .contest-v2 .form-card .field { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .contest-v2 .field-label { padding-top: 0; }
  .contest-v2 .form-card .head,
  .contest-v2 .form-card .body { padding-left: 20px; padding-right: 20px; }
  .contest-v2 .submit-bar { padding: 14px 20px; flex-direction: column; align-items: stretch; }
  .contest-v2 .submit-bar .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .contest-v2 .submit-bar .actions .btn { width: 100%; }
  .contest-v2 .dual-lang { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  /* Index page */
  .contest-v2 .hero-grid { padding: 56px 16px 80px; grid-template-columns: 1fr; gap: 40px; }
  .contest-v2 .hero-cta { flex-wrap: wrap; }
  .contest-v2 .hero-collage { min-height: 320px; aspect-ratio: 1/1; max-width: 360px; }
  .contest-v2 .hero-meta { grid-template-columns: 1fr; max-width: 100%; }
  .contest-v2 .stats-card { grid-template-columns: repeat(2, 1fr); }
  .contest-v2 .stat-item + .stat-item { border-left: 0; }
  .contest-v2 .stat-item:nth-child(2n) { border-left: 1px solid var(--ink-100); }
  .contest-v2 .stat-item:nth-child(n+3) { border-top: 1px solid var(--ink-100); }
  .contest-v2 .topic-grid,
  .contest-v2 .criteria-grid,
  .contest-v2 .awards-grid,
  .contest-v2 .checklist,
  .contest-v2 .specs { grid-template-columns: 1fr; }
  .contest-v2 .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contest-v2 .section-desc { text-align: left; }
  .contest-v2 .timeline-track { grid-template-columns: 1fr; gap: 24px; }
  .contest-v2 .timeline-track::before { left: 22px; right: auto; top: 8%; bottom: 8%; width: 2px; height: auto; }
  .contest-v2 .milestone { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 16px; text-align: left; }
  .contest-v2 .milestone .date,
  .contest-v2 .milestone .name,
  .contest-v2 .milestone .note { margin-top: 0; grid-column: 2; }
  .contest-v2 .milestone .name,
  .contest-v2 .milestone .note { display: inline-block; margin-right: 8px; }
  .contest-v2 .final-cta .card { flex-direction: column; padding: 36px 28px; align-items: flex-start; }
  .contest-v2 .contact-card .inner { grid-template-columns: 1fr; }
  .contest-v2 section.page-section,
  .contest-v2 .schedule,
  .contest-v2 .submit-section { padding: 64px 0; }
}

@media (max-width: 768px) {
  /* Complete page */
  .contest-v2 .done-hero { padding: 40px 0 80px; }
  .contest-v2 .receipt { margin: -48px 16px 0; }
  .contest-v2 .receipt .top { padding: 28px 24px 20px; }
  .contest-v2 .receipt-body { padding: 20px 24px 28px; }
  .contest-v2 .notice-card { margin: 16px 16px 0; padding: 20px 22px; }
  .contest-v2 .info-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .contest-v2 .done-actions { padding: 0 16px; flex-direction: column-reverse; }
  .contest-v2 .done-actions .btn { width: 100%; }
}

/* ============ sub_title_img h2 옆 D-day 인라인 ============
   .contest-v2 외부의 layout 영역이라 .contest-v2 prefix 를 쓰지 않는다.
   script.js 가 contest 페이지에서만 로드되므로 다른 페이지엔 주입 자체가 안 일어남 → 안전. */
.sub_title_img h2 .contest-h2-dday {
  margin-left: 12px;
  color: #ea580c; /* orange-600 — :root 토큰이 이 영역까지 닿지 않을 수 있어 직접 값 */
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
@media (max-width: 880px) {
  .sub_title_img h2 .contest-h2-dday { margin-left: 8px; font-size: 0.85em; }
}

/* ============ 인라인 스타일 → 클래스 정리 ============
   view 파일에 흩어져 있던 정적 style="..." 들을 의미 단위 클래스로 추출.
   동적 값(JS·PHP 가 런타임 값을 박는 width:%, display:block/none 등)은 인라인 유지. */

/* --- index.php: apply() 가드 flash 알림 카드 --- */
.contest-flash-alert {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 14px 20px;
  border: 1px solid #f5b942;
  background: #fff8e6;
  border-radius: 12px;
  color: #7a4d00;
  font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contest-flash-alert .contest-flash-icon { flex-shrink: 0; margin-top: 1px; }

/* --- index.php: 참고 자료 영상 링크 --- */
.contest-v2 .spec dd .note a { color: var(--navy-600); text-decoration: underline; }

/* --- index.php: 음영 배경 섹션 (criteria 등) --- */
.contest-v2 .page-section--shaded { background: var(--ink-50); }

/* --- index.php: 2차 외부심사 태그 색상 (phase-2) --- */
.contest-v2 .criteria-card.phase-2 .criteria-tag {
  background: var(--orange-100);
  color: var(--orange-600);
}

/* --- index.php: 시상 행 수량 --- */
.contest-v2 .award-row .qty { font-weight: 700; color: var(--ink-900); margin-left: 50px; }

/* --- index.php: 공통 혜택 wrapper --- */
.contest-v2 .awards-perks-wrap {
  max-width: var(--container);
  margin: 20px auto 0;
  padding: 0 24px;
}
.contest-v2 .awards-perks-wrap .award-perks { margin-top: 0; }
.contest-v2 .awards-perks-label {
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--ink-500);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* --- complete.php --- */
.contest-v2 .done-hero p strong { color: #ffffff; }
.contest-v2 .receipt-body > dl { margin: 0; }

/* --- apply.php: form-hero 안내 별표 --- */
.contest-v2 .form-hero p .req-mark { color: var(--gold-500); font-weight: 600; }

/* --- apply.php: segmented 옵션 안 보조 텍스트 (구분 등) --- */
.contest-v2 .segmented .option .box .opt-sub {
  opacity: 0.6;
  font-weight: 500;
  margin-left: 6px;
}

/* --- apply.php: input 의미별 너비 모디파이어 --- */
.contest-v2 .input--w-grade { max-width: 320px; }
.contest-v2 .input--w-birth { max-width: 220px; }
.contest-v2 .input--w-phone { max-width: 240px; }
.contest-v2 .input--w-email { max-width: 360px; }
.contest-v2 .input--w-tools { max-width: 480px; }

/* --- apply.php: field 모디파이어 --- */
.contest-v2 .field.field--flat        { border: 0; padding: 0; }
.contest-v2 .field.field--flat-bottom { border-bottom: 0; padding-bottom: 0; }
.contest-v2 .field.field--gap-top     { margin-top: 20px; }

/* --- apply.php: 사진 안내 ★대표 강조 --- */
.contest-v2 .photo-info .em { color: var(--orange-600); font-weight: 700; }

/* --- apply.php: photo-grid 가 photo-info 아래에 올 때 상단 간격 --- */
.contest-v2 .photo-info + .photo-grid { margin-top: 18px; }

/* --- apply.php: field-hint 변형 (제목 바로 아래용) --- */
.contest-v2 .field-hint--head { margin-top: 0; margin-bottom: 8px; }

/* --- apply.php: char-counter 보조 메타(권장 분량 등) --- */
.contest-v2 .char-counter .meta { color: var(--ink-400); }

/* --- apply.php: AI 활용상세 textarea 짧은 높이 --- */
.contest-v2 .textarea--short { min-height: 120px; }

/* --- apply.php: 라벨 안 보조 표현 (합 100% 등) --- */
.contest-v2 .field-label .label-aux { font-weight: 500; color: var(--ink-500); }

/* --- apply.php: 기여도 swatch 색 modifier --- */
.contest-v2 .contrib-legend .swatch--ai { background: var(--navy-600); }
.contest-v2 .contrib-legend .swatch--me { background: var(--orange-500); }

/* --- apply.php: 접수경로 '기타' 직접 입력 박스 (display 는 PHP/JS 가 인라인으로 토글) --- */
.contest-v2 #routeEtcInput {
  margin-top: 12px;
  max-width: 480px;
}

/* --- script.js: 동의서 드롭존 채움 후 메타 --- */
.contest-v2 .file-drop.is-filled .file-replace-meta {
  font-size: 12px;
  color: var(--ink-600);
  margin-bottom: 2px;
}
