/* Estilos para o popup de Telefonia IP */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  background-color: var(--white);
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.popup-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  position: relative;
}

.popup-title {
  margin: 0;
  color: var(--white);
  font-size: 1.8rem;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.popup-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.popup-body {
  padding: 2rem;
  overflow-y: auto;
}

.popup-content {
  margin-bottom: 2rem;
}

.popup-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.popup-feature {
  display: flex;
  align-items: flex-start;
}

.popup-feature-icon {
  background-color: var(--primary-light);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.popup-feature-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.popup-feature-text p {
  margin: 0;
  font-size: 0.95rem;
}

.popup-cta {
  text-align: center;
  margin-top: 1rem;
}

.popup-cta .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .popup-container {
    width: 95%;
  }
  
  .popup-header {
    padding: 1rem;
  }
  
  .popup-title {
    font-size: 1.5rem;
  }
  
  .popup-body {
    padding: 1.5rem;
  }
  
  .popup-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .popup-container {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  
  .popup-header {
    padding: 1rem;
  }
  
  .popup-title {
    font-size: 1.3rem;
  }
  
  .popup-body {
    padding: 1rem;
  }
  
  .popup-feature-icon {
    width: 35px;
    height: 35px;
  }
  
  .popup-feature-text h4 {
    font-size: 1rem;
  }
  
  .popup-feature-text p {
    font-size: 0.9rem;
  }
}
