/* Service Modal - Exact Copy from tracelast */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-modal.active {
  display: flex;
  opacity: 1;
}

.service-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.service-modal__content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

/* Custom Scrollbar for Modal */
.service-modal__content::-webkit-scrollbar {
  width: 8px;
}

.service-modal__content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
  margin: 8px 0;
}

.service-modal__content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #002FFF 0%, #0047FF 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.service-modal__content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #001FCC 0%, #0033CC 100%);
  box-shadow: 0 2px 8px rgba(0, 47, 255, 0.3);
}

.service-modal__content::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #001999 0%, #002699 100%);
}

/* Firefox scrollbar */
.service-modal__content {
  scrollbar-width: thin;
  scrollbar-color: #002FFF #f1f1f1;
}

/* Global scrollbar when modal is open */
body.modal-open::-webkit-scrollbar {
  width: 12px;
}

body.modal-open::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 6px;
}

body.modal-open::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #002FFF 0%, #0047FF 100%);
  border-radius: 6px;
  border: 2px solid #f8f9fa;
  transition: all 0.3s ease;
}

body.modal-open::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #001FCC 0%, #0033CC 100%);
  box-shadow: 0 4px 12px rgba(0, 47, 255, 0.2);
}

/* Smooth scrolling animation */
.service-modal__content {
  scroll-behavior: smooth;
}

/* Scroll indicator */
.service-modal__scroll-indicator {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  background: rgba(0, 47, 255, 0.1);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-modal__content:hover .service-modal__scroll-indicator {
  opacity: 1;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 47, 255, 0.1);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-progress.visible {
  opacity: 1;
}

.scroll-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #002FFF 0%, #0047FF 100%);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(0, 47, 255, 0.3);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.service-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.service-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.service-modal__close svg {
  width: 20px;
  height: 20px;
}

.service-modal__body {
  padding: 48px 40px;
  position: relative;
}

.service-modal__image {
  width: 100%;
  max-width: 400px;
  height: 400px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.service-modal__image svg {
  width: 100%;
  height: 100%;
}

.service-modal__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.service-modal__image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.service-modal__title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.3;
  text-align: center;
}

.service-modal__description {
  font-size: 16px;
  line-height: 1.6;
  color: #4C4C4C;
  margin-bottom: 32px;
}

.service-modal__description p {
  margin-bottom: 16px;
}

.service-modal__description ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.service-modal__description ul li {
  padding-left: 28px;
  margin-bottom: 12px;
  position: relative;
}

.service-modal__description ul li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #002FFF;
  font-weight: bold;
}

.service-modal__order {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 0;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  line-height: 44px;
  height: 44px;
}

@media (max-width: 768px) {
  .service-modal__content {
    width: 95%;
    max-height: 95vh;
  }
  
  .service-modal__body {
    padding: 32px 24px;
  }
  
  .service-modal__image {
    height: 300px;
    margin-bottom: 24px;
  }
  
  .service-modal__title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .service-modal__description {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .service-modal__body {
    padding: 24px 20px;
  }
  
  .service-modal__image {
    height: 250px;
    margin-bottom: 20px;
  }
  
  .service-modal__title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .service-modal__description {
    font-size: 13px;
    margin-bottom: 20px;
  }
}

