
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Poppins:wght@400;500;600&display=swap');

:root {
  --primary: #008C45;
  --secondary: #F1C40F;
  --dark: #2C3E50;
  --light: #ECF0F1;
  --bg-pattern: #e8f5e9;
}

* { box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-pattern);
  background-image: radial-gradient(#a5d6a7 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--dark);
}

header {
  background: linear-gradient(135deg, var(--primary), #00563B);
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.logo { font-family: 'Comic Neue', cursive; font-size: 1.3rem; font-weight: bold; display:flex; align-items:center; gap:8px; }
.small-muted { font-size:.9rem; font-weight:600; opacity:.9; }

.container {
  max-width: 850px;
  margin: 30px auto;
  padding: 35px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  min-height: 600px;
  position: relative;
}

/* Progress */
.progress-header { margin-bottom: 25px; }
.progress-info { display:flex; justify-content:space-between; font-weight:600; font-size:.9rem; margin-bottom: 8px; color:#7f8c8d; }
.progress-track { height: 12px; background:#dfe6e9; border-radius:10px; overflow:hidden; }
.progress-fill { height:100%; background: var(--secondary); width:0%; transition: width .4s ease; border-radius:10px; }

/* Cards */
.question-card { display:none; animation: fadeIn .5s ease; }
.question-card.active { display:block; }
@keyframes fadeIn { from{ opacity:0; transform: translateY(10px);} to{opacity:1; transform: translateY(0);} }

.visual-header { text-align:center; font-size: 4.5rem; margin-bottom: 15px; animation: float 3s ease-in-out infinite; filter: drop-shadow(0 5px 3px rgba(0,0,0,0.1)); }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

.question-text { font-size:1.15rem; font-weight:500; text-align:justify; line-height:1.6; margin-bottom:25px; color:#2c3e50; }

/* Options */
.options-grid { display:grid; gap: 12px; }
.option-item {
  display:flex; align-items:center; padding: 15px 20px;
  background:#f8f9fa; border:2px solid #e0e0e0; border-radius:12px;
  cursor:pointer; transition: all .2s; font-size:.95rem;
}
.option-item:hover { background:#e8f5e9; border-color: var(--primary); transform: translateX(5px); }
.option-item input { margin-right: 15px; transform: scale(1.3); accent-color: var(--primary); }

/* Matching */
.match-container { display:flex; justify-content:space-between; position:relative; padding:10px 0; min-height:350px; }
.match-column { width:45%; display:flex; flex-direction:column; justify-content:space-between; z-index:2; }
.match-box {
  background:white; border:2px solid #bdc3c7; border-radius:12px;
  padding:10px; margin-bottom:15px; cursor:pointer; text-align:center;
  transition:.2s; display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:80px; box-shadow: 0 3px 0 #bdc3c7;
}
.match-box:hover { border-color: var(--primary); transform: translateY(-2px); }
.match-box.selected { border-color: var(--primary); background-color:#dcedc8; box-shadow: 0 0 0 3px rgba(0,140,69,0.3); }
.match-box.matched { border-color:#27ae60; background-color:#2ecc71; color:white; opacity:.85; pointer-events:none; box-shadow:none; }

.match-emoji { font-size: 2rem; margin-bottom:5px; }
.match-text { font-size:.85rem; font-weight:600; line-height:1.3; }

.svg-overlay { position:absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:1; }
line { stroke: var(--primary); stroke-width:4; stroke-linecap:round; stroke-dasharray:8; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: 1000; } }

/* Buttons */
.nav-wrapper { display:flex; justify-content:space-between; margin-top: 40px; padding-top: 20px; border-top: 1px dashed #ccc; gap: 12px; flex-wrap: wrap; }
.btn {
  padding: 12px 30px; border:none; border-radius: 50px; font-weight:600; cursor:pointer; font-size:1rem;
  color:white; background: var(--primary); box-shadow: 0 4px 0 #00693e; transition:.1s;
}
.btn:active { transform: translateY(4px); box-shadow:none; }
.btn-grey { background:#95a5a6; box-shadow: 0 4px 0 #7f8c8d; }
.btn-orange { background:#e67e22; box-shadow: 0 4px 0 #d35400; }

.form-input { width:100%; padding: 15px; margin: 10px 0; border: 2px solid #ddd; border-radius: 10px; font-size: 1rem; }

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  padding: 18px;
  margin: 16px 0;
}
.badge { display:inline-block; padding: 4px 10px; border-radius: 999px; background:#e8f5e9; border:1px solid #c8e6c9; font-size:.85rem; color:#1b5e20; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
