/* =================================================================
   MODERN BOOKING FORM - GRADIENT DESIGN INSPIRED
   Giao diện booking form hiện đại với gradient đẹp mắt
   ================================================================= */

/* ==================== Z-INDEX LAYERS ==================== */
/* Header: 1000, Booking Modal: 99999, Warning Modal: 100000 */

/* ==================== POPUP OVERLAY ==================== */
.popup {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==================== BOOKING FORM CONTAINER ==================== */
#booking-form {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, var(--secondary-color) 100%);
  margin: 3% auto;
  padding: 5px;
  border: none;
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
  overflow-y: hidden;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==================== CLOSE BUTTON ==================== */
.close-popup-button {
  position: absolute;
  top: 40px;
  right: 50px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.close-popup-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* ==================== BOOKING STEP CONTAINER ==================== */
.booking-step {
  background: #1a1a1a;
  padding: 10px 20px;
  border-radius: 20px;
  min-height: 400px;
  max-height: 700px;
  overflow-y: auto;
  position: relative;
}

.booking-step h3 {
  color: var(--secondary-color);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(316deg, #6d630b 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== FORM GROUPS ==================== */
.form-group {
  margin-bottom: 15px;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #e0e0e0;
  font-size: 15px;
}

.form-group input[type='tel'],
.form-group input[type='text'],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 18px;
  border: 2px solid #444;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #2a2a2a;
  color: #e0e0e0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* ==================== NOTE DISPLAY AND MODAL ==================== */

.note-display-group {
  margin-bottom: 15px;
}

.add-note-btn {
  width: 100%;
  padding: 14px 18px;
  border: 2px dashed #444;
  border-radius: 12px;
  background: transparent;
  color: var(--secondary-color);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-note-btn:hover {
  border-color: var(--secondary-color);
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.note-display-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #2a2a2a;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  margin-bottom: 10px;
  animation: fadeInUp 0.3s ease;
}

.note-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.note-content i {
  color: var(--secondary-color);
  font-size: 18px;
  margin-top: 2px;
}

.note-text-wrapper {
  flex: 1;
  line-height: 1.6;
}

.note-text-wrapper strong {
  color: #e0e0e0;
  display: block;
  margin-bottom: 4px;
}

.note-text-wrapper span {
  color: #b0b0b0;
  font-size: 14px;
}

.note-edit-btn {
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffa500 100%);
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.note-edit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Note Modal */
.note-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  animation: fadeIn 0.3s ease;
}

.note-modal-content {
  background: #1a1a1a;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: scaleIn 0.3s ease;
}

.note-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 2px solid #333;
}

.note-modal-header h4 {
  color: var(--secondary-color);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #e0e0e0;
  font-size: 18px;
}

.note-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.note-modal-body {
  padding: 25px;
}

.note-modal-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #444;
  border-radius: 12px;
  font-size: 16px;
  background: #2a2a2a;
  color: #e0e0e0;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.note-modal-textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.note-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 25px;
  border-top: 2px solid #333;
}

.note-modal-cancel,
.note-modal-confirm {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.note-modal-cancel {
  background: #444;
  color: #e0e0e0;
}

.note-modal-cancel:hover {
  background: #555;
}

.note-modal-confirm {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffa500 100%);
  color: #000;
}

.note-modal-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Toggle Switch Styling (for silent service) */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-left: 5px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffa500 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* ==================== PILL SELECT STYLE ==================== */
.pill-select-container {
  position: relative;
  width: 100%;
}

.pill-display {
  min-height: 50px;
  padding: 10px 18px;
  border: 2px solid #444;
  border-radius: 12px;
  background: #2a2a2a;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill-display:hover {
  border-color: var(--secondary-color);
  background: #1a1a1a;
}

.pill-display.has-selection {
  border-color: var(--secondary-color);
  background: #1a1a1a;
}

.pill-placeholder {
  color: #b0b0b0;
  font-size: 16px;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffa500 100%);
  color: #000;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  animation: pillPopIn 0.3s ease;
}

@keyframes pillPopIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pill-remove {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.pill-remove:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: scale(1.1);
}

.pill-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #1a1a1a;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pill-dropdown-list {
  list-style: none;
  padding: 8px;
  margin: 0;
}

.pill-dropdown-list li {
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: #e0e0e0;
  font-size: 15px;
}

.pill-dropdown-list li:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffa500 100%);
  color: #000;
  transform: translateX(4px);
}

.pill-dropdown-list li.selected {
  background: rgba(255, 215, 0, 0.1);
  color: var(--secondary-color);
  font-weight: 600;
}

/* ==================== BRANCH SELECT - NEW ==================== */
.branch-select-group {
  position: relative;
}

.branch-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 18px;
}

/* ==================== BRANCH CHANGE WARNING MODAL ==================== */
.branch-warning-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  animation: fadeIn 0.3s ease;
}

.branch-warning-content {
  background: #1a1a1a;
  padding: 35px;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.branch-warning-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.branch-warning-content h4 {
  color: #e0e0e0;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
}

.branch-warning-content p {
  color: #b0b0b0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.branch-warning-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.branch-warning-buttons button {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.branch-warning-confirm {
  background: linear-gradient(135deg, #000000 0%, var(--secondary-color) 100%);
  color: white;
}

.branch-warning-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.branch-warning-cancel {
  background: #f0f0f0;
  color: #b0b0b0;
}

.branch-warning-cancel:hover {
  background: #e0e0e0;
}

/* ==================== CUSTOMER INFO DISPLAY ==================== */
.customer-info,
.new-customer-info {
  background: var(--border-dark);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 20px;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.customer-info p {
  margin: 8px 0;
  color: #e0e0e0;
  font-size: 15px;
}

.customer-info strong,
.customer-name,
.old-hairdresser {
  color: var(--secondary-color);
  font-weight: 600;
}

/* ==================== HAIRDRESSER STATUS ==================== */
.hairdresser-status {
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* ==================== HAIRDRESSER POPUP ==================== */
.hairdresser-popup {
  position: relative;
  margin-top: 10px;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-height: 350px;
  overflow: hidden;
  animation: smoothDropdown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top center;
}

@keyframes smoothDropdown {
  0% {
    opacity: 0;
    transform: translateY(-20px) scaleY(0.8);
  }
  60% {
    transform: translateY(5px) scaleY(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.hairdresser-popup .popup-content {
  padding: 20px;
  max-height: 350px;
  overflow-y: auto;
}

.hairdresser-popup h5 {
  color: var(--secondary-color);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

#hairdresserList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#hairdresserList li {
  padding: 16px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
  color: #e0e0e0;
  opacity: 0;
  animation: slideInItem 0.4s ease forwards;
}

#hairdresserList li:nth-child(1) {
  animation-delay: 0.05s;
}
#hairdresserList li:nth-child(2) {
  animation-delay: 0.1s;
}
#hairdresserList li:nth-child(3) {
  animation-delay: 0.15s;
}
#hairdresserList li:nth-child(4) {
  animation-delay: 0.2s;
}
#hairdresserList li:nth-child(5) {
  animation-delay: 0.25s;
}
#hairdresserList li:nth-child(6) {
  animation-delay: 0.3s;
}
#hairdresserList li:nth-child(n + 7) {
  animation-delay: 0.35s;
}

@keyframes slideInItem {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hairdresserList li:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffa500 100%);
  color: #000;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

/* ==================== SILENT SERVICE TOGGLE ==================== */
.silent-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--text-dark);
  border-radius: 12px;
  margin-top: 20px;
}

.silent-group label {
  margin: 0;
  font-weight: 600;
  font-size: small;
  color: #e0e0e0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, #000000 0%, var(--secondary-color) 100%);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* ==================== SERVICE SELECTION ==================== */
.service-tab {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.service-tab::-webkit-scrollbar {
  height: 6px;
}

.service-tab::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #000000 0%, var(--secondary-color) 100%);
  border-radius: 10px;
}

/* Service Popup - Hidden in Step 2 */
.service-popup {
  display: none !important;
}

.tab-button {
  padding: 12px 24px;
  border: 2px solid #e0e0e0;
  background: #1a1a1a;
  color: #b0b0b0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  background: linear-gradient(135deg, #000000 0%, var(--secondary-color) 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ==================== SERVICE GRID ==================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.booking-service-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  color: #e0e0e0;
}

.booking-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
  border-color: var(--secondary-color);
}

.booking-service-card.active {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffa500 100%);
  color: #000;
  border-color: var(--secondary-color);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.booking-service-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: inherit;
}

.booking-service-card .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
}

.booking-service-card .price .original-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
  font-size: 13px;
}

.booking-service-card .price .discount-price {
  color: var(--secondary-color);
  font-weight: 700;
}

.booking-service-card.active .price {
  color: white;
}

.booking-service-card.active .price .original-price {
  color: rgba(255, 255, 255, 0.5);
}

.booking-service-card.active .price .discount-price {
  color: white;
}

/* ==================== SELECTED SERVICES ==================== */
.selected-services {
  margin-top: 25px;
  padding: 10px;
  text-align: center;
  background: var(--border-dark);
  color: var(--secondary-color);
  border-radius: 12px;
  display: block !important;
}

.selected-services h4 {
  color: var(--secondary-color);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.selected-services h4 i {
  font-size: 20px;
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: #1a1a1a;
  border-radius: 10px;
  margin: 10px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-info {
  font-size: 14px;
  font-weight: 500;
  color: #e0e0e0;
}

.service-info .original-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
  font-size: 13px;
}

.service-info .discount-price {
  color: var(--secondary-color);
  font-weight: 600;
}

.remove-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* ==================== TIME SLOTS ==================== */
.booking-tab {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.booking-tab button {
  flex: 1;
  padding: 14px;
  border: 2px solid #e0e0e0;
  background: #1a1a1a;
  color: #b0b0b0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.booking-tab button.active {
  background: linear-gradient(135deg, #000000 0%, var(--secondary-color) 100%);
  color: white;
  border-color: transparent;
}

.time-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
}

.time-slot-button,
.time-button {
  padding: 14px;
  background: var(--secondary-color);
  color: black;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  border: transparent;
}

.time-slot-button.active,
.time-button.selected,
.time-button.active {
  background: black;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 12px var(--secondary-color);
}

/* Time slot bị trùng lịch hẹn - có dấu gạch ngang và làm mờ */
.time-slot-button[style*='opacity: 0.5'],
.time-slot-button[style*='not-allowed'],
.time-button:disabled {
  background: #f8f8f8;
  color: #bbb;
  cursor: not-allowed !important;
  opacity: 0.45;
  border-color: #e8e8e8;
}

.time-slot-button[style*='opacity: 0.5']::after,
.time-slot-button[style*='not-allowed']::after,
.time-button:disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #999;
  transform: translateY(-50%) rotate(-12deg);
}

.time-slot-button[style*='opacity: 0.5']:hover,
.time-slot-button[style*='not-allowed']:hover,
.time-button:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #f8f8f8 !important;
  color: #bbb !important;
}

/* ==================== CONFIRMATION STEP ==================== */
.confirmation-brand {
  text-align: center;
  margin-bottom: 25px;
}

.confirmation-brand h3 {
  color: var(--secondary-color);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.confirmation-brand .brand-name {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.confirmation-brand .brand-name i {
  color: var(--secondary-color);
  margin-right: 8px;
}

.confirmation-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.confirmation-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirmation-row.single {
  grid-template-columns: 1fr;
}

.confirmation-info {
  padding: 14px;
  background: var(--text-dark);
  border-radius: 10px;
  border: 2px solid var(--border-light);
  gap: 6px;
}

.confirmation-info.time-highlight {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffed4e 100%);
}

.confirmation-info.time-highlight strong,
.confirmation-info.time-highlight span {
  color: #000 !important;
}

.confirmation-info.time-highlight i {
  color: #000 !important;
}

/* Date-Time Merged in One Column */
.confirmation-info.date-time-merged {
  display: flex;
  gap: 4px;
  align-items: center;
}

.confirmation-info.date-time-merged > span {
  align-items: center;
  gap: 8px;
}

.time-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: linear-gradient(293deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.time-inline i {
  font-size: 14px;
  color: #000 !important;
}

.time-inline strong {
  font-size: 14px;
  color: #000 !important;
  font-weight: 700;
  margin-right: 0;
}

.confirmation-info.confirmation-full {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.confirmation-info i {
  font-size: 16px;
  color: var(--secondary-color);
  min-width: 20px;
  flex-shrink: 0;
}

.confirmation-info p {
  margin: 0;
  font-size: 14px;
  color: #e0e0e0;
  line-height: 1.4;
  flex: 1;
}

.confirmation-info span {
  font-size: 12px;
  color: #e0e0e0;
  line-height: 1.4;
  flex: 1;
}

.confirmation-info strong {
  font-size: 13px;
  color: #b0b0b0;
  margin-right: 5px;
}

.confirmation-info.confirmation-full span,
.confirmation-info span span {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 14px;
  margin-right: 5px;
}

@media (max-width: 576px) {
  .confirmation-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: unset;
    font-size: xx-small;
  }
}

/* ==================== BUTTONS ==================== */
.button-container {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 50px;
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  background: transparent;
  padding: 20px;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.booking-step-prev,
.booking-step-next {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.booking-step-prev {
  background: #2a2a2a;
  color: var(--secondary-color);
  border: 2px solid #444;
}

.booking-step-prev:hover {
  background: #3a3a3a;
  border-color: #ffd700;
  transform: translateY(-2px);
}

.booking-step-next {
  background: linear-gradient(349deg, #000000 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  font-weight: 700;
  border: none;
}

.booking-step-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

.booking-step-next:disabled {
  background: #444;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==================== LOADING & SUCCESS STATES ==================== */
.loading-container,
.success-container {
  text-align: center;
  padding: 60px 20px;
}

.loading-icon {
  font-size: 60px;
  color: gold;
  margin-bottom: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.success-checkmark {
  margin: 0 auto 30px;
  width: 100px;
  height: 100px;
}

.checkmark {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: white;
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 #4bb543;
  animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #4bb543;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0 0 0 50px #4bb543;
  }
}

.success-container h3 {
  color: #4bb543;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.success-container p {
  color: #b0b0b0;
  font-size: 16px;
  margin-bottom: 30px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-actions button {
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #000000 0%, #ffd700 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline {
  box-shadow: var(--shadow-lg), 0 0 30px var(--secondary-color);
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
}

.btn-outline:hover {
  box-shadow: var(--shadow-lg), 0 0 30px var(--secondary-color);
  background: var(--secondary-color);
  color: white;
  border: none;
  transform: translateY(-3px);
}
/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  #booking-form {
    width: 95%;
    margin: 2% auto;
  }

  .booking-step {
    margin: 10px;
  }

  .booking-step h3 {
    font-size: 24px;
  }

  .service-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .time-buttons {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .time-slot-button,
  .time-button {
    font-size: 12px;
    padding: 8px;
  }

  .branch-warning-content {
    padding: 25px;
    max-width: 90%;
  }

  .branch-warning-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .branch-warning-buttons button {
    width: 100%;
  }

  .pill-item {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  #booking-form {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .close-popup-button {
    top: 25px;
    right: 25px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .time-buttons {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

/* ==================== MODAL OPEN STATE ==================== */
body.modal-open {
  overflow: hidden;
}

/* ==================== PROGRESS INDICATOR ==================== */
.booking-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 10px;
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  right: -50%;
  height: 3px;
  background: #e0e0e0;
  z-index: -1;
}

.progress-step:last-child::before {
  display: none;
}

.progress-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e0e0;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
  background: linear-gradient(349deg, #000000 0%, var(--secondary-color) 100%);
  transform: scale(1.2);
}

.progress-step.completed .progress-circle {
  background: #4bb543;
}

.progress-label {
  font-size: 12px;
  color: #b0b0b0;
  font-weight: 500;
}

.progress-step.active .progress-label {
  color: var(--secondary-color);
  font-weight: 600;
}

/* ==================== SMART DISPLAY - ANIMATED REVEALS ==================== */
.form-group.reveal {
  animation: revealSection 0.5s ease forwards;
}

@keyframes revealSection {
  from {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 25px;
  }
}

/* ==================== DATE PICKER STYLING ==================== */
.date-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  cursor: pointer;
}

.date-input:focus {
  outline: none;
  border-color: #ffd700;
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* ==================== SEARCH INPUT ==================== */
.search-input {
  width: 100%;
  padding: 10px 18px 10px 45px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  background: #f8f9fa
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23667eea' d='M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z'/%3E%3C/svg%3E")
    no-repeat 15px center;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ffd700;
  background-color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* ==================== SCROLLBAR STYLING ==================== */
.service-popup .popup-content::-webkit-scrollbar,
.hairdresser-popup .popup-content::-webkit-scrollbar {
  width: 8px;
}

.service-popup .popup-content::-webkit-scrollbar-track,
.hairdresser-popup .popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.service-popup .popup-content::-webkit-scrollbar-thumb,
.hairdresser-popup .popup-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #000000 0%, #ffd700 100%);
  border-radius: 10px;
}

.service-popup .popup-content::-webkit-scrollbar-thumb:hover,
.hairdresser-popup .popup-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a4191 100%);
}

/* ==================== GLASSMORPHISM LOADING OVERLAY ==================== */
.checkin-glassmorphism-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Glass Card Container */
.checkin-glass-container {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 48px 56px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modern Rotating Icon Spinner */
.checkin-spinner-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer rotating ring */
.checkin-spinner-wrapper::before {
  content: '' !important;
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.9);
  border-right-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: spin 1s linear infinite !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Inner pulsing circle */
.checkin-spinner-wrapper::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: pulseScale 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulseScale {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* Center icon */
.checkin-spinner-inner {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.checkin-spinner-inner::before {
  content: '' !important;
  width: 16px;
  height: 16px;
  border: 3px solid transparent;
  border-top-color: #ffd700;
  border-right-color: #ffd700;
  border-radius: 50%;
  animation: spin 0.6s linear infinite !important;
}

/* Loading Text */
.checkin-loader-text {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flatpickr-calendar.inline {
  margin: auto;
}

.flatpickr-calendar {
  font-size: 12px;
}

.time-slot-message {
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 8px;
  display: block;
  text-align: center;
}
