/* RAS FESTIVAL — 참가 신청 */
.page-apply { background: #fff; }
.gnb__link--show { display: inline !important; }

.apply { padding-top: var(--gnb-h); min-height: 100vh; min-height: 100svh; }
.apply__wrap {
  max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 140px;
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px);
}
.apply__side { position: sticky; top: calc(var(--gnb-h) + 36px); align-self: start; }
.apply__title { font-size: clamp(34px, 3.4vw, 46px); font-weight: 900; letter-spacing: -0.055em; line-height: 1.05; }
.apply__steps { margin-top: 28px; border-top: 1px solid var(--gray-2); }
.apply__steps li {
  display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--gray-2);
  font-weight: 700; font-size: 15px; color: var(--muted-2); transition: color .3s;
}
.apply__steps li span {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--line); font-size: 11px; letter-spacing: 0; transition: background-color .3s, border-color .3s, color .3s;
}
.apply__steps li.is-done { color: var(--ink); cursor: pointer; }
.apply__steps li.is-done span { background: var(--ink); border-color: var(--ink); color: var(--volt); }
.apply__steps li.is-current { color: var(--ink); }
.apply__steps li.is-current span { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.apply__picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.apply__picked span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--gray); font-size: 13px; font-weight: 700; }
.apply__picked span:first-child { background: var(--ink); color: #fff; }
.apply__due { margin-top: 22px; color: var(--muted); }
.apply__bar { display: none; }

.apply__main { min-width: 0; }
.state { padding: 40px 0; }
.state__title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; letter-spacing: -0.05em; line-height: 1.15; }
.state__text { margin-top: 12px; color: var(--muted); }
.state__cta { display: flex; gap: 10px; margin-top: 26px; }

/* ---- 단계 ---- */
.step { animation: step-in .55s var(--ease) both; }
.step.is-back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-26px); } }
.step__no { color: var(--muted); }
.step__title:focus, .step__title:focus-visible { outline: none; }
.step__title { margin: 10px 0 30px; font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; letter-spacing: -0.055em; line-height: 1.12; }
.step__err { margin-top: 14px; }

/* ---- 큰 선택 카드 ---- */
.choices { display: grid; gap: 14px; }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice__card {
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 26px 24px 24px;
  border-radius: 24px; background: var(--gray); border: 2px solid transparent; overflow: hidden; cursor: pointer;
  transition: transform .5s var(--ease), border-color .25s, background-color .25s, box-shadow .5s var(--ease);
}
.choice__card:hover { transform: translateY(-4px); }
.choice input:checked + .choice__card { border-color: var(--ink); background: #fff; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .4); }
.choice input:focus-visible + .choice__card { outline: 3px solid var(--ink); outline-offset: 3px; }
.choice__obj { position: absolute; right: -8%; top: 16%; width: 52%; transform: rotate(-10deg); transition: transform .7s var(--ease); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .18)); pointer-events: none; }
.choice__obj--mic { width: 26%; right: 10%; top: 14%; transform: rotate(16deg); }
.choice input:checked + .choice__card .choice__obj { transform: rotate(-2deg) scale(1.06) translateY(-6px); }
.choice__en { color: var(--muted); }
.choice__title { margin-top: auto; font-size: clamp(26px, 2.4vw, 32px); font-weight: 900; letter-spacing: -0.05em; line-height: 1.1; }
.choice__lead { margin-top: 8px; max-width: 13em; font-size: 15px; font-weight: 500; color: var(--muted); line-height: 1.5; }
.choice__tick {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--volt); color: var(--ink); transform: scale(0); transition: transform .45s var(--ease);
}
.choice__tick svg { width: 18px; height: 18px; }
.choice input:checked + .choice__card .choice__tick { transform: scale(1); }
.choice--mode .choice__card { min-height: 190px; }
.choice--mode .choice__title { font-size: clamp(34px, 3.2vw, 44px); }

.info { margin-top: 18px; }
.info:empty { display: none; }
.info ul { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--gray); }
.info li { position: relative; padding-left: 16px; font-size: 15px; color: var(--ink-2); }
.info li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ---- 입력 ---- */
.fsec { margin: 0 0 44px; padding: 0; border: 0; min-width: 0; }
.fsec__title { display: block; width: 100%; padding: 0 0 12px; border-bottom: 2px solid var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -0.035em; }
.fsec__note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.field { display: block; margin-top: 22px; }
.field[hidden] { display: none; }
.field__label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 9px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.field__label .opt { font-weight: 500; color: var(--muted-2); font-size: 13px; }
.field__label .req { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); transform: translateY(-3px); }
.input, .textarea {
  display: block; width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; outline: none;
  transition: border-color .2s, box-shadow .25s; -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #aeaeb2; font-weight: 400; }
.input:hover, .textarea:hover { border-color: #b6b6bb; }
.input:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(212, 245, 39, .7); }
.textarea { height: auto; min-height: 128px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.field.is-invalid .input, .field.is-invalid .textarea { border-color: var(--danger); }
.field.is-invalid .input:focus, .field.is-invalid .textarea:focus { box-shadow: 0 0 0 4px rgba(217, 48, 37, .16); }
.field__err { margin-top: 7px; font-size: 14px; font-weight: 600; color: var(--danger); }
.field__err:empty { display: none; }
.field__note { margin-top: 7px; font-size: 13px; color: var(--muted); }
.field__count { display: block; margin-top: 6px; text-align: right; font-size: 12px; color: var(--muted-2); font-family: var(--mono); }
.unit { position: relative; max-width: 220px; }
.unit .input { padding-right: 46px; }
.unit__suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.dur { display: flex; align-items: center; gap: 10px; }
.dur .unit { max-width: 140px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg__opt span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .3s var(--ease);
}
.seg__opt span small { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.seg__opt span:hover { border-color: #9a9aa0; }
.seg__opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg__opt input:checked + span small { color: var(--volt); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg__opt input:active + span { transform: scale(.97); }
.seg--check .seg__opt span::before {
  content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid currentColor; opacity: .5; flex: none;
}
.seg--check .seg__opt input:checked + span::before {
  opacity: 1; border-color: var(--volt); background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--gray); cursor: pointer; }
.switch__text b { display: block; font-size: 16px; font-weight: 700; }
.switch__text small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; background: #c7c7cc; transition: background-color .25s; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); }
.switch input:checked ~ .switch__track { background: var(--ink); }
.switch input:checked ~ .switch__track::after { transform: translateX(20px); background: var(--volt); }
.switch input:focus-visible ~ .switch__track { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---- 동의 ---- */
.agree-all { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 18px; font-size: 17px; font-weight: 800; cursor: pointer; }
.agree-all small { font-weight: 500; color: var(--muted); font-size: 13px; }
.agree-all input, .consent__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree-all__box, .consent__box {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line); color: transparent; background: #fff;
  transition: background-color .2s, border-color .2s, color .2s;
}
.agree-all__box svg, .consent__box svg { width: 16px; height: 16px; }
.agree-all input:checked + .agree-all__box, .consent__check input:checked + .consent__box { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.agree-all input:focus-visible + .agree-all__box, .consent__check input:focus-visible + .consent__box { outline: 3px solid var(--ink); outline-offset: 2px; }
.consents { display: grid; gap: 10px; margin-top: 14px; }
.consent { border: 1.5px solid var(--gray-2); border-radius: 16px; overflow: hidden; }
.consent.is-invalid { border-color: var(--danger); }
.consent__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; }
.consent__check { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; font-weight: 700; }
.consent__tag { flex: none; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; }
.consent__tag--opt { background: var(--gray-2); color: var(--muted); }
.consent__toggle { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.consent__toggle:hover { background: var(--gray); }
.consent__toggle svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.consent__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.consent__body { padding: 0 18px 18px; }
.consent__body[hidden] { display: none; }
.terms { display: grid; grid-template-columns: 112px 1fr; border-top: 1px solid var(--gray-2); font-size: 14px; }
.terms dt, .terms dd { padding: 10px 0; border-bottom: 1px solid var(--gray-2); }
.terms dt { font-weight: 700; color: var(--ink); padding-right: 12px; }
.terms dd { color: var(--ink-2); }
.terms dd b { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.consent__text { font-size: 14px; color: var(--ink-2); padding-top: 4px; }
.consent__err { padding: 0 18px 14px; font-size: 13px; font-weight: 600; color: var(--danger); }
.consent__err:empty { display: none; }

/* ---- 확인 ---- */
.review { display: grid; gap: 14px; }
.review__sec { padding: 20px 22px; border-radius: 18px; background: var(--gray); }
.review__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review__head h3 { font-size: 16px; font-weight: 800; }
.review__edit { border: 0; background: none; padding: 4px 6px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.review dl { display: grid; grid-template-columns: 132px 1fr; }
.review dt, .review dd { padding: 7px 0; font-size: 15px; border-top: 1px solid rgba(0, 0, 0, .06); }
.review dt { color: var(--muted); }
.review dd { font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.notice-box { display: flex; gap: 12px; margin-top: 16px; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 15px; line-height: 1.6; }
.notice-box:empty { display: none; }
.notice-box svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--volt); }
.notice-box b { color: var(--volt); font-weight: 700; }
.form-err { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fdecea; color: var(--danger); font-weight: 700; font-size: 15px; }

/* ---- 하단 이동 ---- */
.wizard__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--gray-2); }
.wizard__nav [data-next], .wizard__nav [data-submit] { margin-left: auto; min-width: 168px; }
.wizard__nav .btn[aria-busy="true"] { pointer-events: none; opacity: .7; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- 완료 ---- */
.done { padding-top: 10px; outline: none; }
.done__title { margin-top: 10px; font-size: clamp(32px, 4vw, 52px); font-weight: 900; letter-spacing: -0.055em; line-height: 1.1; }
.plate { position: relative; margin-top: 30px; width: min(100%, 520px); aspect-ratio: 520 / 200; }
.plate__pixels { position: absolute; inset: 0; }
.plate__pixels i { position: absolute; background: var(--ink); border-radius: 2px; }
.plate__body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 30px;
  border-radius: 22px; background: var(--ink); color: #fff;
}
.plate.is-building .plate__body { opacity: 0; }
.plate__label { color: var(--volt); }
.plate__code { font-family: var(--mono); font-size: clamp(30px, 5vw, 46px); font-weight: 500; letter-spacing: .04em; line-height: 1.1; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.done__notes { margin-top: 30px; display: grid; gap: 8px; max-width: 560px; }
.done__notes li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.done__notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--volt); transform: rotate(45deg); }
.done__more { display: flex; gap: 20px; margin-top: 30px; }
.link { border: 0; background: none; padding: 0; font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }

.noscript { max-width: 640px; margin: 120px auto; padding: 0 24px; font-size: 17px; }

/* ---- 반응형 ---- */
@media (max-width: 960px) {
  .apply__wrap { grid-template-columns: 1fr; padding-top: 28px; }
  .apply__side { position: static; }
  .apply__steps, .apply__due { display: none; }
  .apply__title { font-size: 30px; }
  .apply__picked { margin-top: 12px; }
  .apply__bar { display: block; position: fixed; z-index: 90; top: var(--gnb-h); left: 0; right: 0; height: 3px; background: var(--gray-2); }
  .apply__bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease); }
  .choices--3 { grid-template-columns: 1fr; }
  .choice__card { min-height: 150px; }
  .choice__obj { width: 30%; top: 10%; right: 4%; }
  .choice__obj--mic { width: 15%; right: 12%; }
  .choice__lead { max-width: 15em; }
  .wizard__nav {
    position: sticky; bottom: 0; z-index: 20; margin: 32px calc(var(--gutter) * -1) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .wizard__nav .btn--lg { --h: 52px; }
  .wizard__nav [data-next], .wizard__nav [data-submit] { flex: 1; }
}
@media (max-width: 560px) {
  .choices--2 { grid-template-columns: 1fr; }
  .choice--mode .choice__card { min-height: 130px; }
  .review dl, .terms { grid-template-columns: 96px 1fr; }
  .gnb .btn--line.btn--sm { display: none; }
}
