
.af-q, .af-rod, .af-valgfrit {
    --af-bg: #f5f5f7; --af-graa: #86868b; --af-felt: #d2d2d7; --af-tekst: #1d1d1f;
    --af-streg: #e5e5ea; --af-guld: #f5b301; --af-lilla: #6C63FF; --af-roed: #d70015;
}
.af-q *, .af-q *::before, .af-q *::after { box-sizing: border-box; }
.af-q { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.af-spm { font-size: 16px; font-weight: 600; padding: 0; margin: 0 0 12px; line-height: 1.35; overflow-wrap: anywhere; }
.af-valgfrit { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--af-bg); color: var(--af-graa); font-size: 12px; font-weight: 500; vertical-align: 2px; }
.af-chips, .af-janej { display: flex; flex-wrap: wrap; gap: 8px; }
.af-chip, .af-tal, .af-stjerne { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.af-chip input, .af-tal input, .af-stjerne input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af-chip span {
    display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
    border: 1px solid var(--af-felt); background: #fff; font-size: 15px; font-weight: 500; line-height: 1.2;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.af-janej .af-chip span { min-width: 88px; justify-content: center; }
.af-chip input:checked + span { background: var(--af-tekst); border-color: var(--af-tekst); color: #fff; }
.af-chip input:focus-visible + span, .af-tal input:focus-visible + span { box-shadow: 0 0 0 3px rgba(108, 99, 255, .35); }
.af-stjerner { display: flex; gap: 4px; }
.af-stjerne span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.af-stjerne svg { width: 34px; height: 34px; fill: var(--af-streg); transition: fill .15s ease; }
.af-stjerne.er-fyldt svg { fill: var(--af-guld); }
.af-stjerne input:focus-visible + span { box-shadow: 0 0 0 3px rgba(108, 99, 255, .35); }
.af-skala { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.af-tal span {
    display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--af-felt);
    background: #fff; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.af-tal input:checked + span { background: var(--af-tekst); border-color: var(--af-tekst); color: #fff; }
.af-skala-ord { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--af-graa); }
.af-tekst { width: 100%; display: block; border: 1px solid var(--af-felt); border-radius: 16px; background: #fff; padding: 13px 15px; font-size: 16px; line-height: 1.45; resize: vertical; }
.af-tekst:focus { outline: none; border-color: var(--af-lilla); box-shadow: 0 0 0 4px rgba(108, 99, 255, .14); }
.af-fejl { color: var(--af-roed); font-size: 14px; font-weight: 500; margin: 8px 0 0; }
.har-fejl .af-spm { color: var(--af-roed); }

