/* CTXR — eigen subdomein 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; }

/* stappenplan — genummerde punten op een route-lijn (zelfde vormtaal als de
   route/lanes in het Waarom CTXR-artikel): gestippelde lijn, de afgelegde
   weg wordt roze (--progress uit request.js), de huidige stap pulseert. */
.wizard-dots { --progress: 0%; position: relative; display: flex; justify-content: space-between; align-items: flex-start; list-style: none; margin: 0 0 3em; padding: 0; }
.wizard-dots::before { content: ''; position: absolute; left: 1.1em; right: 1.1em; top: 1.1em; border-top: 4px dotted #ff0099; opacity: 0.6; }
.wizard-dots::after  { content: ''; position: absolute; left: 1.1em; top: 1.1em; width: calc((100% - 2.2em) * var(--progress) / 100%); max-width: calc(100% - 2.2em); border-top: 4px solid #ff0099; transition: width 0.4s ease; }
.wizard-dots li { position: relative; z-index: 1; flex: 1 1 0; display: flex; justify-content: center; }
.wizard-dots li:first-child { justify-content: flex-start; }
.wizard-dots li:last-child  { justify-content: flex-end; }
.wizard-node { display: flex; flex-direction: column; align-items: center; gap: 0.45em; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
.wizard-node:not([disabled]) { cursor: pointer; }
.wizard-num { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; border: 3px solid #ff0099; background: var(--color-background); color: #ff0099; font-weight: 800; font-size: 0.95em; line-height: 1; transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s; }
.wizard-label { font-size: 0.72em; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.55; white-space: nowrap; transition: opacity 0.3s; }
.wizard-dots li.is-done .wizard-num    { background: #ff0099; color: #fff; }
.wizard-dots li.is-done .wizard-label  { opacity: 0.85; }
.wizard-dots li.is-current .wizard-num { background: #ff0099; border-color: #ff0099; color: #fff; transform: scale(1.15); box-shadow: 0 0 0 0 rgba(255, 0, 153, 0.45); animation: nodePulse 1.6s ease-out infinite; }
.wizard-dots li.is-current .wizard-label { opacity: 1; }
.wizard-dots.is-finished .wizard-num { background: #ff0099; border-color: #ff0099; color: #fff; }
.wizard-node:not([disabled]):hover .wizard-num { transform: scale(1.08); }
.wizard-node:focus-visible .wizard-num { outline: 3px solid #ff0099; outline-offset: 3px; }
@keyframes nodePulse { to { box-shadow: 0 0 0 0.7em rgba(255, 0, 153, 0); } }
@media (prefers-reduced-motion: reduce) { .wizard-dots li.is-current .wizard-num { animation: none; } }

.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 — roze knoppen met witte tekst (op verzoek) */
.actions { display: flex; justify-content: space-between; align-items: center; gap: 1em; margin-top: 3em; }
.actions .cta { border: 0; }
.page-request .cta, .page-request .cta span { color: #fff; }
.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; }
	.wizard-label { display: none; }
	.wizard-dots li.is-current .wizard-label { display: block; position: absolute; top: 2.6em; left: 50%; transform: translateX(-50%); }
	.wizard-dots li.is-current { overflow: visible; }
	.wizard-dots { margin-bottom: 3.2em; }
	.actions { flex-direction: column-reverse; align-items: stretch; }
	.actions > span:empty { display: none; }
}
