/* RES 상담·예약 — [UD-3] reserve · m-reserve. 번호 단계 폼 · 캘린더 · 슬롯 · 접수 폼 · FAQ. */

.view { padding: clamp(40px, 6vw, 64px) 24px 0; }

/* ══════════ RES-01 번호 단계 ══════════ */
/* 웹은 좌측 01~03 + 우측 고정 카드(04 신청자 정보 · 요약 · 제출), 모바일은 세로 스택 + 하단 요약 바([SD-3] §7). */
.reserve-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.reserve-steps { display: grid; gap: 36px; }
.step-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0 0 14px;
    font-size: 16px; font-weight: 700; color: var(--navy-800); }
.step-num { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1; color: var(--gold-500); }
.step-head em { font-style: normal; color: var(--danger); }
.step-sub { font-size: 13px; font-weight: 500; color: var(--text-mute); }

/* 01 예약 유형 — 고른 카드는 Navy 필 */
.type-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.type-card { position: relative; flex: 1 1 200px; display: grid; gap: 4px; padding: 18px 20px; cursor: pointer;
    background: var(--surface); border: 1px solid rgba(21, 34, 56, .15); border-radius: var(--radius); transition: .2s; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card:hover { border-color: var(--gold-500); }
.type-name { font-size: 15.5px; font-weight: 700; color: var(--navy-800); }
.type-desc { font-size: 13px; color: var(--text-mute); }
.type-card:has(input:checked) { background: var(--navy-800); border-color: var(--navy-800); }
.type-card:has(input:checked) .type-name { color: #fff; }
.type-card:has(input:checked) .type-desc { color: rgba(255, 255, 255, .7); }
.type-card:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* 02 캘린더 — 예약 가능일만 Paper 칸, 고른 날은 Gold */
.calendar-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-head strong { font-family: var(--font-serif); font-size: 18px; color: var(--navy-800); }
.cal-nav { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; cursor: pointer; font-size: 18px; color: var(--text);
    background: none; border: 1px solid var(--line); border-radius: var(--radius); }
.cal-nav:hover:not(:disabled) { border-color: var(--gold-500); }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }
.calendar-dow, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-dow { margin-bottom: 6px; }
.calendar-dow span { text-align: center; font-size: 12px; font-weight: 700; color: var(--text-mute); }
.calendar-dow span:first-child { color: var(--danger); }
.cal-day { aspect-ratio: 1; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy-800);
    background: var(--bg); border: 1px solid rgba(21, 34, 56, .1); border-radius: var(--radius); }
.cal-day:hover:not(:disabled) { border-color: var(--gold-500); }
/* 휴무일·지난 날짜·전부 찬 날 — 숨기지 않고 비활성으로 둡니다([SD-3] §5) */
.cal-day.is-off { background: none; border-color: transparent; color: #C4C9D2; cursor: default; }
.cal-day.is-on { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-800); }

/* 03 시간 */
.slot-list { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-guide { margin: 0; font-size: 14px; color: var(--text-mute); }
.slot { padding: 13px 28px; cursor: pointer; font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--navy-800);
    background: var(--surface); border: 1px solid rgba(21, 34, 56, .15); border-radius: var(--radius); }
.slot:hover:not(:disabled) { border-color: var(--gold-500); }
.slot.is-on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.slot:disabled { background: rgba(21, 34, 56, .05); border-color: transparent; color: #C4C9D2; cursor: not-allowed; }
.slot-note { margin: 12px 0 0; font-size: 13px; color: var(--text-mute); }

/* 04 신청자 정보 — 우측 고정 카드 */
.reserve-card { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(24px, 3vw, 32px);
    background: var(--surface); border: 1px solid var(--line); }
.reserve-card .form-row { margin-bottom: 10px; }
.res-summary { display: grid; gap: 8px; margin: 18px 0; padding: 14px 16px; background: var(--bg); }
.res-summary > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.res-summary dt { color: var(--text-mute); }
.res-summary dd { margin: 0; text-align: right; font-weight: 700; color: var(--navy-800); }
.agree { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text-mute); }
.agree a { text-decoration: underline; }
.res-submit { width: 100%; margin-top: 16px; padding: 17px; }
.summary-bar { display: none; }

/* ── 접수 완료 ── */
.done-card { max-width: 560px; margin: 0 auto; padding: 56px 32px; text-align: center;
    background: var(--surface); border: 1px solid rgba(201, 164, 92, .4); }
.done-mark { width: 56px; height: 56px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%;
    background: var(--gold-500); color: var(--navy-800); font-size: 26px; font-weight: 700; }
.done-card h2 { margin-bottom: 12px; font-size: 26px; color: var(--navy-800); }
.done-note { margin: 0 0 24px; font-size: 14.5px; color: var(--text-mute); }
.done-list { display: grid; gap: 10px; margin: 0 0 28px; text-align: left; }
.done-list > div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.done-list dt { font-size: 13.5px; color: var(--text-mute); }
.done-list dd { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--navy-800); }

/* ══════════ RES-02 온라인 상담문의 ══════════ */
.inquiry-wrap { max-width: 720px; margin: 0 auto; }
.inquiry-card { padding: clamp(26px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); }
.card-title { margin: 0; font-size: 26px; color: var(--navy-800); }
.card-lead { margin: 10px 0 24px; font-size: 14.5px; color: var(--text-mute); }
.inquiry-card .form-row { margin-bottom: 10px; }
.optional-fields { margin-bottom: 10px; }
.optional-fields > summary { display: none; }
.optional-fields .form-grid2 { gap: 10px; margin-bottom: 10px; }
.inquiry-submit { width: 100%; margin-top: 16px; padding: 17px; }

/* ══════════ RES-04 FAQ ══════════ */
.faq-list { display: grid; gap: 8px; margin-top: 24px; }
/* 「전체」의 분류 머리글(2026-09-26) — 학원 FAQ 자료의 묶음 제목. 첫 머리글은 목록 윗선에 붙입니다. */
.faq-group { margin: 22px 0 4px; font-size: 15px; font-weight: 700; color: var(--navy-800);
    display: flex; align-items: center; gap: 10px; }
.faq-group::before { content: ''; width: 18px; height: 2px; background: var(--gold-500); }
.faq-group:first-child { margin-top: 0; }
.faq-item { background: var(--surface); border: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none;
    font-size: 15.5px; font-weight: 600; color: var(--navy-800); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px;
    background: var(--navy-800); color: var(--gold-300); font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.faq-chev { flex: none; display: grid; margin-left: auto; font-size: 18px; color: var(--gold-500); transition: transform .2s; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 22px 20px 64px; font-size: 15px; line-height: 1.8; color: var(--text-mute); white-space: pre-line; }

.faq-more { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
    margin-top: 28px; padding: 26px 28px; background: var(--navy-800); color: #fff; }
.faq-more h3 { margin: 0; font-size: 21px; color: #fff; }
.faq-more p { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.faq-more .btn { background: var(--gold-500); color: var(--navy-800); }
.faq-more .btn:hover { background: var(--gold-300); }
.quick-channels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 20px 0 0;
    font-size: 14px; color: var(--text-mute); }
.quick-channels a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-800); }
.quick-channels a:hover { color: var(--gold-700); }

/* ══════════ 반응형 ══════════ */
@media (max-width: 960px) {
    .view { padding: 28px 20px 0; }
    .reserve-layout { grid-template-columns: 1fr; gap: 32px; }
    .reserve-card { position: static; }
    .reserve-card .res-submit { display: none; }          /* 모바일은 하단 요약 바의 버튼으로 제출합니다 */
    .slot { flex: 1 1 0; height: 48px; padding: 0; }
    .slot:disabled { text-decoration: line-through; }
    .cal-day { min-height: 40px; }

    /* 하단 고정 요약 바 — 유형·일시를 계속 보여줍니다. RES-03 플로팅 바는 이 뷰에서 내립니다([SD-3] §7 경고). */
    .summary-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface);
        border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(13, 22, 38, .12); }
    .summary-text { flex: 1; min-width: 0; display: grid; font-size: 12.5px; color: var(--text-mute); }
    .summary-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--navy-800); }
    .summary-bar .btn { flex: none; padding: 14px 18px; font-size: 14px; }
    body.reserve-nelt .floating-bar { display: none; }
    body.reserve-nelt .site-footer { padding-bottom: 84px; }

    /* 선택 입력은 접힌 한 줄로 시작합니다([UD-3] m-reserve) */
    .optional-fields > summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
        padding: 14px 16px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--navy-800);
        background: var(--bg); border: 1px solid var(--line); }
    .optional-fields > summary::-webkit-details-marker { display: none; }
    .optional-fields > summary::after { content: ''; flex: none; width: 16px; height: 16px; background: var(--gold-500);
        -webkit-mask: var(--icon-chevron-down) center / contain no-repeat; mask: var(--icon-chevron-down) center / contain no-repeat;
        transition: transform .2s; }
    .optional-fields[open] > summary::after { transform: rotate(180deg); }

    .faq-a { padding-left: 22px; }
    .faq-more .btn { width: 100%; }
}
