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

body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

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

.title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-transform: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.subtitle {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
  text-transform: none;
  font-weight: normal;
}

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

.progress-container {
  width: 100%;
  background-color: #e6f4e9;
  height: 12px;
  border-radius: 8px;
  margin-bottom: 25px;
  overflow: hidden;
}

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

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

.question p {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2c3e50;
  line-height: 1.4;
}

.options {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.options li {
  margin-bottom: 0;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

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

.options label {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  border: 2px solid #2ecc71;
  background-color: #e6f4e9; 
  color: #333;
  transition: all 0.3s ease;
  line-height: 1.3;
  text-align: center;
}

.options label:hover {
  background-color: #d5eddc;
  transform: scale(1.02);
}

.options input[type="radio"]:checked + label {
  background-color: #2ecc71;
  color: #fff;
  border-color: #27ae60;
  transform: scale(1.05);
}

.user-info-container {
  width: 100%;
  display: none;
  margin-top: 30px;
  background: #e6f4e9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: relative;
}

.capture-title {
  font-size: 1.5rem;
  color: #2ecc71;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

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

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

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

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #2ecc71;
  box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

.security-message {
  font-size: 0.8rem;
  color: #2ecc71;
  text-align: center;
  font-weight: bold;
  margin-top: 5px;
}

.btn {
  width: 100%;
  background: #2ecc71;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s ease;
  margin-top: 15px;
  text-align: center;
}

.btn:hover:not(:disabled) {
  background: #27ae60;
  transform: scale(1.01);
}

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
} 

/* Responsividade: no mobile, 1 coluna */
@media (max-width: 640px) {
  .options {
    grid-template-columns: 1fr;
  }
}

/* Desktop: limitar largura dos itens ~200px e centralizar */
@media (min-width: 768px) {
  .options li {
    width: 200px;
    justify-self: center; /* centraliza cada item na coluna */
  }
}

/* Overlay de carregamento */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e6f4e9;
  border-top-color: #2ecc71;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loading-text {
  color: #2c3e50;
  font-size: 0.95rem;
}

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