.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;
  margin-bottom: 5%;
}

.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;
}

.location-choice {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--black);
  min-height: 430px;
  transition: 0.35s;
}

.location-choice:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.location-choice > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.location-choice-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--silver);
  font-size: 4rem;
}

.location-choice-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px;
  background: linear-gradient(
    transparent,
    rgba(18, 18, 18, 0.95)
  );
}

.location-choice-info h3 {
  color: var(--white) !important;
  font-size: 1.8rem;
  margin: 0 0 8px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.95);
}

.location-choice-info span {
  display: block;
  color: var(--silver);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.location-choice-info span i {
  margin-right: 5px;
}

.location-choice-info small {
  display: block;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.location-choice .booking-btn {
  padding: 12px 30px;
}

.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-actions {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.booking-actions .booking-back,
.booking-actions .booking-submit {
  pointer-events: auto;
}

.booking-back {
  position: relative;
  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;
  overflow-y: auto;
  min-height: 0;
}

#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);
}

.addons-wrapper{
    margin-top:30px;
    padding-top:25px;
    border-top:1px solid var(--border);
    overflow: auto;
}

.addons-description{
    color:var(--text-muted);
    font-size:.9rem;
    margin-bottom:18px;
    line-height:1.5;
}

#addonsContainer{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.addon-item{
    display:flex;
    align-items:center;
    gap:18px;
    padding:16px 18px;
    background:var(--black);
    border:1px solid var(--border);
    border-radius:14px;
    cursor:pointer;
    transition:.25s;
}

.addon-item:hover{
    border-color:var(--silver-dark);
    background:var(--black-light);
    transform:translateY(-2px);
}

.addon-item input[type="checkbox"]{
    width:22px;
    height:22px;
    accent-color:silver;
    cursor:pointer;
    flex-shrink:0;
}

.addon-info{
    flex:1;
}

.addon-info strong{
    display:block;
    color:var(--white);
    margin-bottom:5px;
    font-size:1rem;
}

.addon-info small{
    display:block;
    color:var(--text-muted);
    line-height:1.45;
}

.addon-item span{
    text-align:right;
    color:var(--silver);
    font-size:.9rem;
    font-weight:600;
    white-space:nowrap;
}

.addons-summary{
    margin-top:20px;
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:var(--black-light);
    border:1px solid var(--border);
    border-radius:14px;
}

.addons-summary span{
    display:block;
    color:var(--text-muted);
    font-size:.8rem;
    margin-bottom:4px;
}

.addons-summary strong{
    color:var(--white);
    font-size:1.15rem;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  grid-auto-rows: minmax(55px, 1fr);
}

.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);
}

.booking-flash-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(400px, calc(100% - 30px));
    pointer-events: none;
}

.booking-flash {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #111111;
    border-radius: 10px;
    color: #111111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    pointer-events: auto;
    animation: bookingFlashShow 0.25s ease-out;
}

.booking-flash-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.booking-flash-icon i {
    font-size: 18px;
}

.booking-flash.success .booking-flash-icon {
    color: #16a34a;
}

.booking-flash.error .booking-flash-icon {
    color: #dc2626;
}

.booking-flash-content {
    flex: 1;
    min-width: 0;
}

.booking-flash-title {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #111111;
}

.booking-flash-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #111111;
}

.booking-flash-close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: -2px -4px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #111111;
    cursor: pointer;
    border-radius: 5px;
}

.booking-flash-close:hover {
    background: #f3f4f6;
}

.booking-flash-close i {
    font-size: 13px;
}

.booking-flash.removing {
    animation: bookingFlashHide 0.2s ease-in forwards;
}

.booking-terms {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 25px;
}

#bookingForm .booking-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    cursor: pointer;
}

#bookingForm .booking-terms-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--silver);
    cursor: pointer;
}

#bookingForm .booking-terms-label span {
    flex: 1;
    min-width: 0;
}

#bookingForm .booking-terms-label a {
    color: var(--silver);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--silver-dark);
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

#bookingForm .booking-terms-label a:hover {
    color: var(--white);
}

#stepClient {
    display: flex;
    flex-direction: column;
    padding: 40px;
    overflow-y: auto;
    min-height: 0;
    box-sizing: border-box;
}

#stepClient #bookingForm {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
}

#stepClient .booking-terms {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

#stepClient .booking-actions {
    position: relative;
    left: -40px;
    bottom: auto;

    width: calc(100% - 0px);
    min-height: 80px;
    height: auto;

    display: flex;
    align-items: center;

    margin-top: 0;
    padding: 0;

    box-sizing: border-box;
    flex-shrink: 0;

    pointer-events: auto;
}

#stepClient {
    overflow-x: hidden;
}

#stepClient .booking-back {
    position: static;
    left: auto;
    bottom: auto;

    height: 80px;
    width: 180px;

    flex-shrink: 0;
}

#stepClient .booking-submit {
    position: static;

    width: 50%;
    margin: 0 0 0 auto;

    flex-shrink: 0;
}

@keyframes bookingFlashShow {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bookingFlashHide {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}