/* Mobile-specific buttons and interactive elements */

/* Sticky Book Now Button */
.sticky-book-button {
  display: none; /* Hidden by default, shown via JS only on mobile */
}

@media (max-width: 768px) {
  /* Sticky Book Now Button - Enhanced for 360x640 and all mobile devices */
  .sticky-book-button {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    color: white !important;
    text-decoration: none !important;
    padding: 1rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-align: center !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25) !important;
    z-index: 999 !important; /* Highest possible z-index */
    transition: transform 0.3s ease !important;
    min-height: 60px !important;
    border: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    touch-action: manipulation !important;
  }
  
  .sticky-book-button i {
    font-size: 1.1rem !important;
    margin-right: 0.25rem !important;
  }
  
  .sticky-book-button:active {
    transform: translateY(2px) !important;
    opacity: 0.9 !important;
  }
  
  .sticky-book-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.3) !important;
  }
  
  /* Back to Top Button */
  .back-to-top {
    display: none;
    position: fixed;
    bottom: 80px !important; /* Above the Book button */
    right: 1rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b35;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 98 !important; /* Below sticky button */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .back-to-top i {
    font-size: 1.25rem;
  }
  
  .back-to-top:active {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Enhanced Form Validation Indicators */
  .invalid {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
  }
  
  .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.375rem;
    font-weight: 500;
  }
  
  /* Mobile-friendly Selection States */
  .vehicle-card.selected {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #ff6b35;
  }
  
  .service-card.selected {
    transform: scale(1.02);
    background: rgba(255, 107, 53, 0.05);
    border-color: #ff6b35;
  }
  
  /* Active State for Touchscreens */
  .primary-button:active,
  .secondary-button:active,
  .book-btn:active {
    transform: translateY(2px);
    opacity: 0.9;
  }
  
  /* Make touchable elements have adequate size */
  .nav-link,
  .price-item,
  button,
  a.cta-link,
  .tab {
    min-height: 44px; /* Apple's recommended minimum */
  }
  
  /* Improved Touch Feedback */
  a, button {
    -webkit-tap-highlight-color: rgba(247, 183, 49, 0.2);
  }
}

/* Specific adjustments for very small devices */
@media (max-width: 480px) {
  .sticky-book-button {
    padding: 0.95rem 1.25rem !important;
    font-size: 0.95rem !important;
    min-height: 58px !important;
  }
  
  .back-to-top {
    bottom: 75px !important;
    right: 0.75rem !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
  }
}

/* Ultra-specific fixes for 360px and similar devices */
@media (max-width: 360px) {
  .sticky-book-button {
    padding: 0.9rem 1rem !important;
    font-size: 0.9rem !important;
    min-height: 56px !important;
  }
  
  .sticky-book-button i {
    font-size: 1rem !important;
  }
  
  .back-to-top {
    bottom: 70px !important;
    right: 0.5rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}

/* Landscape orientation fixes for small devices */
@media (max-width: 768px) and (orientation: landscape) {
  .sticky-book-button {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
    min-height: 50px !important;
  }
} 