* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(145deg, #f0f4f8 0%, #e2e8f0 100%);
  color: #1e293b;
  line-height: 1.5;
  padding: 24px;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.container:hover {
  box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.15);
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 40px 35px;
  text-align: center;
  color: white;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

header p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 8px;
  font-weight: 400;
}

header small {
  font-size: 0.8rem;
  opacity: 0.8;
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

form {
  padding: 40px;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 30px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
  display: inline-block;
  letter-spacing: -0.01em;
}

h2:first-of-type {
  margin-top: 0;
}

.question {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  transition: all 0.25s ease;
  border: 1px solid #e2e8f0;
}

.question:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.question p {
  font-weight: 600;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 16px;
}

.question label {
  display: inline-flex;
  align-items: center;
  margin: 0 20px 0 0;
  padding: 8px 16px;
  background: transparent;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #334155;
}

.question label:hover {
  background: #eef2ff;
  color: #4f46e5;
}

.question input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.question input[type="radio"]:checked {
  border-color: #4f46e5;
  background-color: #4f46e5;
  box-shadow: inset 0 0 0 3px white;
}

.question input[type="radio"]:focus {
  outline: none;
  ring: 2px solid #667eea;
}

button {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 48px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46a0 100%);
}

button:active {
  transform: translateY(0);
}

.result {
  margin: 20px 40px 40px 40px;
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  font-weight: 600;
  color: white;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result.hidden {
  display: none;
}

.result strong {
  font-size: 1.8rem;
  display: block;
  margin: 10px 0;
}

.result small {
  display: block;
  margin-top: 15px;
  font-size: 0.8rem;
  font-weight: normal;
  opacity: 0.9;
}

.result .profile {
  margin-top: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.result .profile strong {
  font-size: 1rem;
  display: inline-block;
  margin: 0;
}

/* Classes de resultado */
.result.very-low { background: linear-gradient(135deg, #e53e3e, #c53030); }
.result.low { background: linear-gradient(135deg, #ed8936, #dd6b20); }
.result.medium { background: linear-gradient(135deg, #4299e1, #3182ce); }
.result.medium-high { background: linear-gradient(135deg, #38b2ac, #319795); }
.result.high { background: linear-gradient(135deg, #48bb78, #38a169); }
.result.very-high { background: linear-gradient(135deg, #9f7aea, #805ad5); }
.result.extreme { background: linear-gradient(135deg, #2d3748, #1a202c); }

.footer {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
  background: transparent;
}

.footer-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 60px;
  font-size: 0.85rem;
  color: #475569;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.footer-card a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-card a:hover {
  color: #7c3aed;
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }
  
  form {
    padding: 24px;
  }
  
  header {
    padding: 30px 24px;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  .question {
    padding: 16px;
  }
  
  .question label {
    display: block;
    margin: 8px 0;
  }
  
  .result {
    margin: 20px 24px 30px 24px;
    padding: 20px;
  }
  
  .footer-card {
    margin: 0 16px;
    border-radius: 30px;
  }
}

@media (max-width: 480px) {
  .question label {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  .result strong {
    font-size: 1.4rem;
  }
}