/* 색상과 기본 값: 여기만 바꾸면 전체 분위기가 바뀝니다 */
:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --text: #2b2420;
  --muted: #8a7f77;
  --line: #ece4dc;
  --accent: #b5654a;
  --accent-soft: #f6e6df;
  --ok: #3f7d5c;
  --ok-soft: #e3f1e8;
  --danger: #c0473a;
  --danger-soft: #fbe5e2;
  --radius: 14px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ── 가상 브랜드 안내줄 ── */
.sample-note {
  background: var(--text); color: #f3ebe4;
  font-size: 12px; text-align: center; padding: 7px 16px;
}

/* ── 상단 ── */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.toplink { color: var(--muted); text-decoration: none; font-size: 14px; }
.toplink:hover { color: var(--accent); }

.hero { padding: 32px 0 8px; }
.hero h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.03em; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }

/* ── 섹션(단계) ── */
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.step h2 { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.step-num {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: white; font-size: 13px;
}
.step.locked { opacity: 0.45; pointer-events: none; }

/* ── 선택 카드 ── */
.options { display: grid; gap: 10px; }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option {
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  transition: border-color .15s, background .15s;
}
.option:hover { border-color: var(--accent); }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option .row { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.option .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.option.center { text-align: center; }
.option .emoji { font-size: 26px; display: block; margin-bottom: 4px; }

/* ── 날짜 / 시간 ── */
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date {
  flex: 0 0 58px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 0;
  text-align: center;
}
.date .w { font-size: 12px; color: var(--muted); display: block; }
.date .d { font-size: 18px; font-weight: 700; }
.date.sun .w { color: var(--danger); }
.date.sat .w { color: #3b6fb6; }
.date.selected { border-color: var(--accent); background: var(--accent); color: white; }
.date.selected .w { color: white; }
.date:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 16px; }
.time {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 0;
  font-weight: 600;
}
.time:hover:not(:disabled) { border-color: var(--accent); }
.time.selected { background: var(--accent); border-color: var(--accent); color: white; }
.time:disabled { color: #c9bfb7; background: #f6f2ee; cursor: not-allowed; text-decoration: line-through; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* ── 입력 폼 ── */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 70px; }
.error { color: var(--danger); font-size: 13px; margin-top: 4px; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  background: var(--accent); color: white;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 9px; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }

/* ── 요약 ── */
.summary { background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 4px 0 14px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.summary dt, .summary .k { color: var(--muted); }
.summary .total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 16px; }

/* ── 완료 화면 ── */
.done { text-align: center; padding: 32px 20px; }
.done .big { font-size: 48px; }
.done h2 { justify-content: center; }
.booking-no { display: inline-block; background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 99px; font-weight: 700; margin-bottom: 16px; }

/* ── 상태 뱃지 ── */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge.confirmed { background: var(--accent-soft); color: var(--accent); }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.cancelled { background: #eee; color: #999; }

/* ── 예약 조회 리스트 ── */
.mybooking { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.mybooking b { display: block; }
.mybooking small { color: var(--muted); }

footer { color: var(--muted); font-size: 13px; text-align: center; padding: 32px 0 48px; }

/* ── 토스트 알림 ── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: white; padding: 12px 18px; border-radius: 12px; font-size: 14px;
  opacity: 0; transition: .25s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 480px) {
  .options.cols-3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .option { padding: 10px 6px; }
  .hero h1 { font-size: 22px; }
}
