/*
 * Intel Focus volunteer application form.
 *
 * Everything here inherits the theme's own custom properties (--bg, --text,
 * --accent, --border, --radius …), so the form follows the site's light/dark
 * toggle with no JavaScript and no separate palette. Fallbacks are supplied so
 * the form still renders correctly if it is ever used outside the theme.
 */

.ifv-form-wrap {
	--ifv-gap: 26px;
	--ifv-radius: var(--radius, 14px);
	--ifv-border: var(--border, rgba(128, 128, 128, 0.22));
	--ifv-border-strong: var(--border-strong, rgba(128, 128, 128, 0.4));
	--ifv-card: var(--bg-card, #fff);
	--ifv-elevated: var(--bg-elevated, #f3f4f7);
	--ifv-text: var(--text, #222);
	--ifv-dim: var(--text-dim, rgba(34, 34, 34, 0.66));
	--ifv-faint: var(--text-faint, rgba(34, 34, 34, 0.42));
	--ifv-accent: var(--accent, #5271ff);
	--ifv-accent-soft: var(--accent-soft, rgba(82, 113, 255, 0.1));
	--ifv-danger: #c0392b;
	/* Brand blue is only ~3.9:1 at body sizes, so small bold accent text
	   uses the same tints the theme itself uses: #8ba0ff on dark,
	   --accent-dark on light. Fills and borders keep --ifv-accent. */
	--ifv-accent-text: #8ba0ff;

	font-family: 'Neo Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--ifv-text);
	max-width: 760px;
	margin: 0 auto;
}

/* Dark mode needs a brighter red to stay legible on #222. */
html[data-theme='dark'] .ifv-form-wrap,
:root:not([data-theme='light']) .ifv-form-wrap {
	--ifv-danger: #ff8a7a;
}

/* Light mode: darken the accent text and restore the standard red. */
html[data-theme='light'] .ifv-form-wrap,
html[data-theme='light'] .ifv-page {
	--ifv-accent-text: var(--accent-dark, #2755bf);
	--ifv-danger: #c0392b;
}

.ifv-form-wrap *,
.ifv-form-wrap *::before,
.ifv-form-wrap *::after {
	box-sizing: border-box;
}

.ifv-form-wrap .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Honeypot ---------- */
.ifv-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/*
 * Button links inside page content.
 *
 * The theme styles `.case-content a` (specificity 0,2,0) with brand blue and an
 * underline, which outranks `.btn-primary { color:#fff }` (0,1,0). Any anchor
 * rendered as a button therefore came out blue-on-blue, roughly 1:1 contrast
 * against the gradient, and effectively unreadable. These rules restate the
 * button colours at 0,3,0 so they win wherever the form is embedded.
 */
.ifv-form-wrap a.btn,
.ifv-page a.btn {
	text-decoration: none;
}

.ifv-form-wrap a.btn-primary,
.ifv-page a.btn-primary {
	color: #fff;
}

.ifv-form-wrap a.btn-primary:hover,
.ifv-form-wrap a.btn-primary:focus,
.ifv-page a.btn-primary:hover,
.ifv-page a.btn-primary:focus {
	color: #fff;
}

.ifv-form-wrap a.btn-ghost,
.ifv-page a.btn-ghost {
	color: var(--ifv-text);
}

/*
 * White on the theme's gradient start (#5271ff) measures 4.07:1, just under the
 * 4.5:1 AA threshold for 14px bold. Deepening only the light end to #4462f0
 * takes it to 4.94:1. Scoped to this form so the site's other buttons keep the
 * theme's exact styling.
 */
.ifv-form-wrap .btn-primary,
.ifv-page .btn-primary {
	background: linear-gradient(135deg, #4462f0, var(--accent-dark, #2755bf));
}

.ifv-form-wrap a.btn:focus-visible,
.ifv-page a.btn:focus-visible {
	outline: 3px solid var(--ifv-accent);
	outline-offset: 3px;
}

/* ---------- Alerts ---------- */
.ifv-alert {
	border: 1px solid var(--ifv-border-strong);
	border-left: 4px solid var(--ifv-danger);
	border-radius: var(--ifv-radius);
	background: var(--ifv-elevated);
	padding: 18px 20px;
	margin-bottom: var(--ifv-gap);
	font-size: 14.5px;
	line-height: 1.55;
}

.ifv-alert strong {
	display: block;
	font-size: 15.5px;
	margin-bottom: 4px;
}

.ifv-alert-note {
	margin: 0 0 8px;
	color: var(--ifv-dim);
	font-size: 13.5px;
}

.ifv-alert ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.ifv-alert li { margin-bottom: 4px; }

.ifv-alert a {
	color: var(--ifv-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ifv-alert a:hover { color: var(--ifv-accent-text); }

.ifv-alert:focus-visible,
.ifv-receipt-head:focus-visible {
	outline: 3px solid var(--ifv-accent);
	outline-offset: 3px;
}

/* ---------- Progress ---------- */
/*
 * The browser's own [hidden]{display:none} is a user-agent rule, so ANY author
 * display rule outranks it. The theme sets .btn{display:inline-flex} and we set
 * display on the containers below, which silently breaks the hidden attribute.
 * Each one therefore has to restate it.
 */
.ifv-progress[hidden] { display: none; }

.ifv-progress {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	counter-reset: none;
}

.ifv-progress-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 9px;
	border: 1px solid var(--ifv-border);
	border-radius: 100px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ifv-dim);
	background: transparent;
	flex: 1 1 auto;
	min-width: 0;
}

.ifv-progress-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ifv-elevated);
	border: 1px solid var(--ifv-border);
	font-size: 11.5px;
	font-weight: 700;
	flex: none;
}

.ifv-progress-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ifv-progress-item.is-current {
	color: var(--ifv-text);
	border-color: var(--ifv-accent);
	background: var(--ifv-accent-soft);
}

.ifv-progress-item.is-current .ifv-progress-num {
	background: var(--ifv-accent);
	border-color: var(--ifv-accent);
	color: #fff;
}

.ifv-progress-item.is-done { color: var(--ifv-dim); }

.ifv-progress-item.is-done .ifv-progress-num {
	background: var(--ifv-accent-soft);
	border-color: var(--ifv-accent);
	color: var(--ifv-accent);
}

/* ---------- Steps ---------- */
.ifv-step {
	border-top: 1px solid var(--ifv-border);
	padding-top: 28px;
	margin-bottom: 34px;
}

.ifv-step[hidden] { display: none; }

.ifv-step-title {
	font-size: clamp(20px, 2.6vw, 25px);
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 0 0 22px;
	line-height: 1.2;
}

/* ---------- Fields ---------- */
.ifv-field {
	margin-bottom: var(--ifv-gap);
	min-width: 0;
}

.ifv-fieldset {
	border: 0;
	padding: 0;
	margin-inline: 0;
}

.ifv-label {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 6px;
	padding: 0;
}

.ifv-label-sm { font-size: 13.5px; font-weight: 600; }

.ifv-req {
	font-size: 12px;
	font-weight: 600;
	color: var(--ifv-dim);
	letter-spacing: 0.01em;
}

.ifv-help {
	margin: 0 0 10px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ifv-dim);
}

.ifv-note {
	margin: -2px 0 10px 34px;
	padding: 10px 14px;
	border-left: 2px solid var(--ifv-accent);
	background: var(--ifv-accent-soft);
	border-radius: 0 8px 8px 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--ifv-dim);
}

.ifv-input {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ifv-text);
	background: var(--ifv-card);
	border: 1px solid var(--ifv-border-strong);
	border-radius: 10px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ifv-input:hover { border-color: var(--ifv-accent); }

.ifv-input:focus-visible,
.ifv-input:focus {
	outline: none;
	border-color: var(--ifv-accent);
	box-shadow: 0 0 0 3px var(--ifv-accent-soft), 0 0 0 1px var(--ifv-accent);
}

.ifv-input[aria-invalid='true'] {
	border-color: var(--ifv-danger);
	border-width: 2px;
}

.ifv-textarea {
	resize: vertical;
	min-height: 140px;
	line-height: 1.6;
}

.ifv-select {
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 40px;
}

.ifv-count {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--ifv-dim);
	text-align: right;
}

.ifv-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

/* ---------- Errors ---------- */
.ifv-error {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 8px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ifv-danger);
}

.ifv-error-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 17px;
	height: 17px;
	margin-top: 1px;
	border-radius: 50%;
	border: 1.5px solid currentColor;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

/* ---------- Options (checkbox / radio) ---------- */
.ifv-options {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ifv-options-inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.ifv-option {
	/* Positioning context for the visually hidden native input below, so it
	   never escapes its label and overlay an unrelated control. */
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 11px 14px;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	font-size: 14.5px;
	line-height: 1.5;
	transition: background 0.15s ease, border-color 0.15s ease;
	min-width: 0;
}

.ifv-options-inline .ifv-option {
	border-color: var(--ifv-border);
	flex: 0 1 auto;
}

.ifv-option:hover {
	background: var(--ifv-accent-soft);
	border-color: var(--ifv-border-strong);
}

.ifv-option-block { align-items: flex-start; }

/* Native control stays in the accessibility tree and keeps keyboard focus. */
.ifv-option input {
	position: absolute;
	opacity: 0;
	width: 20px;
	height: 20px;
	margin: 0;
	cursor: pointer;
}

.ifv-option-box {
	position: relative;
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 2px solid var(--ifv-border-strong);
	border-radius: 5px;
	background: var(--ifv-card);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ifv-option-radio { border-radius: 50%; }

.ifv-option-box::after {
	content: '';
	position: absolute;
	opacity: 0;
	transition: opacity 0.12s ease;
}

/* Checkbox tick */
.ifv-option-box:not(.ifv-option-radio)::after {
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(43deg);
}

/* Radio dot */
.ifv-option-radio::after {
	left: 50%;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
}

.ifv-option input:checked + .ifv-option-box {
	background: var(--ifv-accent);
	border-color: var(--ifv-accent);
}

.ifv-option input:checked + .ifv-option-box::after { opacity: 1; }

.ifv-option input:focus-visible + .ifv-option-box {
	outline: 3px solid var(--ifv-accent);
	outline-offset: 2px;
}

/* Selection is signalled by the tick and the label weight, not colour alone. */
.ifv-option input:checked ~ .ifv-option-text { font-weight: 600; }

.ifv-option-text { min-width: 0; }

.ifv-form-wrap .ifv-option-text a {
	color: var(--ifv-accent-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ifv-reveal {
	margin: 10px 0 0 34px;
	padding-left: 14px;
	border-left: 2px solid var(--ifv-border);
}

.ifv-reveal[hidden] { display: none; }

/* ---------- Ethics ---------- */
.ifv-ethics-intro {
	background: var(--ifv-elevated);
	border: 1px solid var(--ifv-border);
	border-radius: var(--ifv-radius);
	padding: 20px 22px;
	margin-bottom: var(--ifv-gap);
}

.ifv-ethics-intro h4 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
}

.ifv-ethics-intro p {
	margin: 0;
	font-size: 14px;
	line-height: 1.62;
	color: var(--ifv-dim);
}

.ifv-ethics-q {
	background: var(--ifv-card);
	border: 1px solid var(--ifv-border);
	border-radius: var(--ifv-radius);
	padding: 22px;
}

.ifv-qnum {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ifv-accent-text);
	margin-right: 9px;
}

.ifv-qtheme {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ifv-dim);
}

.ifv-scenario {
	margin: 10px 0 16px;
	font-size: 15px;
	line-height: 1.62;
}

/* ---------- File upload ---------- */
.ifv-file {
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 14px;
	color: var(--ifv-dim);
	padding: 14px;
	border: 1.5px dashed var(--ifv-border-strong);
	border-radius: 10px;
	background: var(--ifv-elevated);
	cursor: pointer;
}

.ifv-file::file-selector-button {
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ifv-text);
	background: var(--ifv-card);
	border: 1px solid var(--ifv-border-strong);
	border-radius: 100px;
	padding: 9px 18px;
	margin-right: 14px;
	cursor: pointer;
}

.ifv-file:hover { border-color: var(--ifv-accent); }

.ifv-file:focus-visible {
	outline: 3px solid var(--ifv-accent);
	outline-offset: 2px;
}

.ifv-file[aria-invalid='true'] { border-color: var(--ifv-danger); }

.ifv-filekept {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 0;
	padding: 11px 14px;
	background: var(--ifv-accent-soft);
	border-radius: 8px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ifv-dim);
}

.ifv-filekept strong { color: var(--ifv-text); }

/* ---------- Consent ---------- */
.ifv-consent {
	background: var(--ifv-elevated);
	border: 1px solid var(--ifv-border);
	border-radius: var(--ifv-radius);
	padding: 22px;
}

.ifv-consent-row { margin-bottom: 4px; }

.ifv-consent .ifv-option { align-items: flex-start; }

.ifv-consent .ifv-option-text { font-size: 14px; line-height: 1.6; }

/* ---------- Submit ---------- */
.ifv-submit-row {
	margin-top: 30px;
	padding-top: 26px;
	border-top: 1px solid var(--ifv-border);
}

.ifv-submit {
	position: relative;
	min-width: 220px;
	justify-content: center;
}

.ifv-submit[disabled] {
	opacity: 0.72;
	cursor: progress;
	transform: none !important;
}

.ifv-spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ifv-spin 0.7s linear infinite;
}

.ifv-submit.is-busy .ifv-spinner { display: inline-block; }

@keyframes ifv-spin { to { transform: rotate(360deg); } }

.ifv-submit-note {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ifv-dim);
	max-width: 56ch;
}

.ifv-live {
	margin: 8px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ifv-accent-text);
	min-height: 1em;
}

/* ---------- Step navigation ---------- */
.ifv-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding-top: 24px;
	border-top: 1px solid var(--ifv-border);
}

.ifv-nav[hidden] { display: none; }

.ifv-nav-count {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ifv-dim);
	order: 0;
	/* Auto margins keep it centred whether or not Continue is present. */
	margin: 0 auto;
}

.ifv-nav .btn { min-width: 130px; justify-content: center; }

/* Continue is removed outright on the last step: there is nowhere to continue
   to, and the submit button sits in the step itself. */
.ifv-nav .ifv-next[hidden] { display: none; }

/* Back keeps its space instead of disappearing, so the row does not jump
   between steps one and two. */
.ifv-nav .ifv-prev[hidden] { visibility: hidden; display: inline-flex; }

/* ================= Confirmation ================= */
.ifv-receipt-head {
	border: 1px solid var(--ifv-border);
	border-radius: var(--ifv-radius);
	background: var(--ifv-card);
	padding: 34px 30px;
	margin-bottom: 32px;
}

.ifv-tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--ifv-accent-soft);
	color: var(--ifv-accent);
	margin-bottom: 16px;
}

.ifv-tick svg { width: 24px; height: 24px; }

.ifv-receipt-title {
	margin: 0 0 12px;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.018em;
}

.ifv-receipt-sub {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.62;
	color: var(--ifv-dim);
}

.ifv-receipt-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
	margin: 0 0 24px;
	padding: 18px 0 0;
	border-top: 1px solid var(--ifv-border);
}

.ifv-receipt-meta dt {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ifv-dim);
	margin-bottom: 4px;
}

.ifv-receipt-meta dd { margin: 0; font-size: 15px; font-weight: 600; }

.ifv-mono {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

/* ---------- Applicant's own copy ---------- */
.ifv-download {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 20px;
	margin: 0 0 16px;
	border: 1px solid var(--ifv-accent);
	border-radius: var(--ifv-radius);
	background: var(--ifv-accent-soft);
}

.ifv-download-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--ifv-card);
	border: 1px solid var(--ifv-border);
	color: var(--ifv-accent-text);
}

.ifv-download-icon svg { width: 21px; height: 21px; }

.ifv-download-body { min-width: 0; }

.ifv-download-title {
	margin: 1px 0 5px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
}

.ifv-download-dek {
	margin: 0 0 14px;
	font-size: 13.8px;
	line-height: 1.6;
	color: var(--ifv-dim);
	overflow-wrap: anywhere;
}

.ifv-download-btn { justify-content: center; }

.ifv-download-btn svg { width: 15px; height: 15px; }

.ifv-download-meta {
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--ifv-dim);
}

@media (max-width: 560px) {
	.ifv-download { flex-direction: column; gap: 12px; }
	.ifv-download-btn { width: 100%; }
}

.ifv-receipt-hint {
	margin: 0;
	font-size: 12.5px;
	color: var(--ifv-dim);
}

.ifv-receipt-section {
	border-top: 1px solid var(--ifv-border);
	padding-top: 28px;
	margin-bottom: 34px;
}

.ifv-receipt-intro {
	margin: -10px 0 22px;
	font-size: 14px;
	line-height: 1.62;
	color: var(--ifv-dim);
}

.ifv-receipt-h4 {
	margin: 26px 0 10px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ifv-accent-text);
}

.ifv-summary { margin: 0; }

.ifv-summary-row {
	display: grid;
	grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
	gap: 4px 22px;
	padding: 11px 0;
	border-top: 1px solid var(--ifv-border);
}

.ifv-summary-row dt {
	font-size: 13px;
	color: var(--ifv-dim);
	line-height: 1.5;
}

.ifv-summary-row dd {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.ifv-feedback {
	border: 1px solid var(--ifv-border);
	border-radius: var(--ifv-radius);
	padding: 22px;
	margin-bottom: 14px;
	background: var(--ifv-card);
}

.ifv-feedback-head { margin-bottom: 2px; }

.ifv-answer {
	border-left: 3px solid var(--ifv-border-strong);
	padding: 4px 0 4px 14px;
	margin-bottom: 12px;
}

.ifv-answer.is-match { border-left-color: var(--ifv-accent); }
.ifv-answer.is-preferred { border-left-color: var(--ifv-accent); }

.ifv-answer-label {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ifv-dim);
}

.ifv-answer-mark { margin-right: 5px; color: var(--ifv-accent-text); }

.ifv-answer-text {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
}

.ifv-why {
	background: var(--ifv-elevated);
	border-radius: 10px;
	padding: 14px 16px;
	margin-top: 14px;
}

.ifv-why p:last-child {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--ifv-dim);
}

.ifv-whatnext p {
	font-size: 14.5px;
	line-height: 1.68;
	color: var(--ifv-dim);
	margin: 0 0 14px;
}

/* ================= Responsive ================= */
@media (max-width: 720px) {
	.ifv-grid-2 { grid-template-columns: minmax(0, 1fr); }

	.ifv-summary-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }

	.ifv-progress { gap: 4px; }

	.ifv-progress-item {
		flex: 1 1 auto;
		padding: 7px;
		justify-content: center;
	}

	/* Keep the stepper to numbers only so five steps fit without scrolling. */
	.ifv-progress-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.ifv-progress-item.is-current { flex: 2 1 auto; }

	.ifv-progress-item.is-current .ifv-progress-label {
		position: static;
		width: auto;
		height: auto;
		clip: auto;
	}

	.ifv-ethics-q,
	.ifv-consent,
	.ifv-receipt-head,
	.ifv-feedback { padding: 18px 16px; }

	.ifv-note { margin-left: 0; }

	.ifv-reveal { margin-left: 0; }

	.ifv-options-inline { flex-direction: column; }

	.ifv-options-inline .ifv-option { width: 100%; }

	.ifv-nav .btn { flex: 1 1 auto; min-width: 0; }

	.ifv-nav-count { order: 2; width: 100%; text-align: center; }

	.ifv-submit { width: 100%; }

	/* 16px minimum stops iOS zooming the page on focus. */
	.ifv-input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.ifv-form-wrap *,
	.ifv-form-wrap *::before,
	.ifv-form-wrap *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.ifv-nav, .ifv-progress, .ifv-receipt-actions { display: none !important; }
	.ifv-step[hidden] { display: block !important; }
}

/* =====================================================================
 * Volunteer page sections (hero copy, benefits, process, commitment).
 * Same token set as the form, so the whole page reads as one piece.
 * ===================================================================== */

.ifv-page {
	--ifv-radius: var(--radius, 14px);
	--ifv-border: var(--border, rgba(128, 128, 128, 0.22));
	--ifv-card: var(--bg-card, #fff);
	--ifv-elevated: var(--bg-elevated, #f3f4f7);
	--ifv-dim: var(--text-dim, rgba(34, 34, 34, 0.66));
	--ifv-faint: var(--text-faint, rgba(34, 34, 34, 0.42));
	--ifv-accent: var(--accent, #5271ff);
	--ifv-accent-soft: var(--accent-soft, rgba(82, 113, 255, 0.1));
	--ifv-accent-text: #8ba0ff;
	font-family: 'Neo Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ifv-lede {
	font-size: clamp(16.5px, 2vw, 18.5px);
	line-height: 1.68;
	color: var(--ifv-dim);
	margin: 0 0 20px;
}

.ifv-section-head {
	margin: 54px 0 22px;
}

.ifv-section-head h2 {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	letter-spacing: -0.018em;
	line-height: 1.2;
	margin: 0 0 10px;
}

.ifv-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ifv-accent-text);
	margin-bottom: 14px;
}

.ifv-eyebrow::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ifv-accent);
	flex: none;
}

/* ---- Benefits ---- */
.ifv-benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.ifv-benefit {
	background: var(--ifv-card);
	border: 1px solid var(--ifv-border);
	border-radius: var(--ifv-radius);
	padding: 20px 20px 22px;
	min-width: 0;
}

.ifv-benefit h3 {
	margin: 0 0 7px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
}

.ifv-benefit p {
	margin: 0;
	font-size: 13.8px;
	line-height: 1.6;
	color: var(--ifv-dim);
}

.ifv-benefit-num {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	color: var(--ifv-accent-text);
	margin-bottom: 10px;
}

/* ---- Process ---- */
.ifv-process {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: ifv-step;
}

.ifv-process li {
	position: relative;
	counter-increment: ifv-step;
	padding: 0 0 24px 52px;
	border-left: 1px solid var(--ifv-border);
	margin-left: 17px;
}

.ifv-process li:last-child {
	border-left-color: transparent;
	padding-bottom: 0;
}

.ifv-process li::before {
	content: counter(ifv-step);
	position: absolute;
	left: -17px;
	top: -2px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ifv-accent-soft);
	border: 1px solid var(--ifv-accent);
	color: var(--ifv-accent);
	font-size: 13px;
	font-weight: 800;
}

.ifv-process h3 {
	margin: 4px 0 6px;
	font-size: 16px;
	font-weight: 700;
}

.ifv-process p {
	margin: 0;
	font-size: 14px;
	line-height: 1.62;
	color: var(--ifv-dim);
}

/* ---- Commitment callout ---- */
.ifv-commit {
	background: var(--ifv-elevated);
	border: 1px solid var(--ifv-border);
	border-left: 3px solid var(--ifv-accent);
	border-radius: 0 var(--ifv-radius) var(--ifv-radius) 0;
	padding: 24px 26px;
	margin: 24px 0;
}

.ifv-commit h3 {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 800;
}

.ifv-commit p {
	margin: 0 0 12px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--ifv-dim);
}

.ifv-commit ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.ifv-commit li {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ifv-dim);
	margin-bottom: 6px;
}

.ifv-commit p:last-child,
.ifv-commit ul:last-child { margin-bottom: 0; }

.ifv-fineprint {
	font-size: 13px;
	line-height: 1.6;
	color: var(--ifv-dim);
	margin: 18px 0 0;
}

@media (max-width: 720px) {
	.ifv-benefits { grid-template-columns: minmax(0, 1fr); }
	.ifv-commit { padding: 18px 18px; }
	.ifv-process li { padding-left: 44px; }
}
