/* Calendar Container */
.calendar-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-top: 120px;
  margin-bottom: 40px;
}

/* Calendar Header */
.calendar-header {
  background: 
    radial-gradient(circle at 15% 30%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(78, 205, 196, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 195, 113, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(199, 125, 255, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #667eea 50%, #764ba2 75%, #f093fb 100%);
  background-size: 300px 300px, 250px 250px, 400px 400px, 350px 350px, 100% 100%;
  color: white;
  padding: 25px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: backgroundShift 12s ease-in-out infinite;
}

.calendar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.1) 35%, rgba(255,255,255,0.2) 40%, rgba(255,255,255,0.1) 45%, transparent 50%),
    repeating-linear-gradient(
      60deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.05) 40px,
      rgba(255,255,255,0.05) 42px
    );
  animation: lightSweep 8s linear infinite;
  z-index: 1;
}

.calendar-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 4px, transparent 4px),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.1) 2px, transparent 2px),
    radial-gradient(circle at 60% 80%, rgba(255,255,255,0.12) 3px, transparent 3px),
    radial-gradient(circle at 40% 60%, rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at 90% 70%, rgba(255,255,255,0.1) 2px, transparent 2px);
  background-size: 120px 120px, 80px 80px, 100px 100px, 60px 60px, 90px 90px;
  animation: sparkleFloat 15s ease-in-out infinite;
  z-index: 1;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.month-year {
  position: relative;
  z-index: 2;
}

.month-year h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
}

.nav-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.nav-btn:active {
  transform: scale(0.95);
}

.today-btn-container {
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.today-btn {
  background: rgba(255,255,255,0.95);
  border: none;
  color: #667eea;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

.today-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

/* Calendar Hint */
.calendar-hint-container {
  text-align: center;
  padding: 15px 0 10px 0;
  background: #f8f9fc;
}

.calendar-hint {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
  font-style: italic;
  opacity: 0.8;
}

/* Calendar Body */
.calendar-body {
  padding: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

/* Day Headers */
.day-header {
  background: #f8f9fc;
  color: #667eea;
  padding: 20px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #e9ecef;
}

/* Day Cells */
.day-cell {
  background: white;
  min-height: 120px;
  padding: 15px 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.day-cell:hover {
  background: #f8f9ff;
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

/* Past Date Cells */
.day-cell.past-date {
  background: #f8f9fa;
  color: #adb5bd;
  cursor: default;
}

.day-cell.past-date:hover {
  background: #f8f9fa;
  transform: none;
  box-shadow: none;
}

.day-cell.past-date.other-month {
  color: #dee2e6;
}

/* No Slots Available Days */
.day-cell.no-slots {
  background: #f8f9fa;
  color: #6c757d;
  cursor: default;
}

.day-cell.no-slots:hover {
  background: #f8f9fa;
  transform: none;
  box-shadow: none;
}

.day-cell.no-slots .day-number {
  opacity: 0.6;
}

/* Today's Date */
.day-cell.today {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  color: white !important;
  font-weight: 600;
  position: relative;
  z-index: 3;
}

.day-cell.today:hover {
  background: linear-gradient(135deg, #5a6fd8, #6b42a0) !important;
}

.day-cell.today.no-slots {
  background: linear-gradient(135deg, #adb5bd, #6c757d) !important;
  color: white !important;
}

.day-cell.today.no-slots:hover {
  background: linear-gradient(135deg, #adb5bd, #6c757d) !important;
}

.day-cell.today .day-number {
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  font-weight: 700;
}

/* Selected Date */
.day-cell.selected {
  background: #fff3cd !important;
  border: 3px solid #ffc107 !important;
  color: #856404 !important;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.day-cell.selected:hover {
  background: #fff3cd !important;
}

.day-cell.selected.no-slots {
  background: #f8f9fa !important;
  border-color: #dee2e6 !important;
  color: #6c757d !important;
}

.day-cell.selected .day-number {
  background: #ffc107;
  color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  font-weight: 700;
}

.day-cell.selected.no-slots .day-number {
  background: #dee2e6;
  color: #6c757d;
}

/* Today + Selected combination */
.day-cell.today.selected {
  background: linear-gradient(135deg, #ffc107, #ff8c00) !important;
  border: 3px solid #fff !important;
  color: white !important;
}

.day-cell.today.selected .day-number {
  background: rgba(255,255,255,0.3);
  color: white;
}

/* Other Month Days */
.day-cell.other-month {
  color: #bbb;
  background: #fafafa;
}

.day-cell.other-month:hover {
  background: #f0f0f0;
}

.day-cell.other-month.no-slots {
  color: #dee2e6;
  background: #f8f9fa;
}

/* Day Number */
.day-number {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}

/* Events */
.slots-indicator {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.no-slots-indicator {
  background: #6c757d;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
  font-weight: 500;
  margin-top: auto;
  opacity: 0.7;
}

.day-cell.today .no-slots-indicator {
  background: rgba(255,255,255,0.8);
  color: #6c757d;
}

.day-cell.selected .no-slots-indicator {
  background: #adb5bd;
  color: white;
}

.available-slots {
  background: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
  font-weight: 500;
}

.booked-slots {
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
  font-weight: 500;
}

.day-cell.today .available-slots {
  background: rgba(255,255,255,0.9);
  color: #28a745;
}

.day-cell.today .booked-slots {
  background: rgba(255,255,255,0.9);
  color: #dc3545;
}

.day-cell.selected .available-slots {
  background: #20c997;
  color: white;
}

.day-cell.selected .booked-slots {
  background: #e83e8c;
  color: white;
}

/* Slots Grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.slots-section-title {
  grid-column: 1 / -1;
  color: #667eea;
  margin: 15px 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 5px;
}

.slots-section-title:first-child {
  margin-top: 0;
}

.slot-item {
  background: white;
  padding: 12px 15px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.slot-item.available {
  border-color: #28a745;
  background: #f8fff9;
}

.slot-item.available:hover {
  background: #28a745;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.slot-item.booked {
  border-color: #dc3545;
  background: #fff5f5;
  cursor: not-allowed;
  opacity: 0.7;
}

.slot-item.closed {
  border-color: #6c757d;
  background: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.6;
}

.slot-time {
  font-weight: 600;
  font-size: 14px;
}

.slot-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  background: #e9ecef;
  color: #6c757d;
}

.slot-item.available .slot-status {
  background: #d4edda;
  color: #155724;
}

.slot-item.booked .slot-status {
  background: #f8d7da;
  color: #721c24;
}

.slot-item.available:hover .slot-status {
  background: rgba(255,255,255,0.9);
  color: #28a745;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.modal-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.7) translateY(50px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 25%, #667eea 50%, #764ba2 75%, #f093fb 100%);
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  background-size: 100px 100px, 80px 80px;
  animation: modalHeaderFloat 8s ease-in-out infinite;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Modal Body */
.modal-body {
  padding: 25px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Modal Content Styles */
.modal-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 15px;
  max-width: 100%;
}

.modal-slots-section-title {
  color: #667eea;
  margin: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
  grid-column: 1 / -1;
}

.modal-slots-section-title:first-child {
  margin-top: 0;
}

.modal-slot-item {
  background: white;
  padding: 15px 18px;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-height: 80px;
  justify-content: center;
  gap: 8px;
}

.modal-slot-item.available {
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff9, #e8f5e8);
}

.modal-slot-item.available:hover {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.modal-slot-item.booked {
  border-color: #dc3545;
  background: linear-gradient(135deg, #fff5f5, #ffe6e6);
  cursor: not-allowed;
  opacity: 0.7;
}

.modal-slot-time {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.modal-slot-status {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 15px;
  background: #e9ecef;
  color: #6c757d;
  font-weight: 500;
  margin: 0;
}

.modal-slot-item.available .modal-slot-status {
  background: #d4edda;
  color: #155724;
}

.modal-slot-item.booked .modal-slot-status {
  background: #f8d7da;
  color: #721c24;
}

.modal-slot-item.available:hover .modal-slot-status {
  background: rgba(255,255,255,0.9);
  color: #28a745;
}

.modal-no-events {
  color: #6c757d;
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px dashed #dee2e6;
  margin: 0;
}

/* Responsive Modal */
@media (min-width: 769px) {
  .modal-slots-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 450px;
    margin: 15px auto 0 auto;
  }
}

@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h3 {
    font-size: 18px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-slots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .modal-slot-item {
    padding: 12px 15px;
    min-height: 70px;
  }
  
  .modal-slot-time {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal-container {
    width: 98%;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 12px 15px;
  }
  
  .modal-header h3 {
    font-size: 16px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .modal-slots-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .modal-slot-item {
    padding: 12px 15px;
    min-height: 65px;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .modal-slot-time {
    font-size: 14px;
  }
  
  .modal-slot-status {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .calendar-container {
    margin: 100px 10px 30px 10px;
  }
  
  .calendar-header {
    padding: 20px 15px;
  }
  
  .month-year h2 {
    font-size: 20px;
  }
  
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .day-cell {
    min-height: 80px;
    padding: 8px 5px;
  }
  
  .day-header {
    padding: 12px 3px;
    font-size: 11px;
  }
  
  .day-number {
    font-size: 14px;
  }
  
  .available-slots,
  .booked-slots {
    font-size: 7px;
    padding: 1px 3px;
  }
  
  .no-slots-indicator {
    font-size: 7px;
    padding: 1px 4px;
  }
  
  .slots-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .slot-item {
    padding: 8px 10px;
  }
  
  .slot-time {
    font-size: 12px;
  }
  
  .slot-status {
    font-size: 10px;
  }
  
  .slots-section-title {
    font-size: 14px;
  }
  
  .selected-date-info {
    padding: 20px 15px;
  }
  
  .selected-date-header h4 {
    font-size: 18px;
  }
  
  .calendar-nav {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .calendar-container {
    margin: 90px 8px 20px 8px;
  }
  
  .calendar-header {
    padding: 15px 12px;
  }
  
  .month-year h2 {
    font-size: 18px;
  }
  
  .nav-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  
  .day-cell {
    min-height: 65px;
    padding: 6px 3px;
  }
  
  .day-header {
    padding: 10px 2px;
    font-size: 10px;
  }
  
  .day-number {
    font-size: 13px;
    margin-bottom: 4px;
  }
  
  .available-slots,
  .booked-slots {
    font-size: 8px;
    padding: 1px 4px;
  }
  
  .no-slots-indicator {
    font-size: 8px;
    padding: 2px 5px;
  }
  
  .slots-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .slot-item {
    padding: 10px 12px;
  }
  
  .slot-time {
    font-size: 13px;
  }
  
  .slot-status {
    font-size: 11px;
  }
  
  .today-btn {
    padding: 8px 18px;
    font-size: 12px;
  }
  
  .selected-date-info {
    padding: 15px 12px;
  }
  
  .selected-date-header h4 {
    font-size: 16px;
  }
  
  .event-detail {
    padding: 10px;
  }
  
  .event-detail h5 {
    font-size: 14px;
  }
  
  .event-detail .event-time {
    font-size: 12px;
  }
  
  .calendar-nav {
    margin-bottom: 8px;
  }
  
  .today-btn-container {
    margin-top: 8px;
  }
}

@media (max-width: 400px) {
  .calendar-container {
    margin: 85px 5px 15px 5px;
  }
  
  .calendar-header {
    padding: 12px 10px;
  }
  
  .month-year h2 {
    font-size: 16px;
  }
  
  .nav-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .day-cell {
    min-height: 55px;
    padding: 4px 2px;
  }
  
  .day-header {
    padding: 8px 1px;
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  
  .day-number {
    font-size: 12px;
    margin-bottom: 3px;
  }
  
  .day-cell.today .day-number,
  .day-cell.selected .day-number {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  
  .today-btn {
    padding: 6px 15px;
    font-size: 11px;
  }
  
  .selected-date-info {
    padding: 12px 10px;
  }
  
  .selected-date-header h4 {
    font-size: 14px;
  }
  
  .available-slots,
  .booked-slots {
    font-size: 6px;
    padding: 1px 2px;
  }
  
  .no-slots-indicator {
    font-size: 6px;
    padding: 1px 4px;
  }
  
  .slots-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 8px;
  }
  
  .slot-item {
    padding: 6px 8px;
  }
  
  .slot-time {
    font-size: 11px;
  }
  
  .slot-status {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  .slots-section-title {
    font-size: 13px;
    margin: 10px 0 8px 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes backgroundShift {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 0% 0%;
  }
  25% {
    background-position: 100% 0%, 0% 50%, 100% 0%, 50% 0%, 0% 0%;
  }
  50% {
    background-position: 50% 100%, 50% 0%, 0% 50%, 100% 50%, 0% 0%;
  }
  75% {
    background-position: 0% 50%, 100% 100%, 50% 100%, 0% 0%, 0% 0%;
  }
}

@keyframes lightSweep {
  0% {
    transform: translateX(-150%) rotate(45deg);
  }
  50% {
    transform: translateX(-75%) rotate(45deg);
  }
  100% {
    transform: translateX(150%) rotate(45deg);
  }
}

@keyframes sparkleFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translate(15px, -10px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translate(-10px, 15px) rotate(180deg);
    opacity: 1;
  }
  75% {
    transform: translate(-15px, -5px) rotate(270deg);
    opacity: 0.9;
  }
}

@keyframes modalHeaderFloat {
  0%, 100% {
    background-position: 0% 0%, 100% 100%;
  }
  50% {
    background-position: 100% 100%, 0% 0%;
  }
}

.calendar-grid {
  animation: fadeIn 0.3s ease-out;
}

.selected-date-info {
  animation: fadeIn 0.3s ease-out;
}

/* Additional CSS for Velvum Calendar - Bootstrap Alerts and Improved Modal */

/* Bootstrap Alert Positioning and Styling */
.velvum-calendar-alert {
  animation: slideInRight 0.3s ease-out;
  backdrop-filter: blur(4px);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Customer Information Modal Improvements */
.customer-info-modal {
  animation: fadeIn 0.3s ease-out;
}

.customer-info-modal > div {
  animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { 
    transform: scale(0.9);
    opacity: 0;
  }
  to { 
    transform: scale(1);
    opacity: 1;
  }
}

/* Form Input Focus Effects */
.customer-info-modal input:focus,
.customer-info-modal textarea:focus {
  outline: none;
  border-color: #667eea !important;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Form Group Styling */
.customer-info-modal .form-group {
  position: relative;
}

/* Required Field Indicator */
.customer-info-modal label span[style*="color: red"] {
  font-weight: 700;
  font-size: 16px;
}

/* Button Hover Effects */
.customer-info-modal button[type="submit"]:hover {
  background: #5a67d8 !important;
  border-color: #5a67d8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.customer-info-modal button[type="button"]:hover {
  background: #f8f9fa !important;
  border-color: #5a6268 !important;
  color: #5a6268 !important;
}

/* Button Disabled State */
.customer-info-modal button[type="submit"]:disabled {
  background: #6c757d !important;
  border-color: #6c757d !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner Animation */
.customer-info-modal .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form Validation Styling */
.customer-info-modal input.is-invalid,
.customer-info-modal textarea.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.customer-info-modal input.is-valid,
.customer-info-modal textarea.is-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Close Button Styling for Alerts */
.velvum-calendar-alert .close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.velvum-calendar-alert .close:hover {
  opacity: 0.75;
}

/* Alert Dismiss Animation */
.velvum-calendar-alert.fade {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.velvum-calendar-alert.fade:not(.show) {
  opacity: 0;
  transform: translateX(100%);
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
  .customer-info-modal > div {
    width: 95% !important;
    max-width: none !important;
    margin: 20px;
    padding: 20px !important;
  }
  
  .customer-info-modal h3 {
    font-size: 1.25rem;
  }
  
  .customer-info-modal input,
  .customer-info-modal textarea {
    padding: 10px !important;
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
  
  .customer-info-modal button {
    padding: 10px 16px !important;
    font-size: 14px;
  }
}

/* Alert Mobile Responsiveness */
@media (max-width: 768px) {
  .velvum-calendar-alert {
    right: 10px !important;
    left: 10px !important;
    top: 70px !important;
    min-width: auto !important;
    max-width: none !important;
  }
}

/* Enhanced Form Field Styling */
.customer-info-modal input[type="text"],
.customer-info-modal input[type="email"],
.customer-info-modal input[type="tel"],
.customer-info-modal textarea {
  background-color: #fff;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.customer-info-modal input[type="text"]:focus,
.customer-info-modal input[type="email"]:focus,
.customer-info-modal input[type="tel"]:focus,
.customer-info-modal textarea:focus {
  background-color: #fafbfc;
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Success and Error States */
.customer-info-modal .field-success {
  border-color: #28a745 !important;
  background-color: #f8fff9;
}

.customer-info-modal .field-error {
  border-color: #dc3545 !important;
  background-color: #fff5f5;
}

/* Loading Button Animation */
.customer-info-modal .btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Form Alert Styling Within Modal */
.customer-info-modal .alert {
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

.customer-info-modal .alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.customer-info-modal .alert-success {
  background-color: #d4edda;
  color: #155724;
}

.customer-info-modal .alert .close {
  color: inherit;
  opacity: 0.6;
  font-size: 18px;
  line-height: 1;
  text-shadow: none;
}

/* Accessibility Improvements */
.customer-info-modal input:focus,
.customer-info-modal textarea:focus,
.customer-info-modal button:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .customer-info-modal input,
  .customer-info-modal textarea {
    border-width: 3px;
  }
  
  .velvum-calendar-alert {
    border: 2px solid currentColor;
  }
}

/* Manage Booking Form Styles */
.manage-booking-form {
  max-width: 100%;
}

.manage-booking-form .form-description {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.5;
}

.manage-booking-form .form-group {
  margin-bottom: 20px;
}

.manage-booking-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 14px;
}

.manage-booking-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
  box-sizing: border-box;
}

.manage-booking-form .form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.manage-booking-form .form-control::placeholder {
  color: #adb5bd;
  font-style: italic;
}

.manage-booking-form .form-actions {
  text-align: center;
  margin-top: 25px;
}

/* Let Bootstrap handle the primary button styling */
.manage-booking-form .btn-find-booking {
  font-weight: 600;
  padding: 12px 30px;
}

.booking-results {
  margin-top: 25px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

/* Responsive adjustments for manage booking form */
@media (max-width: 768px) {
  .manage-booking-form .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .manage-booking-form .btn-find-booking {
    width: 100%;
  }
}

/* Booking Details Display */
.booking-details-found, .booking-not-found, .booking-cancelled-success, .booking-cancelled-found, .rate-limit-error {
  padding: 20px;
  border-radius: 10px;
  background: #fff;
}

.booking-status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f8f9fa;
}

.booking-status-header i {
  font-size: 24px;
}

.booking-status-header h4 {
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
}

.booking-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.booking-info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.booking-info-item.full-width {
  grid-column: 1 / -1;
}

.booking-info-item label {
  font-weight: 600;
  color: #6c757d;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.booking-info-item span {
  color: #2c3e50;
  font-weight: 500;
}

.booking-ref-display {
  font-family: 'Courier New', monospace;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 6px;
  border: 2px solid #e9ecef;
  font-weight: 700;
  letter-spacing: 1px;
}

.booking-datetime strong {
  color: #667eea;
  font-size: 16px;
}

.booking-datetime .time {
  color: #764ba2;
  font-weight: 600;
  font-size: 14px;
}

.booking-actions {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid #f8f9fa;
}

/* Let Bootstrap handle the danger button styling */
.btn-cancel-booking {
  font-weight: 600;
  padding: 12px 25px;
  margin-bottom: 10px;
}

.cancellation-policy {
  margin-top: 10px;
}

.cancellation-policy small {
  color: #6c757d;
  font-style: italic;
}

.cannot-cancel-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cannot-cancel-notice i {
  font-size: 20px;
  margin-top: 2px;
}

.cannot-cancel-notice p {
  margin: 0;
  color: #856404;
  line-height: 1.5;
}

.cancelled-booking-notice {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.cancelled-booking-notice i {
  font-size: 20px;
  margin-top: 2px;
  color: #721c24;
}

.cancelled-booking-notice p {
  margin: 0;
  color: #721c24;
  line-height: 1.5;
}

/* Rate Limit Error Styles */
.rate-limit-error {
  text-align: center;
}

.rate-limit-details {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.rate-limit-details p {
  margin: 0 0 10px 0;
  color: #856404;
}

.rate-limit-details p:last-child {
  margin-bottom: 0;
  font-size: 14px;
  opacity: 0.8;
}

.rate-limit-details strong {
  color: #633902;
  font-size: 16px;
}

.rate-limit-actions {
  margin-top: 20px;
}

/* Confirmation Modal Styles */
.confirmation-modal {
  max-width: 500px;
}

.cancellation-confirmation {
  text-align: center;
  padding: 10px;
}

.confirmation-icon {
  margin-bottom: 20px;
}

.confirmation-icon i {
  font-size: 48px;
  color: #ffc107;
}

.confirmation-message {
  margin-bottom: 30px;
}

.confirmation-message p {
  margin-bottom: 10px;
}

.confirmation-message p:first-child {
  font-size: 18px;
  color: #2c3e50;
}

.confirmation-message .text-muted {
  font-size: 14px;
  color: #6c757d !important;
  line-height: 1.5;
}

.confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.confirmation-actions .btn {
  min-width: 140px;
  font-weight: 600;
}

/* Booking Not Found Styles */
.booking-not-found {
  text-align: center;
}

.error-message {
  color: #dc3545;
  font-weight: 500;
  margin-bottom: 15px;
}

.help-text {
  color: #6c757d;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Let Bootstrap handle button styling, just add minimal custom styles */
.btn-try-again, .btn-close-modal, .btn-search-another {
  font-weight: 600;
  margin: 5px;
}

.search-another-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Success Message Styles */
.booking-cancelled-success {
  text-align: center;
}

.success-message {
  color: #28a745;
  font-weight: 500;
  margin-bottom: 15px;
}

/* Responsive adjustments for booking details */
@media (max-width: 768px) {
  .booking-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .booking-status-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .btn-cancel-booking, .btn-try-again, .btn-close-modal, .btn-search-another {
    width: 100%;
  }

  .success-actions {
    flex-direction: column;
    align-items: center;
  }

  .cannot-cancel-notice, .cancelled-booking-notice {
    flex-direction: column;
    text-align: center;
  }

  .confirmation-actions {
    flex-direction: column;
    align-items: center;
  }

  .confirmation-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .velvum-calendar-alert,
  .customer-info-modal,
  .customer-info-modal > div {
    animation: none;
  }
  
  .customer-info-modal button {
    transition: none;
  }
  
  .customer-info-modal input,
  .customer-info-modal textarea {
    transition: none;
  }
}