/* Booking Page Styles - Using Bootstrap with Funkidz Palette */

.booking-page {
  background: var(--bg-secondary, #F8F9FA);
  min-height: 100vh;
}

/* Loading & Error States */
.loading-section,
.error-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.loading-bounce {
  display: flex;
  gap: 0.5rem;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Header */
.booking-header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.5rem 0;
}

.back-button {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.back-button:hover {
  background: #f8f9fa;
  color: #2D2D2D;
}

/* ========================================
   PROGRESS TRACKER - Modern Step Indicator
   ======================================== */

.booking-progress {
  background: #ffffff;
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid #eee;
  position: relative;
}

.progress-tracker {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Individual Step */
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.step-indicator {
  position: relative;
  margin-bottom: 0.75rem;
}

.step-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

/* Upcoming Step */
.progress-step.upcoming .step-icon-wrapper {
  background: #f5f5f5;
  color: #bdc1c6;
  border: 2px solid #e5e5e5;
}

/* Active Step */
.progress-step.active .step-icon-wrapper {
  background: var(--primary-pink, #E91E63);
  color: white;
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
  transform: scale(1.08);
}

.progress-step.active .step-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary-pink, #E91E63);
  opacity: 0;
  animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* Completed Step */
.progress-step.completed .step-icon-wrapper {
  background: var(--primary-cyan, #00CED1);
  color: white;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 206, 209, 0.25);
}

.progress-step.completed .step-icon-wrapper i {
  animation: checkmark-pop 0.4s ease-out;
}

@keyframes checkmark-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Step Labels */
.step-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 85px;
}

.step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary, #2D2D2D);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.step-subtitle {
  font-size: 0.7rem;
  color: #9aa0a6;
  font-weight: 500;
  margin-top: 1px;
}

.progress-step.upcoming .step-title {
  color: #bdc1c6;
}

.progress-step.upcoming .step-subtitle {
  color: #d5d8dc;
}

.progress-step.active .step-title {
  color: var(--primary-pink, #E91E63);
}

.progress-step.active .step-subtitle {
  color: #C2185B;
}

.progress-step.completed .step-title {
  color: var(--primary-cyan, #00CED1);
}

.progress-step.completed .step-subtitle {
  color: #00b3b6;
}

/* Connector Line Between Steps */
.progress-connector {
  flex: 1;
  height: 3px;
  margin: 26px 12px 0;
  position: relative;
  min-width: 50px;
  max-width: 90px;
}

.connector-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: #e5e5e5;
  border-radius: 2px;
}

.connector-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--primary-cyan, #00CED1);
  border-radius: 2px;
  width: 0;
  transition: width 0.6s ease-out;
}

.progress-connector.completed .connector-progress {
  width: 100%;
}

.progress-connector.active .connector-progress {
  width: 50%;
  background: var(--primary-pink, #E91E63);
}

/* Mobile Progress Bar (shown only on small screens) */
.mobile-progress {
  display: none;
}

/* ========================================
   RESPONSIVE - Progress Tracker
   ======================================== */

@media (max-width: 576px) {
  /* Hide desktop tracker on mobile */
  .progress-tracker {
    display: none;
  }

  /* Show mobile progress bar */
  .mobile-progress {
    display: block;
    padding: 0 1rem;
  }

  .mobile-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
  }

  .mobile-step-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .mobile-step-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-pink, #E91E63);
  }

  .mobile-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
  }

  .mobile-progress-fill {
    height: 100%;
    background: var(--primary-pink, #E91E63);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }

  .mobile-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%
    );
    animation: shimmer 2s infinite;
  }

  @keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

  .booking-progress {
    padding: 1rem 0 1.25rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .step-icon-wrapper {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .progress-step.active .step-pulse {
    width: 48px;
    height: 48px;
  }

  .step-title {
    font-size: 0.8rem;
  }

  .step-subtitle {
    font-size: 0.7rem;
  }

  .progress-connector {
    margin: 24px 6px 0;
    min-width: 30px;
  }

  .step-label {
    min-width: 70px;
  }
}

/* Legacy support - keep old classes working */
.progress-section {
  background: white;
  padding: 0;
  border-bottom: none;
}

.progress-steps {
  display: none;
}

/* Step Content */
.step-content-section {
  padding: 2rem 0;
  padding-bottom: 6rem;
}

.step-content {
  max-width: 800px;
  margin: 0 auto;
}

.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #2D2D2D;
  margin-bottom: 0.5rem;
}

.step-header p {
  font-size: 1.125rem;
  color: #6c757d;
}

/* Date Selection */
.date-selection,
.date-summary,
.shift-selection {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.selected-date-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(233, 30, 99, 0.08);
  border-radius: 0.5rem;
  border: 2px solid rgba(233, 30, 99, 0.2);
}

.selected-date-display i {
  font-size: 2rem;
  color: var(--primary-pink, #E91E63);
}

/* ========================================
   DATE CARDS - Modern Calendar Style
   ======================================== */

.date-selection .section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.date-selection .section-title i {
  font-size: 1.5rem;
  color: var(--primary-pink, #E91E63);
}

.date-selection .section-title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2D2D2D;
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.date-card {
  background: white;
  border: 2px solid #e8e8e8;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.date-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-pink, #E91E63);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.date-card:hover {
  border-color: var(--primary-pink, #E91E63);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
}

.date-card:hover::before {
  transform: scaleX(1);
}

/* Date Card Header */
.date-card-header {
  background: #f8f9fa;
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
}

.date-weekday {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.5px;
}

.weekend-badge {
  font-size: 0.6rem;
  font-weight: 700;
  background: #7B68EE;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Date Card Body */
.date-card-body {
  padding: 0.75rem 0.5rem;
}

.date-day {
  font-size: 2.25rem;
  font-weight: 800;
  color: #2D2D2D;
  line-height: 1;
  font-family: 'Fredoka', cursive, sans-serif;
}

/* Date Card Footer */
.date-card-footer {
  padding: 0.5rem 0.75rem 0.75rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.35rem;
}

.date-month {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-pink, #E91E63);
  text-transform: uppercase;
}

.date-year {
  font-size: 0.75rem;
  color: #9aa0a6;
  font-weight: 500;
}

/* Date Card Check Mark */
.date-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--primary-pink, #E91E63);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

/* Weekend Card Styling */
.date-card.weekend {
  border-color: #e8e0f0;
}

.date-card.weekend .date-card-header {
  background: rgba(123, 104, 238, 0.08);
  border-bottom-color: #e8e0f0;
}

.date-card.weekend .date-weekday {
  color: #7B68EE;
}

.date-card.weekend:hover {
  border-color: #7B68EE;
  box-shadow: 0 8px 25px rgba(123, 104, 238, 0.25);
}

.date-card.weekend::before {
  background: #7B68EE;
}

.date-card.weekend .date-card-check {
  background: #7B68EE;
  box-shadow: 0 2px 8px rgba(123, 104, 238, 0.4);
}

/* Active/Selected State */
.date-card.active {
  border-color: var(--primary-pink, #E91E63);
  background: rgba(233, 30, 99, 0.05);
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.25);
}

.date-card.active::before {
  transform: scaleX(1);
}

.date-card.active .date-card-check {
  opacity: 1;
  transform: scale(1);
}

.date-card.active .date-card-header {
  background: rgba(233, 30, 99, 0.08);
}

.date-card.weekend.active {
  border-color: #7B68EE;
  background: rgba(123, 104, 238, 0.05);
  box-shadow: 0 4px 20px rgba(123, 104, 238, 0.25);
}

.date-card.weekend.active .date-card-header {
  background: rgba(123, 104, 238, 0.12);
}

/* Responsive Date Cards */
@media (max-width: 576px) {
  .dates-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .date-day {
    font-size: 1.75rem;
  }

  .date-card-header {
    padding: 0.4rem 0.5rem;
  }

  .date-weekday {
    font-size: 0.65rem;
  }

  .weekend-badge {
    font-size: 0.5rem;
    padding: 1px 4px;
  }

  .date-card-footer {
    padding: 0.4rem 0.5rem 0.6rem;
  }

  .date-month {
    font-size: 0.8rem;
  }

  .date-card-check {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
    top: 6px;
    right: 6px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .dates-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Shift Cards */
.shifts-grid {
  display: grid;
  gap: 1rem;
}

.shift-card {
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.shift-card:hover {
  border-color: var(--primary-pink, #E91E63);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.shift-card.active {
  border-color: var(--primary-pink, #E91E63);
  background: rgba(233, 30, 99, 0.05);
}

.shift-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #f5f5f5;
}

.shift-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-pink, #E91E63);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

/* Navigation */
.navigation-section {
  background: white;
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem 0;
  position: sticky;
  bottom: 0;
  z-index: 100;
}

.price-display {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  border: 2px solid var(--primary-pink, #E91E63);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.2);
}

.price-info i {
  color: var(--primary-pink, #E91E63);
}

.price-amount {
  color: var(--primary-pink, #E91E63);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Buttons */
.btn-party {
  background: var(--primary-pink, #E91E63);
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
  transition: all 0.3s ease;
}

.btn-party:hover:not(:disabled) {
  background: var(--primary-pink-hover, #C2185B);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
  color: white;
}

.btn-party:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive - General */
@media (max-width: 768px) {
  .dates-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .navigation-section {
    padding: 0.75rem 0;
  }

  .navigation-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .navigation-buttons {
    width: 100%;
  }

  .navigation-buttons .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .price-display {
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.75rem;
  }
}

/* Catering cards responsive */
@media (max-width: 576px) {
  .catering-package-card .package-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .quantity-selector {
    width: 100%;
    justify-content: space-between;
  }

  .config-section {
    padding: 1.25rem;
  }

  .config-card {
    padding: 1rem;
  }
}

/* ========================================
   BOOKING TITLE - Shared heading style
   ======================================== */

.booking-title {
  font-family: 'Fredoka', cursive;
  color: var(--text-primary, #2D2D2D);
}

h1.booking-title {
  font-size: 1.5rem;
}

/* ========================================
   BOOKING FORM SECTIONS - Step 3 Contact
   ======================================== */

.booking-form-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.booking-form-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
}

.booking-form-section-header i {
  font-size: 1.25rem;
  color: var(--primary-pink, #E91E63);
  width: 36px;
  height: 36px;
  background: rgba(233, 30, 99, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-form-section-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary, #2D2D2D);
}

.booking-form-section .input-group-text {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

.booking-form-section .form-control:focus {
  border-color: var(--primary-pink, #E91E63);
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.15);
}

.booking-form-section .form-control.is-valid {
  border-color: var(--primary-cyan, #00CED1);
}

.booking-form-section .form-control.is-valid:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 206, 209, 0.15);
}

/* ========================================
   PAYMENT CARDS - Step 4 Funkidz Style
   ======================================== */

.payment-summary-card,
.payment-form-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.payment-summary-header,
.payment-form-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.payment-summary-header {
  background: var(--primary-pink, #E91E63);
  color: white;
}

.payment-summary-header i {
  font-size: 1.25rem;
}

.payment-summary-header h3,
.payment-form-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.payment-form-header {
  background: #fafafa;
}

.payment-form-header i {
  font-size: 1.25rem;
  color: var(--primary-pink, #E91E63);
}

.payment-form-header h3 {
  color: var(--text-primary, #2D2D2D);
}

.payment-summary-body,
.payment-form-body {
  padding: 1.5rem;
}

.payment-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.payment-summary-item:last-of-type {
  border-bottom: none;
}

.payment-summary-label {
  color: #6c757d;
  font-size: 0.9rem;
}

.payment-summary-label i {
  color: var(--primary-pink, #E91E63);
  width: 1.25rem;
}

.payment-summary-value {
  font-weight: 600;
  color: var(--text-primary, #2D2D2D);
}

.payment-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 0;
  margin-top: 0.75rem;
  border-top: 2px solid var(--primary-pink, #E91E63);
  font-weight: 700;
}

.payment-total-amount {
  font-size: 1.5rem;
  color: var(--primary-pink, #E91E63);
}

.payment-total-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6c757d;
  text-align: right;
}

/* Trust Badges */
.trust-badges {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.trust-badges-row i {
  color: #28a745;
}

.trust-badges-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  color: #9aa0a6;
}

.trust-badges-cards i {
  transition: color 0.2s ease;
}

.trust-badges-cards i:hover {
  color: #6c757d;
}

