/* ==========================================================================
   TEKCOM FLOATING CONTACT BUTTON & POPUP (Elementor Standard)
   ========================================================================== */

.tk-floating-contact {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #C5DEFD;
  box-shadow: 0 10px 32px rgba(25, 50, 80, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tk-floating-contact:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(25, 50, 80, 0.45);
}

.tk-floating-contact svg.circle-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: tkContactRotate 18s linear infinite;
  pointer-events: none;
}

.tk-floating-contact:hover svg.circle-text {
  animation-play-state: paused;
}

.tk-floating-contact text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: #0B3653;
  text-transform: uppercase;
}

.tk-floating-center-icon {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0E2238;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.tk-floating-contact:hover .tk-floating-center-icon {
  transform: scale(1.06);
}

.tk-floating-center-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

@keyframes tkContactRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tk-floating-contact {
    bottom: 20px;
    right: 20px;
    width: 90px;
    height: 90px;
  }

  .tk-floating-contact text {
    font-size: 8px;
  }

  .tk-floating-center-icon {
    width: 50px;
    height: 50px;
  }

  .tk-floating-center-icon img {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
   POPUP MODAL (Contact Form 7)
   ========================================================================== */

.tk-contact-popup {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  /* Compensate for global html { zoom: 0.9; } so popup spans 100% of physical viewport */
  width: calc(100vw / var(--tk-zoom, 0.9));
  height: calc(100vh / var(--tk-zoom, 0.9));
  min-width: 100%;
  min-height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tk-contact-popup.is-active {
  opacity: 1;
  visibility: visible;
}

.tk-contact-popup__overlay {
  position: fixed;
  inset: -25vh -25vw;
  width: calc(100vw / var(--tk-zoom, 0.9) + 50vw);
  height: calc(100vh / var(--tk-zoom, 0.9) + 50vh);
  background: rgba(14, 34, 56, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tk-contact-popup__content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  transition: transform 0.3s ease;
  z-index: 2;
}

.tk-contact-popup.is-active .tk-contact-popup__content {
  transform: translateY(0);
}

.tk-contact-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #1a2b4a;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.tk-contact-popup__close:hover {
  background: rgba(0, 0, 0, 0.05);
  opacity: 0.8;
  transform: scale(1.1);
}

html.tk-popup-open,
body.tk-popup-open {
  overflow: hidden !important;
}

@media (max-width: 600px) {
  .tk-contact-popup__content {
    padding: 30px 20px 24px;
    width: 95%;
  }
}
