/* Relayout Forms – front-end styles. Deliberately light: inherit the theme's fonts and colours. */
.rlf-wrap { max-width: 100%; }
.rlf-form { display: block; }
.rlf-page[hidden], .rlf-field[hidden], .rlf-display[hidden], .rlf-error[hidden] { display: none !important; }
.rlf-field { margin: 0 0 1.25em; }
.rlf-label, .rlf-group legend { display: block; font-weight: 600; margin: 0 0 .35em; padding: 0; }
.rlf-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.rlf-field input[type="text"], .rlf-field input[type="email"], .rlf-field input[type="tel"], .rlf-field input[type="url"],
.rlf-field input[type="number"], .rlf-field input[type="password"], .rlf-field input[type="date"], .rlf-field input[type="time"],
.rlf-field select, .rlf-field textarea { width: 100%; max-width: 32em; box-sizing: border-box; padding: .5em .6em; font: inherit; }
.rlf-field input[type="range"] { width: 100%; max-width: 32em; }
.rlf-opt { display: block; margin: .25em 0; font-weight: 400; }
.rlf-opt input { margin-right: .4em; }
.rlf-help { margin: .3em 0 0; font-size: .875em; opacity: .75; }
.rlf-error { margin: .3em 0 0; color: #b32d2e; font-size: .9em; }
.rlf-field [aria-invalid="true"] { outline: 2px solid #b32d2e; outline-offset: 1px; }
.rlf-req { color: #b32d2e; }
.rlf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rlf-progress { font-weight: 600; margin: 0 0 1em; }
.rlf-nav { display: flex; gap: .5em; margin-top: 1em; }
.rlf-btn { cursor: pointer; padding: .6em 1.2em; font: inherit; }
.rlf-btn[hidden] { display: none; }
.rlf-btn:disabled { cursor: progress; opacity: .6; }
.rlf-status { margin-top: 1em; min-height: 1.4em; }
.rlf-status--error { color: #b32d2e; }
.rlf-done .rlf-status { font-weight: 600; padding: 1em; border: 1px solid currentColor; }
.rlf-notice { padding: .6em .8em; background: #fff8e5; border-left: 4px solid #dba617; color: #3c3a2e; font-size: .9em; }
.rlf-noscript { color: #b32d2e; }
@media (prefers-reduced-motion: reduce) { .rlf-form * { transition: none !important; } }
.rlf-files{list-style:none;margin:.4em 0 0;padding:0}
.rlf-files li{display:flex;flex-wrap:wrap;gap:.4em;align-items:baseline;padding:.25em 0}
.rlf-file--error .rlf-file-status{color:#b32d2e}
.rlf-file--busy .rlf-file-status{opacity:.7}
.rlf-file-remove{background:none;border:0;padding:0;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.rlf-quiz-result, .rlf-poll-result { margin-top: 1em; padding: 1em; border: 1px solid currentColor; }
.rlf-quiz-verdict { font-weight: 600; margin: .3em 0; }
.rlf-quiz-review { padding-left: 1.4em; }
.rlf-quiz-review li { margin: .6em 0; }
.rlf-quiz-review .is-wrong .rlf-quiz-mark { color: #b32d2e; }
.rlf-poll-options { list-style: none; margin: 0; padding: 0; }
.rlf-poll-options li { margin: .6em 0; }
.rlf-bar { display: block; height: .6em; margin-top: .25em; background: rgba(127, 127, 127, .25); }
.rlf-bar-fill { display: block; height: 100%; background: currentColor; }

/* ---- polish: consistent controls, focus, buttons, states (colours inherit from the theme; override --rlf-accent to match a brand) ---- */
.rlf-form { --rlf-accent: #2563eb; --rlf-border: rgba(127, 127, 127, .55); --rlf-radius: 6px; max-width: 42em; }
.rlf-field input[type="text"], .rlf-field input[type="email"], .rlf-field input[type="tel"], .rlf-field input[type="url"],
.rlf-field input[type="number"], .rlf-field input[type="password"], .rlf-field input[type="date"], .rlf-field input[type="time"],
.rlf-field select, .rlf-field textarea { border: 1px solid var(--rlf-border); border-radius: var(--rlf-radius); background-color: transparent; color: inherit; min-height: 2.7em; line-height: 1.4; box-shadow: none; }
.rlf-field textarea { min-height: 7em; resize: vertical; }
.rlf-field input:focus-visible, .rlf-field select:focus-visible, .rlf-field textarea:focus-visible, .rlf-btn:focus-visible { outline: 2px solid var(--rlf-accent); outline-offset: 2px; border-color: var(--rlf-accent); }
.rlf-opt { display: flex; align-items: center; gap: .5em; padding: .15em 0; }
.rlf-opt input { margin: 0; accent-color: var(--rlf-accent); width: 1.1em; height: 1.1em; }
.rlf-btn { border: 1px solid var(--rlf-border); border-radius: var(--rlf-radius); background: transparent; color: inherit; font-weight: 600; min-height: 2.7em; }
.rlf-btn:hover:not(:disabled) { border-color: var(--rlf-accent); }
.rlf-submit, .rlf-next { background: var(--rlf-accent); border-color: var(--rlf-accent); color: #fff; }
.rlf-submit:hover:not(:disabled), .rlf-next:hover:not(:disabled) { filter: brightness(.92); }
.rlf-help { opacity: .7; }
.rlf-error { display: flex; gap: .35em; align-items: baseline; }
.rlf-error:not([hidden])::before { content: "\26A0"; }
.rlf-status--error { padding: .6em .8em; border-left: 4px solid #b32d2e; background: rgba(179, 45, 46, .08); }
.rlf-done .rlf-status { border: 0; border-left: 4px solid #1a7f37; background: rgba(26, 127, 55, .1); border-radius: var(--rlf-radius); font-weight: 600; }
.rlf-progress { position: relative; height: .45em; border-radius: 999px; background: rgba(127, 127, 127, .25); overflow: hidden; font-size: 0; }
.rlf-progress-bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--rlf-pct, 0%); border-radius: inherit; background: var(--rlf-accent); }
.rlf-opt-text { display: flex; flex-direction: column; min-width: 0; }
.rlf-opt-desc { font-size: .875em; font-weight: 400; opacity: .75; }
.rlf-field--cards .rlf-group > .rlf-help { margin: 0 0 .6em; }
.rlf-quiz-result, .rlf-poll-result { border-radius: var(--rlf-radius); border-color: var(--rlf-border); }
.rlf-bar { border-radius: 999px; }
@media (max-width: 600px) { .rlf-field input, .rlf-field select, .rlf-field textarea { max-width: 100% !important; } .rlf-nav { flex-wrap: wrap; } .rlf-btn { flex: 1 1 8em; } }
@media (prefers-reduced-motion: no-preference) { .rlf-btn, .rlf-field input, .rlf-field select, .rlf-field textarea { transition: border-color .15s, box-shadow .15s, filter .15s; } .rlf-progress-bar, .rlf-progress-bar::before { transition: width .3s ease; } }
@media (forced-colors: active) { .rlf-progress-bar { background: Highlight; } }

/* =====================================================================================================
   Form styles. A form carries rlf-style--NAME; the brand colour can be replaced per form with the
   "accent" setting (printed as --rlf-accent). Styles keep text/background contrast high and honour
   prefers-reduced-motion and forced-colors. No external fonts or images are loaded.
   ===================================================================================================== */

/* shared hooks the styles below set */
.rlf-form { --rlf-field-bg: transparent; --rlf-on-accent: #fff; }
.rlf-field input[type="text"], .rlf-field input[type="email"], .rlf-field input[type="tel"], .rlf-field input[type="url"],
.rlf-field input[type="number"], .rlf-field input[type="password"], .rlf-field input[type="date"], .rlf-field input[type="time"],
.rlf-field select, .rlf-field textarea { background-color: var(--rlf-field-bg); }
.rlf-submit, .rlf-next { color: var(--rlf-on-accent); }

/* ---- classic: the neutral default, nothing added ---- */

/* ---- modern: a soft card ---- */
.rlf-style--modern { --rlf-radius: 12px; --rlf-border: transparent; --rlf-field-bg: #f1f4f9; --rlf-accent: #4f46e5; background: #fff; color: #1f2937; padding: 28px; border-radius: 18px; box-shadow: 0 12px 40px rgba(31, 41, 55, .12); }
.rlf-style--modern .rlf-field input[type="text"], .rlf-style--modern .rlf-field input[type="email"], .rlf-style--modern .rlf-field input[type="tel"], .rlf-style--modern .rlf-field input[type="url"],
.rlf-style--modern .rlf-field input[type="number"], .rlf-style--modern .rlf-field input[type="password"], .rlf-style--modern .rlf-field input[type="date"], .rlf-style--modern .rlf-field input[type="time"],
.rlf-style--modern .rlf-field select, .rlf-style--modern .rlf-field textarea { border: 2px solid transparent; color: #1f2937; }
.rlf-style--modern .rlf-field input:focus, .rlf-style--modern .rlf-field select:focus, .rlf-style--modern .rlf-field textarea:focus { background: #fff; border-color: var(--rlf-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rlf-accent) 20%, transparent); outline: none; }
.rlf-style--modern .rlf-label, .rlf-style--modern .rlf-group legend { font-size: .9em; letter-spacing: .01em; color: #374151; }
.rlf-style--modern .rlf-btn { border-radius: 999px; padding: .7em 1.6em; border-color: #d1d5db; color: #374151; }
.rlf-style--modern .rlf-submit, .rlf-style--modern .rlf-next { border: 0; color: #fff; background: linear-gradient(135deg, var(--rlf-accent), color-mix(in srgb, var(--rlf-accent) 65%, #ec4899)); box-shadow: 0 6px 16px color-mix(in srgb, var(--rlf-accent) 40%, transparent); }
.rlf-style--modern .rlf-help { color: #6b7280; opacity: 1; }
.rlf-style--modern .rlf-opt input { accent-color: var(--rlf-accent); }

/* ---- futuristic: dark glass, neon edges, chamfered corners ---- */
.rlf-style--futuristic {
	--rlf-accent: #00e5ff; --rlf-accent2: #ff2bd6; --rlf-border: rgba(0, 229, 255, .35); --rlf-radius: 2px; --rlf-field-bg: rgba(255, 255, 255, .04); --rlf-on-accent: #031018;
	position: relative; color: #e6f1ff; padding: 32px 28px; border-radius: 4px;
	background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 43, 214, .16), transparent 60%), radial-gradient(900px 400px at 0% 110%, rgba(0, 229, 255, .14), transparent 55%), #070b1d;
	border: 1px solid var(--rlf-border);
	box-shadow: 0 0 0 1px rgba(0, 229, 255, .08) inset, 0 0 48px rgba(0, 229, 255, .14), 0 20px 60px rgba(0, 0, 0, .45);
	clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.rlf-style--futuristic::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.rlf-style--futuristic > * { position: relative; }
.rlf-style--futuristic .rlf-label, .rlf-style--futuristic .rlf-group legend { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; text-transform: uppercase; letter-spacing: .12em; font-size: .78em; font-weight: 600; color: color-mix(in srgb, var(--rlf-accent) 75%, #fff); }
.rlf-style--futuristic .rlf-field input[type="text"], .rlf-style--futuristic .rlf-field input[type="email"], .rlf-style--futuristic .rlf-field input[type="tel"], .rlf-style--futuristic .rlf-field input[type="url"],
.rlf-style--futuristic .rlf-field input[type="number"], .rlf-style--futuristic .rlf-field input[type="password"], .rlf-style--futuristic .rlf-field input[type="date"], .rlf-style--futuristic .rlf-field input[type="time"],
.rlf-style--futuristic .rlf-field select, .rlf-style--futuristic .rlf-field textarea { color: #f4f9ff; border: 1px solid rgba(0, 229, 255, .3); border-left: 3px solid var(--rlf-accent); caret-color: var(--rlf-accent); color-scheme: dark; }
.rlf-style--futuristic .rlf-field input::placeholder, .rlf-style--futuristic .rlf-field textarea::placeholder { color: rgba(230, 241, 255, .5); }
.rlf-style--futuristic .rlf-field select option { color: #0b1020; background: #fff; }
.rlf-style--futuristic .rlf-field input:focus, .rlf-style--futuristic .rlf-field select:focus, .rlf-style--futuristic .rlf-field textarea:focus { outline: none; border-color: var(--rlf-accent); box-shadow: 0 0 0 1px var(--rlf-accent), 0 0 18px color-mix(in srgb, var(--rlf-accent) 45%, transparent); background: rgba(0, 229, 255, .07); }
.rlf-style--futuristic .rlf-req { color: var(--rlf-accent2); }
.rlf-style--futuristic .rlf-opt { color: #dbe9ff; }
.rlf-style--futuristic .rlf-opt input { accent-color: var(--rlf-accent); }
.rlf-style--futuristic .rlf-help { color: #9fb3d6; opacity: 1; }
.rlf-style--futuristic .rlf-error { color: #ff7a93; }
.rlf-style--futuristic .rlf-field [aria-invalid="true"] { outline: none; border-color: #ff5c7a; box-shadow: 0 0 14px rgba(255, 92, 122, .45); }
.rlf-style--futuristic .rlf-btn { border-radius: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .85em; padding: .85em 1.8em; color: #dff7ff; border: 1px solid var(--rlf-accent); background: rgba(0, 229, 255, .06); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.rlf-style--futuristic .rlf-btn:hover:not(:disabled) { background: rgba(0, 229, 255, .16); box-shadow: 0 0 18px color-mix(in srgb, var(--rlf-accent) 50%, transparent); }
.rlf-style--futuristic .rlf-submit, .rlf-style--futuristic .rlf-next { border: 0; color: var(--rlf-on-accent); font-weight: 800; background: linear-gradient(100deg, var(--rlf-accent), color-mix(in srgb, var(--rlf-accent) 40%, var(--rlf-accent2))); box-shadow: 0 0 22px color-mix(in srgb, var(--rlf-accent) 55%, transparent); filter: none; }
.rlf-style--futuristic .rlf-submit:hover:not(:disabled), .rlf-style--futuristic .rlf-next:hover:not(:disabled) { filter: brightness(1.12) saturate(1.1); box-shadow: 0 0 30px color-mix(in srgb, var(--rlf-accent) 75%, transparent); background: linear-gradient(100deg, var(--rlf-accent), color-mix(in srgb, var(--rlf-accent) 40%, var(--rlf-accent2))); }
.rlf-style--futuristic .rlf-progress { background: rgba(0, 229, 255, .15); }
.rlf-style--futuristic .rlf-status { color: #cfe6ff; }
.rlf-style--futuristic .rlf-status--error { background: rgba(255, 92, 122, .12); border-left-color: #ff5c7a; color: #ffb3c1; }
.rlf-style--futuristic.rlf-done .rlf-status { background: rgba(0, 229, 255, .1); border-left: 4px solid var(--rlf-accent); color: #e6fbff; }
.rlf-style--futuristic .rlf-quiz-result, .rlf-style--futuristic .rlf-poll-result { border: 1px solid rgba(0, 229, 255, .35); background: rgba(0, 229, 255, .05); border-radius: 2px; }
.rlf-style--futuristic .rlf-bar { background: rgba(255, 255, 255, .12); border-radius: 0; }
.rlf-style--futuristic .rlf-bar-fill { background: linear-gradient(90deg, var(--rlf-accent), var(--rlf-accent2)); }
.rlf-style--futuristic .rlf-page-title { color: #fff; letter-spacing: .06em; text-transform: uppercase; font-size: 1.1em; }
.rlf-style--futuristic a { color: var(--rlf-accent); }
@media (prefers-reduced-motion: no-preference) {
	.rlf-style--futuristic .rlf-submit { background-size: 200% 100%; transition: background-position .4s, box-shadow .2s, filter .2s; }
	.rlf-style--futuristic .rlf-submit:hover:not(:disabled) { background-position: 100% 0; }
}

/* ---- glass: frosted panel on a colourful gradient ---- */
.rlf-style--glass { --rlf-accent: #ffffff; --rlf-border: rgba(255, 255, 255, .55); --rlf-radius: 14px; --rlf-field-bg: rgba(255, 255, 255, .16); --rlf-on-accent: #3b2a8c; color: #fff; padding: 32px 28px; border-radius: 24px; background: linear-gradient(135deg, #6d5dfc 0%, #b44cf0 50%, #ff6aa2 100%); box-shadow: 0 20px 50px rgba(109, 93, 252, .35); border: 1px solid rgba(255, 255, 255, .4); }
.rlf-style--glass .rlf-field input[type="text"], .rlf-style--glass .rlf-field input[type="email"], .rlf-style--glass .rlf-field input[type="tel"], .rlf-style--glass .rlf-field input[type="url"],
.rlf-style--glass .rlf-field input[type="number"], .rlf-style--glass .rlf-field input[type="password"], .rlf-style--glass .rlf-field input[type="date"], .rlf-style--glass .rlf-field input[type="time"],
.rlf-style--glass .rlf-field select, .rlf-style--glass .rlf-field textarea { color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .5); color-scheme: dark; }
.rlf-style--glass .rlf-field input::placeholder, .rlf-style--glass .rlf-field textarea::placeholder { color: rgba(255, 255, 255, .75); }
.rlf-style--glass .rlf-field select option { color: #1f1b4d; background: #fff; }
.rlf-style--glass .rlf-field input:focus, .rlf-style--glass .rlf-field select:focus, .rlf-style--glass .rlf-field textarea:focus { outline: none; background: rgba(255, 255, 255, .26); border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.rlf-style--glass .rlf-label, .rlf-style--glass .rlf-group legend { font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.rlf-style--glass .rlf-req { color: #ffe36e; }
.rlf-style--glass .rlf-opt input { accent-color: #fff; }
.rlf-style--glass .rlf-help { color: rgba(255, 255, 255, .85); opacity: 1; }
.rlf-style--glass .rlf-error { color: #fff; background: rgba(160, 20, 70, .55); padding: .25em .6em; border-radius: 8px; }
.rlf-style--glass .rlf-btn { border-radius: 999px; color: #fff; border-color: rgba(255, 255, 255, .7); padding: .75em 1.8em; }
.rlf-style--glass .rlf-submit, .rlf-style--glass .rlf-next { background: #fff; color: var(--rlf-on-accent); border: 0; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.rlf-style--glass .rlf-status { color: #fff; }
.rlf-style--glass .rlf-status--error { background: rgba(160, 20, 70, .55); border-left-color: #fff; }
.rlf-style--glass.rlf-done .rlf-status { background: rgba(255, 255, 255, .2); border-left-color: #fff; color: #fff; }
.rlf-style--glass .rlf-quiz-result, .rlf-style--glass .rlf-poll-result { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); }
.rlf-style--glass .rlf-bar-fill { background: #fff; }
.rlf-style--glass a { color: #fff; }

/* ---- minimal: hairlines and whitespace ---- */
.rlf-style--minimal { --rlf-accent: #111827; --rlf-border: #9ca3af; --rlf-radius: 0; --rlf-field-bg: transparent; }
.rlf-style--minimal .rlf-field input[type="text"], .rlf-style--minimal .rlf-field input[type="email"], .rlf-style--minimal .rlf-field input[type="tel"], .rlf-style--minimal .rlf-field input[type="url"],
.rlf-style--minimal .rlf-field input[type="number"], .rlf-style--minimal .rlf-field input[type="password"], .rlf-style--minimal .rlf-field input[type="date"], .rlf-style--minimal .rlf-field input[type="time"],
.rlf-style--minimal .rlf-field select, .rlf-style--minimal .rlf-field textarea { border: 0; border-bottom: 1px solid var(--rlf-border); padding-left: 0; padding-right: 0; background: transparent; }
.rlf-style--minimal .rlf-field input:focus, .rlf-style--minimal .rlf-field select:focus, .rlf-style--minimal .rlf-field textarea:focus { outline: none; border-bottom: 2px solid var(--rlf-accent); box-shadow: none; }
.rlf-style--minimal .rlf-label, .rlf-style--minimal .rlf-group legend { text-transform: uppercase; letter-spacing: .1em; font-size: .72em; font-weight: 600; opacity: .8; }
.rlf-style--minimal .rlf-btn { border-radius: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .8em; }
.rlf-style--minimal .rlf-submit, .rlf-style--minimal .rlf-next { background: var(--rlf-accent); border-color: var(--rlf-accent); color: #fff; }
.rlf-style--minimal .rlf-quiz-result, .rlf-style--minimal .rlf-poll-result { border-width: 0 0 0 3px; border-radius: 0; }

/* on a phone the chamfer and padding shrink so nothing is cut off */
@media (max-width: 600px) {
	.rlf-style--futuristic, .rlf-style--glass, .rlf-style--modern { padding: 22px 16px; }
	.rlf-style--futuristic { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
}
/* high-contrast / forced-colours users get the plain, system-coloured form */
@media (forced-colors: active) {
	.rlf-form { background: Canvas; color: CanvasText; box-shadow: none; clip-path: none; border: 1px solid CanvasText; }
	.rlf-form::before { display: none; }
}

/* inside a styled form the controls fill the panel */
.rlf-style--modern .rlf-field input:not([type="radio"]):not([type="checkbox"]), .rlf-style--futuristic .rlf-field input:not([type="radio"]):not([type="checkbox"]), .rlf-style--glass .rlf-field input:not([type="radio"]):not([type="checkbox"]),
.rlf-style--modern .rlf-field select, .rlf-style--futuristic .rlf-field select, .rlf-style--glass .rlf-field select, .rlf-style--modern .rlf-field textarea, .rlf-style--futuristic .rlf-field textarea, .rlf-style--glass .rlf-field textarea { max-width: 100%; }

/* =====================================================================================================
   More styles: dark, aurora, neumorphic, terminal, cyberpunk, candy.
   They share one rule set driven by --s-* variables (each style sets its own values below), so a new look
   is a handful of variables plus, at most, a few signature touches.
   ===================================================================================================== */
.rlf-style--dark { --s-bg: #111827; --s-fg: #f3f4f6; --s-muted: #aab4c5; --s-field-bg: #1f2937; --s-field-border: 1px solid #374151; --s-radius: 10px; --s-card-radius: 16px; --s-shadow: 0 14px 40px rgba(0, 0, 0, .4); --s-error: #fca5a5; --s-scheme: dark; --rlf-accent: #818cf8; --rlf-on-accent: #0b1020; --s-btn-bg: var(--rlf-accent); }
.rlf-style--aurora { --s-bg: linear-gradient(160deg, #0f172a 0%, #1e1b4b 55%, #134e4a 100%); --s-fg: #ecfeff; --s-muted: #b6c7d8; --s-field-bg: rgba(255, 255, 255, .07); --s-field-border: 1px solid rgba(255, 255, 255, .22); --s-radius: 14px; --s-card-radius: 22px; --s-shadow: 0 18px 50px rgba(52, 211, 153, .15), 0 0 0 1px rgba(255, 255, 255, .08) inset; --s-error: #fda4af; --s-scheme: dark; --rlf-accent: #34d399; --rlf-accent2: #a78bfa; --rlf-on-accent: #052e2b; --s-btn-bg: linear-gradient(100deg, var(--rlf-accent), var(--rlf-accent2)); }
.rlf-style--neumorphic { --s-bg: #e6ebf2; --s-fg: #374151; --s-muted: #5b6573; --s-field-bg: #e6ebf2; --s-field-border: 0; --s-field-shadow: inset 4px 4px 9px #c3c9d4, inset -4px -4px 9px #ffffff; --s-radius: 14px; --s-card-radius: 24px; --s-shadow: 9px 9px 20px #c3c9d4, -9px -9px 20px #ffffff; --s-error: #b42343; --s-scheme: light; --rlf-accent: #4f46e5; --rlf-on-accent: #fff; --s-btn-bg: #e6ebf2; --s-btn-fg: var(--rlf-accent); --s-btn-shadow: 6px 6px 12px #c3c9d4, -6px -6px 12px #ffffff; }
.rlf-style--terminal { --s-bg: #020b02; --s-fg: #8cff8c; --s-muted: #5fbf5f; --s-field-bg: #031403; --s-field-border: 1px solid #1f7a1f; --s-radius: 0; --s-card-radius: 0; --s-shadow: 0 0 0 1px #145214, 0 0 30px rgba(57, 255, 20, .12); --s-error: #ff6b6b; --s-scheme: dark; --rlf-accent: #39ff14; --rlf-on-accent: #021002; --s-btn-bg: transparent; --s-btn-fg: var(--rlf-accent); font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.rlf-style--cyberpunk { --s-bg: linear-gradient(135deg, #0d0221 0%, #1a0b3d 60%, #2a0a3a 100%); --s-fg: #f6f3ff; --s-muted: #c3b6e6; --s-field-bg: rgba(252, 238, 10, .05); --s-field-border: 2px solid #fcee0a; --s-radius: 0; --s-card-radius: 0; --s-shadow: 8px 8px 0 #ff2a6d; --s-error: #ff7fa3; --s-scheme: dark; --rlf-accent: #fcee0a; --rlf-accent2: #ff2a6d; --rlf-on-accent: #0d0221; --s-btn-bg: var(--rlf-accent); }
.rlf-style--candy { --s-bg: linear-gradient(145deg, #fff1f7 0%, #f1f0ff 100%); --s-fg: #4b2e59; --s-muted: #6d5478; --s-field-bg: #ffffff; --s-field-border: 2px solid #f6c6de; --s-radius: 16px; --s-card-radius: 28px; --s-shadow: 0 14px 34px rgba(236, 72, 153, .18); --s-error: #be123c; --s-scheme: light; --rlf-accent: #ec4899; --rlf-accent2: #f59e0b; --rlf-on-accent: #fff; --s-btn-bg: linear-gradient(120deg, var(--rlf-accent), var(--rlf-accent2)); }

:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) { position: relative; color: var(--s-fg); background: var(--s-bg); padding: 30px 28px; border-radius: var(--s-card-radius, 16px); box-shadow: var(--s-shadow, none); --rlf-border: transparent; --rlf-radius: var(--s-radius, 8px); --rlf-field-bg: var(--s-field-bg); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="date"], input[type="time"], select, textarea) { color: var(--s-fg); background-color: var(--s-field-bg); border: var(--s-field-border, 1px solid currentColor); border-radius: var(--s-radius, 8px); box-shadow: var(--s-field-shadow, none); color-scheme: var(--s-scheme, light); caret-color: var(--rlf-accent); max-width: 100%; }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-field :is(input, textarea)::placeholder { color: var(--s-muted); opacity: .85; }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-field select option { color: #111; background: #fff; }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-field :is(input, select, textarea):focus { outline: none; border-color: var(--rlf-accent); box-shadow: var(--s-field-shadow, none), 0 0 0 3px color-mix(in srgb, var(--rlf-accent) 40%, transparent); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-btn:focus-visible { outline: 2px solid var(--rlf-accent); outline-offset: 3px; }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) :is(.rlf-label, .rlf-group legend) { color: var(--s-fg); font-weight: 600; }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-opt { color: var(--s-fg); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-opt input { accent-color: var(--rlf-accent); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-help { color: var(--s-muted); opacity: 1; }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-error { color: var(--s-error); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-req { color: var(--rlf-accent2, var(--rlf-accent)); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-field [aria-invalid="true"] { border-color: var(--s-error); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s-error) 35%, transparent); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-btn { color: var(--s-btn-fg, var(--s-fg)); border: 1px solid var(--rlf-accent); background: transparent; border-radius: var(--s-radius, 8px); min-height: 2.8em; padding: .7em 1.6em; }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) :is(.rlf-submit, .rlf-next) { background: var(--s-btn-bg); color: var(--s-btn-fg, var(--rlf-on-accent)); border-color: transparent; font-weight: 700; box-shadow: var(--s-btn-shadow, none); filter: none; }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) :is(.rlf-submit, .rlf-next):hover:not(:disabled) { filter: brightness(1.1); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-status { color: var(--s-fg); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-status--error { color: var(--s-error); background: color-mix(in srgb, var(--s-error) 14%, transparent); border-left-color: var(--s-error); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy).rlf-done .rlf-status { color: var(--s-fg); background: color-mix(in srgb, var(--rlf-accent) 16%, transparent); border-left: 4px solid var(--rlf-accent); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) :is(.rlf-quiz-result, .rlf-poll-result) { border-color: color-mix(in srgb, var(--rlf-accent) 55%, transparent); background: color-mix(in srgb, var(--rlf-accent) 8%, transparent); border-radius: var(--s-radius, 8px); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-bar { background: color-mix(in srgb, var(--s-fg) 16%, transparent); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-bar-fill { background: linear-gradient(90deg, var(--rlf-accent), var(--rlf-accent2, var(--rlf-accent))); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) .rlf-progress { background: color-mix(in srgb, var(--s-fg) 16%, transparent); }
:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) a { color: var(--rlf-accent); }

/* signature touches */
.rlf-style--neumorphic .rlf-submit, .rlf-style--neumorphic .rlf-next { border: 0; }
.rlf-style--neumorphic .rlf-btn:active:not(:disabled) { box-shadow: inset 4px 4px 8px #c3c9d4, inset -4px -4px 8px #fff; }
.rlf-style--neumorphic .rlf-opt input { filter: none; }
.rlf-style--terminal .rlf-label::before, .rlf-style--terminal .rlf-group legend::before { content: "> "; color: var(--rlf-accent); }
.rlf-style--terminal .rlf-btn { text-transform: lowercase; letter-spacing: .05em; }
.rlf-style--terminal .rlf-btn::before { content: "[ "; }
.rlf-style--terminal .rlf-btn::after { content: " ]"; }
.rlf-style--terminal .rlf-submit, .rlf-style--terminal .rlf-next { border: 1px solid var(--rlf-accent); box-shadow: none; }
.rlf-style--terminal .rlf-submit:hover:not(:disabled), .rlf-style--terminal .rlf-next:hover:not(:disabled) { background: var(--rlf-accent); color: var(--rlf-on-accent); filter: none; }
.rlf-style--terminal .rlf-field :is(input, textarea) { caret-color: var(--rlf-accent); }
.rlf-style--cyberpunk { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); margin-right: 8px; margin-bottom: 8px; }
.rlf-style--cyberpunk :is(.rlf-label, .rlf-group legend) { text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: var(--rlf-accent); }
.rlf-style--cyberpunk .rlf-btn { border: 2px solid var(--rlf-accent); border-radius: 0; text-transform: uppercase; letter-spacing: .12em; }
.rlf-style--cyberpunk :is(.rlf-submit, .rlf-next) { box-shadow: 4px 4px 0 var(--rlf-accent2); border-color: var(--rlf-accent); }
.rlf-style--cyberpunk :is(.rlf-submit, .rlf-next):hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--rlf-accent2); filter: none; }
.rlf-style--aurora :is(.rlf-label, .rlf-group legend) { color: color-mix(in srgb, var(--rlf-accent) 55%, #fff); }
.rlf-style--candy :is(.rlf-label, .rlf-group legend) { color: #7a3b86; }
.rlf-style--candy .rlf-btn { border-radius: 999px; }
.rlf-style--candy :is(.rlf-submit, .rlf-next) { box-shadow: 0 8px 18px rgba(236, 72, 153, .3); }
.rlf-style--dark .rlf-btn { border-color: #4b5563; }
.rlf-style--dark :is(.rlf-submit, .rlf-next) { border-color: transparent; }

@media (prefers-reduced-motion: no-preference) {
	.rlf-style--cyberpunk :is(.rlf-submit, .rlf-next) { transition: transform .12s, box-shadow .12s; }
}
@media (max-width: 600px) {
	:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) { padding: 22px 16px; }
	.rlf-style--cyberpunk { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
}
@media (forced-colors: active) {
	:is(.rlf-style--dark, .rlf-style--aurora, .rlf-style--neumorphic, .rlf-style--terminal, .rlf-style--cyberpunk, .rlf-style--candy) { background: Canvas; color: CanvasText; box-shadow: none; border: 1px solid CanvasText; }
	.rlf-style--cyberpunk { clip-path: none; }
	.rlf-style--terminal .rlf-btn::before, .rlf-style--terminal .rlf-btn::after { content: ""; }
}

/* =====================================================================================================
   Layout: fields can share a row (a field's `width`: two-thirds, half, third, quarter). Everything else is full width.
   ===================================================================================================== */
.rlf-page { display: flex; flex-wrap: wrap; column-gap: 1.25em; align-items: flex-start; }
.rlf-page > * { flex: 0 0 100%; min-width: 0; box-sizing: border-box; }
.rlf-page > .rlf-w-two-thirds { flex-basis: calc(66.666% - .42em); }
.rlf-page > .rlf-w-half { flex-basis: calc(50% - .63em); }
.rlf-page > .rlf-w-third { flex-basis: calc(33.333% - .84em); }
.rlf-page > .rlf-w-quarter { flex-basis: calc(25% - .94em); }
.rlf-page > .rlf-w-two-thirds input:not([type="radio"]):not([type="checkbox"]), .rlf-page > .rlf-w-half input:not([type="radio"]):not([type="checkbox"]), .rlf-page > .rlf-w-third input:not([type="radio"]):not([type="checkbox"]), .rlf-page > .rlf-w-quarter input:not([type="radio"]):not([type="checkbox"]),
.rlf-page > .rlf-w-two-thirds select, .rlf-page > .rlf-w-half select, .rlf-page > .rlf-w-third select, .rlf-page > .rlf-w-quarter select,
.rlf-page > .rlf-w-two-thirds textarea, .rlf-page > .rlf-w-half textarea, .rlf-page > .rlf-w-third textarea, .rlf-page > .rlf-w-quarter textarea { max-width: 100%; width: 100%; }
@media (max-width: 640px) {
	.rlf-page > .rlf-w-two-thirds, .rlf-page > .rlf-w-half, .rlf-page > .rlf-w-third, .rlf-page > .rlf-w-quarter { flex-basis: 100%; }
}
@media (min-width: 641px) and (max-width: 900px) {
	.rlf-page > .rlf-w-third, .rlf-page > .rlf-w-quarter { flex-basis: calc(50% - .63em); }
}

/* ---- clinic: a clean booking-form look (white page, navy headings, bold labels, section headings with a bar) ---- */
.rlf-style--clinic { --rlf-accent: #1a1f4d; --rlf-on-accent: #fff; --rlf-border: #d6d9e0; --rlf-radius: 4px; --rlf-field-bg: #f8f9fb; color: #1d2330; font-family: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
.rlf-style--clinic .rlf-label, .rlf-style--clinic .rlf-group legend { font-weight: 700; font-size: .92em; color: #151a3a; margin-bottom: .4em; }
.rlf-style--clinic .rlf-field input[type="text"], .rlf-style--clinic .rlf-field input[type="email"], .rlf-style--clinic .rlf-field input[type="tel"], .rlf-style--clinic .rlf-field input[type="url"],
.rlf-style--clinic .rlf-field input[type="number"], .rlf-style--clinic .rlf-field input[type="password"], .rlf-style--clinic .rlf-field input[type="date"], .rlf-style--clinic .rlf-field input[type="time"],
.rlf-style--clinic .rlf-field select, .rlf-style--clinic .rlf-field textarea { border: 1px solid var(--rlf-border); border-radius: var(--rlf-radius); background-color: var(--rlf-field-bg); color: #1d2330; min-height: 2.6em; max-width: 100%; }
.rlf-style--clinic .rlf-field input:focus, .rlf-style--clinic .rlf-field select:focus, .rlf-style--clinic .rlf-field textarea:focus { outline: none; border-color: var(--rlf-accent); background: #fff; box-shadow: 0 0 0 3px rgba(26, 31, 77, .15); }
.rlf-style--clinic .rlf-field input::placeholder { color: #747b8c; }
.rlf-style--clinic .rlf-display--section { margin: 1.4em 0 .6em; }
.rlf-style--clinic .rlf-section-title { margin: 0; padding-left: .6em; border-left: 4px solid #2b2f3a; font-size: 1.35em; font-weight: 600; color: #151a3a; line-height: 1.3; }
.rlf-style--clinic .rlf-display--section p { margin: .4em 0 0 calc(.6em + 4px); color: #4a5163; font-size: .9em; }
.rlf-style--clinic .rlf-amount { font-size: 2.1em; font-weight: 700; color: #151a3a; margin: .2em 0 .4em; line-height: 1.2; }
.rlf-style--clinic .rlf-amount-label { font-weight: 700; }
.rlf-style--clinic .rlf-display--html { color: #3b4254; font-size: .9em; }
.rlf-style--clinic .rlf-opt { color: #1d2330; }
.rlf-style--clinic .rlf-opt input { accent-color: var(--rlf-accent); }
.rlf-style--clinic .rlf-help { color: #5b6275; opacity: 1; }
.rlf-style--clinic .rlf-btn { border-radius: var(--rlf-radius); font-weight: 600; padding: .75em 2em; }
.rlf-style--clinic .rlf-submit, .rlf-style--clinic .rlf-next { background: var(--rlf-accent); border-color: var(--rlf-accent); color: #fff; }
.rlf-style--clinic .rlf-submit:hover:not(:disabled), .rlf-style--clinic .rlf-next:hover:not(:disabled) { background: #0f1336; filter: none; }
.rlf-style--clinic .rlf-quiz-result, .rlf-style--clinic .rlf-poll-result { border-color: #d6d9e0; background: #f8f9fb; }

/* ---- guided: a step-by-step card (white rounded panel, a progress bar that names the step, choices as cards, pill buttons) ---- */
.rlf-style--guided { --rlf-accent: #0b7f3e; --rlf-on-accent: #fff; --rlf-border: #dfe5e1; --rlf-radius: 14px; --rlf-field-bg: #fff; --g-fg: #101815; --g-muted: #56615b; background: #fff; color: var(--g-fg); padding: 34px 32px; border: 1px solid #e9eeeb; border-radius: 24px; box-shadow: 0 18px 50px rgba(16, 24, 21, .08); font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
/* the progress line: "STEP 1 OF 2 · STEP NAME" on the left, the share done on the right, the bar underneath */
.rlf-style--guided .rlf-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .9em 1em; height: auto; overflow: visible; background: none; border-radius: 0; margin: 0 0 1.7em; font-size: .78em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--g-muted); }
.rlf-style--guided .rlf-progress-label[data-rlf-title]::after { content: " \00B7  " attr(data-rlf-title); }
.rlf-style--guided .rlf-progress::after { content: attr(data-rlf-pct); order: 1; }
.rlf-style--guided .rlf-progress-bar { order: 2; position: relative; inset: auto; flex: 0 0 100%; width: auto; height: 6px; border-radius: 999px; background: #edf1ef; overflow: hidden; }
.rlf-style--guided .rlf-progress-bar::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--rlf-pct, 0%); border-radius: inherit; background: var(--rlf-accent); }
/* the step's name is in the progress line, so its heading is kept for screen readers only */
.rlf-style--guided .rlf-page-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* the step's question: a section heading, or the card question that opens a step */
.rlf-style--guided .rlf-display--section { margin: 0 0 1.3em; }
.rlf-style--guided .rlf-section-title, .rlf-style--guided .rlf-field--cards .rlf-group > legend { margin: 0 0 .45em; font-size: 1.5em; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--g-fg); }
.rlf-style--guided .rlf-display--section p, .rlf-style--guided .rlf-field--cards .rlf-group > .rlf-help { margin: 0 0 1.2em; font-size: 1em; color: var(--g-muted); opacity: 1; }
.rlf-style--guided .rlf-field--cards .rlf-req { display: none; }
/* fields */
.rlf-style--guided .rlf-label, .rlf-style--guided .rlf-group legend { font-size: .82em; font-weight: 700; color: var(--g-fg); margin-bottom: .55em; }
.rlf-style--guided .rlf-req { color: inherit; }
.rlf-style--guided .rlf-field :is(input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="file"]):not([type="color"]), select, textarea) { border: 1px solid var(--rlf-border); border-radius: var(--rlf-radius); background-color: #fff; color: var(--g-fg); min-height: 3.2em; padding: .7em .95em; max-width: 100%; }
.rlf-style--guided .rlf-field :is(input, select, textarea):focus { outline: none; border-color: var(--rlf-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rlf-accent) 16%, transparent); }
.rlf-style--guided .rlf-field :is(input, textarea)::placeholder { color: #68736d; opacity: 1; }
.rlf-style--guided .rlf-help { color: var(--g-muted); opacity: 1; }
/* choices as cards, two to a row */
.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7em; }
.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-group > :not(.rlf-opt) { grid-column: 1 / -1; }
.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-opt { align-items: flex-start; gap: .75em; margin: 0; padding: .95em 1.1em; border: 1px solid var(--rlf-border); border-radius: var(--rlf-radius); background: #fff; color: var(--g-fg); font-weight: 700; line-height: 1.35; cursor: pointer; }
.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-opt[hidden] { display: none; }
.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-opt:hover { border-color: color-mix(in srgb, var(--rlf-accent) 45%, var(--rlf-border)); }
.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-opt:has(input:checked) { border-color: var(--rlf-accent); background: color-mix(in srgb, var(--rlf-accent) 6%, #fff); }
.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-opt:has(input:focus-visible) { outline: 2px solid var(--rlf-accent); outline-offset: 2px; }
.rlf-style--guided .rlf-opt input { flex: none; margin-top: .12em; accent-color: var(--rlf-accent); }
.rlf-style--guided .rlf-opt input:focus { box-shadow: none; }
.rlf-style--guided .rlf-opt input[aria-invalid="true"] { outline: none; }
.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-opt:has(input[aria-invalid="true"]) { border-color: #b32d2e; }
.rlf-style--guided .rlf-opt-label { font-size: .95em; }
.rlf-style--guided .rlf-status:empty { min-height: 0; margin-top: 0; }
.rlf-style--guided .rlf-opt-desc { margin-top: .25em; font-size: .85em; color: var(--g-muted); opacity: 1; }
/* a single tick box (consent) sits to the left of its sentence */
.rlf-style--guided .rlf-field--consent { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .2em .75em; }
.rlf-style--guided .rlf-field--consent .rlf-label { order: 1; flex: 1 1 0; margin: 0; font-size: .82em; font-weight: 400; line-height: 1.5; color: var(--g-muted); }
.rlf-style--guided .rlf-field--consent input { order: 0; flex: none; width: 1.1em; height: 1.1em; margin: .15em 0 0; accent-color: var(--rlf-accent); }
.rlf-style--guided .rlf-field--consent :is(.rlf-help, .rlf-error) { order: 2; flex: 0 0 100%; }
/* buttons: Back on the left, the way forward on the right */
.rlf-style--guided .rlf-nav { align-items: center; justify-content: flex-end; gap: .8em; margin-top: 1.6em; }
.rlf-style--guided .rlf-btn { min-height: 3.3em; padding: .9em 1.7em; border: 1px solid var(--rlf-border); border-radius: 999px; background: #fff; color: var(--g-fg); font-weight: 800; }
.rlf-style--guided .rlf-prev { margin-inline-end: auto; }
.rlf-style--guided .rlf-prev::before { content: "\2190\00A0"; }
.rlf-style--guided :is(.rlf-submit, .rlf-next) { background: var(--rlf-accent); border-color: var(--rlf-accent); color: var(--rlf-on-accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--rlf-accent) 28%, transparent); }
.rlf-style--guided :is(.rlf-submit, .rlf-next)::after { content: "\00A0\2192"; }
.rlf-style--guided :is(.rlf-submit, .rlf-next):hover:not(:disabled) { filter: brightness(.93); }
.rlf-style--guided .rlf-quiz-result, .rlf-style--guided .rlf-poll-result { border-color: var(--rlf-border); background: #f6f9f7; }
@media (max-width: 640px) {
	.rlf-style--guided { padding: 24px 18px; border-radius: 18px; }
	.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-group { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
	.rlf-style--guided .rlf-progress-bar { background: Canvas; border: 1px solid CanvasText; }
	.rlf-style--guided .rlf-progress-bar::before { background: Highlight; }
	.rlf-style--guided :is(.rlf-field--radio, .rlf-field--checkbox, .rlf-field--yes_no) .rlf-opt:has(input:checked) { border-color: Highlight; }
}

/* =====================================================================================================
   Search box for long dropdowns (see frontend/src/combobox.ts). The <select> stays in the form, out of sight;
   the box and its list are styled per form style through --rlf-pop-* colours.
   ===================================================================================================== */
.rlf-form { --rlf-pop-bg: #ffffff; --rlf-pop-fg: #1d2330; --rlf-pop-border: #c3c7d0; --rlf-pop-active-bg: #e4ebfd; --rlf-pop-active-fg: #10224f; }
.rlf-combo { position: relative; max-width: 32em; }
.rlf-page > [class*="rlf-w-"] .rlf-combo, .rlf-style--modern .rlf-combo, .rlf-style--futuristic .rlf-combo, .rlf-style--glass .rlf-combo, .rlf-style--clinic .rlf-combo, .rlf-style--guided .rlf-combo { max-width: 100%; }
.rlf-combo-native { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.rlf-combo .rlf-combo-input { width: 100%; max-width: 100% !important; box-sizing: border-box; padding-right: 2.3em; text-overflow: ellipsis; }
.rlf-combo::after { content: "\25BE"; position: absolute; right: .85em; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: .7; font-size: .9em; }
.rlf-combo:has(.rlf-combo-input:disabled)::after { opacity: .3; }
.rlf-combo-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 15em; overflow-y: auto; margin: 0; padding: .25em 0; list-style: none; background: var(--rlf-pop-bg); color: var(--rlf-pop-fg); border: 1px solid var(--rlf-pop-border); border-radius: var(--rlf-radius, 6px); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.rlf-combo-list[hidden] { display: none; }
.rlf-combo-list.is-up { top: auto; bottom: calc(100% + 4px); }
.rlf-combo-list li { margin: 0; padding: .5em .85em; cursor: pointer; line-height: 1.35; }
.rlf-combo-list li.is-active { background: var(--rlf-pop-active-bg); color: var(--rlf-pop-active-fg); }
.rlf-combo-list li.is-current { font-weight: 700; }
.rlf-combo-list li.rlf-combo-empty { cursor: default; opacity: .75; }
.rlf-style--futuristic { --rlf-pop-bg: #0b1230; --rlf-pop-fg: #e6f1ff; --rlf-pop-border: rgba(0, 229, 255, .45); --rlf-pop-active-bg: rgba(0, 229, 255, .2); --rlf-pop-active-fg: #ffffff; }
.rlf-style--glass { --rlf-pop-bg: #2a1f6b; --rlf-pop-fg: #ffffff; --rlf-pop-border: rgba(255, 255, 255, .5); --rlf-pop-active-bg: rgba(255, 255, 255, .22); --rlf-pop-active-fg: #ffffff; }
.rlf-style--dark { --rlf-pop-bg: #1f2937; --rlf-pop-fg: #f3f4f6; --rlf-pop-border: #4b5563; --rlf-pop-active-bg: #374151; --rlf-pop-active-fg: #ffffff; }
.rlf-style--aurora { --rlf-pop-bg: #12203d; --rlf-pop-fg: #ecfeff; --rlf-pop-border: rgba(255, 255, 255, .3); --rlf-pop-active-bg: rgba(52, 211, 153, .25); --rlf-pop-active-fg: #ffffff; }
.rlf-style--terminal { --rlf-pop-bg: #031403; --rlf-pop-fg: #8cff8c; --rlf-pop-border: #1f7a1f; --rlf-pop-active-bg: #39ff14; --rlf-pop-active-fg: #021002; }
.rlf-style--cyberpunk { --rlf-pop-bg: #1a0b3d; --rlf-pop-fg: #f6f3ff; --rlf-pop-border: #fcee0a; --rlf-pop-active-bg: #fcee0a; --rlf-pop-active-fg: #0d0221; }
.rlf-style--neumorphic { --rlf-pop-bg: #e6ebf2; --rlf-pop-fg: #374151; --rlf-pop-border: #c3c9d4; --rlf-pop-active-bg: #d3daf0; --rlf-pop-active-fg: #1e1b4b; }
.rlf-style--candy { --rlf-pop-bg: #ffffff; --rlf-pop-fg: #4b2e59; --rlf-pop-border: #f6c6de; --rlf-pop-active-bg: #fde2f1; --rlf-pop-active-fg: #5b1f48; }
.rlf-style--clinic { --rlf-pop-bg: #ffffff; --rlf-pop-fg: #1d2330; --rlf-pop-border: #d6d9e0; --rlf-pop-active-bg: #e8eaf6; --rlf-pop-active-fg: #1a1f4d; }
.rlf-style--guided { --rlf-pop-bg: #ffffff; --rlf-pop-fg: #101815; --rlf-pop-border: #dfe5e1; --rlf-pop-active-bg: #e4f3ea; --rlf-pop-active-fg: #0b4a26; }
.rlf-style--futuristic .rlf-combo-list, .rlf-style--cyberpunk .rlf-combo-list { border-radius: 0; }
.rlf-style--minimal .rlf-combo-list { border-radius: 0; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
@media (forced-colors: active) {
	.rlf-combo-list { background: Canvas; color: CanvasText; border-color: CanvasText; }
	.rlf-combo-list li.is-active { background: Highlight; color: HighlightText; }
}
