/* Overlay */
.popup-container {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.popup-container.ativo {
  display: flex;
}

.popup-container *,
.popup-container *::before,
.popup-container *::after {
  box-sizing: border-box;
}

/* Card */
.popup {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 36px 28px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  overflow: visible;
}

.popup span {
  display: block;
  margin: 0 0 18px;
  padding-right: 28px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #2ca2cd;
}

.popup p {
  margin: 0 0 12px;
  color: #333;
  font-size: 15px;
  line-height: 1.55;
}

.popup p:last-of-type {
  margin-bottom: 0;
}

.popup a {
  color: #2ca2cd;
  word-break: break-word;
}

.popup a:hover {
  color: #2386aa;
}

.popup-phones {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.popup-phones p {
  margin: 0 0 8px;
  font-size: 15px;
}

.popup-phones p:last-child {
  margin-bottom: 0;
}

/* Botão fechar — dentro do card, sem corte */
.popup .fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #2ca2cd;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
}

.popup .fechar:hover {
  background: #2386aa;
}

@media (max-width: 575px) {
  .popup-container {
    padding: 16px;
    align-items: flex-start;
    padding-top: 40px;
  }

  .popup {
    padding: 32px 18px 22px;
  }

  .popup span {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .popup p,
  .popup-phones p {
    font-size: 14px;
  }

  .popup .fechar {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}
