/* 預約頁共用樣式（線上預約、預約代燒） */
.book-main { max-width: 980px; }
.book-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.book-head .section-title { margin-bottom: 4px; }
.book-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
.bal-chip { display: flex; align-items: center; gap: 10px; background: var(--beige); border-radius: 999px; padding: 6px 8px 6px 16px; font-size: 14px; }
.bal-chip b { font-size: 18px; color: var(--coffee-dark); }
.bal-chip a { border: 1px solid var(--terracotta); color: var(--coffee); border-radius: 999px; padding: 4px 14px; font-size: 13px; text-decoration: none; background: var(--cream); }

.top-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; min-height: 36px; }
.crumb { font-size: 13px; color: var(--text-muted); }
.crumb a { color: var(--text-muted); text-decoration: none; }
.crumb a:hover { color: var(--coffee); }
.course-hero { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 22px; }
.course-hero img { width: 230px; height: 160px; object-fit: cover; border-radius: 14px; flex: none; background: var(--beige); }
.course-hero h2 { margin: 0 0 6px; font-size: 28px; color: var(--coffee-dark); }
.course-hero .hero-duration { margin: 0 0 8px; color: var(--text-muted); }
.course-hero .hero-price { margin: 0 0 12px; color: var(--coffee-dark); }
.course-hero .hero-price b { font-size: 26px; color: #a8683a; margin-right: 4px; }
.hero-notice { background: var(--beige); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 640px) { .course-hero { flex-direction: column; } .course-hero img { width: 100%; height: 180px; } }
#booking-form, #firing-form { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; max-width: none; align-items: start; }
@media (max-width: 820px) { #booking-form, #firing-form { grid-template-columns: minmax(0, 1fr); } }
.steps, .book-step, .cal-wrap { min-width: 0; }

.steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.book-step { background: var(--cream); border: 1px solid rgba(74,52,40,0.08); border-radius: 14px; padding: 18px 20px; counter-increment: step; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--coffee-dark); margin: 0 0 4px; }
.step-title::before { content: counter(step, decimal-leading-zero); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--coffee-dark); color: var(--cream); font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.step-title small { font-weight: 400; font-size: 12px; color: var(--text-muted); }
.step-hint { color: var(--text-muted); font-size: 13px; margin: 0 0 12px 40px; }

.cal-wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.cal { width: 300px; max-width: 100%; border: 1px solid rgba(74,52,40,0.12); border-radius: 12px; padding: 12px; background: var(--beige-light); }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; color: var(--coffee-dark); }
.cal-nav button { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--coffee); padding: 2px 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { font-size: 12px; color: var(--text-muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: none; background: none; border-radius: 50%; font-size: 14px; color: #cdbfb0; cursor: default; position: relative; font-family: inherit; }
.cal-day.avail, .cal-day.few { color: var(--text); font-weight: 600; cursor: pointer; }
.cal-day.avail:hover, .cal-day.few:hover { background: rgba(111,78,55,0.12); }
.cal-day.few::after { content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--terracotta); }
.cal-day.full { color: #b9a999; text-decoration: line-through; }
.cal-day.selected { background: var(--coffee-dark) !important; color: #fff !important; }
.cal-day.selected::after { display: none; }
.cal-legend { font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 8px; padding-top: 30px; }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-left: 40px; }
@media (max-width: 560px) { .slot-grid, .step-hint { margin-left: 0; } }
.slot { border: 1px solid rgba(74,52,40,0.2); background: var(--beige-light); border-radius: 10px; padding: 12px 8px; text-align: center; cursor: pointer; font-family: inherit; color: var(--text); }
.slot b { display: block; font-size: 15px; font-weight: 500; }
.slot span { font-size: 12px; color: var(--text-muted); }
.slot.selected { background: #a8683a; border-color: #a8683a; color: #fff; }
.slot.selected span { color: #fff; opacity: 0.9; }
.slot:disabled { opacity: 0.45; cursor: not-allowed; }

.opt { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-weight: 400; font-size: 15px; cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--coffee-dark); flex: none; }
.opt.disabled { opacity: 0.45; cursor: not-allowed; }
.opt-row { display: flex; gap: 22px; flex-wrap: wrap; margin-left: 40px; }
.indent { margin-left: 40px; }

.need-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-left: 40px; }
@media (max-width: 640px) { .need-grid { grid-template-columns: 1fr; margin-left: 0; } .indent, .opt-row { margin-left: 0; } }
.need-card { background: var(--beige); border-radius: 12px; padding: 14px 16px; }
.need-card h5 { margin: 0 0 8px; font-size: 15px; color: var(--coffee-dark); font-weight: 600; }
.need-card .fine { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; line-height: 1.6; }
.need-card select { margin-left: 8px; }

.summary { background: var(--cream); border: 1px solid rgba(74,52,40,0.1); border-radius: 14px; padding: 18px 18px 20px; }
#booking-form > aside, #firing-form > aside { align-self: stretch; }
.sticky-col { position: sticky; top: 16px; }
@media (max-width: 820px) { .sticky-col { position: static; } }
.summary h4 { margin: 0 0 12px; font-size: 17px; color: var(--coffee-dark); }
.summary .row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--text-muted); }
.summary .row b { color: var(--text); font-weight: 400; text-align: right; }
.summary hr { border: none; border-top: 1px solid rgba(74,52,40,0.15); margin: 10px 0; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; }
.summary .total .label { font-weight: 600; color: var(--coffee-dark); font-size: 14px; }
.summary .total .amount { font-size: 28px; font-weight: 600; color: #a8683a; }
.summary .total .amount small { font-size: 14px; margin-left: 2px; }
.book-submit { width: 100%; margin-top: 14px; padding: 14px; font-size: 16px; border-radius: 10px; }
.tips { margin-top: 14px; background: var(--beige); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
.tips b { color: var(--coffee-dark); display: block; margin-bottom: 4px; }
.tips ol { margin: 0; padding-left: 18px; }
