:root {
  --coral: #f97316;
  --coral-hover: #ea580c;
  --white: #ffffff;
  --soft-white: #f9fafb;
  --mint: #6ee7b7;
  --slate: #475569;
  --slate-dark: #334155;
  --slate-light: #94a3b8;
  --radius: 20px;
  --font: 'DM Sans', sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--soft-white);
  color: var(--slate-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(rgba(110, 231, 183, 0.4) 2px, transparent 2px);
  background-size: 40px 40px;
  background-position: -19px -19px;
  position: relative;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.screen {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.hidden {
  display: none !important;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 10px 40px rgba(71, 85, 105, 0.08), 0 1px 3px rgba(71, 85, 105, 0.05);
  border: 2px solid rgba(110, 231, 183, 0.2);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 8px;
  background: linear-gradient(90deg, var(--coral), var(--mint));
}

.badge {
  display: inline-block;
  background: rgba(110, 231, 183, 0.2);
  color: #059669;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--slate-dark);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: normal;
}

.intro-card p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid rgba(71, 85, 105, 0.1);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.05);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media(min-width: 600px) {
  .btn { width: auto; min-width: 200px; }
  .submit-btn { width: 100%; }
}

.primary-btn {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.primary-btn:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

.primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Progress */
.progress-container {
  margin-bottom: 48px;
}

.progress-bar {
  height: 10px;
  background: var(--soft-white);
  border-radius: 5px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.progress-fill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--mint);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-icons {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
}

.step-icon {
  font-size: 1.75rem;
  opacity: 0.3;
  filter: grayscale(100%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.9);
}

.step-icon.active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.2);
}

/* Question */
#question-text {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--slate-dark);
  margin-bottom: 32px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.answers-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.answer-btn {
  background: var(--soft-white);
  border: 2px solid rgba(71, 85, 105, 0.1);
  padding: 20px 24px;
  border-radius: 14px;
  font-size: 1.125rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--slate-dark);
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.answer-btn:hover {
  border-color: var(--mint);
  background: var(--white);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(110, 231, 183, 0.15);
}

.question-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed rgba(71, 85, 105, 0.15);
}

.help-link {
  color: var(--slate-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.help-link::before {
  content: '💡';
  font-size: 1.1rem;
}

.help-link:hover {
  color: var(--coral);
}

/* Form */
.form-desc {
  font-size: 1.125rem;
  color: var(--slate);
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--slate-dark);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1.05rem;
  border: 2px solid rgba(71, 85, 105, 0.15);
  border-radius: 12px;
  background: var(--soft-white);
  transition: all 0.3s ease;
  color: var(--slate-dark);
}

.form-group input::placeholder {
  color: var(--slate-light);
}

.form-group input:focus {
  outline: none;
  border-color: var(--mint);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.2);
}

/* Result */
.result-card {
  text-align: center;
}

#score-display {
  font-size: 5rem;
  font-weight: 800;
  color: var(--coral);
  margin: 24px 0;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

#result-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--slate-dark);
}

#result-desc {
  font-size: 1.125rem;
  color: var(--slate);
  margin-bottom: 40px;
  line-height: 1.6;
}

.resource-list {
  background: rgba(110, 231, 183, 0.1);
  padding: 32px;
  border-radius: 16px;
  text-align: left;
  border: 1px solid rgba(110, 231, 183, 0.3);
}

.resource-list h3 {
  font-size: 1.25rem;
  color: var(--slate-dark);
  margin-bottom: 20px;
  font-weight: 800;
}

.resource-list ul {
  list-style: none;
}

.resource-list li {
  margin-bottom: 12px;
}
.resource-list li:last-child {
  margin-bottom: 0;
}

.resource-list a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 12px;
  text-decoration: none;
  color: var(--slate-dark);
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(71,85,105,0.08);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.resource-list a:hover {
  transform: translateX(6px);
  border-color: var(--mint);
  color: var(--coral);
  box-shadow: 0 4px 12px rgba(110, 231, 183, 0.15);
}

.error-msg {
  background: #fee2e2;
  color: #b91c1c;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #fca5a5;
}

#wbx-powered-by-slot {
  margin-top: auto;
  padding-top: 40px;
}

@media(max-width: 600px) {
  .card { padding: 32px 24px; }
  .title { font-size: 2.25rem; }
  #score-display { font-size: 4rem; }
}