/* Estilos do Modal de Doação (Copiados do projeto Larinha) */

.spinner {
  width: 32px; /* w-5 */
  height: 32px; /* h-5 */
  border: 2px solid white; /* border-2 border-white */
  border-top: 2px solid var(--cor-primaria); /* Usando a cor primária do Aliança pela Vida */
  border-radius: 50%; /* rounded-full */
  margin-right: 0.5rem; /* mr-2 */
  animation: spin 1s linear infinite; /* animate-spin */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.copy-container {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  max-width: 100%;
  background-color: white;
}

.copy-container input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  outline: none;
  font-size: 14px;
  background-color: transparent;
}

.copy-container button {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background-color: var(--cor-acao); /* Usando a cor de ação do Aliança pela Vida */
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.copy-container button:hover {
  background-color: #005fa3; /* Cor de hover ajustada para a cor de ação */
}

.hidden {
  display: none;
}

/* Modal de Doação */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
}

.modal-content {
  background-color: white;
  max-width: 600px;
  width: 90%;
  margin: 50px auto;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.close-modal:hover {
  color: #666;
}

.modal h2 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--cor-texto);
  font-size: 20px;
}

.modal-subtitulo {
  text-align: center;
  margin-bottom: 25px;
  color: var(--cor-texto-claro);
  font-size: 14px;
}

.valores-doacao {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 15px;
}

.valor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.valor-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f8f8;
  border: 1px solid var(--cor-borda);
  border-radius: 8px;
  padding: 15px 5px;
  text-decoration: none;
  color: var(--cor-texto);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  height: 50px;
  text-align: center;
}

.valor-btn:hover,
.valor-btn:focus {
  background-color: #f1f1f1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-color: var(--cor-primaria);
}

.valor-btn.destacado {
  background-color: #f0f8ff; /* Cor de fundo para destacado, ajustada para a cor primária do Aliança */
  border: 2px solid var(--cor-acao);
  box-shadow: 0 5px 15px rgba(0, 102, 179, 0.15); /* Sombra ajustada para a cor de ação */
  color: var(--cor-acao);
}

.valor-btn.destacado:before {
  content: "Popular";
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: var(--cor-acao);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1;
}

.valor-item-grande {
  margin: 5px 0 20px;
  width: 100%;
}

.valor-btn-grande {
  height: 60px;
  font-size: 20px;
  font-weight: 700;
  background-color: #f0f8ff;
  border: 2px solid var(--cor-primaria);
  color: var(--cor-primaria);
}
.valor-btn-grande-2 {
  height: 60px;
  font-size: 20px;
  font-weight: 700;
  background-color: #3cb371;
  border: 2px solid #3cb371;
  color: #f0f8ff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 15px 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  text-align: center;
}
.valor-btn-grande-2:hover,
.valor-btn-grande-2:focus {
  background-color: #3cb371;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-color: #3cb371;
}

.modal-footer {
  text-align: center;
  margin-top: 5px;
  padding-top: 15px;
  border-top: 1px solid var(--cor-borda);
}

.modal-footer p {
  font-size: 14px;
  color: var(--cor-texto);
  margin-bottom: 10px;
  font-weight: 500;
}

.metodos-pagamento {
  display: flex;
  justify-content: center;
}

.metodos-pagamento i {
  font-size: 25px;
  color: #32bcad;
}

@media (max-width: 768px) {
  .valores-doacao {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .valores-doacao {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .valor-btn-grande {
    height: 55px;
    font-size: 18px;
  }

  .modal-content {
    padding: 20px 15px;
  }
}
