.wizard-progress {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width .4s ease;
}

.wizard-steps-labels {
  padding: 0;
}

.wizard-step-label {
  font-size: .75rem;
  color: #adb5bd;
  font-weight: 500;
  transition: color .3s;
}

.wizard-step-label.active {
  color: var(--primary);
  font-weight: 600;
}

.wizard-step-label.completed {
  color: var(--foreground);
}

.service-chip {
  display: inline-block;
  padding: .45rem 1rem;
  border: 1.5px solid #dee2e6;
  border-radius: 50px;
  font-size: .85rem;
  cursor: pointer;
  transition: all .25s;
  background: #fff;
  color: var(--foreground);
  user-select: none;
}

.service-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.service-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.lawyer-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
}

.lawyer-card:hover {
  border-color: var(--primary-light);
}

.lawyer-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 91, 227, .15);
}

.lawyer-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.lawyer-profile-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 500;
  padding: .25rem .65rem;
  border-radius: 20px;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  transition: opacity .2s;
}

.lawyer-profile-badge:hover {
  opacity: .85;
}

.lawyer-info {
  padding: .75rem;
}

.lawyer-info h6 {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .25rem;
  line-height: 1.3;
}

.lawyer-info .lawyer-exp {
  font-size: .75rem;
  color: #6c757d;
  margin-bottom: .15rem;
}

.lawyer-info .lawyer-cost {
  font-size: .8rem;
  color: #6c757d;
}

.calendar-widget {
  width: 100%;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: .25rem .5rem;
  color: var(--foreground);
}

.calendar-header span {
  font-weight: 600;
  font-size: .95rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-grid .day-header {
  font-size: .7rem;
  font-weight: 600;
  color: #6c757d;
  padding: .4rem 0;
}

.calendar-grid .day-cell {
  padding: .4rem 0;
  font-size: .85rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: pointer;
  transition: all .2s;
}

.calendar-grid .day-cell:hover:not(.disabled):not(.empty) {
  background: rgba(45, 91, 227, .1);
}

.calendar-grid .day-cell.today {
  border: 1.5px solid var(--primary);
}

.calendar-grid .day-cell.selected {
  background: var(--primary);
  color: #fff;
}

.calendar-grid .day-cell.disabled {
  color: #ccc;
  cursor: default;
}

.calendar-grid .day-cell.empty {
  cursor: default;
}

.time-slot-btn {
  padding: .5rem 1rem;
  border: 1.5px solid #dee2e6;
  border-radius: 50px;
  background: #fff;
  font-size: .85rem;
  cursor: pointer;
  transition: all .25s;
  min-width: 90px;
  text-align: center;
}

.time-slot-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.time-slot-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

#bookingModal .modal-content {
  max-height: 90vh;
}

/* Ensure calendar never overflows its column */
#calendarWidget {
  overflow-x: auto;
  min-width: 0;
}

.calendar-grid {
  min-width: 0;
}

/* Tighter cells inside modal on narrow viewports (below sm) */
@media (max-width: 399.98px) {
  .calendar-grid .day-cell {
    width: 28px;
    height: 28px;
    font-size: .7rem;
  }
  .calendar-grid .day-header {
    font-size: .65rem;
  }
}

#bookingModal .form-control,
#bookingModal .form-select {
  border-radius: 8px;
  border: 1.5px solid #dee2e6;
  padding: .6rem 1rem;
}

#bookingModal .form-control:focus,
#bookingModal .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(45, 91, 227, .12);
}

#wizardNext {
  border-radius: 8px;
  min-width: 120px;
}

#wizardBack {
  border-radius: 8px;
  min-width: 100px;
}

.lawyer-name-link {
  color: var(--foreground);
  text-decoration: none;
  transition: color .2s;
}

.lawyer-name-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.lawyer-profile-badge:hover {
  opacity: .85;
}

.page-btn {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: .35rem .65rem;
  font-size: .85rem;
  cursor: pointer;
  margin: 0 2px;
  transition: all .2s;
  color: var(--foreground);
  min-width: 34px;
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn:disabled {
  opacity: .4;
  cursor: default;
}

@media (max-width: 575.98px) {
  .calendar-grid .day-cell {
    width: 30px;
    height: 30px;
    font-size: .75rem;
  }

  .time-slot-btn {
    font-size: .78rem;
    padding: .4rem .75rem;
    min-width: 75px;
  }
}
