:root {
  --bg: #f4f7f6;
  --surface: #fff;
  --ink: #121417;
  --muted: #69717d;
  --line: #dfe5e4;
  --mint: #7d7b26;
  --mint-soft: #f0efd8;
  --black: #17170f;
  --blue-soft: #e0ecff;
  --shadow: 0 18px 44px rgba(16, 24, 40, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.booking-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  padding: 22px;
}

.booking-main,
.summary-card,
.confirmation-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.booking-main {
  padding: 20px;
}

.booking-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.booking-header img {
  height: 48px;
  width: auto;
}

.booking-header h1 {
  margin: 2px 0 0;
  font-size: 24px;
}

.booking-header span,
.summary-row span,
.summary-card p,
.section-title span,
.client-form label,
.booking-header a {
  color: var(--muted);
}

.booking-header a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #f9fbfb;
}

.booking-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.booking-steps span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
}

.booking-steps span.active {
  color: #087266;
  background: var(--mint-soft);
  border-color: #9ce5dc;
}

.booking-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.booking-section:last-child {
  border-bottom: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f4;
  font-weight: 900;
}

.section-title h2 {
  margin: 0;
  font-size: 19px;
}

.service-picker,
.staff-picker,
.date-strip,
.time-picker {
  display: grid;
  gap: 10px;
}

.service-picker {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.staff-picker {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.date-strip {
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  margin-bottom: 10px;
}

.time-picker {
  grid-template-columns: repeat(4, minmax(90px, 1fr));
}

.service-picker button,
.staff-picker button,
.date-strip button,
.time-picker button {
  border: 1px solid var(--line);
  background: #fbfcfc;
  border-radius: var(--radius);
  min-height: 78px;
  padding: 12px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.time-picker button {
  min-height: 46px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
}

.date-strip button {
  text-align: center;
  align-items: center;
}

.date-strip strong {
  font-size: 22px;
}

.service-picker em {
  font-style: normal;
  font-weight: 900;
}

.service-picker span,
.staff-picker span {
  color: var(--muted);
}

.staff-picker img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.service-picker button.selected,
.staff-picker button.selected,
.date-strip button.selected,
.time-picker button.selected {
  border-color: #9ce5dc;
  background: var(--mint-soft);
}

.service-picker button:disabled,
.staff-picker button:disabled,
.time-picker button:disabled,
#confirmBooking:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  min-height: 78px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fbfcfc;
  padding: 12px;
}

.client-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.client-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 800;
}

.client-form label:last-child {
  grid-column: 1 / -1;
}

.client-form input,
.client-form select,
.client-form textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
}

.client-form textarea {
  min-height: 86px;
  resize: vertical;
}

.booking-summary {
  position: sticky;
  top: 22px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.summary-card {
  padding: 18px;
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--blue-soft);
  color: #2563eb;
  font-weight: 900;
}

.summary-card h2 {
  margin: 14px 0;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-total {
  border-bottom: 0;
  padding-top: 18px;
}

.summary-total strong {
  font-size: 26px;
}

.policy-strip {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#confirmBooking {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  min-height: 48px;
  background: var(--black);
  color: #fff;
  font-weight: 900;
  margin-top: 8px;
}

.confirmation-card {
  padding: 14px;
  display: grid;
  gap: 6px;
  background: var(--mint-soft);
  border-color: #9ce5dc;
}

.confirmation-card.error {
  background: #ffe5df;
  border-color: #ffb5a8;
}

.confirmation-card[hidden] {
  display: none;
}

.confirmation-card span {
  color: #087266;
}

@media (max-width: 960px) {
  .booking-shell,
  .service-picker,
  .staff-picker,
  .client-form {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .booking-shell {
    padding: 12px;
  }

  .booking-header,
  .booking-steps,
  .date-strip,
  .time-picker {
    grid-template-columns: 1fr;
  }
}
