/* ============================================
   MEGA CONTACT SYSTEM CSS
   ============================================ */

/* ---- BOTTOM CONTACT PANEL ---- */
.contact-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a2a4a 0%, #0d1b33 100%);
  border-top: 3px solid #f4b84a;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.contact-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  gap: 12px;
}
.contact-panel-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-panel-left .cp-label {
  color: #f4b84a;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: all 0.3s;
  white-space: nowrap;
}
.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #fff;
  text-decoration: none;
}
.contact-btn.whatsapp { background: #25D366; }
.contact-btn.telegram { background: #0088cc; }
.contact-btn.email { background: #f4b84a; color: #1a2a4a; }
.contact-btn.leader { background: #fff; color: #1a2a4a; border: 1px solid #f4b84a; }
.contact-btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- FLOATING WHATSAPP BUTTON ---- */
.floating-wa-btn {
    display: none !important;
}

/* ---- EXIT INTENT POPUP ---- */
.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.exit-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.exit-popup-box {
  background: #fff;
  border-radius: 16px;
  width: 500px;
  max-width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: exitPopIn 0.4s ease;
}
@keyframes exitPopIn {
  from { transform: scale(0.8) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.exit-popup-close:hover {
  background: #f0f0f0;
  color: #333;
}
.exit-popup-content {
  padding: 30px 25px 25px;
  text-align: center;
}
.exit-popup-icon {
  font-size: 42px;
  margin-bottom: 10px;
}
.exit-popup-content h2 {
  margin: 0 0 8px;
  color: #1a2a4a;
  font-size: 20px;
  line-height: 1.3;
}
.exit-popup-content > p {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.exit-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: all 0.3s;
}
.exit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: #fff;
  text-decoration: none;
}
.exit-btn-wa { background: #25D366; }
.exit-btn-tg { background: #0088cc; }
.exit-popup-or {
  margin: 15px 0;
  color: #ccc;
  font-size: 13px;
  position: relative;
}
.exit-popup-or::before,
.exit-popup-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #eee;
}
.exit-popup-or::before { left: 0; }
.exit-popup-or::after { right: 0; }
.exit-popup-form-wrap h4 {
  margin: 0 0 10px;
  color: #1a2a4a;
  font-size: 15px;
}
.exit-popup-form-wrap input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.exit-popup-form-wrap input:focus {
  outline: none;
  border-color: #f4b84a;
}
.exit-popup-form-wrap button {
  width: 100%;
  padding: 12px;
  background: #f4b84a;
  color: #1a2a4a;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.exit-popup-form-wrap button:hover { background: #e0a030; }
.exit-form-success {
  display: none;
  text-align: center;
  padding: 15px;
  color: #25D366;
  font-size: 15px;
  font-weight: 700;
}

.fixed-help-form, .popup, .popup-inner, .popup-inner2, .exit-popup-overlay, .timer-popup-overlay, .scroll-cta, .floating-wa-btn, .lang-switcher-wrap { display: none !important; visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* ---- TIMER POPUP ---- */
.timer-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(3px);
}
.timer-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.timer-popup-box {
  background: linear-gradient(135deg, #1a2a4a, #0d1b33);
  border-radius: 16px;
  width: 400px;
  max-width: 92vw;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 2px solid #f4b84a;
  animation: exitPopIn 0.4s ease;
}
.timer-popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  z-index: 10;
  transition: color 0.2s;
}
.timer-popup-close:hover { color: #fff; }
.timer-popup-content {
  padding: 25px 20px;
  text-align: center;
}
.timer-popup-badge {
  display: inline-block;
  background: #f4b84a;
  color: #1a2a4a;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.timer-popup-content h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
}
.timer-popup-content p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.timer-popup-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timer-btn {
  display: block;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  transition: all 0.3s;
}
.timer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  color: #fff;
  text-decoration: none;
}
.timer-btn-wa { background: #25D366; }
.timer-btn-tg { background: #0088cc; }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .contact-panel-inner {
    flex-wrap: nowrap;
    padding: 6px 8px;
    gap: 6px;
    justify-content: center;
  }
  .cp-label {
    display: none !important;
  }
  .contact-panel-left {
    gap: 6px;
    flex-shrink: 1;
  }
  .contact-btn {
    padding: 6px 8px;
    font-size: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    justify-content: center;
    flex-shrink: 0;
  }
  .contact-btn span { display: none; }
  .contact-btn svg { width: 20px; height: 20px; }
  .contact-btn.email {
    font-size: 0;
    width: 38px;
    height: 38px;
    padding: 6px;
  }
  .contact-btn.leader {
    width: auto;
    height: 38px;
    border-radius: 19px;
    padding: 6px 12px;
    font-size: 11px;
  }
  .contact-btn.leader span { display: inline; }
  .floating-wa-btn {
    bottom: 65px;
    right: 12px;
    width: 48px;
    height: 48px;
  }
  .floating-wa-btn svg { width: 26px; height: 26px; }
  .exit-popup-box { width: 95vw; border-radius: 12px; }
  .exit-popup-content { padding: 20px 16px; }
  .exit-popup-content h2 { font-size: 18px; }
  .exit-btn { padding: 8px 14px; font-size: 12px; }
  .timer-popup-box { width: 90vw; border-radius: 12px; }
  .timer-popup-content { padding: 20px 16px; }
  .scroll-cta {
    font-size: 12px;
    padding: 6px 30px 6px 10px;
    gap: 8px;
  }
}

/* ---- SCROLL-BASED CTA BANNER ---- */
.scroll-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: linear-gradient(135deg, #f4b84a, #e0a030);
  color: #1a2a4a;
  text-align: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.scroll-cta.visible { transform: translateY(0); }
.scroll-cta a {
  color: #1a2a4a;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}
.scroll-cta-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #1a2a4a;
}

/* ---- FOOTER DIRECTOR & LICENSE ---- */
.footer-director-block {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
}
.footer-director {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}
.footer-director-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f4b84a;
}
.footer-director-info strong {
  color: #fff;
  font-size: 14px;
  display: block;
}
.footer-director-info span {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}
.footer-director-contact {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #f4b84a;
  color: #1a2a4a !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}
.footer-director-contact:hover {
  background: #fff;
  color: #1a2a4a !important;
}
.footer-license {
  flex: 1;
  min-width: 180px;
}
.footer-license p {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  margin: 3px 0;
}
.footer-license a {
  color: #f4b84a;
  text-decoration: underline;
}
.footer-license a:hover {
  color: #fff;
}
.footer-certificate {
  flex-basis: 100%;
  margin-top: 5px;
}
.footer-cert-img {
  max-width: 180px;
  height: auto;
  border-radius: 6px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .footer-director-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-director {
    justify-content: center;
  }
  .footer-license {
    text-align: center;
  }
  .footer-cert-img {
    max-width: 140px;
  }
}
