/* Definição da Paleta de Cores da Marca */
:root {
  --primary-color: #480D17;
  /* Rosa antigo / Mauve do site */
  --background-color: #f7f5f6;
  /* Fundo off-white suave */
  --text-color: #4a4a4a;
  /* Cinza escuro para texto */
  --white-color: #ffffff;
  --border-color: #ddd;
}

/* Reset Básico e Configurações Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 450px;
  width: 100%;
  text-align: center;
  padding: 20px 0;
  /* Animação de entrada para o container principal */
  animation: fadeInUp 0.8s ease-out forwards;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Header e Logo */
header {
  margin-bottom: 35px;
}

.logo-container {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  /* Animação para o logo */
  transform: scale(0);
  animation: scaleIn 0.6s 0.2s ease-out forwards;
}

.logo {
  max-width: 80%;
  height: auto;
}

.page-title {
  font-size: 26px;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 15px;
  color: #777;
}

/* Botões de Link (Página Inicial) */
.links {
  width: 100%;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 22px;
  margin-bottom: 18px;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  background-color: var(--white-color);
  color: var(--primary-color);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* Prepara os botões para a animação de entrada */
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.link-button:hover {
  transform: translateY(-4px);
  /* Aumenta um pouco o efeito de hover */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.link-button.social:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.link-button i {
  margin-right: 14px;
  font-size: 22px;
}

.link-button.highlight {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.link-button.highlight:hover {
  background-color: #987079;
  border-color: #987079;
}

.separator {
  border: 0;
  height: 1px;
  background-color: #e0e0e0;
  margin: 15px 0 30px;
  /* Animação para o separador */
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 0.8s;
  /* Aparece após os dois primeiros botões */
}

/* Animação escalonada para os botões de link */
#warranty-btn {
  animation-delay: 0.6s;
}

.links a.link-button[href*="revendedora"] {
  animation-delay: 0.7s;
}

.links a.link-button[href*="instagram"] {
  animation-delay: 0.9s;
}

.links a.link-button[href*="tiktok"] {
  animation-delay: 1.0s;
}

.links a.link-button[href*="wa.me"] {
  animation-delay: 1.1s;
}


/* --- Estilos para os Formulários --- */
.form-container {
  text-align: left;
  margin-top: 25px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.upercase{
  text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"] {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(169, 129, 138, 0.2);
  /* Efeito de anel ao focar */
}

.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
}

.checkbox-group input,
.radio-group input {
  margin-right: 12px;
  width: 20px;
  height: 20px;
}

.checkbox-group label,
.radio-group label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 15px;
}

.radio-group {
  margin-bottom: 12px;
}

.submit-button {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 10px;
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-button:hover {
  background-color: #987079;
  transform: scale(1.02);
  /* Leve crescimento no hover */
}

/* Estilo para o link de voltar */
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px;
  margin-top: 10px;
  border-radius: 10px;

  background-color: var(--white-color); /* Agora o fundo é branco */
  color: var(--primary-color);          /* Cor do texto igual à cor da borda */
  border: 2px solid var(--primary-color); /* Borda da cor original do fundo */

  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}


.back-button:hover {
  transform: scale(1.02); /* Leve aumento no hover */
}

.back-button i {
  margin-right: 10px; /* Espaçamento entre o ícone e o texto */
}


/* Rodapé */
footer {
  margin-top: 40px;
  font-size: 13px;
  color: #999;
}

/* --- Estilos para o Modal de Garantia --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  /* Animação de fade-in para o fundo do modal */
  animation: fadeIn 0.3s ease-out forwards;
}

.modal-content {
  background-color: var(--white-color);
  padding: 30px 35px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 400px;
  width: 100%;
  position: relative;
  /* Animação de "pop-in" para o conteúdo do modal */
  animation: scaleIn 0.3s 0.1s ease-out forwards;
  transform: scale(0);
}

.modal-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.modal-text {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-color);
}

.modal-button {
  display: inline-block;
  width: 100%;
  padding: 18px 22px;
  border-radius: 8px;
  background-color: #E1306C;
  color: var(--white-color);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.modal-button:hover {
  background-color: #C13584;
  transform: scale(1.03);
  /* Efeito de crescimento no hover */
}

.modal-button i {
  margin-right: 12px;
}

.close-modal {
  background: none;
  border: none;
  color: #999;
  font-size: 15px;
  cursor: pointer;
  margin-top: 20px;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--text-color);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1.5s linear infinite;
}

/* --- Estilos para a Caixa de Mensagem de Sucesso (ADICIONAR) --- */
.success-box {
  background-color: #e0f8e9;
  /* Verde claro para sucesso */
  color: #2a7e48;
  /* Verde escuro para o texto */
  border: 1px solid #a8e6c1;
  border-radius: 10px;
  padding: 18px 25px;
  margin-bottom: 25px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 16px;
  /* Animação para a caixa aparecer suavemente */
  animation: fadeInUp 0.5s ease-out forwards;
}

.success-box p {
  margin: 0;
}

.success-box i {
  margin-right: 12px;
  font-size: 20px;
  vertical-align: middle;
}

.success-box .close-btn {
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  font-weight: bold;
  color: #a8e6c1;
  transition: color 0.3s ease;
}

.success-box .close-btn:hover {
  color: #2a7e48;
}

.form-error {
  /* display: none; */
  color: #d9534f;
  font-size: 14px;
  margin-top: 5px;
  margin-left: 5px;
  font-weight: 500;
}

/* --- Estilo Adicional para Botão WhatsApp (ADICIONAR) --- */
.modal-button.whatsapp-button {
  background-color: #25D366;
}

.modal-button.whatsapp-button:hover {
  background-color: #1DAE54;
}



/* ====================================================== */
/*          DEFINIÇÕES DAS ANIMAÇÕES (KEYFRAMES)          */
/* ====================================================== */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
