/* Booking Modal Specific Styles - All classes prefixed for uniqueness */
.booking-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 5, 17, 0.95);
  backdrop-filter: blur(10px);
  animation: bookingModalFadeIn 0.3s ease-in-out;
}

.booking-modal-content {
  position: relative;
  background: rgba(10, 10, 26, 0.95);
  margin: 2% auto;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: bookingModalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Poppins", sans-serif;
}

/* Close Button */
.booking-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00f2ff;
  transform: rotate(90deg);
  border-color: #0066ff;
}

/* Progress Indicator */
.booking-progress-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 30px 20px 20px;
  background: transparent;
}

.booking-progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  font-family: "Orbitron", sans-serif;
}

.booking-progress-step::before {
  content: attr(data-step);
  position: absolute;
}

.booking-progress-step.booking-active {
  background: linear-gradient(135deg, #0066ff, #00f2ff);
  border-color: #0066ff;
  color: #050511;
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.4), 0 0 40px rgba(0, 242, 255, 0.2);
  transform: scale(1.1);
}

.booking-progress-step.booking-completed {
  background: rgba(0, 242, 255, 0.15);
  border-color: #00f2ff;
  color: #00f2ff;
}

.booking-progress-step.booking-completed::before {
  content: "✓";
  font-size: 0.9rem;
}

.booking-progress-line {
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.booking-progress-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0066ff, #00f2ff);
  transition: width 0.4s ease;
}

.booking-progress-line.booking-completed::before {
  width: 100%;
}

/* Booking Steps */
.booking-modal-step {
  display: none;
  padding: 30px;
  animation: bookingModalFadeIn 0.4s ease-in-out;
  min-height: 400px;
}

.booking-modal-step.booking-active {
  display: block;
}

/* Step Header */
.booking-step-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(45deg, #0066ff, #00f2ff);
  color: #050511;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.booking-step-title {
  color: #00f2ff;
  font-size: 1.4rem;
  font-family: "Orbitron", sans-serif;
  margin: 0;
  line-height: 1.3;
}

/* Step 1 - Discovery Info */
.booking-discovery-subtitle {
  color: #888;
  font-size: 1rem;
  margin-bottom: 25px;
  text-align: center;
  background: rgba(0, 102, 255, 0.1);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 102, 255, 0.2);
}

.booking-session-overview {
  margin-bottom: 25px;
}

.booking-session-title {
  color: #f5f5f5;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-family: "Orbitron", sans-serif;
  text-align: center;
}

.booking-session-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin-bottom: 25px;
}

.booking-session-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.booking-session-item:hover {
  background: rgba(0, 102, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.2);
  transform: translateX(5px);
}

.booking-session-item i {
  color: #00f2ff;
  font-size: 1rem;
  flex-shrink: 0;
}

.booking-session-item span {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.4;
}

.booking-discovery-goal {
  background: rgba(0, 102, 255, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 3px solid #0066ff;
}

.booking-discovery-goal strong {
  color: #00f2ff;
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.booking-discovery-goal p {
  color: #888;
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Step 2 - Date Selection */
.booking-calendar-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px 20px;
  color: #f5f5f5;
  font-size: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  margin-bottom: 20px;
}

.booking-calendar-input:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.booking-calendar-input:hover {
  border-color: #0066ff;
  background: rgba(255, 255, 255, 0.08);
}

/* Step 3 - Time Slots */
.booking-time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 25px;
}

.booking-time-slot {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #888;
  padding: 12px 8px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.booking-time-slot:hover {
  border-color: #0066ff;
  color: #f5f5f5;
  background: rgba(0, 102, 255, 0.1);
  transform: translateY(-3px);
}

.booking-time-slot.booking-selected {
  background: linear-gradient(45deg, #0066ff, #00f2ff);
  color: #050511;
  border-color: #0066ff;
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
  transform: translateY(-3px);
}

.booking-time-slot.disabled {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(136, 136, 136, 0.4);
  cursor: not-allowed;
  opacity: 0.5;
}

.booking-time-slot.disabled:hover {
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transform: none;
  color: rgba(136, 136, 136, 0.4);
}

/* Step 4 - Form */
.form-group-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.form-group-row label {
  width: 120px; /* fixed label width so page doesn't increase */
  font-weight: 600;
}

.form-group-row input,
.form-group-row textarea {
  flex: 1; /* input takes remaining space */
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.form-group-row textarea {
  height: 80px;
}

.error-text {
  color: red;
  font-size: 13px;
  margin-top: -10px;
  margin-bottom: 10px;
  display: block;
}

.booking-modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.booking-modal-form input,
.booking-modal-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  color: #f5f5f5;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  width: 100%;
}

.booking-modal-form input:focus,
.booking-modal-form textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.booking-modal-form input::placeholder,
.booking-modal-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.booking-modal-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Success Message */
.booking-success-message {
  display: none;
  text-align: center;
  padding: 60px 40px;
  animation: bookingModalFadeIn 0.5s ease-in-out;
}

.booking-success-message i {
  font-size: 64px;
  color: #00f2ff;
  margin-bottom: 20px;
}

.booking-success-message h3 {
  color: #00f2ff;
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-family: "Orbitron", sans-serif;
}

.booking-success-message p {
  color: #888;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Navigation Buttons */
.booking-step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  min-width: 140px;
  justify-content: center;
}

.booking-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #0066ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2);
}

.booking-btn-primary {
  background: linear-gradient(45deg, #0066ff, #00f2ff);
  color: #050511;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
  min-width: 140px;
  justify-content: center;
}

.booking-btn-primary:hover:not(:disabled) {
  background: linear-gradient(45deg, #0044cc, #00f2ff);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.booking-btn-primary:disabled,
.booking-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Icon styling in buttons */
.booking-btn-primary i,
.booking-btn-secondary i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.booking-btn-primary:hover i {
  transform: translateX(3px);
}

.booking-btn-secondary:hover i {
  transform: translateX(-3px);
}

/* Animations */
@keyframes bookingModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bookingModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.error-text {
  color: red;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 10px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .booking-modal-content {
    margin: 5% auto;
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }

  .booking-modal-step {
    padding: 25px 20px;
    min-height: auto;
  }

  .booking-progress-indicator {
    padding: 25px 15px 15px;
  }

  .booking-progress-step {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .booking-progress-line {
    width: 35px;
  }

  .booking-step-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .booking-step-title {
    font-size: 1.2rem;
  }

  .booking-session-items-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .booking-session-item {
    padding: 10px 12px;
  }

  .booking-time-slots {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .booking-time-slot {
    padding: 10px 6px;
    font-size: 0.85rem;
  }

  .booking-step-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .booking-step-navigation button {
    width: 100%;
    justify-content: center;
  }

  .booking-discovery-subtitle {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .booking-modal-content {
    margin: 2% auto;
    border-radius: 10px;
  }

  .booking-modal-step {
    padding: 20px 15px;
  }

  .booking-modal-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }

  .booking-progress-indicator {
    padding: 20px 10px 10px;
  }

  .booking-step-title {
    font-size: 1.1rem;
  }

  .booking-session-title {
    font-size: 1.1rem;
  }

  .booking-time-slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-btn-secondary,
  .booking-btn-primary {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .booking-success-message {
    padding: 40px 20px;
  }

  .booking-success-message i {
    font-size: 48px;
  }

  .booking-success-message h3 {
    font-size: 1.4rem;
  }
}

/* Scrollbar Styling */
.booking-modal-content::-webkit-scrollbar {
  width: 8px;
}

.booking-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 16px 16px 0;
}

.booking-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0066ff, #00f2ff);
  border-radius: 4px;
}

.booking-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0044cc, #00f2ff);
}
/* UNIVERSAL SUCCESS MESSAGE (WORKS ON ALL MOBILES & TABLETS) */
#bookingSuccessPage {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 420px;
  padding: 22px 18px;
  background: #ffffff;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  z-index: 999999999;
  display: none;
  animation: successFadeScale 0.35s ease-out;
}

#bookingSuccessPage i {
  font-size: 60px;
  color: #10d876;
  margin-bottom: 15px;
}

#bookingSuccessPage strong {
  display: block;
  font-size: 22px;
  color: #111;
  margin-bottom: 6px;
}

#bookingSuccessPage p {
  font-size: 15px;
  color: #555;
  line-height: 1.4;
  margin: 0;
}

/* Small Devices (iPhone SE, Samsung S8) */
@media (max-width: 380px) {
  #bookingSuccessPage {
    width: 92%;
    padding: 18px 14px;
    border-radius: 14px;
  }

  #bookingSuccessPage i {
    font-size: 50px;
  }

  #bookingSuccessPage strong {
    font-size: 19px;
  }

  #bookingSuccessPage p {
    font-size: 14px;
  }
}

/* Medium Phones (360px–410px width) */
@media (max-width: 430px) and (min-width: 381px) {
  #bookingSuccessPage {
    width: 90%;
    padding: 20px 16px;
  }
}

/* Tablets (iPad Air, iPad Pro, 800px–1100px height) */
@media (min-width: 600px) and (max-width: 1024px) {
  #bookingSuccessPage {
    width: 65%;
    max-width: 480px;
    padding: 28px 24px;
    border-radius: 18px;
  }

  #bookingSuccessPage i {
    font-size: 70px;
  }

  #bookingSuccessPage strong {
    font-size: 24px;
  }

  #bookingSuccessPage p {
    font-size: 16px;
  }
}

/* Animation */
@keyframes successFadeScale {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
/* REQUIRED ASTERISKS */
.booking-modal-form label[for]:after {
  content: " *";
  color: #ff4b4b;
  font-weight: bold;
}

/* 🔥 FINAL AUTOFILL FIX — prevents black text flash */
.booking-modal-form input:-webkit-autofill,
.booking-modal-form input:-webkit-autofill:hover,
.booking-modal-form input:-webkit-autofill:focus,
.booking-modal-form textarea:-webkit-autofill,
.booking-modal-form textarea:-webkit-autofill:hover,
.booking-modal-form textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset !important;
  -webkit-text-fill-color: #f5f5f5 !important;
  background-color: transparent !important;
  transition: background-color 9999s linear 0s, color 9999s linear 0s !important;
  caret-color: #f5f5f5 !important;
}

/* 📱 Samsung S8 + Small Phones FIX */
@media (max-width: 380px) {
  /* Fix modal content width & padding */
  .booking-modal-content {
    width: 94% !important;
    padding: 10px 0 !important;
    margin: 4% auto !important;
    border-radius: 10px !important;
  }

  /* Fix close button not to overlap title */
  .booking-modal-close {
    top: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 20px !important;
    z-index: 20000 !important;
  }

  /* Fix step header spacing */
  .booking-step-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
    padding-top: 35px !important;
  }

  /* Fix heading size */
  .booking-step-title {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    padding: 0 10px !important;
    word-break: break-word !important;
  }

  /* Fix placeholders being cut */
  .booking-modal-form input,
  .booking-modal-form textarea {
    padding: 12px !important;
    font-size: 0.9rem !important;
  }

  .booking-modal-form input::placeholder,
  .booking-modal-form textarea::placeholder {
    font-size: 0.85rem !important;
    opacity: 0.7 !important;
  }

  /* Fix grid spacing for time slots */
  .booking-time-slots {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Reduce time slot padding */
  .booking-time-slot {
    padding: 10px 4px !important;
    font-size: 0.82rem !important;
  }

  /* Fix success message */
  #bookingSuccessPage {
    width: 92% !important;
    max-width: 320px !important;
    padding: 18px 12px !important;
    border-radius: 12px !important;
  }

  #bookingSuccessPage strong {
    font-size: 18px !important;
  }

  #bookingSuccessPage p {
    font-size: 13px !important;
  }

  /* Fix top progress bar */
  .booking-progress-indicator {
    padding: 15px 5px !important;
    gap: 4px !important;
  }

  .booking-progress-step {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.65rem !important;
  }

  .booking-progress-line {
    width: 25px !important;
  }

  /* Fix form row spacing */
  .form-group-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .form-group-row label {
    width: 100% !important;
  }
}
