/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

.main-wrapper {
  padding: 5px;
}

.quiz-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

/* Título + Emoji */
.title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.2;
}

.card-emoji {
  font-size: 1.5rem;
}

/* Barra de Progresso */
.progress-container {
  width: 100%;
  background-color: #e6f4e9;
  height: 8px;
  border-radius: 8px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #2ecc71;
  width: 0%;
  transition: width 0.4s ease;
}

/* Questões */
#quiz {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.question {
  width: 100%;
  margin-bottom: 20px;
  text-align: left;
}

.question p {
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #34495e;
  line-height: 1.3;
  text-align: center;
}

.options {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options li {
  width: 100%;
}

.options input[type="radio"] {
  display: none;
}

.options label {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  border: 2px solid #2ecc71;
  background-color: #e8f5e8;
  color: #2c3e50;
  transition: all 0.2s ease-in-out;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
  word-wrap: break-word;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.options label:hover {
  border-color: #27ae60;
  background-color: #d5edd5;
  transform: translateY(-1px);
}

.options input[type="radio"]:checked + label {
  background-color: #2ecc71;
  color: #fff;
  border-color: #27ae60;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

/* Formulário de usuário */
.user-info-container {
  width: 100%;
  display: none;
  margin-top: 15px;
  background: #f0fdf4;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #d1fae5;
  flex: 1;
}

.capture-title {
  font-size: 1.3rem;
  color: #16a34a;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.capture-subtitle {
  font-size: 0.95rem;
  color: #333;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-group label {
  font-weight: bold;
  color: #2c3e50;
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
  outline: none;
  border-color: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.terms-checkbox-container {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
  gap: 8px;
}

.terms-checkbox-container input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.terms-checkbox-container label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
  cursor: pointer;
  flex: 1;
}

.terms-checkbox-container a {
  color: #27ae60;
  text-decoration: none;
}

.terms-checkbox-container a:hover {
  text-decoration: underline;
}

/* Botão principal */
.btn {
  width: 100%;
  background: #2ecc71;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 18px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.1s ease;
  margin-top: 15px;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn:hover:not(:disabled) {
  background: #27ae60;
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Rodapé - Aparece naturalmente após o conteúdo */
.footer {
  width: 100%;
  font-size: 0.75rem;
  color: #777;
  padding: 20px 15px;
  border-top: 1px solid #ecf0f1;
  line-height: 1.3;
  text-align: center;
  background: #fff;
}

.footer-links {
  margin-top: 6px;
  font-size: 0.75rem;
}

.footer-links a {
  color: #27ae60;
  text-decoration: none;
  margin: 0 4px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsividade para tablets */
@media (min-width: 768px) {
  .quiz-container {
    max-width: 90vw;
    padding: 20px;
  }
  
  .title {
    font-size: 1.3rem;
    gap: 8px;
  }
  
  .card-emoji {
    font-size: 1.6rem;
  }
  
  .question p {
    font-size: 1.1rem;
  }
  
  .options {
    gap: 10px;
  }
  
  .options label {
    font-size: 0.95rem;
    padding: 14px 16px;
    min-height: 55px;
  }
}

/* Responsividade para desktops */
@media (min-width: 1024px) {
  .quiz-container {
    max-width: 80vw;
    padding: 25px;
  }
  
  .title {
    font-size: 1.4rem;
  }
  
  .card-emoji {
    font-size: 1.8rem;
  }
  
  .question p {
    font-size: 1.2rem;
  }
  
  .options {
    gap: 12px;
  }
  
  .options label {
    font-size: 1rem;
    padding: 16px 18px;
    min-height: 60px;
  }
}

/* Telas muito baixas (landscape em celulares) */
@media (max-height: 500px) {
  .quiz-container {
    max-height: 85vh;
    padding: 8px;
  }
  
  .title {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .card-emoji {
    font-size: 1.1rem;
  }
  
  .progress-container {
    margin-bottom: 8px;
    height: 4px;
  }
  
  .question p {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  
  .options {
    gap: 6px;
  }
  
  .options label {
    font-size: 0.7rem;
    padding: 8px 6px;
  }
  
  .user-info-container {
    padding: 10px;
    margin-top: 8px;
  }
  
  .capture-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }
  
  .capture-subtitle {
    font-size: 0.7rem;
    margin-bottom: 10px;
  }
  
  .form-group {
    margin-bottom: 8px;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"] {
    padding: 6px;
    font-size: 0.8rem;
  }
  
  .terms-checkbox-container {
    margin: 6px 0;
  }
  
  .terms-checkbox-container label {
    font-size: 0.65rem;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    margin-top: 8px;
  }
  
  .footer {
    font-size: 0.6rem;
    padding: 10px 8px;
  }
}