/* CTXR — space aanvragen (SESSION-onboard). Leunt op de tokens van site.css
   (--color-text / --color-background / .cta / .button); alleen geladen op
   de aanvraagpagina. Eén vraag per stap, grote vraag, kaal invoerveld. */

.page-request { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
.wizard { width: 100%; max-width: 40em; margin: 0 auto; }

.wizard-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* stappen-indicator */
.wizard-dots { display: flex; gap: 0.5em; list-style: none; margin: 0 0 3em; padding: 0; }
.wizard-dots li { width: 0.5em; height: 0.5em; background: var(--color-text); opacity: 0.25; transition: opacity 0.3s; }
.wizard-dots li.is-done, .wizard-dots li.is-current { opacity: 1; }

.step { display: none; }
.step.is-active { display: block; animation: stepIn 0.3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(0.5em); } to { opacity: 1; transform: none; } }

/* de vraag — woord voor woord */
.question { font-size: clamp(1.75em, 4.5vw, 2.5em); line-height: 1.2; letter-spacing: -0.02em; margin: 0; text-align: left; }
.question .word { display: inline-block; opacity: 0; transform: translateY(0.2em); animation: wordIn 0.25s ease forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.question-sub { margin: 1em 0 0; max-width: 32em; opacity: 0.8; }
.intro { font-size: 1.15em; line-height: 1.6; margin: 1.5em 0 0; max-width: 34em; }
.intro strong { font-weight: 700; }

/* invoer — kaal, groot */
.inputs { margin-top: 2.5em; }
.inputs input[type="text"], .inputs input[type="email"] {
	width: 100%; font: inherit; font-size: clamp(1.5em, 3.5vw, 2em); font-weight: 700; letter-spacing: -0.01em;
	color: var(--color-text); background: none; border: 0; border-bottom: var(--color-text) 2px solid; outline: none; padding: 0.25em 0; border-radius: 0;
}
.inputs input::placeholder { color: var(--color-text); opacity: 0.3; }
.inputs input:focus { border-bottom-color: var(--color-primary); }

.slug-preview { margin: 0.75em 0 0; opacity: 0.8; }
.slug-preview strong { opacity: 1; }
.field-status { min-height: 1.5em; margin: 0.5em 0 0; font-weight: 700; font-size: 0.9em; }
.field-status.is-ok  { color: var(--color-primary); }
.field-status.is-err { opacity: 0.7; }
.field-error { min-height: 1.5em; margin: 0.5em 0 0; font-size: 0.9em; font-weight: 700; color: var(--color-primary); }
.field-error:empty { display: none; }

/* plan-keuze */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5em, 1fr)); gap: 1em; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 0.35em; padding: 1em; border: var(--color-text) 2px solid; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(input:checked) { background: var(--color-text); color: var(--color-background); }
.plan-card:has(input:focus-visible) { outline: var(--color-primary) 3px solid; outline-offset: 2px; }
.plan-name { font-weight: 800; font-size: 1.1em; }
.plan-price { font-weight: 700; }
.plan-price small { font-weight: 500; font-size: 0.75em; opacity: 0.8; }
.plan-points { margin: 0.5em 0 0; padding-left: 1.1em; font-size: 0.85em; line-height: 1.5; }

.language-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75em 1.5em; margin-top: 2em; }
.language-row label { font-weight: 700; }
.language-row select { font: inherit; font-weight: 700; color: var(--color-text); background: var(--color-background); border: var(--color-text) 2px solid; padding: 0.6em 1em; border-radius: 0; }

/* akkoord */
.check-row { display: flex; align-items: flex-start; gap: 1em; cursor: pointer; font-size: 1.1em; line-height: 1.5; }
.check-row input { width: 1.5em; height: 1.5em; flex: 0 0 auto; margin: 0.1em 0 0; accent-color: var(--color-text); }
.check-row a { text-decoration: underline; }

/* knoppen */
.actions { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-top: 3em; }
.actions .cta { border: 0; }
.actions .cta[disabled] { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.actions .button { border: var(--color-text) 2px solid; background: none; }

@media (max-width: 768px) {
	.page-request { min-height: auto; }
	.wizard-dots { margin-bottom: 2em; }
	.actions { flex-direction: column-reverse; align-items: stretch; }
	.actions > span:empty { display: none; }
}
