/* ================================================
   도드람양돈농협 금융사업본부 공모전 - 메인 스타일
   ================================================ */
:root {
  /* 도드람 CI 주황 계열 */
  --p: #E8600A;
  --p-dark: #C44F08;
  --p-light: #F97C2E;
  --p-bg: #FFF4ED;
  --p-bg2: #FEE9D6;

  /* 부문 색상 */
  --ca: #1D6FD6; --ca-bg: #EFF6FF; --ca-brd: #BFDBFE;
  --cb: #D95F0A; --cb-bg: #FFF7ED; --cb-brd: #FED7AA;
  --cc: #16A34A; --cc-bg: #F0FDF4; --cc-brd: #BBF7D0;

  /* 중립 */
  --g50: #FAFAFA; --g100: #F4F4F5; --g200: #E4E4E7;
  --g300: #D4D4D8; --g400: #A1A1AA; --g500: #71717A;
  --g600: #52525B; --g700: #3F3F46; --g800: #27272A; --g900: #18181B;

  /* 타이포 */
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 그림자 */
  --sh1: 0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --sh2: 0 4px 12px rgba(0,0,0,.08);
  --sh3: 0 10px 30px rgba(0,0,0,.10);
  --sh4: 0 20px 50px rgba(0,0,0,.14);

  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--g50); color: var(--g800); line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); }
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ── 레이아웃 ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.pc-only { display: block; }

/* ══════════════════════════════
   상단 네비게이션
══════════════════════════════ */
.top-nav {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 2px solid var(--p);
  box-shadow: var(--sh1);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text strong { display: block; font-size: 1.05rem; font-weight: 900; color: var(--p); line-height: 1.2; letter-spacing: -.02em; }
.nav-logo-text span { font-size: .72rem; color: var(--g500); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-draft-load {
  display: flex; align-items: center; gap: 6px;
  background: var(--p-bg); color: var(--p-dark);
  border: 1.5px solid var(--p-bg2);
  padding: 7px 14px; border-radius: 8px;
  font-size: .82rem; font-weight: 600;
  transition: all .2s;
}
.btn-draft-load:hover { background: var(--p-bg2); border-color: var(--p); }

.btn-admin-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--g100); color: var(--g500);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; border: 1.5px solid var(--g200);
  transition: all .2s;
}
.btn-admin-link:hover { background: var(--g200); color: var(--g700); }

/* ══════════════════════════════
   히어로 섹션
══════════════════════════════ */
.hero-section {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF8F3 0%, #FEF0E4 40%, #FDE8D0 100%);
  border-bottom: 3px solid var(--p-bg2);
  padding: 70px 20px 90px;
  min-height: 480px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* D-Day 리본 */
.dday-ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--p); padding: 8px 20px;
}
.dday-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dday-label { color: rgba(255,255,255,.85); font-size: .8rem; font-weight: 600; }
.dday-period { color: #fff; font-size: .85rem; flex: 1; min-width: 180px; }
.dday-badge {
  background: rgba(255,255,255,.25); color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 3px 14px; border-radius: 100px;
  font-weight: 800; font-size: .82rem; white-space: nowrap;
}

/* 떠다니는 배지 */
.floating-badges {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.fbadge {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(232,96,10,.2);
  border-radius: 14px; padding: 8px 14px;
  font-size: .72rem; font-weight: 700; color: var(--g700);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  animation: floatUp 6s ease-in-out infinite;
}
.fbadge span { font-size: 1.3rem; }
.fbadge em { font-style: normal; white-space: nowrap; }

.fb1 { top: 18%; left: 3%; animation-delay: 0s; }
.fb2 { top: 55%; left: 5%; animation-delay: 1.5s; }
.fb3 { top: 20%; right: 4%; animation-delay: 3s; }
.fb4 { top: 60%; right: 3%; animation-delay: 4.5s; }
.fb5 { bottom: 15%; left: 18%; animation-delay: 2s; }
.fb6 { bottom: 12%; right: 16%; animation-delay: 1s; }

@keyframes floatUp {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* 히어로 콘텐츠 */
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 660px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(232,96,10,.1); color: var(--p-dark);
  border: 1.5px solid rgba(232,96,10,.25);
  padding: 7px 18px; border-radius: 100px;
  font-size: .8rem; font-weight: 600; margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2rem,5.5vw,3.4rem); font-weight: 900;
  color: var(--g900); line-height: 1.22; margin-bottom: 16px;
  letter-spacing: -.03em; text-align: center;
}
.hero-title .hl { color: var(--p); }
.hero-sub { font-size: clamp(.95rem,2vw,1.15rem); color: var(--g600); margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--p); color: #fff;
  border: none; padding: 14px 32px; border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(232,96,10,.35);
  transition: all .25s;
}
.btn-hero-primary:hover { background: var(--p-dark); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(232,96,10,.45); }

.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--g700);
  border: 2px solid var(--g200); padding: 14px 32px; border-radius: 50px;
  font-size: 1rem; font-weight: 600; transition: all .25s;
}
.btn-hero-secondary:hover { border-color: var(--p); color: var(--p); transform: translateY(-3px); }

/* ══════════════════════════════
   섹션 공통
══════════════════════════════ */
.sec-hd { text-align: center; margin-bottom: 44px; }
.sec-title { font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 800; color: var(--g900); margin-bottom: 10px; letter-spacing: -.02em; }
.sec-desc { font-size: .95rem; color: var(--g500); }

/* 스크롤 애니메이션 */
[data-scroll] { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
[data-scroll].visible { opacity: 1; transform: none; }

/* ══════════════════════════════
   핵심 정보 카드
══════════════════════════════ */
.kv-section { padding: 56px 0; margin-top: -32px; position: relative; z-index: 10; }
.kv-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.kv-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 28px 22px; text-align: center;
  box-shadow: var(--sh2); border: 2px solid var(--g100);
  transition: all .25s;
  position: relative; overflow: hidden;
}
.kv-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--g200); transition: background .25s;
}
.kv-card:hover { transform: translateY(-5px); box-shadow: var(--sh3); }
.kv-card:hover::after { background: var(--p); }
.kv-card.featured { border-color: var(--p); background: linear-gradient(135deg,var(--p-bg),#fff); }
.kv-card.featured::after { background: var(--p); }
.kv-icon { font-size: 2.2rem; margin-bottom: 10px; }
.kv-label { font-size: .72rem; font-weight: 700; color: var(--g400); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.kv-val { font-size: 1.25rem; font-weight: 800; color: var(--g900); margin-bottom: 5px; }
.featured .kv-val { color: var(--p); }
.kv-sub { font-size: .82rem; color: var(--g400); }

/* ══════════════════════════════
   공모 분야
══════════════════════════════ */
.cat-section { padding: 56px 0; background: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.cat-card {
  border-radius: var(--radius-lg); padding: 32px 26px;
  border: 2px solid; transition: all .25s; position: relative;
}
.cat-a { background: var(--ca-bg); border-color: var(--ca-brd); }
.cat-b { background: var(--cb-bg); border-color: var(--cb-brd); }
.cat-c { background: var(--cc-bg); border-color: var(--cc-brd); }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--sh3); }
.cat-badge-wrap { margin-bottom: 16px; }
.cat-badge {
  width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
}
.cat-badge.blue { background: var(--ca); }
.cat-badge.orange { background: var(--cb); }
.cat-badge.green { background: var(--cc); }
.cat-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--g900); margin-bottom: 10px; }
.cat-card p { font-size: .88rem; color: var(--g600); margin-bottom: 18px; line-height: 1.6; }

.examples-box { background: rgba(255,255,255,.7); border-radius: 10px; padding: 14px 16px; }
.ex-label { font-size: .78rem; font-weight: 700; color: var(--g500); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.ex-label i { color: var(--p); }
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-tags span {
  background: #fff; border: 1.5px solid var(--g200);
  color: var(--g600); padding: 3px 11px; border-radius: 100px;
  font-size: .75rem; font-weight: 500;
}

/* ══════════════════════════════
   시상 내역
══════════════════════════════ */
.prize-section { padding: 56px 0; background: var(--g50); }
.prize-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.prize-card {
  background: #fff; border-radius: var(--radius); padding: 26px 20px;
  text-align: center; box-shadow: var(--sh1);
  border: 2px solid var(--g100); transition: all .25s;
}
.prize-card:hover { transform: translateY(-4px); box-shadow: var(--sh2); }
.prize-card.gold { background: linear-gradient(135deg,#FFFBEB,#FEF3C7); border-color: #FDE68A; }
.prize-card.silver { background: linear-gradient(135deg,#F8FAFC,#F1F5F9); border-color: #CBD5E1; }
.prize-card.bronze { background: linear-gradient(135deg,#FFF7ED,#FFEDD5); border-color: #FED7AA; }
.prize-card.gift { background: linear-gradient(135deg,var(--p-bg),#fff); border-color: var(--p-bg2); }
.prize-icon { font-size: 2rem; margin-bottom: 8px; }
.prize-rank { font-size: 1rem; font-weight: 700; color: var(--g900); margin-bottom: 5px; }
.prize-count { font-size: .82rem; color: var(--g400); margin-bottom: 8px; }
.prize-amt { font-size: 1.2rem; font-weight: 800; color: var(--p); }
.gift-txt { font-size: .95rem; }

/* ══════════════════════════════
   아이디어 제출 폼
══════════════════════════════ */
.form-section { padding: 56px 0 90px; background: #fff; }
.idea-form { display: flex; flex-direction: column; gap: 22px; }

/* 진행률 */
.progress-wrap {
  background: #fff; border: 2px solid var(--g100);
  border-radius: var(--radius-lg); padding: 22px 26px;
  box-shadow: var(--sh1); margin-bottom: 4px;
}
.progress-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.progress-lbl { font-size: .85rem; font-weight: 600; color: var(--g500); }
.progress-pct { font-size: 1rem; font-weight: 800; color: var(--p); }
.progress-track { background: var(--g200); border-radius: 100px; height: 10px; overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; background: linear-gradient(90deg,var(--p),var(--p-light)); border-radius: 100px; transition: width .4s ease; }
.progress-steps { display: flex; justify-content: space-around; }
.ps-step { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .75rem; color: var(--g400); font-weight: 500; transition: color .3s; }
.ps-step.active { color: var(--p); }
.ps-step.done { color: var(--cc); }
.ps-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--g200); color: var(--g500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; transition: all .3s;
}
.ps-step.active .ps-dot { background: var(--p); color: #fff; }
.ps-step.done .ps-dot { background: var(--cc); color: #fff; }

/* 폼 카드 */
.form-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 34px; box-shadow: var(--sh1);
  border: 2px solid var(--g100); transition: border-color .2s;
}
.form-card:focus-within { border-color: rgba(232,96,10,.3); }
.fc-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 2px solid var(--g100);
}
.fc-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg,var(--p),var(--p-light));
  color: #fff; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fc-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--g900); }

.field-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field-group:last-child { margin-bottom: 0; }

.field-label { font-size: .88rem; font-weight: 600; color: var(--g700); }
.field-label.req::after { content: ' *'; color: #EF4444; }
.opt-badge { font-size: .73rem; font-weight: 400; color: var(--g400); background: var(--g100); padding: 2px 7px; border-radius: 5px; margin-left: 4px; }

.field-input, .field-select, .field-ta {
  border: 2px solid var(--g200); border-radius: 10px;
  padding: 11px 15px; font-size: .93rem; font-family: var(--font);
  color: var(--g900); transition: border-color .2s, box-shadow .2s;
  background: #fff; outline: none; width: 100%;
}
.field-input:focus, .field-select:focus, .field-ta:focus {
  border-color: var(--p); box-shadow: 0 0 0 3px rgba(232,96,10,.1);
}
.field-input.err, .field-select.err, .field-ta.err {
  border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.field-ta { resize: vertical; min-height: 110px; }
.field-select { cursor: pointer; }
.field-err { font-size: .78rem; color: #EF4444; display: none; align-items: center; gap: 4px; }
.field-err.show { display: flex; }

/* 글자수 카운터 */
.input-cnt-wrap, .ta-wrap { position: relative; }
.input-cnt-wrap .cnt-badge {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: .73rem; color: var(--g400); pointer-events: none; background: rgba(255,255,255,.9);
  padding: 1px 5px; border-radius: 4px;
}
.ta-wrap .cnt-badge {
  position: absolute; right: 10px; bottom: 10px;
  font-size: .73rem; color: var(--g400); background: rgba(255,255,255,.9);
  padding: 1px 6px; border-radius: 5px;
}

/* 가이드 박스 */
.guide-box {
  background: #F8F9FA; border-left: 4px solid var(--p);
  border-radius: 0 8px 8px 0; padding: 12px 15px;
  font-size: .83rem; color: var(--g600); line-height: 1.7;
  margin-bottom: 10px;
}
.guide-box em { color: var(--g500); font-style: normal; }

/* 라디오 카드 */
.radio-cards { display: flex; flex-direction: column; gap: 10px; }
.radio-card input { display: none; }
.rc-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 2px solid var(--g200);
  border-radius: 10px; cursor: pointer; transition: all .2s;
}
.rc-inner:hover { border-color: var(--g300); background: var(--g50); }
.radio-a input:checked ~ .rc-inner { background: var(--ca-bg); border-color: var(--ca); }
.radio-b input:checked ~ .rc-inner { background: var(--cb-bg); border-color: var(--cb); }
.radio-c input:checked ~ .rc-inner { background: var(--cc-bg); border-color: var(--cc); }
.rc-badge {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #fff; flex-shrink: 0;
}
.rc-badge.blue { background: var(--ca); }
.rc-badge.orange { background: var(--cb); }
.rc-badge.green { background: var(--cc); }
.rc-text strong { font-size: .93rem; font-weight: 700; color: var(--g900); display: block; margin-bottom: 2px; }
.rc-text span { font-size: .78rem; color: var(--g500); }

/* 파일 업로드 */
.file-zone {
  border: 2px dashed var(--g300); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.file-zone:hover { border-color: var(--p); }
.file-zone.drag-over { border-color: var(--p); background: var(--p-bg); }
.file-placeholder {
  padding: 32px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.file-placeholder i { font-size: 2.2rem; color: var(--g300); transition: color .2s; }
.file-zone:hover .file-placeholder i { color: var(--p); }
.file-placeholder p { font-size: .85rem; color: var(--g400); }
.btn-file-pick {
  background: var(--p); color: #fff; border: none;
  padding: 8px 20px; border-radius: 8px; font-size: .82rem; font-weight: 600;
  transition: background .2s;
}
.btn-file-pick:hover { background: var(--p-dark); }
.file-preview-area { padding: 18px 20px; }
.file-preview-row { display: flex; align-items: center; gap: 12px; background: var(--g50); border-radius: 8px; padding: 12px 14px; }
.file-preview-icon { font-size: 1.8rem; flex-shrink: 0; }
.file-preview-info { flex: 1; min-width: 0; }
.file-preview-name { font-weight: 600; color: var(--g800); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-preview-size { font-size: .78rem; color: var(--g400); margin-top: 2px; }
.btn-file-remove {
  background: var(--g200); border: none; width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--g500); font-size: .85rem; flex-shrink: 0; transition: all .2s;
}
.btn-file-remove:hover { background: #FEE2E2; color: #EF4444; }
#fpThumb img { max-width: 100%; max-height: 160px; border-radius: 8px; margin-top: 10px; }
.pdf-thumb {
  background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 8px;
  padding: 16px; text-align: center; color: var(--ca); margin-top: 10px; font-size: .85rem;
}
.pdf-thumb i { font-size: 1.8rem; display: block; margin-bottom: 6px; }

/* 동의 */
.consent-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.consent-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; background: var(--g50); border-radius: var(--radius);
  cursor: pointer; border: 2px solid transparent; transition: all .2s;
}
.consent-item:hover { background: var(--p-bg); border-color: rgba(232,96,10,.2); }
.consent-chk { width: 18px; height: 18px; accent-color: var(--p); cursor: pointer; flex-shrink: 0; margin-top: 1px; }
.consent-txt { font-size: .88rem; color: var(--g700); line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; }
.badge-req {
  font-size: .68rem; font-weight: 700; padding: 2px 7px;
  border-radius: 100px; background: #FEE2E2; color: #DC2626; white-space: nowrap; margin-top: 1px;
}

/* 버튼 */
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg,var(--p),var(--p-dark));
  color: #fff; border: none; padding: 15px 44px; border-radius: 50px;
  font-size: 1.05rem; font-weight: 800;
  box-shadow: 0 8px 24px rgba(232,96,10,.38); transition: all .25s;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(232,96,10,.48); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-draft-save {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--g100); color: var(--g700);
  border: 2px solid var(--g200); padding: 15px 26px; border-radius: 50px;
  font-size: .95rem; font-weight: 600; transition: all .2s;
}
.btn-draft-save:hover { background: var(--g200); border-color: var(--g300); }

.submit-notice {
  background: var(--g50); border-radius: 10px; padding: 13px 17px;
  font-size: .82rem; color: var(--g500); display: flex; align-items: flex-start; gap: 7px; line-height: 1.6;
}
.submit-notice i { color: var(--ca); flex-shrink: 0; margin-top: 2px; }

/* 실행일정 기타 */
.schedule-wrap { display: flex; flex-direction: column; gap: 10px; }

/* ══════════════════════════════
   푸터
══════════════════════════════ */
.site-footer {
  background: #1E1E2E; color: rgba(255,255,255,.7); padding: 40px 0;
}
.footer-grid {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-bottom: 24px;
  margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-pig { font-size: 2rem; }
.footer-brand strong { display: block; color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.footer-brand p { font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-info p { font-size: .82rem; display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.footer-info i { color: var(--p-light); width: 14px; }
.footer-copy { text-align: center; font-size: .78rem; color: rgba(255,255,255,.3); }

/* ══════════════════════════════
   모달
══════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: #fff; border-radius: 20px; width: 100%; max-width: 500px;
  box-shadow: var(--sh4); animation: slideUp .3s ease; overflow: hidden;
}
.modal-box.sm { max-width: 420px; }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  padding: 22px 24px 18px; border-bottom: 1px solid var(--g100);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--g900); }
.modal-close {
  background: var(--g100); border: none; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--g500); font-size: .9rem; transition: all .2s;
}
.modal-close:hover { background: #FEE2E2; color: #EF4444; }
.modal-body { padding: 22px 24px; }
.modal-desc { font-size: .88rem; color: var(--g500); margin-bottom: 18px; }
.modal-foot {
  padding: 16px 24px 20px;
  display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid var(--g100);
}
.btn-modal-primary {
  background: var(--p); color: #fff; border: none;
  padding: 10px 22px; border-radius: 8px; font-size: .88rem; font-weight: 700;
  transition: background .2s;
}
.btn-modal-primary:hover { background: var(--p-dark); }
.btn-modal-outline {
  background: var(--g100); color: var(--g700);
  border: 1.5px solid var(--g200); padding: 10px 22px;
  border-radius: 8px; font-size: .88rem; font-weight: 600; transition: all .2s;
}
.btn-modal-outline:hover { background: var(--g200); }

/* 제출 완료 모달 */
.confirm-icon, .success-icon { font-size: 3rem; text-align: center; margin-bottom: 14px; }
.modal-body p { font-size: .93rem; color: var(--g600); text-align: center; line-height: 1.7; }
.success-msg { font-size: 1rem !important; color: var(--g700) !important; }
.success-note {
  margin-top: 14px; background: #EFF6FF; border-radius: 8px;
  padding: 11px 14px; font-size: .8rem; color: var(--ca);
  display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; text-align: left;
}
.success-note i { flex-shrink: 0; margin-top: 1px; }

/* 임시저장 결과 */
.draft-result {
  background: var(--g50); border: 1.5px solid var(--g200);
  border-radius: 10px; padding: 14px 16px; margin-top: 14px; font-size: .85rem; color: var(--g700);
}
.draft-found { border-color: var(--cc) !important; background: var(--cc-bg) !important; }
.draft-not-found { border-color: #FCA5A5 !important; background: #FEF2F2 !important; color: #DC2626; }

/* 로딩 */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.loading-box {
  background: #fff; border-radius: 16px; padding: 36px 48px;
  text-align: center; box-shadow: var(--sh4);
}
.spinner {
  width: 46px; height: 46px; border: 5px solid var(--g200);
  border-top-color: var(--p); border-radius: 50%;
  animation: spin .75s linear infinite; margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box p { font-size: .93rem; font-weight: 600; color: var(--g600); }

/* 토스트 */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--g900); color: #fff; padding: 11px 24px;
  border-radius: 100px; font-size: .88rem; font-weight: 600;
  z-index: 9999; box-shadow: var(--sh3);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,10px); } to { opacity: 1; transform: translateX(-50%); } }

/* ══════════════════════════════
   반응형
══════════════════════════════ */
@media (max-width: 1024px) {
  .kv-grid { grid-template-columns: repeat(2,1fr); }
  .prize-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .hero-section { padding: 70px 16px 80px; min-height: 400px; }
  .floating-badges { display: none; } /* 모바일 - 배지 숨김 */
  .kv-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .cat-grid { grid-template-columns: 1fr; }
  .prize-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .field-grid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .fc-header { padding-bottom: 14px; margin-bottom: 18px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .btn-submit, .btn-draft-save { justify-content: center; }
  .footer-grid { flex-direction: column; }
  .modal-box { max-width: 100%; border-radius: 16px 16px 0 0; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .dday-inner { gap: 6px; }
  .pc-only { display: none; }
  .btn-draft-load span { display: none; }
}
@media (max-width: 480px) {
  .prize-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .prize-card { padding: 18px 14px; }
  .kv-card { padding: 20px 14px; }
}
