/* ===== MOBILE MENU SEARCH BUTTON FIX ===== */

/* Ensure search button is visible and properly styled in mobile menu */
@media (max-width: 1024px) {
  /* Mobile menu search form container */
  .mobile-menu-actions .mobile-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    padding: 0;
  }

  /* Search button specific styling for mobile menu */
  .mobile-menu-actions .search-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #355eb9, #2a4a94);
    border: 2px solid #355eb9;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    color: white;
    font-size: 1.1rem;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  /* Hover effect for mobile menu search button */
  .mobile-menu-actions .search-btn:hover {
    background: linear-gradient(135deg, #2a4a94, #1d4ed8);
    border-color: #2a4a94;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(53, 94, 185, 0.3);
  }

  /* Active/pressed state */
  .mobile-menu-actions .search-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }

  /* Focus state for accessibility */
  .mobile-menu-actions .search-btn:focus {
    outline: 2px solid #355eb9;
    outline-offset: 2px;
  }

  /* Icon styling within mobile menu search button */
  .mobile-menu-actions .search-btn i {
    color: white;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
  }

  /* Icon animation on hover */
  .mobile-menu-actions .search-btn:hover i {
    transform: scale(1.1) rotate(15deg);
  }

  /* Ripple effect for mobile search button */
  .mobile-menu-actions .search-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
  }

  .mobile-menu-actions .search-btn:active::before {
    width: 60px;
    height: 60px;
  }

  /* Pulse animation for attention */
  .mobile-menu-actions .search-btn.pulse {
    animation: mobile-search-pulse 2s infinite;
  }

  @keyframes mobile-search-pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(53, 94, 185, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(53, 94, 185, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(53, 94, 185, 0);
    }
  }

  /* Ensure proper spacing in mobile menu actions */
  .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
  }

  /* Mobile enquiry button adjustments */
  .mobile-enquiry-btn {
    width: 100%;
    max-width: 280px;
    padding: 14px;
    background: linear-gradient(135deg, #355eb9, #2a4a94);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .mobile-enquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(53, 94, 185, 0.3);
  }
}

/* Tablet specific adjustments (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .mobile-menu-actions .search-btn {
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
  }

  .mobile-menu-actions .search-btn i {
    font-size: 1.2rem;
  }
}

/* Mobile specific adjustments (below 768px) */
@media (max-width: 768px) {
  .mobile-menu-actions .search-btn {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .mobile-menu-actions .search-btn i {
    font-size: 1rem;
  }

  .mobile-menu-actions {
    padding: 16px;
  }
}

/* Extra small mobile (below 480px) */
@media (max-width: 480px) {
  .mobile-menu-actions .search-btn {
    width: 45px;
    height: 45px;
    font-size: 0.95rem;
  }

  .mobile-menu-actions .search-btn i {
    font-size: 0.95rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .mobile-menu-actions .search-btn {
    border-width: 3px;
    background: #000000;
    border-color: #000000;
  }

  .mobile-menu-actions .search-btn i {
    color: #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-actions .search-btn,
  .mobile-menu-actions .search-btn i,
  .mobile-menu-actions .search-btn::before {
    transition: none;
    animation: none;
  }
}

/* Touch-friendly improvements for mobile devices */
@media (hover: none) and (pointer: coarse) {
  .mobile-menu-actions .search-btn {
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
  }

  /* Increase touch target size */
  .mobile-menu-actions .search-btn::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: -1;
  }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
  .mobile-menu-actions {
    display:ruby-text;
    align-items: center;
      justify-content: space-between;

    background: #ffffff;
    border-top-color: #ffffff;
  }

  .mobile-menu-actions .search-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
  }

  .mobile-menu-actions .search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: #1d4ed8;
  }
}
