:root {
  --roxo: #6a0dad;
  --roxo-claro: #8a2be2;
  --roxo-escuro: #5d0c99;
  --cinza-texto: #333;
  --cinza-secundario: #555;
  --branco: #ffffff;
}


/* Estilos para o formulário de sugestão com loading */
.btn-submit {
    position: relative;
    background: var(--roxo-claro);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.3);
}

.btn-submit:hover:not(:disabled) {
    background: var(--roxo-escuro);
    box-shadow: 0 6px 18px rgba(106, 13, 173, 0.4);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

#loadingSpinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Melhorias nos campos do formulário */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cinza-texto);
}

.form-group input:required,
.form-group select:required,
.form-group textarea:required {
    border-left: 3px solid var(--roxo-claro);
}

.form-group input:focus:required,
.form-group select:focus:required,
.form-group textarea:focus:required {
    border-left: 3px solid var(--roxo-escuro);
}





* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fundo fixo com imagem de livros */
body {
  background-image: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--cinza-texto);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(106, 13, 173, 0.88);
  z-index: -1;
}

/* Container centralizado com largura MAIOR */
.container {
  width: 94%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 70px 0;
}

/* Títulos */
h2 {
  text-align: center;
  font-size: 2.2rem;
  color: var(--roxo);
  margin-bottom: 15px;
}

p.subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--cinza-secundario);
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 100px 0;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.4rem;
  max-width: 900px;
  margin: 0 auto 30px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn {
  display: inline-block;
  background: white;
  color: var(--roxo);
  font-weight: bold;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Seções com fundo semi-transparente - LARGURA AUMENTADA E SOMBRA */
.content-section {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 50px 40px !important;
  margin: 0 auto 50px;
  backdrop-filter: blur(4px);
  width: 97%;
  max-width: 1250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* NOVA SOMBRA */
}

/* Produtos: 4 por linha */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.product-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* SOMBRA MAIS FORTE */
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25); /* SOMBRA MAIOR NO HOVER */
}

.product-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  margin: 10px 0;
  color: var(--cinza-texto);
  font-size: 1.15rem;
}

.product-info p {
  font-size: 0.92rem;
  color: var(--cinza-secundario);
  margin: 8px 0 12px;
}

.price {
  font-weight: bold;
  color: var(--roxo);
  font-size: 1.25rem;
  margin: 10px 0;
}

.btn-details {
  background: var(--roxo-claro);
  color: white;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-block;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(106, 13, 173, 0.3); /* SOMBRA NO BOTÃO */
}

.btn-details:hover {
  background: var(--roxo-escuro);
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.4); /* SOMBRA MAIOR NO HOVER */
}

/* Benefícios */
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 25px;
  border-radius: 16px;
  width: 220px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12); /* SOMBRA ADICIONADA */
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18); /* SOMBRA MAIOR NO HOVER */
}

.benefit-card i {
  font-size: 2rem;
  color: var(--roxo);
  margin-bottom: 15px;
}

.benefit-card h3 {
  margin: 12px 0 10px;
  color: var(--roxo);
  font-size: 1.1rem;
}

.benefit-card p {
  color: var(--cinza-secundario);
  font-size: 0.95rem;
}

/* Depoimentos */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.85);
  padding: 25px;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1); /* SOMBRA ADICIONADA */
  transition: all 0.3s ease;
}

.testimonial:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.15); /* SOMBRA MAIOR NO HOVER */
}

.testimonial::before {
  content: """;
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 3.5rem;
  color: var(--roxo);
  opacity: 0.1;
  font-family: Georgia, serif;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--cinza-texto);
}

.testimonial strong {
  color: var(--roxo);
}

/* CTA Final */
.cta-final {
  text-align: center;
  padding: 80px 0;
  color: white;
}

.cta-final h2 {
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: #FFFFFF;
}

.cta-final p.subtitle {
  color: rgba(255,255,255,0.9);
  max-width: 900px;
}

.btn-cta {
  background: white;
  color: var(--roxo);
  font-weight: bold;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  display: inline-block;
  margin-top: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4); /* SOMBRA MAIS FORTE */
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5); /* SOMBRA MAIOR NO HOVER */
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 25px 0;
  font-size: 0.95rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3); /* SOMBRA SUPERIOR NO FOOTER */
}

/* Modal - CORREÇÕES APLICADAS */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  overflow: auto; /* Permite rolagem se necessário */
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 30px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh; /* Altura máxima */
  border-radius: 16px;
  position: relative;
  animation: slideIn 0.4s;
  color: var(--cinza-texto);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow-y: auto; /* Rolagem interna quando necessário */
}

@keyframes slideIn {
  from { 
    transform: translateY(-50px);
    opacity: 0; 
  }
  to { 
    transform: translateY(0);
    opacity: 1; 
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #aaa;
  z-index: 2001; /* Fica acima do conteúdo */
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--roxo);
  background: rgba(255,255,255,1);
}

.modal-img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Conteúdo do modal com melhor espaçamento */
.modal-content h2 {
  margin: 10px 0 15px;
  color: var(--roxo);
  font-size: 1.8rem;
}

.modal-content p {
  margin: 15px 0;
  line-height: 1.6;
  font-size: 1rem;
}

.modal-content .price {
  font-size: 1.5rem;
  margin: 20px 0;
  text-align: center;
}

/* Estilos para o formulário de sugestão */
.suggestion-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--cinza-texto);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--roxo-claro);
  outline: none;
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: var(--roxo-claro);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.3);
}

.btn-submit:hover {
  background: var(--roxo-escuro);
  box-shadow: 0 6px 18px rgba(106, 13, 173, 0.4);
}

.suggestion-btn {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.suggestion-btn:hover {
  background: white;
  color: var(--roxo);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

/* Responsivo */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: 96%;
  }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  h2 { font-size: 1.8rem; }
  .products-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  section { padding: 50px 0; }
  .content-section {
    width: 96%;
    padding: 40px 25px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  /* Modal responsivo */
  .modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 95%;
    max-height: 80vh;
  }
  
  .modal-img {
    max-height: 200px;
  }
  
  .modal-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 5% auto;
    padding: 15px;
    max-height: 90vh;
  }
  
  .close-modal {
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
}
