/**
 * Estilos do Modal - Primeira Compra Desconto
 */

/* Overlay do Modal */
.pcd-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  animation: pcdFadeIn 0.3s ease-in-out;
  backdrop-filter: blur(2px);
}

.pcd-modal-overlay.active {
  display: flex;
}

@keyframes pcdFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Container do Modal */
.pcd-modal {
  background: #ffffff;
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  animation: pcdSlideUp 0.4s ease-out;
}

/* Imagem do Modal */
.pcd-modal-image {
  width: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
}

/* Wrapper do Conteúdo */
.pcd-modal-content-wrapper {
  width: 50%;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (max-width: 768px) {
  .pcd-modal {
    flex-direction: column;
    max-width: 500px;
  }

  .pcd-modal-image {
    width: 100%;
    height: 200px;
    min-height: 200px;
  }

  .pcd-modal-content-wrapper {
    width: 100%;
  }
}

@keyframes pcdSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Botão de Fechar */
.pcd-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.pcd-modal-close:hover {
  color: #000000;
  background-color: #f5f5f5;
}

/* Conteúdo do Modal */
.pcd-modal-content {
  padding: 50px 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Ícone do Modal */
.pcd-modal-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: pcdBounce 1s ease infinite;
}

@keyframes pcdBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Título */
.pcd-modal-title {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 16px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Descrição */
.pcd-modal-description {
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0 0 28px 0;
  font-weight: 400;
}

/* Formulário */
.pcd-modal-form {
  margin: 0;
}

.pcd-form-group {
  margin-bottom: 15px;
}

.pcd-form-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #000000;
}

.pcd-form-group input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.pcd-form-group input::placeholder {
  color: #999;
  font-weight: 400;
}

/* Botão de Submit */
.pcd-submit-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: #000000;
  border: 2px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pcd-submit-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.pcd-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pcd-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Mensagens */
.pcd-message {
  padding: 12px 14px;
  margin-top: 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.pcd-message.success {
  background-color: #f0f0f0;
  color: #000000;
  border: 1px solid #d0d0d0;
  font-weight: 500;
}

.pcd-message.error {
  background-color: #f5f5f5;
  color: #000000;
  border: 1px solid #d0d0d0;
  font-weight: 500;
}

/* Footer do Modal */
.pcd-modal-footer {
  font-size: 13px;
  color: #999;
  margin-top: 20px;
  margin-bottom: 0;
  font-weight: 400;
  text-align: center;
}

.pcd-modal-skip {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pcd-modal-skip:hover {
  color: #000;
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 600px) {
  .pcd-modal {
    width: 95%;
    border-radius: 10px;
  }

  .pcd-modal-content {
    padding: 30px 25px;
  }

  .pcd-modal-title {
    font-size: 26px;
    letter-spacing: -0.3px;
  }

  .pcd-modal-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .pcd-submit-btn {
    font-size: 12px;
    padding: 13px 18px;
  }
}

/* Loading State */
.pcd-submit-btn.loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: pcdSpin 0.6s linear infinite;
}

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