/* ===== POPUPY KONTAKTOWE - STYLE ===== */

/* POPUP #2 - Exit Intent Modal (backdrop) */
.lead-pop__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100050;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lead-pop__modal {
  width: min(92vw, 560px);
  background: #fff;
  color: #111;
  border-radius: 14px;
  border: 1px solid #dcdcdc;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  overflow: hidden;
  font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lead-pop__head {
  padding: 14px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
}

.lead-pop__body {
  padding: 0;
}

.lead-pop__close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lead-pop__close:hover {
  opacity: 0.8;
}

/* Dark mode dla exit intent modal */
@media (prefers-color-scheme: dark) {
  .lead-pop__modal {
    background: #161b22;
    color: #e6edf3;
    border-color: #2d333b;
  }
  .lead-pop__head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }
  .lead-pop__close {
    color: #fff;
  }
}

/* POPUP #1 - Fly-in (dół/prawo) - Formularz kontaktowy */
.lead-flyin {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(92vw, 520px);
  z-index: 100060;
  display: none;
  font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.lead-flyin__box {
  background: #fff;
  color: #111;
  border-radius: 14px;
  border: 1px solid #dcdcdc;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
  overflow: hidden;
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .22s, opacity .22s, box-shadow .2s;
}

.lead-flyin--visible .lead-flyin__box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lead-flyin__head {
  padding: 14px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
  position: relative;
}

.lead-flyin__close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lead-flyin__close:hover {
  opacity: 0.8;
}

.lead-flyin__body {
  padding: 0;
  background: #fff;
}

.lead-flyin__iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Dark mode dla fly-in */
@media (prefers-color-scheme: dark) {
  .lead-flyin__box {
    background: #161b22;
    color: #e6edf3;
    border-color: #2d333b;
  }
  .lead-flyin__body {
    background: #161b22;
  }
}

/* Responsywność dla większych ekranów */
@media (min-width: 1280px) {
  .lead-flyin {
    right: 28px;
    bottom: 28px;
  }
}

/* Responsywność dla małych ekranów */
@media (max-width: 768px) {
  .lead-flyin {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
  
  .lead-pop__modal {
    width: calc(100vw - 20px);
  }
  
  .guarantee-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  
  .guarantee-icon {
    font-size: 3rem;
  }
  
  .guarantee-text h3 {
    font-size: 1.4rem;
    justify-content: center;
  }
  
  .guarantee-text p {
    font-size: 1rem;
  }
  
  .badge-circle {
    width: 100px;
    height: 100px;
  }
  
  .badge-circle i {
    font-size: 2rem;
  }
  
  .badge-circle span {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .guarantee-banner {
    padding: 2rem 0;
  }
  
  .guarantee-content {
    padding: 1.5rem 1rem;
  }
  
  .guarantee-icon {
    font-size: 2.5rem;
  }
  
  .guarantee-text h3 {
    font-size: 1.2rem;
  }
  
  .badge-circle {
    width: 80px;
    height: 80px;
  }
  
  .badge-circle i {
    font-size: 1.5rem;
  }
  
  .badge-circle span {
    font-size: 0.65rem;
  }
}

