:root{
  --bg:#ffffff;

  /* cards */
  --card:#ffffff;
  --card2:#ffffff;

  /* text */
  --text:#0f172a;        /* bijna zwart */
  --muted:#475569;       /* grijs */
  --line:#e2e8f0;        /* lichtgrijze rand */

  /* accents */
  --accent:#2563eb;
  --accent2:#1d4ed8;

  --good:#16a34a;
}

*{ box-sizing:border-box; }

html, body{
  height:auto;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg) !important;
  color:var(--text);
}

/* Container houdt alles compact zodat er geen enorme lege onderkant ontstaat */
.container{
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.header{ margin-bottom: 14px; }

.brand{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.logo{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #93c5fd);
  color:#ffffff;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 25px rgba(37,99,235,.18);
}

h1{
  margin:0;
  font-size: 24px;
  letter-spacing: -0.2px;
}

.sub{
  margin: 6px 0 0;
  color: var(--muted);
}

/* Card */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(15,23,42,.08);
}

.hidden{ display:none; }

/* Topbar / progress */
.topbar{
  display:flex;
  gap: 16px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.stepMeta{
  display:flex;
  gap: 8px;
  align-items:center;
  color: var(--muted);
  font-size: 14px;
}

.stepText{ color: var(--text); font-weight: 800; }
.dot{ opacity:.7; }
.stepHint{ color: var(--muted); }

.progressWrap{
  display:flex;
  gap: 10px;
  align-items:center;
  min-width: 240px;
}

.progressTrack{
  height: 10px;
  width: 200px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  overflow:hidden;
}

.progressBar{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  width: 0%;
  transition: width .25s ease;
}

.progressLabel{
  font-size: 12px;
  color: var(--muted);
  min-width: 34px;
  text-align:right;
}

.divider{
  height:1px;
  background: var(--line);
  margin: 12px 0 14px;
}

.question{
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.2px;
}

/* Options */
.options{
  display:grid;
  gap: 10px;
}

.optionBtn{
  text-align:left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: transform .06s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.optionBtn:hover{
  border-color: #ffd200;
  background: linear-gradient(90deg, #ffd200, #ffea70);
  box-shadow: 0 6px 18px rgba(255,210,0,.25);
  color: #111; /* zorgt dat tekst goed leesbaar blijft */
}

.optionBtn:active{
  transform: translateY(1px);
}

/* Actions / buttons */
.actions{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 14px;
}

.btn{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(29,78,216,.25);
  background: var(--accent2);
  color: #ffffff;
  cursor:pointer;
  font-weight: 700;
}

.btn:hover{ filter: brightness(1.03); }
.btn:active{ transform: translateY(1px); }

.btn.secondary{
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

.btn.ghost{
  margin-left:auto;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 600;
}

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

/* Results */
.resultTop{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.resultSummary{
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.productList{
  display:grid;
  gap: 10px;
}

.product{
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(15,23,42,.06);
}

.productHead{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.badge{
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f8fafc;
}

.productName{
  font-weight: 900;
}

.productNotes{
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.productLink{
  margin-top: 8px;
}

a{
  color: var(--accent2);
  text-decoration:none;
}
a:hover{ text-decoration: underline; }

.footer{
  margin-top: 14px;
  color: var(--muted);
}

/* Extra: voorkomt “rare” extra hoogte in sommige embeds */
#app, main{
  min-height:auto !important;
}
