/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000000 url("mobile.png") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  color: white;
  overflow-x: hidden;
}

/* Container Principal */
.container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.523);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(3, 142, 37, 0.3);
}

/* Header */
.header {
  background: #10846b;
  padding: 30px 20px;
  text-align: center;
  border-radius: 20px;
  border-bottom: 2px solid rgba(0, 255, 65, 0.3);
  position: relative;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #ffa517;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(35, 35, 35, 0.5);
}

.header p {
  color: #ccc;
  font-size: 16px;
}

.sound-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(221, 255, 0, 0.2);
  border: 2px solid rgba(0, 255, 65, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-toggle:hover {
  background: rgba(0, 255, 65, 0.3);
  border-color: #00ff41;
  transform: scale(1.1);
}

.sound-toggle.muted {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
}

.sound-toggle.muted:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: #ff0000;
}

/* Barra de Progresso */
.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffa517, #ffd817);
  transition: width 0.3s ease;
  width: 3.125%;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
}

/* Formulário */
.form-content {
  padding: 30px 20px 120px;
  min-height: calc(100vh - 200px);
}

.question-container {
  display: none;
  animation: fadeIn 0.5s ease;
}

.question-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  color: #ffa517;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.question-title {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 25px;
  line-height: 1.3;
}

/* Inputs */
input[type="text"],
input[type="url"],
input[type="email"],
textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(0, 255, 65, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #ffa517;
  box-shadow: 0 0 20px #10846a;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Checkboxes e Radios */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 12px;
  border: 2px solid rgba(0, 255, 65, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.checkbox-item:hover,
.radio-item:hover {
  border-color: #ffa517;
  background: rgba(0, 255, 65, 0.1);
}

.checkbox-item input,
.radio-item input {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  accent-color: #10846a;
}

.checkbox-item span,
.radio-item span {
  font-size: 16px;
  color: white;
}

/* Upload de Arquivos */
.file-upload {
  border: 2px dashed rgba(0, 255, 65, 0.3);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.file-upload:hover {
  border-color: #ffa517;
  background: rgba(0, 255, 65, 0.1);
}

.file-upload input {
  display: none;
}

.file-upload div {
  color: #ffa517;
  font-weight: 600;
  margin-bottom: 5px;
}

.file-upload-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Botões */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(45deg, #ffa517, #ffd817);
  color: black;
  box-shadow: 0 4px 15px rgba(255, 230, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 217, 0, 0.4);
}

.btn-secondary {
  background: #10846a;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: #0d5e4c;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Navegação */
.navigation {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  padding: 20px 30px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 255, 65, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.question-counter {
  color: #ffa517;
  font-weight: 600;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Mensagens */
.success-message,
.motivation-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
  backdrop-filter: blur(10px);
}

/* Overlay para garantir legibilidade quando há imagem de fundo */
.motivation-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.success-message.show,
.motivation-message.show {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.success-icon,
.motivation-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
  position: relative;
  z-index: 1;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.success-title,
.motivation-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffa517;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.success-text,
.motivation-text {
  font-size: 18px;
  color: #ffa517;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
  body {
    padding: 0;
    background: #00000;
  }

  .container {
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .header {
    padding: 40px 20px 30px;
  }

  .header h1 {
    font-size: 32px;
  }

  .form-content {
    padding: 30px 20px 140px;
    height: calc(100vh - 200px);
    overflow-y: auto;
  }

  .question-title {
    font-size: 20px;
  }

  .navigation {
    width: 90%;
    max-width: 400px;
    bottom: 30px;
  }

  .checkbox-group,
  .radio-group {
    gap: 12px;
  }

  .checkbox-item,
  .radio-item {
    padding: 15px;
  }

  input[type="text"],
  input[type="url"],
  input[type="email"],
  textarea {
    font-size: 16px;
    padding: 12px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* Muito pequeno */
@media (max-width: 375px) {
  .header h1 {
    font-size: 28px;
  }

  .question-title {
    font-size: 18px;
  }

  .form-content {
    padding: 20px 15px 140px;
  }

  .navigation {
    padding: 15px 20px;
    gap: 15px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* Animações adicionais */
@keyframes glow {
  0% {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  }
}

.container {
  animation: glow 3s ease-in-out infinite;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.7);
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .header {
    padding: 20px 15px;
  }

  .header h1 {
    font-size: 24px;
  }

  .sound-toggle {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .question-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 14px;
  }

  .navigation {
    padding: 15px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .question-counter {
    font-size: 12px;
  }
}

/* Mensagem de Sucesso */
.success-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.success-message.show {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.success-title {
  color: #00ff41;
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.success-text {
  color: #ccc;
  font-size: 18px;
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
}

/* Mensagem de Loading */
.loading-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.loading-message.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 255, 65, 0.3);
  border-top: 4px solid #00ff41;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 30px;
}

.loading-title {
  color: #00ff41;
  font-size: 28px;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.loading-text {
  color: #ccc;
  font-size: 16px;
  text-align: center;
  line-height: 1.6;
  max-width: 500px;
}

/* Mensagem de Erro */
.error-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.error-message.show {
  opacity: 1;
  visibility: visible;
}

.error-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: shake 0.5s ease-in-out;
}

.error-title {
  color: #ff4444;
  font-size: 28px;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.error-text {
  color: #ccc;
  font-size: 16px;
  text-align: center;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 30px;
}

/* Animações */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
