*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1c1c2e;
  --accent:    #b8925a;
  --accent-h:  #a07845;
  --bg:        #f7f5f2;
  --white:     #ffffff;
  --text:      #2d2d2d;
  --text-light:#888;
  --border:    #e4ddd4;
  --success:   #2e7d32;
  --shadow:    0 4px 24px rgba(0,0,0,0.07);
  --radius:    14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 20px 16px 60px;
}

.container { max-width: 660px; margin: 0 auto; }

/* â”€â”€ Header â”€â”€ */
.header { text-align: center; padding: 36px 0 28px; }
.logo   { font-size: 1.9rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.tagline{ color: var(--text-light); margin-top: 6px; font-size: 1rem; }
.hours  { color: var(--accent); font-size: 0.82rem; font-weight: 600; margin-top: 6px; letter-spacing: 0.3px; }

/* â”€â”€ Steps â”€â”€ */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 52px;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  color: var(--text-light);
  transition: all .25s;
}
.step span { font-size: 0.7rem; color: var(--text-light); transition: color .25s; }
.step.active .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.active span     { color: var(--primary); font-weight: 600; }
.step.done .step-num  { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.done span       { color: var(--primary); }
.step-line { height: 2px; flex: 1; max-width: 56px; background: var(--border); margin-bottom: 22px; transition: background .25s; }
.step-line.done { background: var(--primary); }

/* â”€â”€ Panel â”€â”€ */
.panel { display: none; background: var(--white); border-radius: var(--radius); padding: 28px 28px 32px; box-shadow: var(--shadow); }
.panel.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.panel h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 22px; }

/* â”€â”€ Service list â”€â”€ */
.service-category { margin-bottom: 22px; }
.cat-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-light);
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.service-item {
  display: flex; align-items: center;
  padding: 13px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  margin-bottom: 7px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  user-select: none;
}
.service-item:hover         { border-color: var(--accent); background: #fdf8f3; }
.service-item.selected      { border-color: var(--accent); background: #fdf8f3; }
.svc-check {
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px; margin-right: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: transparent;
  transition: all .18s;
}
.service-item.selected .svc-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc-info { flex: 1; }
.svc-name { font-weight: 500; font-size: 0.92rem; color: var(--primary); }
.svc-dur  { font-size: 0.76rem; color: var(--text-light); margin-top: 2px; }
.svc-price{ font-weight: 700; color: var(--accent); font-size: 0.9rem; white-space: nowrap; margin-left: 10px; }

/* â”€â”€ Summary bar â”€â”€ */
.summary-bar {
  background: var(--primary); color: #fff;
  border-radius: 10px; padding: 13px 18px;
  display: none; justify-content: space-between; align-items: center;
  margin: 16px 0 20px; font-size: 0.88rem;
}
.summary-bar.visible { display: flex; }
.sum-total { font-weight: 700; font-size: 1rem; }

/* â”€â”€ Buttons â”€â”€ */
.btn-primary {
  width: 100%; padding: 14px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 10px;
  font-size: 0.97rem; font-weight: 700;
  cursor: pointer; transition: background .18s, transform .15s;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-h); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary {
  padding: 14px 22px;
  background: transparent; color: var(--text-light);
  border: 2px solid var(--border); border-radius: 10px;
  font-size: 0.95rem; cursor: pointer; transition: all .18s;
}
.btn-secondary:hover { border-color: var(--text-light); color: var(--text); }
.btn-confirm {
  flex: 1; padding: 14px;
  background: var(--success); color: #fff;
  border: none; border-radius: 10px;
  font-size: 0.97rem; font-weight: 700;
  cursor: pointer; transition: background .18s;
}
.btn-confirm:hover:not(:disabled) { background: #1b5e20; }
.btn-confirm:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; margin-top: 22px; }
.btn-row .btn-primary { width: auto; flex: 1; }

/* â”€â”€ Calendar â”€â”€ */
.month-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.month-nav button {
  width: 34px; height: 34px;
  background: none; border: 2px solid var(--border);
  border-radius: 8px; cursor: pointer;
  font-size: 1.3rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.month-nav button:hover { border-color: var(--accent); color: var(--accent); }
.month-nav span { font-weight: 700; font-size: 0.97rem; color: var(--primary); }
.calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }
.cal-hdr { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--text-light); padding: 3px 0; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 0.88rem;
  border: 2px solid transparent; transition: all .18s;
}
.cal-day.empty, .cal-day.closed, .cal-day.past { color: #ccc; cursor: default; }
.cal-day.available { cursor: pointer; }
.cal-day.available:hover { border-color: var(--accent); color: var(--accent); }
.cal-day.selected   { background: var(--accent); color: #fff; font-weight: 700; border-color: var(--accent); }
.cal-day.today:not(.selected) { border-color: var(--primary); font-weight: 700; }

/* â”€â”€ Time slots â”€â”€ */
.slots-title { font-size: 0.92rem; font-weight: 600; color: var(--primary); margin: 20px 0 10px; }
.slots-title span { color: var(--accent); }
.time-slots { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.slot {
  padding: 10px 4px; text-align: center;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: all .18s;
}
.slot:hover:not(.booked) { border-color: var(--accent); color: var(--accent); }
.slot.selected  { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot.booked    { background: #f5f5f5; color: #ccc; cursor: not-allowed; text-decoration: line-through; }
.slots-loading  { text-align: center; color: var(--text-light); padding: 18px; font-size: 0.9rem; }

/* â”€â”€ Form â”€â”€ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.req { color: #e53935; }
.opt { font-weight: 400; color: var(--text-light); font-size: 0.8rem; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 15px;
  border: 2px solid var(--border); border-radius: 10px;
  font-size: 0.93rem; font-family: inherit; color: var(--text);
  background: #fff; transition: border-color .18s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { height: 76px; resize: none; }

/* â”€â”€ Booking summary â”€â”€ */
.booking-summary { background: var(--bg); border-radius: 12px; padding: 18px 20px; }
.sum-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.sum-row:last-child { border-bottom: none; }
.sum-lbl { color: var(--text-light); flex-shrink: 0; margin-right: 12px; }
.sum-val { font-weight: 600; color: var(--primary); text-align: right; }
.sum-row.total .sum-val { color: var(--accent); font-size: 1rem; }

/* â”€â”€ Success â”€â”€ */
.success-icon {
  width: 66px; height: 66px; background: var(--success);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.9rem; color: #fff;
  margin: 0 auto 18px;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 460px) {
  .panel { padding: 20px 15px 24px; }
  .time-slots { grid-template-columns: repeat(3,1fr); }
  .step-line { max-width: 28px; }
  .step span { font-size: 0.62rem; }
  .step-num  { width: 30px; height: 30px; font-size: 0.78rem; }
}
