@charset "UTF-8";
/* =============================================================================
   Bachelor programme page — the five popup forms (talk, apply, brochure,
   estimate, event) and the Fluent Forms field styling they and the embedded
   "Personal assessment" form (template-parts/programme/final.php) share.

   Ported from the Figma Make export's `.modal`, `.m-head`, `.m-ctx`, `.m-body`,
   `.m-foot`, `.m-done`, `.fgrid`, `.f`, `.pills`/`.pill`, `.consent` and
   `.on-dark-form` (figma_make/LSB - BIB (domi)/src/index.css, 2026-09-15).
   Class names follow the porting rules in programme.css: every export class
   gets the `bib-` prefix and becomes BEM.

   The Fluent Forms markup is the plugin's own — its class names are mapped
   onto the export's field look rather than the form being rebuilt by hand, the
   same approach as assets/css/contact.css and cta-form.css.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Shell
   ------------------------------------------------------------------------ */

.bib-modal {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-6);
}

.bib-modal[hidden] {
	display: none;
}

/* Every popup form opens over the page, dimmed by a translucent navy overlay,
   with the card centred (Domagoj, 2026-09-29 — the client's mock-up; this
   replaces the opaque full-screen ground tried earlier the same day). The
   overlay does not close the popup: only the × does (and Escape). */
.bib-modal__backdrop {
	position: absolute;
	inset: 0;
	background-color: color-mix(in srgb, var(--color-navy-abyss) 62%, transparent);
	animation: bib-modal-ground-in 0.3s var(--ease);
}

.bib-modal__card {
	animation: bib-modal-card-in 0.3s var(--ease);
}

@keyframes bib-modal-ground-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes bib-modal-card-in {
	from { opacity: 0; transform: translateY(1rem); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bib-modal__backdrop,
	.bib-modal__card { animation: none; }
}

.bib-modal__card {
	position: relative;
	width: min(40rem, 100%);                 /* 640 [export] */
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
	border-radius: var(--bib-r-lg, 1.375rem);
	background-color: var(--color-white);
	box-shadow: 0 2.5rem 6.25rem -1.875rem rgb(0 0 0 / 0.6);
}

/* ---------------------------------------------------------------------------
   Head + context chips
   ------------------------------------------------------------------------ */

.bib-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-5);
	padding: 1.875rem 2.125rem 0;             /* 30 / 34 [export] */
}

.bib-modal__title {
	font-family: var(--font-display);
	font-size: 1.875rem;                      /* 30 [export] */
	line-height: 1.15;
	color: var(--color-navy);
}

.bib-modal__sub {
	margin-block-start: var(--space-2);
	font-family: var(--font-body);
	font-size: var(--fs-ui);
	line-height: 1.5;
	color: var(--color-text-muted);
}

.bib-modal__x {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--bib-line-2, var(--color-border));
	border-radius: 50%;
	background: none;
	color: var(--color-navy);
	cursor: pointer;
	transition: background-color var(--duration) var(--ease);
}

.bib-modal__x:hover {
	background-color: var(--color-ink-100);
}

.bib-modal__ctx {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin: 1.125rem 2.125rem 0;              /* 18 / 34 [export] */
}

.bib-modal__ctx .bib-chip {
	border-color: transparent;
	background-color: var(--color-ink-100);
}

.bib-modal__ctx-note {
	margin-inline-start: 4px;
}

/* Read-only tuition estimate box — export's `.f.full` with an inline style. */
.bib-modal__estimate {
	margin: 1.125rem 2.125rem 0;
	padding: 0.875rem 1rem;
	border-radius: var(--radius-field);
	background-color: var(--color-ink-100);
	font-family: var(--font-body);
	font-size: var(--fs-ui-base);
	color: var(--color-text);
}

.bib-modal__body {
	padding: 1.375rem 2.125rem 0;             /* 22 / 34 [export] */
}

.bib-modal__consent {
	padding: 0 2.125rem 1.875rem;
	font-family: var(--font-body);
	font-size: var(--fs-ui-tag);
	line-height: 1.5;
	color: var(--color-text-muted);
}

.bib-modal__consent a {
	color: inherit;
}

/* ---------------------------------------------------------------------------
   Done screen
   ------------------------------------------------------------------------ */

.bib-modal__done {
	padding: 2.125rem;
}

.bib-modal__ok {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-block-end: 1.375rem;
	border-radius: 50%;
	background-color: #e8f7f0;
	color: #1a9b66;
}

.bib-modal__done-title {
	margin-block-end: 0.625rem;
	font-family: var(--font-display);
	font-size: 1.875rem;                      /* 30 [export] */
	color: var(--color-navy);
}

.bib-modal__done-title:focus-visible {
	outline: none;
}

.bib-modal__done-text {
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--bib-ink-2, var(--color-text-muted));
}

.bib-modal__done-gap {
	height: 1.375rem;
}

.bib-modal__next-list {
	margin-block: 1.375rem;
	border-block-start: 1px solid var(--color-border);
}

.bib-modal__next-list > div {
	display: grid;
	grid-template-columns: 1.75rem 1fr;
	gap: var(--space-3);
	padding-block: var(--space-3);
	border-block-end: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 0.90625rem;                    /* 14.5 [export] */
	color: var(--color-text-muted);
}

.bib-modal__next-list i {
	font-style: normal;
}

.bib-modal__next-list--numbered i {
	font-family: var(--font-body);
	font-size: var(--fs-ui-xs);
	color: var(--color-crimson);
}

.bib-modal__next-list--bulleted i {
	display: grid;
	place-items: center;
	color: var(--color-crimson);
}

.bib-modal__done-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

/* ---------------------------------------------------------------------------
   Fluent Forms field styling, in the export's `.f` / `.pills` look.

   Shared between the popups (.bib-modal) and the on-dark final-section form
   (.bib-form--on-dark, markup owned by template-parts/programme/final.php).
   ------------------------------------------------------------------------ */

.bib-modal .fluentform,
.bib-form--on-dark .fluentform {
	margin: 0;
}

.bib-modal .frm-fluent-form > fieldset,
.bib-form--on-dark .frm-fluent-form > fieldset {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));   /* export's .fgrid; minmax: a long option never widens a column */
	gap: 1rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.bib-modal .ff-el-group,
.bib-form--on-dark .ff-el-group {
	margin-block-end: 0;
}

/* Fields that run the full width of the grid: everything except the paired
   first/last name inputs (`ff-el-group--half`, set on the fields that share a
   row when the form is seeded). */
.bib-modal .ff-el-group:not(.ff-el-group--half),
.bib-modal .ff_submit_btn_wrapper,
.bib-form--on-dark .ff-el-group:not(.ff-el-group--half),
.bib-form--on-dark .ff_submit_btn_wrapper {
	grid-column: 1 / -1;
}

@media (max-width: 29.99em) {
	.bib-modal .frm-fluent-form > fieldset,
	.bib-form--on-dark .frm-fluent-form > fieldset {
		grid-template-columns: minmax(0, 1fr);
	}
}

.bib-modal .ff-el-input--label label,
.bib-modal .ff-el-input--label .lab,
.bib-form--on-dark .ff-el-input--label label {
	font-family: var(--font-body);
	font-size: var(--fs-ui-xs);               /* 12 [export] */
	font-weight: var(--fw-medium);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bib-ink-3, var(--color-text-muted));
}

.bib-form--on-dark .ff-el-input--label label {
	color: color-mix(in srgb, var(--color-white) 65%, transparent);
}

/* The export shows required fields with no marker and optional ones tagged
   "(optional)" instead — matching hard rule 11's spirit (nothing implied that
   is not shown): here that would need per-field copy the plugin does not
   expose, so the asterisk stays, styled quietly rather than removed. */
.bib-modal .fluentform .ff-el-is-required label::after,
.bib-form--on-dark .fluentform .ff-el-is-required label::after {
	color: var(--color-crimson);
}

.bib-modal .ff-el-form-control,
.bib-form--on-dark .ff-el-form-control {
	/* Fluent's own stylesheet sets this, but it is not loaded on every page:
	   the header's Apply popup on a legal page or a post went without it, and
	   its country list (longest option) pushed the form 48px past a phone
	   screen (2026-11-18). */
	width: 100%;
	max-width: 100%;
	height: 2.875rem;                         /* 46 [export] */
	padding-inline: 0.875rem;
	border: 1px solid var(--bib-line-2, var(--color-border));
	border-radius: var(--radius-field);
	background-color: var(--color-white);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-ui);                  /* 15 [export] */
	box-shadow: none;
	transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.bib-modal textarea.ff-el-form-control {
	height: 5.5rem;                           /* 88 [export] */
	padding-block: 0.75rem;
	resize: vertical;
}

.bib-modal .ff-el-form-control:focus,
.bib-form--on-dark .ff-el-form-control:focus {
	outline: 0;
	border-color: var(--color-navy);
	box-shadow: 0 0 0 3px rgb(5 48 79 / 0.12);
}

.bib-modal select.ff-el-form-control:not([size]):not([multiple]) {
	height: 2.875rem;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentcolor 50%),
		linear-gradient(135deg, currentcolor 50%, transparent 50%);
	background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-inline-end: var(--space-10);
}

.bib-modal .fluentform .ff-el-is-error .text-danger,
.bib-modal .fluentform .error-text,
.bib-form--on-dark .fluentform .ff-el-is-error .text-danger,
.bib-form--on-dark .fluentform .error-text {
	font-family: var(--font-body);
	font-size: var(--fs-ui-tag);
	color: var(--color-crimson);
}

.bib-modal .fluentform .ff-message-success {
	border: 0;
	background: none;
	padding: 0;
	font-family: var(--font-body);
}

/* --- Radio fields as pills, in .bib-full groups (set when the form is
   seeded: role, channel, best_time, guests). ------------------------------ */

.bib-modal .ff-el-group.bib-pills .ff-el-input--content,
.bib-form--on-dark .ff-el-group.bib-pills .ff-el-input--content {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.bib-modal .ff-el-form-check,
.bib-form--on-dark .ff-el-form-check {
	position: relative;
}

.bib-modal .ff-el-form-check-label,
.bib-form--on-dark .ff-el-form-check-label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	height: 2.5rem;
	padding-inline: 1rem;
	border: 1px solid var(--bib-line-2, var(--color-border));
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	font-weight: var(--fw-medium);
	color: var(--color-navy);
	cursor: pointer;
	transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

/* Visually hidden but focusable; out-ranks Fluent's rule, which otherwise kept
   the radio in the flow and left a gap in the pill (2026-09-16). */
.bib-modal .fluentform input.ff-el-form-check-radio,
.bib-form--on-dark .fluentform input.ff-el-form-check-radio,
.bib-modal .fluentform input.ff-el-form-check-checkbox,
.bib-form--on-dark .fluentform input.ff-el-form-check-checkbox {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	opacity: 0;
	appearance: none;
}

.bib-modal .ff-el-form-check-label:has(.ff-el-form-check-radio:checked),
.bib-form--on-dark .ff-el-form-check-label:has(.ff-el-form-check-radio:checked),
.bib-modal .ff-el-form-check-label:has(.ff-el-form-check-checkbox:checked),
.bib-form--on-dark .ff-el-form-check-label:has(.ff-el-form-check-checkbox:checked) {
	background-color: var(--color-navy);
	border-color: var(--color-navy);
	color: var(--color-white);
}

.bib-modal .ff-el-form-check-radio:focus-visible + span,
.bib-form--on-dark .ff-el-form-check-radio:focus-visible + span,
.bib-modal .ff-el-form-check-checkbox:focus-visible + span,
.bib-form--on-dark .ff-el-form-check-checkbox:focus-visible + span {
	outline: 2px solid var(--color-crimson);
	outline-offset: 2px;
}

/* --- On-dark variant: the final section's glass card -------------------- */

.bib-form--on-dark .ff-el-form-control {
	background-color: rgb(255 255 255 / 0.1);
	border-color: rgb(255 255 255 / 0.22);
	color: var(--color-white);
}

.bib-form--on-dark .ff-el-form-control::placeholder {
	color: rgb(255 255 255 / 0.45);
}

.bib-form--on-dark select.ff-el-form-control option {
	color: var(--color-text);
}

.bib-form--on-dark .ff-el-form-control:focus {
	border-color: var(--color-white);
	box-shadow: 0 0 0 3px rgb(255 255 255 / 0.15);
	color: var(--color-white);
}

.bib-form--on-dark .ff-el-form-check-label {
	border-color: rgb(255 255 255 / 0.35);
	color: var(--color-white);
}

.bib-form--on-dark .fluentform .ff-el-is-error .text-danger,
.bib-form--on-dark .fluentform .error-text {
	color: var(--bib-magenta-on-dark, #ff5c8d);
}

.bib-form--on-dark .fluentform .ff-message-success {
	color: var(--color-white);
}

/* --- Submit button -------------------------------------------------------- */

.bib-modal .ff_submit_btn_wrapper,
.bib-form--on-dark .ff_submit_btn_wrapper {
	margin-block-start: var(--space-2);
}

.bib-modal .ff-btn-submit {
	width: auto;
	height: 3rem;
	padding-inline: 1.625rem;
	border: 0;
	border-radius: var(--radius-full);
	background-color: var(--color-crimson);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: var(--fs-ui);
	font-weight: var(--fw-medium);
	transition: background-color var(--duration) var(--ease);
}

.bib-modal .ff-btn-submit:hover {
	background-color: var(--color-crimson-dark);
}

.bib-form--on-dark .ff-btn-submit {
	width: 100%;
	height: 3rem;
	border: 0;
	border-radius: var(--radius-sm);
	background-color: var(--color-white);
	color: var(--color-navy);
	font-family: var(--font-body);
	font-size: var(--fs-ui-base);
	font-weight: var(--fw-medium);
	transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.bib-form--on-dark .ff-btn-submit:hover {
	background-color: var(--color-crimson);
	color: var(--color-white);
}

/* ---------------------------------------------------------------------------
   Popups as a dark card (Domagoj, 2026-09-29, from the client's "Request
   information" mock-up): navy gradient card on the full-screen navy ground,
   white title, sentence-case labels, white fields, "Close ×" as text, the GDPR
   tick box, a crimson submit with "* Required fields" beside it. Overrides the
   light card above; same selectors, later in the file.
   ------------------------------------------------------------------------ */

.bib-modal .bib-modal__card {
	width: min(45.625rem, 100%);                  /* 730 [mock-up] */
	border: 0;
	border-radius: var(--radius-sm);
	background-color: var(--color-navy-abyss);
	background-image: linear-gradient(155deg, var(--color-navy-abyss) 0%, var(--color-navy) 55%, var(--color-navy-glow) 100%);
	box-shadow: 0 2.5rem 6.25rem -1.875rem rgb(0 0 0 / 0.7);
	color: var(--color-white);
}

.bib-modal .bib-modal__head {
	padding: 3rem 3.375rem 0;
}

.bib-modal .bib-modal__title {
	font-size: clamp(1.75rem, 3vw, 2.375rem);
	font-weight: var(--fw-regular);
	line-height: 1.15;
	color: var(--color-white);
}

.bib-modal .bib-modal__sub {
	margin-block-start: var(--space-3);
	font-family: var(--font-display);
	font-size: var(--fs-ui-md);
	line-height: 1.6;
	color: var(--color-on-dark-soft);
}

/* A round × — the one way to close with the mouse. */
.bib-modal .bib-modal__x {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgb(255 255 255 / 0.4);
	border-radius: 50%;
	background: none;
	color: var(--color-white);
	transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.bib-modal .bib-modal__x:hover,
.bib-modal .bib-modal__x:focus-visible {
	border-color: var(--color-white);
	background-color: var(--color-white);
	color: var(--color-navy);
}

.bib-modal .bib-modal__ctx,
.bib-modal .bib-modal__estimate {
	margin-inline: 3.375rem;
}

.bib-modal .bib-modal__ctx .bib-chip {
	background-color: rgb(255 255 255 / 0.1);
	color: var(--color-white);
}

.bib-modal .bib-modal__ctx-note {
	color: var(--color-on-dark-muted);
}

.bib-modal .bib-modal__estimate {
	background-color: rgb(255 255 255 / 0.1);
	color: var(--color-white);
}

.bib-modal .bib-modal__body {
	padding: var(--space-8) 3.375rem 3.375rem;
}

.bib-modal .frm-fluent-form > fieldset {
	column-gap: var(--space-5);
	row-gap: var(--space-6);
}

/* Fluent's own 20px under every group out-ranked ours and doubled the gap. */
.bib-modal .fluentform .ff-el-group {
	margin-block-end: 0;
}

.bib-modal .ff-el-input--label label,
.bib-modal .ff-el-input--label .lab {
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	font-weight: var(--fw-medium);
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-white);
}

.bib-modal .fluentform .ff-el-is-required label::after {
	color: var(--color-on-dark-faint);
}

.bib-modal .ff-el-form-control,
.bib-modal select.ff-el-form-control:not([size]):not([multiple]) {
	height: 3.125rem;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background-color: var(--color-white);
	color: var(--color-navy);
	font-size: var(--fs-ui-base);
}

.bib-modal textarea.ff-el-form-control {
	height: 6.5rem;
}

.bib-modal .ff-el-form-control:focus {
	border-color: var(--color-white);
	box-shadow: 0 0 0 3px rgb(255 255 255 / 0.3);
}

/* Radio pills on the dark card. */
.bib-modal .ff-el-form-check-label {
	border-color: rgb(255 255 255 / 0.35);
	color: var(--color-white);
}

.bib-modal .ff-el-form-check-label:has(.ff-el-form-check-radio:checked),
.bib-modal .ff-el-form-check-label:has(.ff-el-form-check-checkbox:checked) {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-navy);
}

.bib-modal .fluentform .ff-el-is-error .text-danger,
.bib-modal .fluentform .error-text {
	color: var(--color-crimson-on-dark);
}

.bib-modal .fluentform .ff-message-success {
	color: var(--color-white);
}

/* Fluent's clearfix pseudo-elements would be flex items (a gap before the
   button). */
.bib-modal .fluentform .ff-el-group.ff_submit_btn_wrapper::before,
.bib-modal .fluentform .ff-el-group.ff_submit_btn_wrapper::after {
	display: none;
}

.bib-modal .ff_submit_btn_wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-6);
	margin-block-start: 0;
}

.bib-modal .ff-btn-submit {
	height: 3.375rem;
	padding-inline: 2.25rem;
	border-radius: var(--radius-sm);
	font-size: var(--fs-ui-base);
	font-weight: var(--fw-semibold);
}

.bib-modal__req {
	font-family: var(--font-body);
	font-size: var(--fs-ui-sm);
	color: var(--color-on-dark-muted);
}

/* Done screen on the dark card. */
.bib-modal .bib-modal__done {
	padding: 3rem 3.375rem;
}

.bib-modal .bib-modal__done-title {
	color: var(--color-white);
}

.bib-modal .bib-modal__done-text,
.bib-modal .bib-modal__next-list > div {
	color: var(--color-on-dark-soft);
}

.bib-modal .bib-modal__next-list,
.bib-modal .bib-modal__next-list > div {
	border-color: var(--color-on-dark-border);
}

.bib-modal .bib-modal__next-list i {
	color: var(--color-crimson-on-dark);
}

.bib-modal .bib-modal__done-row .bib-btn--navy {
	background-color: var(--color-white);
	color: var(--color-navy);
}

.bib-modal .bib-modal__done-row .bib-btn--navy:hover {
	background-color: var(--color-slate-200);
	color: var(--color-navy);
}

.bib-modal .bib-modal__done-row .bib-btn--outline {
	border-color: rgb(255 255 255 / 0.4);
	color: var(--color-white);
}

.bib-modal .bib-modal__done-row .bib-btn--outline:hover {
	border-color: var(--color-white);
	background-color: rgb(255 255 255 / 0.08);
	color: var(--color-white);
}

/* ---------------------------------------------------------------------------
   GDPR tick box — on every form but the newsletter (seed-gdpr-consent.php).
   A real square box and plain text, NOT the radio-pill look the popup and
   final-card rules give other check labels; the text takes its ground's
   colour (white on the dark cards, ink on the light forms).
   ------------------------------------------------------------------------ */

.fluentform .ff-el-group.bib-gdpr {
	grid-column: 1 / -1;
}

.fluentform .ff-el-group.bib-gdpr .ff-el-form-check-label {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-family: var(--font-body);
	font-size: var(--fs-ui-tag);             /* 13 (Domagoj, 2026-10-05) */
	font-weight: var(--fw-regular);
	line-height: 1.55;
	color: inherit;
}

.bib-modal .fluentform .ff-el-group.bib-gdpr .ff-el-form-check-label,
.bib-form--on-dark .fluentform .ff-el-group.bib-gdpr .ff-el-form-check-label {
	color: var(--color-white);
}

.fluentform .ff-el-group.bib-gdpr .ff-el-form-check-label:has(input:checked) {
	background: none;
	color: inherit;
}

.bib-modal .fluentform .ff-el-group.bib-gdpr .ff-el-form-check-label:has(input:checked),
.bib-form--on-dark .fluentform .ff-el-group.bib-gdpr .ff-el-form-check-label:has(input:checked) {
	color: var(--color-white);
}

.fluentform .ff-el-group.bib-gdpr .ff_tc_checkbox {
	flex: none;
	display: grid;
}

.fluentform .ff-el-group.bib-gdpr input.ff_gdpr_field {
	position: static;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	clip-path: none;
	opacity: 1;
	overflow: visible;
	border: 1px solid var(--bib-line-2, var(--color-border));
	border-radius: 2px;
	background-color: var(--color-white);
	appearance: none;
	cursor: pointer;
}

.fluentform .ff-el-group.bib-gdpr input.ff_gdpr_field:checked {
	border-color: var(--color-crimson);
	background-color: var(--color-crimson);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 100% 100%;
}

.fluentform .ff-el-group.bib-gdpr input.ff_gdpr_field:focus-visible {
	outline: 2px solid var(--color-crimson);
	outline-offset: 2px;
}

/* Text centred on the box on every form, not only in the popups
   (Domagoj, 2026-10-05). Fluent pads the box's wrapper 8px at the top, with !important
   (`.ff-el-tc label.ff_tc_label > span`), which sat the box low. */
.fluentform .ff-el-group.bib-gdpr .ff_tc_checkbox {
	display: flex;
	align-items: center;
	padding-top: 0 !important;
}

.fluentform .ff-el-group.bib-gdpr .ff_t_c {
	font-size: var(--fs-ui-tag);             /* 13 */
	/* One line is exactly the box's 20px, so a one-line consent sits level with
	   the box on every form (Domagoj, 2026-11-11; it was 19.5). */
	line-height: 1.25rem;
	min-height: 1.25rem;
}

.fluentform .ff-el-group.bib-gdpr .ff_t_c a {
	color: inherit;
	font-weight: var(--fw-medium);
	text-decoration: underline;
}

.fluentform .ff-el-group.bib-gdpr .ff_t_c a:hover {
	color: var(--color-crimson);
}

.bib-modal .fluentform .ff-el-group.bib-gdpr .ff_t_c a:hover,
.bib-form--on-dark .fluentform .ff-el-group.bib-gdpr .ff_t_c a:hover {
	color: var(--color-crimson-on-dark);
}

/* ---------------------------------------------------------------------------
   Responsive — on phones too the card stays centred (no bottom sheet since
   2026-09-29), with a gutter all round.
   ------------------------------------------------------------------------ */

@media (max-width: 47.99em) {
	.bib-modal {
		padding: var(--space-4);
	}

	.bib-modal .bib-modal__head {
		padding: var(--space-7) var(--space-5) 0;
	}

	.bib-modal .bib-modal__body {
		padding: var(--space-6) var(--space-5) var(--space-7);
	}

	.bib-modal .bib-modal__ctx,
	.bib-modal .bib-modal__estimate {
		margin-inline: var(--space-5);
	}

	.bib-modal .bib-modal__done {
		padding: var(--space-7) var(--space-5);
	}

	.bib-modal__card {
		width: 100%;
		max-height: calc(100dvh - 2 * var(--space-4));
	}

	.bib-modal__head,
	.bib-modal__body {
		padding-inline: 1.375rem;
	}

	.bib-modal__ctx,
	.bib-modal__estimate {
		margin-inline: 1.375rem;
	}

	.bib-modal__consent {
		padding-inline: 1.375rem;
	}

	.bib-modal__done {
		padding: 1.375rem;
	}
}

/* ---------------------------------------------------------------------------
   The header's general "Apply now" popup (template-parts/global/apply-modal.php)
   — its fields change with the programme chosen, so the card's height does.
   It was anchored to the top so it only grew downward; since 2026-09-29 every
   popup is centred (Domagoj), so it is centred too. On phones it keeps one
   height.
   Fluent slides conditional fields in and out (jQuery, 200ms): switched to
   instant, so the form does not ripple as several fields change at once.
   ------------------------------------------------------------------------ */

#lsb-apply-modal .has-conditions {
	height: auto !important;
	margin-block: 0 !important;
	padding-block: 0 !important;
	overflow: visible !important;
}

/* Fluent marks a field excluded as its slide-up starts: gone at once, so the
   old programme's fields never sit beside the new one's. */
#lsb-apply-modal .has-conditions.ff_excluded {
	display: none !important;
}

@media (max-width: 47.99em) {
	#lsb-apply-modal .bib-modal__card {
		height: calc(100dvh - 2 * var(--space-4));
	}
}

/* A choice a page script has withdrawn for now (the Career Center's
   "An alumnus" until "I've graduated" is picked, assets/js/cc-support.js). */
.bib-modal .ff-el-form-check.is-gone {
	display: none;
}
