/* ============================================
   Global CSS - SMDQ Site Shared Components
   ============================================ */

/* ------------------------------------------
   1. Mobile Fixes
   ------------------------------------------ */

/* Hero Carousel - Mobile Text Truncation Fix */
@media (max-width: 768px) {
  .hero-carousel .carousel-caption h1 {
    font-size: 1.3rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
  }

  .hero-carousel .carousel-caption h2 {
    font-size: 1.2rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
  }

  .hero-carousel .carousel-caption {
    overflow: hidden;
    max-width: 100%;
    padding: 0.75rem;
  }
}

/* Navbar Mobile Collapse Menu Fix */
@media (max-width: 991.98px) {
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    background: inherit;
    padding: 1rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar-nav .dropdown-menu {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding-left: 1.5rem;
  }

  .navbar-nav .dropdown-item {
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
  }
}

/* Body Padding-Top Fix for Small Screens */
@media (max-width: 575.98px) {
  body {
    padding-top: 56px !important;
  }
}

/* ------------------------------------------
   2. WhatsApp Floating Button
   ------------------------------------------ */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 9998;
  animation: whatsapp-pulse 2s infinite;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #25D366;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 85px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

/* ------------------------------------------
   3. Language Switcher
   ------------------------------------------ */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------
   4. Inquiry Form
   ------------------------------------------ */
.inquiry-form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.inquiry-form .form-label {
  font-weight: 500;
  color: #1a5276;
  margin-bottom: 0.5rem;
}

.inquiry-form .form-control,
.inquiry-form .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s;
}

.inquiry-form .form-control:focus,
.inquiry-form .form-select:focus {
  border-color: #2980b9;
  box-shadow: 0 0 0 0.2rem rgba(41, 128, 185, 0.15);
}

.inquiry-form .btn-submit {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  padding: 12px 40px;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.inquiry-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
  color: white;
}

/* ------------------------------------------
   5. Google Maps Container
   ------------------------------------------ */
.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  border: none;
}
