/*
 * 가족 스키캠프 홍보·신청 페이지 (/welfare/skicamp/main.ac) - 내 신청 현황, 신청 창
 * 홍보 영역 스타일은 user/skicamp/main.jsp 안에 있음. 색·모서리는 그 페이지의 변수(--ink 등)를 씀.
 * 2026.11.11 hunchulchoi 최초 작성
 * 2026.11.11 hunchulchoi 수정: 단계 스테퍼, 희망 회차 달력
 * 2026.11.12 hunchulchoi 수정: 추첨 대기(APLY) 상태 색
 * 2026.11.12 hunchulchoi 수정: 로그인 전 내 신청 현황(작게), 지난 신청 접기, 참가비 안내
 * 2026.11.13 hunchulchoi 수정: 용평 시즌권·장비 할인 안내
 * 2026.11.13 hunchulchoi 수정: 참가자 칸 라벨, 검사 실패 빨간 테두리
 * 2026.11.15 hunchulchoi 수정: 확인창 보충 안내(.swal-note)
 * 2026.11.16 hunchulchoi 수정: 참가자 확인창 명단 표(.swal-ptcp), 신청자 휴대전화(.swal-tel)
 * 2026.11.17 hunchulchoi 수정: 희망 회차 달력 경쟁 정도 색(.lv-low/.lv-mid/.lv-high), 범례(.am-lv), 지망 칩 신청 수(.cnt)
 */

/* ---------- 내 신청 현황 ---------- */
.my-sec { padding: 70px 0 30px; }
.my-sec .sec-head { margin-bottom: 26px; }
.my-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.my-empty { grid-column: 1 / -1; text-align: center; padding: 34px 20px; border-radius: 22px; background: #fff; border: 1.5px dashed #c9d8ef; color: var(--ink-2); }
.my-empty .btn { margin-top: 14px; }
.my-card { position: relative; padding: 22px 22px 20px; border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(15,29,58,.08); border-top: 5px solid #1757d6; }
.my-card.HI { border-top-color: #12a58a; }
.my-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.my-card .resort { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.my-card .no { font-size: 12px; color: #8a99b6; font-weight: 700; }
.stts { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.stts.APLY { background: #e7f0ff; color: #1757d6; }   /* 2026.11.12 추가: 추첨 대기 */
.stts.HOLD { background: #fff4e5; color: #c25e00; }
.stts.PAID { background: #e7f0ff; color: #1757d6; }
.stts.SLCT { background: #dcfce7; color: #157a3d; }
.stts.WAIT { background: #f1ecff; color: #5b3fd6; }
.stts.FAIL, .stts.REFUND_REQ, .stts.REFUNDED, .stts.EXPIRED, .stts.CANCELED, .stts.CANCEL_REQ { background: #eef1f6; color: #5a6782; }
.my-card dl { display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; margin: 14px 0 0; font-size: 14px; }
.my-card dt { color: #8a99b6; font-weight: 700; }
.my-card dd { margin: 0; font-weight: 700; color: var(--ink); }
.my-card .deadline { color: #c25e00; }
.my-card .acts { display: flex; gap: 8px; margin-top: 16px; }
.mini-btn { flex: 1; padding: 11px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; border: 1.5px solid #d6e1f2; background: #fff; color: var(--ink); cursor: pointer; }
.mini-btn.primary { background: linear-gradient(135deg, var(--coral), var(--coral-2)); color: #fff; border-color: transparent; }
.mini-btn:hover { filter: brightness(.97); }

/* ---------- 신청 창 ---------- */
body.modal-open { overflow: hidden; }
.apply-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(7,19,48,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.apply-modal[hidden] { display: none; }
.am-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 26px; background: #f6faff; box-shadow: 0 40px 90px rgba(0,0,0,.35); overflow: hidden; animation: amIn .35s var(--ease); }
@keyframes amIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.am-head { padding: 22px 26px 16px; background: linear-gradient(135deg, #0c1f4d, #1757d6); color: #fff; }
.am-head h3 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.am-close { position: absolute; right: 16px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
/* 단계 스테퍼: 동그라미 + 진행만큼 채워지는 선 */
.am-stepper { position: relative; display: flex; justify-content: space-between; margin: 18px 6px 0; padding: 0; list-style: none; }
.am-stepper::before, .am-stepper::after { content: ""; position: absolute; left: 17px; right: 17px; top: 16px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); }
.am-stepper::after { right: auto; width: calc((100% - 34px) * var(--pct) / 100); background: linear-gradient(90deg, #3df0c4, #8fdcff); transition: width .45s var(--ease); }
.am-stepper li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 70px; }
.am-stepper .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #b9cdf0; background: #183a82; border: 2px solid rgba(255,255,255,.25); transition: all .3s; }
.am-stepper .lbl { font-size: 12.5px; font-weight: 800; color: #9fb6e0; white-space: nowrap; }
.am-stepper li.done .dot { background: #3df0c4; border-color: #3df0c4; color: #0c1f4d; }
.am-stepper li.done .lbl { color: #d6fff3; }
.am-stepper li.on .dot { background: #fff; border-color: #fff; color: #1757d6; box-shadow: 0 0 0 6px rgba(255,255,255,.18); transform: scale(1.08); }
.am-stepper li.on .lbl { color: #fff; }
.am-body { padding: 22px 26px; overflow-y: auto; }
.am-foot { display: flex; gap: 10px; padding: 16px 26px 20px; background: #fff; border-top: 1px solid var(--line); }
.am-foot .sum { flex: 1; align-self: center; font-size: 14px; color: var(--ink-2); font-weight: 700; }
.am-foot .sum b { font-size: 20px; color: var(--ink); font-weight: 900; }
.am-btn { padding: 13px 22px; border-radius: 14px; font-weight: 800; font-size: 15px; border: 0; cursor: pointer; }
.am-btn.ghost { background: #eef3fa; color: var(--ink); }
.am-btn.go { background: linear-gradient(135deg, var(--coral), var(--coral-2)); color: #fff; box-shadow: 0 10px 22px rgba(255,122,69,.35); }
.am-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.am-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--ink); }
.am-hint { font-size: 13px; color: #6a7a98; margin: -2px 0 12px; }

/* 입력칸 공통 (2026.11.11 수정: 스테퍼·달력 작업 때 빠진 규칙 복구, Safari 기본 회색 선택 상자 대신 직접 그린 화살표) */
.am-select, .am-input { width: 100%; min-height: 46px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #d6e1f2; background-color: #fff; font: inherit; font-size: 15px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.am-select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6b85' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.am-input::placeholder { color: #9aa7bd; }
.am-select:focus, .am-input:focus { outline: 0; border-color: #1757d6; box-shadow: 0 0 0 4px rgba(23,87,214,.12); }

/* 1단계: 리조트 */
.am-resorts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.am-resort { position: relative; padding: 0; border-radius: 18px; overflow: hidden; border: 3px solid transparent; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 10px 24px rgba(15,29,58,.08); transition: transform .25s var(--ease), border-color .2s; }
.am-resort:hover { transform: translateY(-3px); }
.am-resort.on { border-color: var(--coral); }
.am-resort img { display: block; width: 100%; height: 110px; object-fit: cover; }
.am-resort .t { padding: 12px 14px 14px; }
.am-resort b { display: block; font-size: 17px; font-weight: 900; }
.am-resort small { display: block; margin-top: 2px; font-size: 12.5px; color: #6a7a98; font-weight: 600; }
.am-resort[disabled] { cursor: not-allowed; filter: grayscale(.8); opacity: .6; transform: none; }
.am-resort .done-tag { position: absolute; right: 10px; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(7,19,48,.75); color: #fff; font-size: 12px; font-weight: 800; }

/* 2단계: 지망 (달력) */
.am-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.am-chip { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px 8px 12px; border-radius: 14px; border: 1.5px dashed #c9d8ef; background: #fff; font-size: 13.5px; }
.am-chip .rk { flex: none; font-weight: 900; color: #1757d6; }
.am-chip .rk em { font-style: normal; font-size: 11px; color: #c2410c; }
.am-chip .empty { color: #8a99b6; font-size: 12.5px; }
.am-chip b { flex: 1; font-weight: 800; }
.am-chip.on { border-style: solid; border-color: #1757d6; background: #eef4ff; }
.am-chip .x { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #d9e5fb; color: #1757d6; font-size: 16px; line-height: 1; cursor: pointer; }
.am-cals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.am-cal { padding: 12px 10px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.am-cal h5 { margin: 0 4px 8px; font-size: 16px; font-weight: 900; }
.am-cal h5 small { font-size: 11px; color: #8a99b6; font-weight: 700; }
.am-cal .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; text-align: center; }
.am-cal .dw { font-size: 11px; font-weight: 800; color: #8a99b6; padding-bottom: 2px; }
.am-cal .sun { color: #e2484b; } .am-cal .sat { color: #2b6ff0; }
.am-cal .d { position: relative; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 4px; font-size: 12.5px; font-weight: 700; color: #b4bfd3; }
.am-cal button.d { border: 0; background: none; cursor: pointer; color: #1b2433; font: inherit; font-size: 12.5px; font-weight: 800; }
.am-cal button.d::before { content: ""; position: absolute; top: 1px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: #e7f0ff; z-index: -1; transition: transform .2s var(--ease), background .2s; }
.am-cal button.d { isolation: isolate; }
.am-cal button.d:hover::before { transform: scale(1.12); background: #cfe0ff; }
.am-cal button.d.sun { color: #e2484b; } .am-cal button.d.sat { color: #2b6ff0; }
.am-cal button.d.pick { color: #fff; }
.am-cal button.d.pick::before { background: linear-gradient(135deg, var(--coral), var(--coral-2)); box-shadow: 0 6px 14px rgba(255,122,69,.4); }
.am-cal button.d i { position: absolute; top: -4px; right: 2px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: #0c1f4d; color: #fff; font-style: normal; font-size: 10px; line-height: 16px; font-weight: 900; }
.am-cal button.d small { position: relative; margin-top: 7px; font-size: 9.5px; font-weight: 700; color: #8a99b6; }
.am-cal button.d.pick small { color: #c2410c; }
.am-cal button.d:disabled { cursor: not-allowed; color: #b4bfd3; }
.am-cal button.d:disabled::before { background: #f1f3f7; }
/* 2026.11.17 회차별 경쟁 정도 (1지망 신청 ÷ 모집): 여유·보통·많음. 고른 날(pick)은 기존 주황 유지 */
.am-cal button.d.lv-low::before { background: #d3f9e2; } .am-cal button.d.lv-low:hover::before { background: #b2f2cb; }
.am-cal button.d.lv-mid::before { background: #fff1c2; } .am-cal button.d.lv-mid:hover::before { background: #ffe58f; }
.am-cal button.d.lv-high::before { background: #ffd8d6; } .am-cal button.d.lv-high:hover::before { background: #ffbdb9; }
.am-cal button.d.lv-low small { color: #0f7a43; } .am-cal button.d.lv-high small { color: #c92a2a; }
.am-cal button.d.pick::before { background: linear-gradient(135deg, var(--coral), var(--coral-2)); }
.am-lv { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: -4px 0 12px; font-size: 12.5px; font-weight: 700; color: #4a5a78; }
.am-lv span { display: inline-flex; align-items: center; gap: 5px; }
.am-lv i { width: 12px; height: 12px; border-radius: 50%; }
.am-lv i.lv-low { background: #b2f2cb; } .am-lv i.lv-mid { background: #ffe58f; } .am-lv i.lv-high { background: #ffbdb9; }
.am-lv em { flex-basis: 100%; font-style: normal; font-weight: 600; color: #6a7a98; }
.am-chip small.cnt { display: block; font-size: 11px; font-weight: 700; color: #6a7a98; }

/* 3단계: 참가자 */
.am-count { display: flex; gap: 8px; margin-bottom: 14px; }
.am-count button { flex: 1; padding: 12px; border-radius: 12px; border: 1.5px solid #d6e1f2; background: #fff; font-weight: 900; font-size: 16px; cursor: pointer; color: var(--ink-2); }
.am-count button.on { background: #1757d6; border-color: #1757d6; color: #fff; }
.am-ptcp { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.am-ptcp .hd { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 900; font-size: 14px; color: #1757d6; }
.am-grid { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 8px; }
/* 2026.11.11 추가: 본인(참가자 1) 고정 칸, 휴대전화 */
.am-input[readonly] { background-color: #f3f6fb; color: #475467; cursor: default; }
.am-input[readonly]:focus { border-color: #d6e1f2; box-shadow: none; }
.am-ptcp.me { border-color: #b9cdf3; background: #fbfcff; }
.am-tel { display: grid; grid-template-columns: 120px 1fr; gap: 4px 8px; align-items: center; margin-top: 8px; }
.am-tel label { font-size: 14px; font-weight: 800; color: var(--ink); padding-left: 4px; }
.am-tel .am-tel-hint { grid-column: 2; font-size: 12.5px; color: #667085; }
.am-toggles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.seg2 { display: flex; border: 1.5px solid #d6e1f2; border-radius: 12px; overflow: hidden; background: #fff; }
.seg2 button { flex: 1; padding: 9px 4px; border: 0; background: transparent; font-weight: 800; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.seg2 button.on { background: #e7f0ff; color: #1757d6; }
.seg2 .cap { display: none; }
.tg-cap { display: block; font-size: 11.5px; color: #8a99b6; font-weight: 700; margin-bottom: 4px; }

/* 4단계: 확인·동의 */
.am-summary { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: 14px; }
.am-summary dl { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; margin: 0; font-size: 14.5px; }
.am-summary dt { color: #8a99b6; font-weight: 700; }
.am-summary dd { margin: 0; font-weight: 700; }
.am-summary .amt { font-size: 22px; font-weight: 900; color: #c2410c; }
.am-agree { border-radius: 14px; background: #fff; border: 1px solid var(--line); margin-bottom: 8px; }
.am-agree > label { display: flex; align-items: center; gap: 10px; padding: 13px 14px; font-weight: 800; font-size: 14.5px; cursor: pointer; }
.am-agree input { width: 20px; height: 20px; accent-color: #1757d6; }
.am-agree details { padding: 0 14px 12px 44px; font-size: 13px; color: var(--ink-2); }
.am-agree summary { cursor: pointer; color: #1757d6; font-weight: 700; }
.am-agree table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.am-agree th, .am-agree td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.am-agree th { width: 96px; background: #f3f7fe; }
.am-all { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: #e7f0ff; font-weight: 900; margin-bottom: 10px; cursor: pointer; }
.am-all input { width: 22px; height: 22px; accent-color: #1757d6; }

/* SweetAlert2 입금 안내 */
.dep-box { text-align: left; margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: #f3f7fe; font-size: 15px; }
.dep-box dl { display: grid; grid-template-columns: 82px 1fr; gap: 8px 10px; margin: 0; }
.dep-box dt { color: #6a7a98; font-weight: 700; }
.dep-box dd { margin: 0; font-weight: 800; color: #0f1d3a; word-break: break-all; }
.dep-box .amt { color: #c2410c; font-size: 18px; }
.dep-box .copy { margin-left: 6px; padding: 2px 8px; border-radius: 8px; border: 1px solid #c9d8ef; background: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.dep-note { margin-top: 10px; font-size: 13px; color: #6a7a98; text-align: left; }
/* 2026.11.11 추가: 신청 직후 문자 발송 안내 */
.dep-sms { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #eef4ff; color: #1d3b7a; font-size: 13.5px; text-align: left; }

@media (max-width: 700px) {
  .apply-modal { padding: 0; align-items: stretch; }
  .am-box { max-height: 100vh; border-radius: 0; }
  .am-resorts { grid-template-columns: 1fr; }
  .am-resort img { height: 90px; }
  .am-grid { grid-template-columns: 1fr 1fr; }
  .am-grid > :first-child { grid-column: 1 / -1; }
  .am-tel { grid-template-columns: 1fr; }
  .am-tel .am-tel-hint { grid-column: 1; }
  .am-toggles { grid-template-columns: 1fr 1fr; }
  .am-stepper li { min-width: 56px; }
  .am-stepper .lbl { font-size: 11px; }
  .am-chips { grid-template-columns: 1fr; }
  .am-cals { grid-template-columns: 1fr; }
  .am-cal .d { height: 46px; }
  .am-body, .am-head, .am-foot { padding-left: 16px; padding-right: 16px; }
  .my-list { grid-template-columns: 1fr; }
}

/* 2026.11.12 수정: 로그인 전 '내 신청 현황'은 FAQ 아래에 작게, 지난 신청은 접기, 참가비 안내 (Plane #31) */
.my-sec.guest { padding: 10px 0 40px; }
.my-sec.guest .sec-head { margin-bottom: 14px; }
.my-sec.guest .my-empty { padding: 20px; }
.my-past { grid-column: 1 / -1; }
.my-past > summary { cursor: pointer; font-weight: 800; color: var(--ink-2); padding: 6px 2px; }
.my-past-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 12px; }
.my-past .my-card { opacity: .6; box-shadow: none; border: 1px solid #e3eaf5; }
.am-foot .sum .hint { font-size: 13px; font-weight: 600; color: var(--ink-2); }


/* 2026.11.13 추가: 용평 시즌권·장비 할인 안내. 할인 항목 줄은 위 줄과 같은 칸 너비(4칸 중 앞 2칸) */
.am-dc-row { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e3e9f4; }
.am-dc-row .tg-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-dc-row .tg-cap em { font-style: normal; color: #c2410c; }
.am-hint.am-dc { padding: 10px 12px; border-radius: 10px; background: #fff7e8; color: #8a4b08; }
.am-summary .dc-line { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: #8a4b08; line-height: 1.5; }

/* 2026.11.13 추가: 참가자 칸 라벨, 검사 실패 표시 (빨간 테두리) */
.am-fld { display: flex; flex-direction: column; min-width: 0; }
.am-fld .tg-cap { cursor: default; }
.am-input.is-err, .am-select.is-err { border-color: #e2484b; box-shadow: 0 0 0 4px rgba(226,72,75,.14); }
.seg2.is-err, .am-resorts.is-err, .am-cal.is-err, .am-count.is-err, .am-all.is-err { outline: 2px solid #e2484b; outline-offset: 3px; border-radius: 12px; }

/* 2026.11.15 추가: 확인창 안 보충 안내 (용평 할인·현장 추가요금) */
.swal2-html-container .swal-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #f3f6fb; color: #4a5568; font-size: 13.5px; line-height: 1.6; text-align: left; word-break: keep-all; }

/* 2026.11.16 참가자 정보 확인창 명단 표 (좁은 화면은 가로 스크롤) */
.swal2-html-container .swal-ptcp { margin: 12px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.swal2-html-container .swal-ptcp table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 13.5px; }
.swal2-html-container .swal-ptcp th { background: #f3f6fb; color: #4a5568; font-weight: 600; padding: 7px 6px; border-bottom: 1px solid #dfe5ee; white-space: nowrap; }
.swal2-html-container .swal-ptcp td { padding: 7px 6px; border-bottom: 1px solid #eef1f6; color: #1f2937; white-space: nowrap; text-align: center; }
.swal2-html-container .swal-ptcp td:nth-child(2) { font-weight: 700; }
.swal2-html-container .swal-tel { margin: 10px 0 0; font-size: 13.5px; color: #4a5568; }

