html {
  scroll-behavior: smooth;
}

#back-to-top {
  transition: opacity 0.3s, visibility 0.3s;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  transition: opacity 0.3s ease;
}

/* Navigation link styles */
.nav-link {
  transition: all 0.3s ease;
}

.nav-link.active {
  color: #3b82f6 !important;
  border-bottom-color: #3b82f6 !important;
}

.mobile-nav-link {
  transition: all 0.3s ease;
}

.mobile-nav-link.active {
  color: #3b82f6 !important;
  border-left-color: #3b82f6 !important;
  background-color: #eff6ff !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

.modal-content {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal:not(.show) {
  opacity: 0;
  pointer-events: none;
}

.modal:not(.show) .modal-content {
  transform: translateY(20px);
  opacity: 0;
}

.hidden-more {
  display: none;
}

.show-more {
  display: block !important;
}

#service-inquiry-btn {
  z-index: 40;
  display: flex;
  align-items: center;
}

/* Map container responsive sizing */
.map-container {
  height: 400px;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}

/* Form input focus styles */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Checkbox form styles */
.checkbox-container {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #1e293b;
}

.checkbox-container::-webkit-scrollbar {
  width: 6px;
}

.checkbox-container::-webkit-scrollbar-track {
  background: #1e293b;
}

.checkbox-container::-webkit-scrollbar-thumb {
  background-color: #3b82f6;
  border-radius: 3px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}