.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.booking-modal.active {
  display: flex;
}

.booking-overlay {
  position: absolute;
  inset: 0;
}

.booking-container {
  position: relative;
  z-index: 2;
  width: min(1100px, 95%);
  height: min(750px, 90vh);
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.booking-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black-light);
  border: 1px solid var(--border);
  color: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: 0.3s;
}

.booking-close:hover {
  background: var(--silver);
  color: var(--black);
}

.booking-header {
  padding: 30px 40px;
  border-bottom: 1px solid var(--border);
}

.booking-header h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 2rem;
}

.booking-header p {
  margin: 0;
  color: var(--text-muted);
}

.booking-content {
  flex: 1;
  overflow: hidden;
}

.booking-step {
  display: none;
  width: 100%;
  height: 100%;
}

.booking-step.active {
  display: flex;
}

.booking-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 35px;
}

.staff-choice {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--black);
  min-height: 430px;
  transition: 0.35s;
}

.staff-choice:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.staff-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.staff-choice-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(18, 18, 18, 0.95));
}

.staff-choice-overlay h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.booking-btn {
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  background: var(--silver);
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.booking-btn:hover {
  background: var(--white);
}

.booking-step {
  position: relative;
  min-height: 100%;
}

.booking-back {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 80px;
  width: 180px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 0 50px 50px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s ease;
}

.booking-back:hover {
  background: #333;
}

.booking-columns {
  display: flex;
  width: 100%;
  height: 100%;
}

.services-panel {
  width: 40%;
  padding: 35px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.calendar-panel {
  flex: 1;
  padding: 35px;
}

#calendarPanel.locked .calendar-header,
#calendarPanel.locked .weekdays,
#calendarPanel.locked .calendar {
  display: none;
}

.calendar-day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.services-panel h3,
.calendar-panel h3,
.booking-step h3 {
  color: var(--silver);
  margin-bottom: 25px;
}

.service-item {
  padding: 18px;
  margin-bottom: 15px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.service-item:hover,
.service-item.active {
  background: var(--black-light);
  border-color: var(--silver-dark);
}

.service-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 8px;
}

.service-item span {
  color: var(--text-muted);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.calendar-header button {
  width: 42px;
  height: 42px;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.calendar-header button:hover {
  background: #333;
  transform: scale(1.08);
}

.calendar-day {
  height: 65px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--black);
  color: var(--text);
  cursor: pointer;
  transition: 0.25s;
}

.calendar-day:hover {
  background: var(--silver);
  color: var(--black);
}

.calendar-day.today {
  background: var(--silver-dark);
  color: var(--black);
}

.calendar-day.active {
  background: var(--white);
  color: var(--black);
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.weekdays div {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
}

#stepTime {
  flex-direction: column;
  padding: 40px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.time-button {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: 0.25s;
}

.time-button:hover {
  background: var(--silver);
  color: var(--black);
}

.time-button.disabled {
  background: #070707;
  color: #555;
  opacity: 0.45;
  cursor: not-allowed;
}

#stepClient {
  flex-direction: column;
  padding: 40px;
  overflow-y: auto;
}

.booking-summary {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.booking-summary span {
  padding: 10px 18px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--silver);
}

#bookingForm {
  width: 100%;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

#bookingForm label {
  display: block;
  color: var(--silver);
  margin-bottom: 8px;
}

#bookingForm input,
#bookingForm textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
}

#bookingForm input:focus,
#bookingForm textarea:focus {
  outline: none;
  border-color: var(--silver-dark);
}

#bookingForm textarea {
  resize: none;
  margin-bottom: 20px;
}

.booking-submit {
  width: 50%;
  margin-left: 25%;
  padding: 16px;
  border-radius: 30px;
  border: none;
  background: var(--silver);
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.booking-submit:hover {
  background: var(--white);
}

@media (max-width: 768px) {
  .booking-container {
    width: 95%;

    height: 95vh;
  }

  .booking-header {
    padding: 25px;
  }

  .booking-grid {
    grid-template-columns: 1fr;

    overflow-y: auto;
  }

  .staff-choice {
    min-height: 350px;
  }

  .booking-columns {
    flex-direction: column;

    overflow-y: auto;
  }

  .services-panel {
    width: 100%;

    height: 40%;

    border-right: none;

    border-bottom: 1px solid var(--border);
  }

  .calendar {
    grid-template-columns: repeat(5, 1fr);
  }

  .time-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .booking-form-grid {
    grid-template-columns: 1fr;
  }
}
