/* Custom styles for Upstairs Basement */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #303030;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffc30e;
}

/* Time slots grid */
#time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
}

/* Room card hover effect */
.room-card {
  transform: translateY(0);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.room-card:hover {
  transform: translateY(-4px);
}

.room-card.selected {
  border-color: #ffc30e;
}

/* Room image slideshow */
.room-slideshow {
  position: relative;
  overflow: hidden;
}

.room-slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.room-slide.active {
  opacity: 1;
}

/* First slide takes normal flow to maintain container height */
.room-slide:first-child {
  position: relative;
}

/* Engineer card selection */
.engineer-card.selected {
  border-color: #ffc30e;
}

/* Input focus styles */
input:focus, select:focus {
  outline: none;
  ring: 2px;
  ring-color: #ffc30e;
}

/* Toggle switch styling */
.toggle-checkbox:checked {
  right: 0;
  border-color: #ffc30e;
}

.toggle-checkbox:checked + .toggle-label {
  background-color: #ffc30e;
}

/* Animation for confirmation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* Pulse animation for selected items */
@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 195, 14, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 195, 14, 0);
  }
}

.selected {
  animation: subtle-pulse 2s infinite;
}

/* Date Picker */
.date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.date-box:hover:not(.disabled) {
  border-color: rgba(255, 195, 14, 0.5);
  background: #222;
}

.date-box.today {
  background: rgba(255, 195, 14, 0.15);
}

.date-box.selected {
  background: #ffc30e;
  border-color: #ffc30e;
  animation: none;
}

.date-box.selected .date-box-day,
.date-box.selected .date-box-num {
  color: #000;
}

.date-box.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.date-box-day {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 195, 14, 0.5);
  line-height: 1;
  margin-bottom: 2px;
}

.date-box-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffc30e;
  line-height: 1.2;
}

.date-picker-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffc30e;
  border: 1px solid #303030;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.date-picker-arrow:hover:not(:disabled) {
  background: #222;
  border-color: #ffc30e;
}

.date-picker-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Duration Stepper */
.duration-stepper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1a1a1a;
  color: #ffc30e;
  border: 2px solid #303030;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.duration-stepper-btn:hover:not(:disabled) {
  background: #222;
  border-color: #ffc30e;
}

.duration-stepper-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.duration-stepper-value {
  width: 140px;
  flex-shrink: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffc30e;
  padding: 8px 0;
  background: #1a1a1a;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Booking Summary */
.booking-summary {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffc30e;
  text-align: center;
  padding: 12px 16px;
  background: rgba(255, 195, 14, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(255, 195, 14, 0.2);
}

/* ── Payment method tiles (Step 6) ─────────────────────────────────────────── */
.payment-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 10px;
  background: #252525;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  width: 100%;
}
.payment-tile:hover {
  border-color: rgba(255, 195, 14, 0.5);
  background: #2a2a2a;
  color: #fff;
}
.payment-tile-active {
  border-color: #ffc30e !important;
  background: rgba(255, 195, 14, 0.08) !important;
  color: #fff !important;
}
