/* 클래스 예약 · 나의 예약 */
.bk-body { background: var(--bg-light); }
.bk-page { max-width: 1120px; margin: 0 auto; padding: 140px 24px 96px; color: var(--text-color); }
.bk-hero { margin-bottom: 36px; }
.bk-eyebrow { font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 700; color: var(--accent-color); margin-bottom: 10px; }
.bk-hero h1, .bk-done h1 { font-family: 'Playfair Display', 'Noto Sans KR', serif; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.2; color: #111; }
.bk-lead { margin-top: 12px; font-size: 1.05rem; color: #666; line-height: 1.7; }
.bk-alert { background: #fdecea; color: #b42318; border: 1px solid #f5c2bd; border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; line-height: 1.6; }
.bk-ok { background: #ecfdf3; color: #027a48; border-color: #abefc6; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.bk-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bk-step { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); }
.bk-step h2 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; color: #111; margin-bottom: 20px; }
.bk-step h2 span { width: 30px; height: 30px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 0.85rem; flex: none; }
.bk-placeholder { color: #888; font-size: 0.95rem; }

/* 1. 클래스 */
.bk-classes { display: grid; gap: 12px; }
.bk-class { position: relative; display: flex; gap: 16px; align-items: center; padding: 14px; border: 1.5px solid #e8e8e8; border-radius: 12px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.bk-class:hover { border-color: #cfcfcf; }
.bk-class input { position: absolute; opacity: 0; pointer-events: none; }
.bk-class:has(input:checked) { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.25); }
.bk-class:has(input:focus-visible) { outline: 2px solid #111; outline-offset: 2px; }
.bk-class img { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; flex: none; background: #eee; }
.bk-class-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bk-class-body strong { font-size: 1.05rem; color: #111; }
.bk-class-desc { font-size: 0.88rem; color: #777; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-class-meta { font-size: 0.85rem; color: #555; }
.bk-class-meta b { color: #111; }
.bk-class.is-full { opacity: 0.6; }

/* 2. 날짜 · 시간 */
.bk-date-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
#bk-calendar { display: none; }
.bk-date-grid .flatpickr-calendar { box-shadow: none; border: 1px solid #eee; border-radius: 12px; }
.bk-date-grid .flatpickr-day.bk-day-open { font-weight: 700; color: #111; background: rgba(212, 163, 115, 0.16); border-color: transparent; }
.bk-date-grid .flatpickr-day.bk-day-full { text-decoration: line-through; color: #aaa; }
.bk-date-grid .flatpickr-day.selected, .bk-date-grid .flatpickr-day.selected:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.bk-times h3 { font-size: 0.95rem; color: #555; font-weight: 600; margin-bottom: 12px; }
.bk-time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bk-time { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border: 1.5px solid #e3e3e3; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; text-align: left; transition: border-color 0.15s; }
.bk-time strong { font-size: 1.15rem; color: #111; }
.bk-time small { font-size: 0.8rem; color: #2f7d4f; }
.bk-time:hover:not(:disabled) { border-color: #bbb; }
.bk-time.is-on { border-color: var(--accent-color); background: #fdf8f3; box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.25); }
.bk-time.is-full { cursor: not-allowed; opacity: 0.55; }
.bk-time.is-full small { color: #999; }

/* 3. 예약자 정보 */
.bk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bk-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 500; color: #333; }
.bk-field small { font-weight: 400; color: #888; font-size: 0.8rem; }
.bk-field input, .bk-field select, .bk-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font: inherit; font-size: 1rem; background: #fff; color: #111; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2); }
.bk-wide { grid-column: 1 / -1; }
.bk-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; background: #f7f7f7; border-radius: 8px; font-size: 0.88rem; line-height: 1.6; color: #555; cursor: pointer; }
.bk-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent-color); flex: none; }

/* 요약 */
.bk-side { position: sticky; top: 110px; }
.bk-summary { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.bk-summary h2 { font-size: 1.1rem; font-weight: 700; color: #111; margin-bottom: 16px; }
.bk-summary img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.bk-summary dl, .bk-done-list { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.bk-summary dl div, .bk-done-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.bk-summary dt, .bk-done-list dt { color: #888; flex: none; }
.bk-summary dd, .bk-done-list dd { margin: 0; text-align: right; color: #111; font-weight: 500; overflow-wrap: anywhere; }
.bk-summary .bk-total { border-top: 1px solid #eee; padding-top: 12px; margin-top: 4px; font-size: 1.05rem; }
.bk-summary .bk-total dd { font-weight: 700; color: #111; }
.bk-notice { margin-top: 16px; padding: 12px 14px; background: #fdf8f3; border-radius: 8px; font-size: 0.85rem; line-height: 1.6; color: #6b4f33; text-align: left; }
.bk-notice strong { display: block; margin-bottom: 2px; }
.bk-notice p { white-space: pre-line; }
.bk-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border: 1.5px solid #111; border-radius: 8px; background: #111; color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.bk-button:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.bk-button:disabled { opacity: 0.6; cursor: wait; }
.bk-button-ghost { background: #fff; color: #111; }
.bk-submit { width: 100%; margin-top: 20px; }
.bk-policy { margin-top: 12px; font-size: 0.82rem; color: #888; line-height: 1.6; text-align: center; }
.bk-policy a { color: #555; text-decoration: underline; }

/* 비어 있음 · 완료 · 나의 예약 */
.bk-empty { background: #fff; border-radius: 14px; padding: 56px 24px; text-align: center; color: #666; line-height: 1.7; }
.bk-empty i { font-size: 2.4rem; color: var(--accent-color); margin-bottom: 16px; display: block; }
.bk-empty p { margin-bottom: 20px; }
.bk-done, .bk-my { max-width: 620px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 40px 36px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); }
.bk-done { text-align: center; }
.bk-done-mark { width: 64px; height: 64px; border-radius: 50%; background: #ecfdf3; color: #12b76a; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 18px; }
.bk-done-list { margin: 28px 0 0; padding: 20px; background: #fafafa; border-radius: 12px; text-align: left; }
.bk-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: 0.04em; }
.bk-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.bk-my h1 { font-family: 'Playfair Display', 'Noto Sans KR', serif; font-size: 2rem; color: #111; }
.bk-my form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.bk-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.bk-status-confirmed { background: #ecfdf3; color: #027a48; }
.bk-status-cancelled { background: #f2f4f7; color: #667085; }
.bk-my-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 900px) {
    .bk-layout { grid-template-columns: 1fr; }
    .bk-side { position: static; }
}
@media (max-width: 640px) {
    .bk-page { padding: 110px 16px 72px; }
    .bk-step { padding: 22px 18px; }
    .bk-date-grid { grid-template-columns: 1fr; }
    .bk-date-grid .flatpickr-calendar { margin: 0 auto; }
    .bk-fields { grid-template-columns: 1fr; }
    .bk-class img { width: 84px; height: 70px; }
    .bk-done, .bk-my { padding: 32px 20px; }
}

/* 클래스 태그 · 상세 소개 */
.bk-class-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.bk-class-tags i { font-style: normal; font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; background: #f3f0eb; color: #6b5a48; }
.bk-class-more { margin: -4px 0 4px; padding: 0 14px; font-size: 0.88rem; }
.bk-class-more summary { cursor: pointer; color: #8a6a4a; font-weight: 500; padding: 4px 0; }
.bk-class-body-html { padding: 12px 16px; margin-top: 6px; background: #fbfaf8; border-radius: 10px; line-height: 1.8; color: #444; }
.bk-class-body-html img { max-width: 100%; height: auto; border-radius: 8px; }
.bk-class-body-html h2, .bk-class-body-html h3 { font-size: 1.05rem; margin: 1em 0 0.4em; color: #222; }
.bk-class-body-html p { margin: 0 0 0.8em; }
.bk-class-body-html ul, .bk-class-body-html ol { padding-left: 1.3em; margin: 0 0 0.8em; }

/* ---------- 2분할: 왼쪽 클래스·정보 / 오른쪽 달력·요약 ---------- */
.bk-body [hidden] { display: none !important; }
.bk-layout { grid-template-columns: minmax(0, 1fr) 420px; }
.bk-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bk-class.is-on { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.25); }

.bk-cal-hint { font-size: 0.88rem; color: #6b5a48; background: #fbf7f2; border-radius: 8px; padding: 10px 12px; line-height: 1.55; margin: -4px 0 14px; }
.bk-cal { position: relative; }
.bk-cal-nav { position: absolute; top: -2px; right: 0; display: flex; gap: 4px; }
.bk-cal-arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e5e5e5; background: #fff; font-size: 1.2rem; line-height: 1; color: #333; cursor: pointer; }
.bk-cal-arrow:hover:not(:disabled) { border-color: #bbb; }
.bk-cal-arrow:disabled { opacity: 0.3; cursor: default; }
.bk-cal-months { display: flex; flex-direction: column; gap: 18px; }
.bk-month h3 { font-size: 1rem; font-weight: 700; color: #111; margin: 4px 0 10px; height: 26px; line-height: 26px; }
.bk-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bk-dow { text-align: center; font-size: 0.72rem; font-weight: 600; color: #999; padding: 2px 0 4px; }
.bk-dow.sun { color: #d9534f; } .bk-dow.sat { color: #3b7dd8; }
.bk-day { position: relative; aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 0.9rem; color: #333; cursor: pointer; display: grid; place-items: center; transition: background 0.12s, color 0.12s; }
.bk-day.is-off { color: #ccc; cursor: default; }
.bk-day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px #bbb; }
.bk-day.is-open::after, .bk-day.is-full::after { content: ''; position: absolute; bottom: 12%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-color); }
.bk-day.is-full { color: #aaa; text-decoration: line-through; }
.bk-day.is-full::after { background: #ccc; }
.bk-day.is-open:hover { background: #f5efe8; }
.bk-day.is-other { color: #aaa; }
.bk-day.is-other::after { background: #ddd; }
.bk-day.is-mine { background: rgba(212, 163, 115, 0.22); color: #6b4f33; font-weight: 700; }
.bk-day.is-mine::after { background: var(--accent-color); }
.bk-day.is-mine-full { background: #f3f3f3; color: #aaa; text-decoration: line-through; }
.bk-day.is-selected, .bk-day.is-selected:hover { background: var(--accent-color); color: #fff; font-weight: 700; text-decoration: none; }
.bk-day.is-selected::after { background: #fff; }
.bk-cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 0.78rem; color: #777; }
.bk-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bk-cal-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.bk-cal-legend .lg-open { width: 6px; height: 6px; background: var(--accent-color); }
.bk-cal-legend .lg-class { background: rgba(212, 163, 115, 0.35); }
.bk-cal-legend .lg-full { background: #eee; }

.bk-col-right .bk-times { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee; }
.bk-col-right .bk-times h3 { margin-bottom: 10px; }
.bk-col-right .bk-time-list { grid-template-columns: 1fr 1fr; }
.bk-time-class { font-size: 0.8rem; color: #555; font-weight: 500; line-height: 1.35; }
#bk-times-note { font-size: 0.82rem; margin-bottom: 10px; color: #8a6a4a; }
.bk-col-right .bk-summary { position: static; }

@media (max-width: 900px) {
    .bk-layout { display: flex; flex-direction: column; gap: 20px; }
    .bk-col { display: contents; }
    .bk-step-class { order: 1; } .bk-step-date { order: 2; } .bk-step-info { order: 3; } .bk-summary { order: 4; }
}
@media (max-width: 640px) {
    .bk-col-right .bk-time-list { grid-template-columns: 1fr; }
}
