/* ---- RESET BÁSICO E CONFIGURAÇÕES GLOBAIS ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Para a navegação suave ao clicar no botão */
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #121212; /* Preto/Cinza muito escuro */
  color: #f4f4f4;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
  text-align: center;
}

h1,
h2,
h3 {
  font-family: "Exo 2", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid #e50914; /* Vermelho "racing" */
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 3rem;
}

.accent-color {
  color: #e50914;
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  overflow: hidden; /* Para garantir que o vídeo não "transborde" */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  background-size: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Mesma cor do seu gradiente anterior */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  max-width: 600px;
  margin: 1rem auto;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  background-color: #e50914;
  color: #fff;
  padding: 15px 35px;
  text-decoration: none;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  margin-top: 2rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #f61c27;
  transform: translateY(-5px); /* Efeito "cool" ao passar o rato */
}

/* ---- SECÇÃO DE PRODUTOS ---- */
.product-grid {
  display: grid;
  /* Cria um grid responsivo que se ajusta ao ecrã */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.product-card img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.product-card h3 {
  font-size: 1.5rem;
  color: #e50914;
  margin-bottom: 0.5rem;
}

/* ---- SECÇÃO DE LOJAS ---- */
#lojas p {
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.store-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.store-logos img {
  max-height: 60px;
  filter: grayscale(100%) brightness(1.5); /* Deixa os logos a preto e branco para um look uniforme */
  transition: filter 0.3s ease;
}

.store-logos img:hover {
  filter: grayscale(0%) brightness(1); /* Devolve a cor original ao passar o rato */
}

.code-promo-section {
  background-color: #1a1a1a;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin: 3rem auto;
  max-width: 900px;
}

.code-promo-section p {
  font-size: 1.2rem;
  font-weight: 400;
  color: #f4f4f4;
  line-height: 1.5;
}

.campaign-dates-section .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 800px;
}

.date-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  flex: 1;
}

.date-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #e50914;
}

.date-card p {
  font-size: 1rem;
  font-weight: 300;
}

.iframe-section {
  padding: 4rem 2rem;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Rácio de aspeto 16:9 */
  background-color: #333;
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #e50914;
  border: 2px solid #e50914;
  padding: 12px 25px;
  text-decoration: none;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #e50914;
  color: #fff;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  background-color: #000;
  color: #777;
}

/* ---- MODAL STYLES ---- */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding-top: 60px;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #1a1a1a;
  margin: 5% auto;
  padding: 40px;
  border: 1px solid #444;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  font-family: "Roboto", sans-serif;
  color: #f4f4f4;
  text-align: left;
}

.close-button {
  color: #e50914;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: #f61c27;
  text-decoration: none;
}

.modal-content h3 {
  font-family: "Exo 2", sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: #e50914;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.modal-content p,
.modal-content li {
  font-size: 1rem;
  margin-bottom: 15px;
}

.modal-content strong {
  color: #f4f4f4;
}

/* ---- RESPONSIVIDADE PARA TELEMÓVEIS ---- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .campaign-dates-section .container {
    flex-direction: column;
  }
}

/* Novo estilo para os passos */
.steps-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.step-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.step-card h3 {
  color: #e50914;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.step-card p {
  font-size: 1rem;
}
.step-card svg {
  height: 80px;
  margin-bottom: 1rem;
}
.step-arrow {
  font-size: 4rem;
  color: #e50914;
  align-self: center;
}
@media (max-width: 768px) {
  .steps-grid {
    flex-direction: column;
    align-items: center;
  }
  .step-arrow {
    transform: rotate(90deg);
  }
}

/* ---- FORMULÁRIO DE REGISTO (NOVA SECÇÃO) ---- */
      #productForm {
        max-width: 600px;
        margin: 3rem auto;
        padding: 2rem;
        background-color: #1a1a1a;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        text-align: left;
      }

      #productForm h2 {
        text-align: center;
        margin-bottom: 2rem;
        border-bottom: none;
        padding-bottom: 0;
      }
      #productForm div {
        margin-bottom: 1.5rem;
      }
      #productForm label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 700;
        color: #f4f4f4;
      }
      #productForm input[type="text"],
      #productForm input[type="email"],
      #productForm input[type="file"] {
        width: 100%;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #444;
        background-color: #2a2a2a;
        color: #f4f4f4;
        font-size: 1rem;
      }
      #productForm button[type="submit"] {
        display: block;
        width: 100%;
        background-color: #e50914;
        color: #fff;
        padding: 15px;
        border: none;
        border-radius: 5px;
        font-family: "Exo 2", sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        cursor: pointer;
        transition: background-color 0.3s ease;
      }
      #productForm button[type="submit"]:hover {
        background-color: #f61c27;
      }
      #responseMessage {
        margin-top: 1rem;
        padding: 10px;
        border-radius: 5px;
        text-align: center;
        font-weight: 700;
      }
      .success {
        background-color: #4caf50;
        color: #fff;
      }
      .error {
        background-color: #f44336;
        color: #fff;
      }

/* ---- RESPONSIVIDADE PARA TELEMÓVEIS ---- */
      @media (max-width: 768px) {
        .hero-content h1 {
          font-size: 3rem;
        }

        .hero-content p {
          font-size: 1.2rem;
        }

        h2 {
          font-size: 2rem;
        }

        .campaign-dates-section .container {
          flex-direction: column;
        }
        .steps-grid {
          flex-direction: column;
          align-items: center;
        }
        .step-arrow {
          transform: rotate(90deg);
        }
      }
