/**
 * OraKnight Forms - front-end styles.
 *
 * Part 1 is the always-on base (honeypot, messages, radio / checkbox
 * helpers). Part 2 is the optional "Base Styling" design, which only
 * applies to forms carrying the .cfb-styled class. Forms without that
 * class are never restyled, so hand-built templates stay untouched.
 *
 * Design language (taken from the the OraKnight homepage):
 *   warm cream surface  #F7F6F1     hairline borders  #D9E2DE
 *   brand teal          #0F7C7A     numerals / accent #0E9492
 *   ink (headings)      #203534     body text         #455956
 *   Lora (serif) headings + DM Sans body, small radii, thin rules.
 */

/* ============================================================
   1. Base
   ============================================================ */

.cfb-hp-wrap {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0 !important;
	width: 0 !important;
	overflow: hidden !important;
}

.cfb-message {
	margin-top: 12px;
}

.cfb-message:empty {
	display: none;
}

.cfb-message-success {
	color: #1a7f37;
}

.cfb-message-error {
	color: #c1121f;
}

.cfb-submit-btn.cfb-loading {
	opacity: 0.6;
	cursor: wait;
	pointer-events: none;
}

.cfb-radio-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cfb-radio-option,
.cfb-checkbox-option {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: normal;
}

/* ============================================================
   2. Optional "Base Styling" design  (.cfb-styled)
   Every token is a CSS variable, so any of them can be overridden
   from the theme or Elementor custom CSS, e.g.
     .cfb-styled { --cfb-green: #0F7C7A; }
   (Old "green" variable names are kept for backward compatibility.)
   ============================================================ */

.cfb-styled {
	--cfb-green: #0F7C7A;        /* primary teal - buttons, focus, progress   */
	--cfb-green-dark: #0B6664;   /* hover / pressed                           */
	--cfb-green-deep: #203534;   /* ink - titles and labels                   */
	--cfb-green-light: #CFE5E1;  /* soft teal - focus ring, done states       */
	--cfb-accent: #0E9492;       /* numerals and small accents                */
	--cfb-eyebrow: #176A68;      /* small uppercase kickers                   */
	--cfb-tint: #EDF5F3;         /* selected / highlighted surfaces           */
	--cfb-cream: #F7F6F1;        /* field background (site background)        */
	--cfb-cream-dark: #D9E2DE;   /* hairline borders                          */
	--cfb-line: #D9E2DE;
	--cfb-line-strong: #BCCFCA;
	--cfb-gold: #EE9B7E;         /* peach - rating stars only                 */
	--cfb-gold-light: #F7CDBC;
	--cfb-black: #203534;
	--cfb-ink: #203534;
	--cfb-muted: #455956;        /* paragraphs, secondary text                */
	--cfb-soft: #6F8480;         /* hints, inactive step labels               */
	--cfb-placeholder: #8DA09C;
	--cfb-danger: #B3261E;
	--cfb-radius-field: 10px;
	--cfb-radius-area: 10px;
	--cfb-radius-btn: 8px;
	--cfb-radius-card: 16px;
	--cfb-font-serif: "Lora", Georgia, "Times New Roman", serif;
	--cfb-font-heading: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--cfb-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	position: relative;
	width: 100%;
	max-width: 760px;
	box-sizing: border-box;
	padding: clamp(24px, 4.5vw, 46px);
	background: #FFFFFF;
	border: 1px solid var(--cfb-line);
	border-radius: var(--cfb-radius-card);
	box-shadow: 0 28px 56px -40px rgba(32, 53, 52, 0.35);
	overflow: hidden;
	overflow: clip; /* clip (unlike hidden) can never be scrolled sideways by scrollIntoView() */
	font-family: var(--cfb-font-body);
	font-size: 16px;
	color: var(--cfb-ink);
	scroll-margin-top: 110px;
	-webkit-font-smoothing: antialiased;
}

.cfb-styled *,
.cfb-styled *::before,
.cfb-styled *::after {
	box-sizing: border-box;
}

/* Two-column grid. Any template can reuse .cfb-grid / .cfb-field / .cfb-col-full. */
.cfb-styled .cfb-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 18px;
}

.cfb-styled .cfb-col-full {
	grid-column: 1 / -1;
}

.cfb-styled .cfb-field {
	min-width: 0;
}

/* ---------- Step heading ---------- */

.cfb-styled .cfb-step-head {
	margin: 0 0 28px;
}

.cfb-styled .cfb-step-kicker {
	display: block;
	margin: 0 0 12px;
	font-family: var(--cfb-font-heading);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cfb-eyebrow);
}

.cfb-styled .cfb-step-title {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--cfb-font-serif);
	font-size: clamp(26px, 3.6vw, 34px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--cfb-green-deep);
}

.cfb-styled .cfb-step-intro {
	margin: 0;
	max-width: 52ch;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--cfb-muted);
}

/* ---------- Labels and inputs ---------- */

.cfb-styled label {
	display: block;
	margin: 0 0 8px;
	font-family: var(--cfb-font-heading);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.005em;
	color: var(--cfb-green-deep);
}

.cfb-styled .cfb-req {
	color: var(--cfb-accent);
	font-weight: 700;
}

.cfb-styled input[type="text"],
.cfb-styled input[type="email"],
.cfb-styled input[type="tel"],
.cfb-styled input[type="number"],
.cfb-styled input[type="url"],
.cfb-styled input[type="date"],
.cfb-styled select,
.cfb-styled textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 16px;
	height: 52px;
	font-family: var(--cfb-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--cfb-black);
	background-color: var(--cfb-cream);
	border: 1px solid var(--cfb-line);
	border-radius: var(--cfb-radius-field);
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.cfb-styled input::placeholder,
.cfb-styled textarea::placeholder {
	color: var(--cfb-placeholder);
	opacity: 1;
}

.cfb-styled select {
	padding-right: 46px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230F7C7A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 12px 12px;
}

.cfb-styled textarea {
	height: auto;
	min-height: 140px;
	padding: 15px 16px;
	border-radius: var(--cfb-radius-area);
	resize: vertical;
}

.cfb-styled input:hover,
.cfb-styled select:hover,
.cfb-styled textarea:hover {
	border-color: var(--cfb-line-strong);
}

.cfb-styled input:focus,
.cfb-styled select:focus,
.cfb-styled textarea:focus {
	outline: none;
	background-color: #FFFFFF;
	border-color: var(--cfb-green);
	box-shadow: 0 0 0 4px rgba(15, 124, 122, 0.14);
}

.cfb-styled input[type="file"] {
	display: block;
	width: 100%;
	padding: 14px 16px;
	font-family: var(--cfb-font-body);
	font-size: 14px;
	color: var(--cfb-ink);
	background: var(--cfb-cream);
	border: 1.5px dashed var(--cfb-line-strong);
	border-radius: var(--cfb-radius-field);
}

.cfb-styled input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 16px;
	font-family: var(--cfb-font-heading);
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: var(--cfb-green);
	border: 0;
	border-radius: var(--cfb-radius-btn);
	cursor: pointer;
}

/* ---------- Radio / checkbox options: selectable cards ---------- */

/* Short options flow as pill-sized chips and wrap naturally */
.cfb-styled .cfb-radio-group {
	display: flex;
	flex-flow: row wrap;
	gap: 10px;
}

.cfb-styled .cfb-radio-group .cfb-radio-option {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Options written as "Title|Short description" become stacked cards */
.cfb-styled .cfb-radio-group.cfb-radio-rich {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.cfb-styled .cfb-radio-group.cfb-radio-rich .cfb-radio-option {
	white-space: normal;
}

.cfb-styled .cfb-radio-option,
.cfb-styled .cfb-checkbox-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 13px 16px;
	font-family: var(--cfb-font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--cfb-black);
	background: var(--cfb-cream);
	border: 1px solid var(--cfb-line);
	border-radius: var(--cfb-radius-field);
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cfb-styled .cfb-radio-rich .cfb-radio-option {
	align-items: flex-start;
	padding: 16px 18px;
}

.cfb-styled .cfb-radio-option:hover,
.cfb-styled .cfb-checkbox-option:hover {
	border-color: var(--cfb-line-strong);
}

.cfb-styled .cfb-radio-option:has(input:checked),
.cfb-styled .cfb-checkbox-option:has(input:checked) {
	background: var(--cfb-tint);
	border-color: var(--cfb-green);
	box-shadow: 0 0 0 3px rgba(15, 124, 122, 0.10);
}

.cfb-styled .cfb-radio-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.cfb-styled .cfb-radio-title {
	font-weight: 600;
	color: var(--cfb-green-deep);
}

.cfb-styled .cfb-radio-desc {
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--cfb-muted);
}

/* Custom radio + checkbox controls */
.cfb-styled input[type="radio"],
.cfb-styled input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	padding: 0;
	background: #FFFFFF;
	border: 1.5px solid var(--cfb-line-strong);
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.cfb-styled input[type="radio"] {
	border-radius: 50%;
}

.cfb-styled input[type="checkbox"] {
	border-radius: 6px;
}

.cfb-styled input[type="radio"]:checked {
	border-color: var(--cfb-green);
	background: #FFFFFF;
	box-shadow: inset 0 0 0 4.5px var(--cfb-green);
}

.cfb-styled input[type="checkbox"]:checked {
	border-color: var(--cfb-green);
	background-color: var(--cfb-green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 14px 14px;
}

.cfb-styled input[type="radio"]:focus,
.cfb-styled input[type="checkbox"]:focus {
	box-shadow: none;
}

.cfb-styled input[type="radio"]:checked:focus {
	box-shadow: inset 0 0 0 4.5px var(--cfb-green);
}

.cfb-styled input[type="radio"]:focus-visible,
.cfb-styled input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--cfb-green);
	outline-offset: 3px;
}

/* A required consent checkbox reads as a sentence, not a chip */
.cfb-styled .cfb-checkbox-option {
	align-items: flex-start;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--cfb-muted);
}

.cfb-styled .cfb-field-hint {
	margin: 8px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--cfb-soft);
}

.cfb-styled .cfb-math-captcha {
	margin-top: 22px;
	padding: 16px 18px;
	background: var(--cfb-tint);
	border-radius: var(--cfb-radius-field);
}

.cfb-styled .cfb-math-captcha label {
	margin: 0 0 8px;
}

.cfb-styled .cfb-math-captcha input {
	background: #fff;
	height: 46px;
}

/* ---------- Primary button: solid teal, soft corners, arrow ---------- */

.cfb-styled .cfb-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 0;
	padding: 0 28px;
	height: 54px;
	font-family: var(--cfb-font-heading);
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.005em;
	color: #fff;
	background: var(--cfb-green);
	border: 0;
	border-radius: var(--cfb-radius-btn);
	box-shadow: 0 14px 28px -16px rgba(15, 124, 122, 0.8);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cfb-styled .cfb-submit-btn:hover {
	background: var(--cfb-green-dark);
	box-shadow: 0 18px 32px -16px rgba(11, 102, 100, 0.9);
	transform: translateY(-1px);
}

.cfb-styled .cfb-submit-btn:focus-visible,
.cfb-styled .cfb-step-next:focus-visible,
.cfb-styled .cfb-step-back:focus-visible {
	outline: 3px solid rgba(15, 124, 122, 0.32);
	outline-offset: 3px;
}

.cfb-styled .cfb-submit-btn:active {
	transform: translateY(1px);
}

.cfb-styled .cfb-submit-arrow {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.cfb-styled .cfb-submit-btn:hover .cfb-submit-arrow {
	transform: translate(2px, -2px);
}

.cfb-styled .cfb-submit-btn.cfb-loading {
	opacity: 0.7;
}

/* Small print under the form (add <p class="cfb-privacy"> to a template) */
.cfb-styled .cfb-privacy {
	margin: 20px 0 0;
	padding-top: 16px;
	font-family: var(--cfb-font-body);
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--cfb-soft);
	border-top: 1px solid var(--cfb-line);
}

/* Highlighted note (e.g. "complimentary 30-minute intake") */
.cfb-styled .cfb-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 24px;
	padding: 14px 16px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--cfb-green-deep);
	background: var(--cfb-tint);
	border: 1px solid #D3E5E1;
	border-radius: var(--cfb-radius-field);
}

.cfb-styled .cfb-note::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border-radius: 50%;
	background-color: var(--cfb-green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 11px 11px;
}

/* ---------- Success / error message ---------- */

.cfb-styled .cfb-message {
	margin-top: 18px;
	padding: 16px 18px;
	border-radius: var(--cfb-radius-field);
	font-size: 15px;
	line-height: 1.6;
}

.cfb-styled .cfb-message-success {
	background: var(--cfb-tint);
	color: var(--cfb-green-deep);
	border: 1px solid #D3E5E1;
}

.cfb-styled .cfb-message-error {
	background: #FBEAE8;
	color: var(--cfb-danger);
	border: 1px solid #F1C9C5;
}

/* After a successful multi-step submit the form becomes a calm thank-you panel */
.cfb-styled.cfb-done .cfb-message-success {
	margin: 0;
	padding: 18px 4px 6px;
	font-family: var(--cfb-font-serif);
	font-size: clamp(21px, 3vw, 26px);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.01em;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.cfb-styled.cfb-done .cfb-message-success::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin: 0 0 22px;
	border-radius: 50%;
	background-color: var(--cfb-green);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 26px 26px;
	box-shadow: 0 0 0 8px rgba(15, 124, 122, 0.12);
}

/* ---------- Multi-step buttons ---------- */

.cfb-styled .cfb-step-back,
.cfb-styled .cfb-step-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 54px;
	padding: 0 28px;
	font-family: var(--cfb-font-heading);
	font-size: 15px;
	font-weight: 700;
	border-radius: var(--cfb-radius-btn);
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cfb-styled .cfb-step-next {
	color: #fff;
	background: var(--cfb-green);
	box-shadow: 0 14px 28px -16px rgba(15, 124, 122, 0.8);
}

.cfb-styled .cfb-step-next:hover {
	background: var(--cfb-green-dark);
	transform: translateY(-1px);
}

.cfb-styled .cfb-step-next svg {
	transition: transform 0.2s ease;
}

.cfb-styled .cfb-step-next:hover svg {
	transform: translateX(3px);
}

.cfb-styled .cfb-step-back {
	color: var(--cfb-green-deep);
	background: transparent;
	border: 1px solid var(--cfb-line-strong);
}

.cfb-styled .cfb-step-back:hover {
	background: var(--cfb-cream);
	border-color: var(--cfb-green);
}

.cfb-styled .cfb-field-invalid {
	border-color: var(--cfb-danger) !important;
	box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.10) !important;
}

/* Radios and checkboxes: flag the card, keep the control's own look */
.cfb-styled input[type="radio"].cfb-field-invalid,
.cfb-styled input[type="checkbox"].cfb-field-invalid {
	box-shadow: none !important;
}

.cfb-styled .cfb-radio-option:has(input.cfb-field-invalid),
.cfb-styled .cfb-checkbox-option:has(input.cfb-field-invalid) {
	border-color: #E3A9A4;
	background: #FDF4F3;
}

.cfb-styled .cfb-step-error {
	margin: 18px 0 0;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cfb-danger);
	background: #FBEAE8;
	border: 1px solid #F1C9C5;
	border-radius: var(--cfb-radius-field);
}

@media (max-width: 560px) {
	.cfb-styled .cfb-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.cfb-styled .cfb-step-nav {
		flex-wrap: wrap;
	}

	.cfb-styled .cfb-step-back {
		padding: 0 20px;
	}

	.cfb-styled .cfb-step-next,
	.cfb-styled .cfb-step-nav .cfb-submit-btn {
		flex: 1 1 100%;
		order: -1;
	}

	.cfb-styled .cfb-step-back {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cfb-styled *,
	.cfb-styled *::before,
	.cfb-styled *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ============================================================
   3. MULTI-STEP ("wizard") MODE
   Applies to any [data-steps="1"] form, whether or not Base
   Styling is also on, since these are structural rules.
   ============================================================ */

.cfb-step-marker {
	display: none;
}

.cfb-step {
	display: none;
}

.cfb-step.cfb-step-active {
	display: block;
	animation: cfb-step-fade-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cfb-step-fade-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.cfb-step-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 30px;
}

/* On the last step the real Submit button sits in the nav - let it fill the row */
.cfb-step-nav .cfb-submit-btn {
	width: auto;
	flex: 1 1 auto;
	margin-top: 0;
}

.cfb-step-back,
.cfb-step-next {
	cursor: pointer;
}

.cfb-step-back[hidden] {
	display: none !important;
}

.cfb-step-next {
	margin-left: auto;
}

/* After a successful AJAX submit the form collapses to just the thank-you message */
.cfb-form.cfb-done .cfb-step,
.cfb-form.cfb-done .cfb-step-nav,
.cfb-form.cfb-done .cfb-progress-wrap,
.cfb-form.cfb-done .cfb-step-counter {
	display: none !important;
}

/* "Step 2 of 4 - Your session" line */
.cfb-step-counter {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #455956;
}

/* Progress bar */
.cfb-progress-bar-track {
	height: 4px;
	background: #E3EBE8;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 18px;
}

.cfb-progress-bar-fill {
	height: 100%;
	background: #0F7C7A;
	border-radius: 999px;
	transition: width 0.35s ease;
}

/* Dots */
.cfb-progress-dots {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
}

.cfb-progress-dots .cfb-progress-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #D3DFDB;
	transition: background 0.2s ease, transform 0.2s ease;
}

.cfb-progress-dots .cfb-progress-dot.cfb-progress-current {
	background: #0F7C7A;
	transform: scale(1.3);
}

.cfb-progress-dots .cfb-progress-dot.cfb-progress-done {
	background: #7CBDBA;
}

/* Numbered steps */
.cfb-progress-numbers {
	display: flex;
	gap: 6px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.cfb-progress-numbers .cfb-progress-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	background: #E3EBE8;
	color: #455956;
}

.cfb-progress-numbers .cfb-progress-num.cfb-progress-current {
	background: #0F7C7A;
	color: #fff;
}

.cfb-progress-numbers .cfb-progress-num.cfb-progress-done {
	background: #7CBDBA;
	color: #0B4F4E;
}

/* Labeled stepper (default for the appointment form) - mirrors the
   "01 / 02 / 03" columns on the site: a hairline per step that fills
   with teal, a serif numeral and the step name underneath. */
.cfb-progress-stepper {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 12px;
	list-style: none;
	margin: 0 0 36px;
	padding: 0;
}

.cfb-progress-stepper .cfb-progress-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	padding-top: 16px;
	text-align: left;
}

.cfb-progress-stepper .cfb-progress-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 3px;
	background: #D9E2DE;
	transition: background 0.3s ease;
}

.cfb-progress-stepper .cfb-progress-item.cfb-progress-done::before,
.cfb-progress-stepper .cfb-progress-item.cfb-progress-current::before {
	background: #0F7C7A;
}

.cfb-progress-stepper .cfb-progress-dot-num {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: "Lora", Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	color: #9DB0AB;
	transition: color 0.25s ease;
}

.cfb-progress-stepper .cfb-progress-item.cfb-progress-current .cfb-progress-dot-num,
.cfb-progress-stepper .cfb-progress-item.cfb-progress-done .cfb-progress-dot-num {
	color: #0E9492;
}

/* completed steps get a small tick after the numeral */
.cfb-progress-stepper .cfb-progress-item.cfb-progress-done .cfb-progress-dot-num::after {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-color: #0F7C7A;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 9px 9px;
}

.cfb-progress-stepper .cfb-progress-label {
	max-width: 100%;
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: #7C8F8B;
	transition: color 0.25s ease;
}

.cfb-progress-stepper .cfb-progress-item.cfb-progress-current .cfb-progress-label {
	color: #203534;
}

.cfb-progress-stepper .cfb-progress-item.cfb-progress-done .cfb-progress-label {
	color: #455956;
}

@media (max-width: 560px) {
	.cfb-progress-stepper {
		gap: 8px;
		margin-bottom: 28px;
	}

	/* On phones show only the active step's name, to keep the row clean */
	.cfb-progress-stepper .cfb-progress-item:not(.cfb-progress-current) .cfb-progress-label {
		display: none;
	}
}

.cfb-field-invalid {
	border-color: #c1121f !important;
	box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.12) !important;
}

.cfb-field-hint {
	font-size: 12px;
	color: #666;
	margin: 2px 0 0;
}

.cfb-ext-toggle {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: 12px;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.cfb-ext-toggle:hover,
.cfb-ext-toggle:focus {
	color: #000;
}

/* ============================================================
   4. Conditional Logic - hidden by default (matches the common
   real-world case where the triggering field starts empty), then
   shown/hidden accurately once cfb-frontend.js evaluates on load.
   ============================================================ */

.cfb-cond-field[data-cfb-cond-field] {
	display: none;
}

/* ============================================================
   5. Rating field (pure CSS star rating - no JS required)
   ============================================================ */

.cfb-rating-group {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
	margin: 4px 0 14px;
}

.cfb-rating-group input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.cfb-rating-group label {
	font-size: 28px;
	line-height: 1;
	color: #d5d8dc;
	cursor: pointer;
	transition: color 0.15s ease;
}

.cfb-rating-group input:checked ~ label,
.cfb-rating-group label:hover,
.cfb-rating-group label:hover ~ label {
	color: #EE9B7E;
}

.cfb-rating-group input:focus-visible + label {
	outline: 2px solid #0F7C7A;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Course registration - selected course card */
.cfb-styled .cfb-course-card {
	border: 1.5px solid var(--cfb-brand, #0F7C7A);
	background: rgba(15, 124, 122, 0.06);
	border-radius: 14px;
	padding: 16px 18px;
	margin: 0 0 18px;
}
.cfb-styled .cfb-course-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--cfb-brand, #0F7C7A);
	margin-bottom: 6px;
}
.cfb-styled .cfb-course-title { margin: 0 0 8px; font-size: 18px; }
.cfb-styled .cfb-course-meta { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.7; }


/* ============================================================
   Upload popup - progress bar shown while files are being sent
   ============================================================ */
html.cfb-upload-lock { overflow: hidden; }
.cfb-upload-popup {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; background: rgba(32, 53, 52, 0.55);
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.cfb-upload-popup[hidden] { display: none; }
.cfb-upload-card {
	width: 100%; max-width: 420px; box-sizing: border-box;
	background: #fff; color: #203534; border-radius: 16px;
	padding: 28px 26px 24px; text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	font-family: inherit;
}
.cfb-upload-icon {
	width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
	background: #EDF5F3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7C7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.cfb-upload-ok .cfb-upload-icon {
	background-color: #E3F4EA;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B7F46' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.cfb-upload-fail .cfb-upload-icon {
	background-color: #FBE9E7;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3261E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}
.cfb-upload-title { margin: 0 0 16px; font-size: 18px; line-height: 1.3; color: #203534; }
.cfb-upload-bar { height: 10px; border-radius: 99px; background: #D9E2DE; overflow: hidden; }
.cfb-upload-fill {
	display: block; height: 100%; width: 0; border-radius: 99px;
	background: linear-gradient(90deg, #0F7C7A, #0E9492);
	transition: width 0.2s ease;
}
.cfb-upload-processing .cfb-upload-fill {
	background-size: 28px 28px;
	background-image: linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.28) 75%, transparent 75%);
	animation: cfb-upload-stripes 0.9s linear infinite;
}
.cfb-upload-fail .cfb-upload-fill { background: #B3261E; }
@keyframes cfb-upload-stripes { to { background-position: 28px 0; } }
.cfb-upload-meta { display: flex; justify-content: space-between; margin: 8px 2px 0; font-size: 13px; color: #455956; }
.cfb-upload-pct { font-weight: 700; }
.cfb-upload-text { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #455956; }
.cfb-upload-close {
	margin-top: 18px; padding: 11px 26px; border: 0; border-radius: 99px;
	background: #0F7C7A; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.cfb-upload-close:hover, .cfb-upload-close:focus { background: #0B6664; }
.cfb-upload-close[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
	.cfb-upload-fill { transition: none; }
	.cfb-upload-processing .cfb-upload-fill { animation: none; }
}


/* ============================================================
   6. ORAKNIGHT DESIGN  (.cfb-styled.cfb-theme-ak)
   Applied only to the two OraKnight forms ("Start Your Case" and
   "Course Registration"). Every other form is untouched.
   Palette sampled from the approved design:
     ink / button #0A1727   cream line #E9E5DC   label #6E7D90
     body #47566A           required * #348BCE   small print #738194
   Typeface: Plus Jakarta Sans.
   ============================================================ */

.cfb-styled.cfb-theme-ak {
	--ak-ink: #0A1727;
	--ak-slate: #47566A;
	--ak-label: #6E7D90;
	--ak-foot: #738194;
	--ak-line: #E9E5DC;
	--ak-line-strong: #CFC8B6;
	--ak-blue: #348BCE;
	--ak-paper: #FBFAF7;
	--ak-ph: #6B7685;
	--ak-danger: #B3261E;
	--ak-font: "Plus Jakarta Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ak-ease: cubic-bezier(0.2, 0.8, 0.2, 1);

	/* remap the legacy tokens so shared rules follow the new palette */
	--cfb-green: #0A1727;
	--cfb-green-dark: #0A1727;
	--cfb-green-deep: #0A1727;
	--cfb-accent: #348BCE;
	--cfb-tint: #F4F6F9;
	--cfb-cream: #FFFFFF;
	--cfb-line: #E9E5DC;
	--cfb-line-strong: #CFC8B6;
	--cfb-danger: #B3261E;
	--cfb-radius-field: 0;
	--cfb-radius-area: 0;
	--cfb-radius-btn: 999px;
	--cfb-radius-card: 0;

	max-width: 640px;
	padding: clamp(24px, 7vw, 46px);
	background: #FFFFFF;
	border: 0;
	border-radius: 0;
	box-shadow: 0 34px 70px -34px rgba(2, 8, 16, 0.65);
	font-family: var(--ak-font);
	color: var(--ak-ink);
}

/* thin accent line along the top edge - draws itself once on load */
.cfb-styled.cfb-theme-ak::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--ak-ink) 0%, var(--ak-blue) 100%);
	transform-origin: left center;
	transition: transform 1.1s var(--ak-ease);
}

.cfb-styled.cfb-theme-ak.cfb-intro:not(.cfb-intro-go)::before {
	transform: scaleX(0);
}

/* ---------- Form heading ---------- */

.cfb-styled.cfb-theme-ak .cfb-form-head {
	margin: 0 0 26px;
}

.cfb-styled.cfb-theme-ak .cfb-form-title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--ak-font);
	font-size: clamp(28px, 5vw, 34px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-transform: none;
	color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-form-intro {
	margin: 0;
	max-width: 56ch;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ak-slate);
}

/* ---------- Step indicator: two lines that fill with ink ---------- */

.cfb-styled.cfb-theme-ak .cfb-progress-stepper {
	gap: 10px;
	margin: 0 0 28px;
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item {
	gap: 3px;
	padding-top: 14px;
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item::before,
.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-done::before,
.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-current::before {
	height: 2px;
	border-radius: 0;
	background: var(--ak-line);
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--ak-ink);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.6s var(--ak-ease);
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-current::after,
.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-done::after {
	transform: scaleX(1);
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-dot-num {
	font-family: var(--ak-font);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #9AA6B6;
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-current .cfb-progress-dot-num,
.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-done .cfb-progress-dot-num {
	color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-done .cfb-progress-dot-num::after {
	background-color: var(--ak-ink);
	animation: cfb-ak-pop 0.4s var(--ak-ease) both;
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-label {
	font-family: var(--ak-font);
	font-size: 12.5px;
	font-weight: 600;
	color: #8D99AA;
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-current .cfb-progress-label {
	color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-done .cfb-progress-label {
	color: var(--ak-slate);
}

/* ---------- Step heading ---------- */

.cfb-styled.cfb-theme-ak .cfb-step-head {
	margin: 0 0 18px;
}

.cfb-styled.cfb-theme-ak .cfb-step-title {
	margin: 0 0 3px;
	font-family: var(--ak-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-step-intro {
	max-width: none;
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ak-slate);
}

.cfb-styled.cfb-theme-ak .cfb-grid {
	gap: 20px 16px;
}

/* ---------- Labels ---------- */

.cfb-styled.cfb-theme-ak label {
	margin: 0 0 8px;
	font-family: var(--ak-font);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ak-label);
	transition: color 0.2s ease;
}

.cfb-styled.cfb-theme-ak .cfb-field:focus-within > label {
	color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-req {
	color: var(--ak-blue);
	font-weight: 700;
}

/* ---------- Inputs, selects, textarea ---------- */

.cfb-styled.cfb-theme-ak input[type="text"],
.cfb-styled.cfb-theme-ak input[type="email"],
.cfb-styled.cfb-theme-ak input[type="tel"],
.cfb-styled.cfb-theme-ak input[type="number"],
.cfb-styled.cfb-theme-ak input[type="url"],
.cfb-styled.cfb-theme-ak input[type="date"],
.cfb-styled.cfb-theme-ak select,
.cfb-styled.cfb-theme-ak textarea {
	height: 46px;
	padding: 0 14px;
	font-family: var(--ak-font);
	font-size: 15px;
	font-weight: 500;
	color: var(--ak-ink);
	background-color: #FFFFFF;
	border: 1px solid var(--ak-line);
	border-radius: 0;
	transition: border-color 0.2s ease, box-shadow 0.3s var(--ak-ease), background-color 0.2s ease;
}

.cfb-styled.cfb-theme-ak input::placeholder,
.cfb-styled.cfb-theme-ak textarea::placeholder {
	color: var(--ak-ph);
	font-weight: 400;
	opacity: 1;
	transition: opacity 0.2s ease, transform 0.25s var(--ak-ease);
}

.cfb-styled.cfb-theme-ak input:focus::placeholder,
.cfb-styled.cfb-theme-ak textarea:focus::placeholder {
	opacity: 0.45;
	transform: translateX(4px);
}

.cfb-styled.cfb-theme-ak input:hover,
.cfb-styled.cfb-theme-ak select:hover,
.cfb-styled.cfb-theme-ak textarea:hover {
	border-color: var(--ak-line-strong);
}

.cfb-styled.cfb-theme-ak input:focus,
.cfb-styled.cfb-theme-ak select:focus,
.cfb-styled.cfb-theme-ak textarea:focus {
	background-color: #FFFFFF;
	border-color: var(--ak-ink);
	box-shadow: 0 0 0 4px rgba(52, 139, 206, 0.16);
}

.cfb-styled.cfb-theme-ak input:-webkit-autofill {
	-webkit-text-fill-color: var(--ak-ink);
	-webkit-box-shadow: 0 0 0 40px #FFFFFF inset;
}

.cfb-styled.cfb-theme-ak select {
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2347566A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 16px center;
	background-size: 10px 10px;
}

.cfb-styled.cfb-theme-ak textarea {
	min-height: 140px;
	padding: 13px 14px;
	line-height: 1.55;
}

.cfb-styled.cfb-theme-ak input[type="file"] {
	padding: 14px;
	font-family: var(--ak-font);
	font-size: 13.5px;
	color: var(--ak-slate);
	background: var(--ak-paper);
	border: 1.5px dashed var(--ak-line-strong);
	border-radius: 0;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cfb-styled.cfb-theme-ak input[type="file"]:hover {
	border-color: var(--ak-ink);
	background: #FFFFFF;
}

.cfb-styled.cfb-theme-ak input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 9px 18px;
	font-family: var(--ak-font);
	font-size: 12px;
	font-weight: 700;
	color: #FFFFFF;
	background: var(--ak-ink);
	border-radius: 999px;
	transition: background-color 0.2s ease;
}

.cfb-styled.cfb-theme-ak input[type="file"]::file-selector-button:hover {
	background: #1B3350;
}

/* ---------- Hints, notes, small print ---------- */

.cfb-styled.cfb-theme-ak .cfb-field-hint {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.55;
	color: var(--ak-foot);
}

.cfb-styled.cfb-theme-ak .cfb-field-hint strong {
	font-weight: 700;
	color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-note {
	margin: 22px 0 0;
	padding: 14px 16px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ak-slate);
	background: var(--ak-paper);
	border: 1px solid var(--ak-line);
	border-left: 3px solid var(--ak-ink);
	border-radius: 0;
}

.cfb-styled.cfb-theme-ak .cfb-note {
	display: block;
}

.cfb-styled.cfb-theme-ak .cfb-note::before {
	display: inline-block;
	margin: 0 10px 0 0;
	vertical-align: -4px;
	background-color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-note strong {
	color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-form-foot {
	margin: 18px 0 0;
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--ak-foot);
}

.cfb-styled.cfb-theme-ak .cfb-math-captcha {
	background: var(--ak-paper);
	border: 1px solid var(--ak-line);
	border-radius: 0;
}

/* ---------- Choice chips (radio): the selected one fills with ink ---------- */

.cfb-styled.cfb-theme-ak .cfb-radio-group {
	gap: 8px;
}

.cfb-styled.cfb-theme-ak .cfb-radio-group .cfb-radio-option {
	flex: 0 1 auto;
	white-space: normal;
}

.cfb-styled.cfb-theme-ak .cfb-radio-option,
.cfb-styled.cfb-theme-ak .cfb-checkbox-option {
	position: relative;
	overflow: hidden;
	padding: 11px 16px;
	font-family: var(--ak-font);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.4;
	color: var(--ak-ink);
	background: #FFFFFF;
	border: 1px solid var(--ak-line);
	border-radius: 0;
	transition: border-color 0.2s ease, color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.cfb-styled.cfb-theme-ak .cfb-radio-option:hover,
.cfb-styled.cfb-theme-ak .cfb-checkbox-option:hover {
	border-color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-radio-rich .cfb-radio-option {
	padding: 14px 16px;
}

.cfb-styled.cfb-theme-ak .cfb-radio-title {
	font-weight: 700;
	color: inherit;
	transition: color 0.25s ease;
}

.cfb-styled.cfb-theme-ak .cfb-radio-desc {
	font-size: 12.5px;
	font-weight: 400;
	color: var(--ak-slate);
	transition: color 0.25s ease;
}

/* native circles stay visible on very old browsers; modern ones get the fill-sweep chip */
@supports selector(:has(*)) {
	.cfb-styled.cfb-theme-ak .cfb-radio-option input[type="radio"] {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: 0;
		opacity: 0;
		pointer-events: none;
	}

	.cfb-styled.cfb-theme-ak .cfb-radio-option::before {
		content: "";
		position: absolute;
		inset: 0;
		background: var(--ak-ink);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 0.4s var(--ak-ease);
	}

	.cfb-styled.cfb-theme-ak .cfb-radio-option > * {
		position: relative;
		z-index: 1;
	}

	.cfb-styled.cfb-theme-ak .cfb-radio-option:has(input:checked) {
		color: #FFFFFF;
		background: var(--ak-ink);
		border-color: var(--ak-ink);
		box-shadow: none;
	}

	.cfb-styled.cfb-theme-ak .cfb-radio-option:has(input:checked)::before {
		transform: scaleX(1);
	}

	.cfb-styled.cfb-theme-ak .cfb-radio-option:has(input:checked) .cfb-radio-desc {
		color: #B9C5D6;
	}

	.cfb-styled.cfb-theme-ak .cfb-radio-option:has(input:focus-visible),
	.cfb-styled.cfb-theme-ak .cfb-checkbox-option:has(input:focus-visible) {
		outline: 2px solid var(--ak-blue);
		outline-offset: 2px;
	}

	.cfb-styled.cfb-theme-ak .cfb-radio-option:has(input.cfb-field-invalid) {
		background: #FFF7F6;
		border-color: var(--ak-danger);
	}
}

/* consent checkbox: reads as a sentence with a square tick box */
.cfb-styled.cfb-theme-ak .cfb-checkbox-option {
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--ak-slate);
	background: var(--ak-paper);
}

.cfb-styled.cfb-theme-ak .cfb-checkbox-option:has(input:checked) {
	background: #FFFFFF;
	border-color: var(--ak-ink);
	box-shadow: none;
}

.cfb-styled.cfb-theme-ak input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border-color: var(--ak-line-strong);
	border-radius: 0;
	background-color: #FFFFFF;
}

.cfb-styled.cfb-theme-ak input[type="checkbox"]:checked {
	background-color: var(--ak-ink);
	border-color: var(--ak-ink);
	animation: cfb-ak-pop 0.3s var(--ak-ease);
}

.cfb-styled.cfb-theme-ak input[type="checkbox"]:focus,
.cfb-styled.cfb-theme-ak input[type="radio"]:focus {
	box-shadow: none;
	border-color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak input[type="radio"]:checked:focus {
	box-shadow: inset 0 0 0 4.5px var(--ak-ink);
}

.cfb-styled.cfb-theme-ak input[type="radio"]:checked {
	border-color: var(--ak-ink);
	box-shadow: inset 0 0 0 4.5px var(--ak-ink);
}

/* ---------- Pill buttons with a round arrow ---------- */

.cfb-styled.cfb-theme-ak .cfb-submit-btn,
.cfb-styled.cfb-theme-ak .cfb-step-next {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 8px 0 24px;
	overflow: hidden;
	font-family: var(--ak-font);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-align: left;
	color: #FFFFFF;
	background: var(--ak-ink);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 14px 26px -16px rgba(10, 23, 39, 0.75);
	cursor: pointer;
	transition: transform 0.3s var(--ak-ease), box-shadow 0.3s var(--ak-ease), background-color 0.25s ease;
}

.cfb-styled.cfb-theme-ak .cfb-step-next {
	flex: 1 1 auto;
	width: auto;
	margin-left: 0;
}

/* a soft light streak crosses the button on hover */
.cfb-styled.cfb-theme-ak .cfb-submit-btn::after,
.cfb-styled.cfb-theme-ak .cfb-step-next::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
	transform: skewX(-20deg);
	transition: left 0.8s var(--ak-ease);
	pointer-events: none;
}

.cfb-styled.cfb-theme-ak .cfb-submit-btn:hover,
.cfb-styled.cfb-theme-ak .cfb-step-next:hover {
	background: var(--ak-ink);
	transform: translateY(-2px);
	box-shadow: 0 20px 32px -16px rgba(10, 23, 39, 0.8);
}

.cfb-styled.cfb-theme-ak .cfb-submit-btn:hover::after,
.cfb-styled.cfb-theme-ak .cfb-step-next:hover::after {
	left: 130%;
}

.cfb-styled.cfb-theme-ak .cfb-submit-btn:active,
.cfb-styled.cfb-theme-ak .cfb-step-next:active {
	transform: translateY(0) scale(0.99);
}

.cfb-styled.cfb-theme-ak .cfb-submit-btn:focus-visible,
.cfb-styled.cfb-theme-ak .cfb-step-next:focus-visible,
.cfb-styled.cfb-theme-ak .cfb-step-back:focus-visible {
	outline: 3px solid rgba(52, 139, 206, 0.45);
	outline-offset: 3px;
}

.cfb-styled.cfb-theme-ak .cfb-submit-label {
	position: relative;
	z-index: 1;
}

/* round white icon; two arrows - the first leaves, the second slides in */
.cfb-styled.cfb-theme-ak .cfb-btn-icon {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	overflow: hidden;
	color: var(--ak-ink);
	background: #FFFFFF;
	border-radius: 50%;
}

.cfb-styled.cfb-theme-ak .cfb-btn-icon svg {
	grid-area: 1 / 1;
	width: 16px;
	height: 16px;
	transition: transform 0.45s var(--ak-ease), opacity 0.2s ease;
}

.cfb-styled.cfb-theme-ak .cfb-btn-icon svg:nth-child(2) {
	transform: translateX(-30px);
}

.cfb-styled.cfb-theme-ak .cfb-submit-btn:hover .cfb-btn-icon svg:nth-child(1),
.cfb-styled.cfb-theme-ak .cfb-step-next:hover .cfb-btn-icon svg:nth-child(1) {
	transform: translateX(30px);
}

.cfb-styled.cfb-theme-ak .cfb-submit-btn:hover .cfb-btn-icon svg:nth-child(2),
.cfb-styled.cfb-theme-ak .cfb-step-next:hover .cfb-btn-icon svg:nth-child(2) {
	transform: translateX(0);
}

/* sending: the arrow turns into a spinner */
.cfb-styled.cfb-theme-ak .cfb-submit-btn.cfb-loading {
	opacity: 1;
	cursor: progress;
}

.cfb-styled.cfb-theme-ak .cfb-submit-btn.cfb-loading .cfb-btn-icon svg {
	opacity: 0;
}

.cfb-styled.cfb-theme-ak .cfb-submit-btn.cfb-loading .cfb-btn-icon::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid rgba(10, 23, 39, 0.18);
	border-top-color: var(--ak-ink);
	border-radius: 50%;
	animation: cfb-ak-spin 0.7s linear infinite;
}

.cfb-styled.cfb-theme-ak .cfb-submit-btn.cfb-loading .cfb-submit-label {
	animation: cfb-ak-breathe 1.2s ease-in-out infinite;
}

.cfb-styled.cfb-theme-ak .cfb-step-back {
	height: 50px;
	padding: 0 22px;
	font-family: var(--ak-font);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ak-ink);
	background: #FFFFFF;
	border: 1px solid var(--ak-line);
	border-radius: 999px;
	transition: border-color 0.2s ease, transform 0.3s var(--ak-ease), background-color 0.2s ease;
}

.cfb-styled.cfb-theme-ak .cfb-step-back:hover {
	background: #FFFFFF;
	border-color: var(--ak-ink);
	transform: translateX(-2px);
}

.cfb-styled.cfb-theme-ak .cfb-step-nav {
	margin-top: 28px;
}

.cfb-styled.cfb-theme-ak .cfb-step-error {
	font-size: 13px;
	background: #FFF7F6;
	border: 1px solid #F1C9C5;
	border-left: 3px solid var(--ak-danger);
	border-radius: 0;
}

/* ---------- Validation ---------- */

.cfb-styled.cfb-theme-ak .cfb-field-invalid {
	border-color: var(--ak-danger) !important;
	box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.1) !important;
	animation: cfb-ak-shake 0.4s var(--ak-ease);
}

.cfb-styled.cfb-theme-ak input[type="radio"].cfb-field-invalid,
.cfb-styled.cfb-theme-ak input[type="checkbox"].cfb-field-invalid {
	animation: none;
}

.cfb-styled.cfb-theme-ak .cfb-radio-option:has(input.cfb-field-invalid),
.cfb-styled.cfb-theme-ak .cfb-checkbox-option:has(input.cfb-field-invalid) {
	animation: cfb-ak-shake 0.4s var(--ak-ease);
}

/* ---------- Course card ---------- */

.cfb-styled.cfb-theme-ak .cfb-course-card {
	margin: 0 0 22px;
	padding: 18px 20px 18px 22px;
	background: var(--ak-paper);
	border: 1px solid var(--ak-line);
	border-left: 3px solid var(--ak-ink);
	border-radius: 0;
}

.cfb-styled.cfb-theme-ak .cfb-course-badge {
	margin: 0 0 8px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--ak-blue);
}

.cfb-styled.cfb-theme-ak .cfb-course-title {
	margin: 0 0 10px;
	font-family: var(--ak-font);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-course-meta {
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--ak-slate);
}

.cfb-styled.cfb-theme-ak .cfb-course-meta strong {
	color: var(--ak-ink);
}

/* ---------- Messages ---------- */

.cfb-styled.cfb-theme-ak .cfb-message {
	border-radius: 0;
	font-size: 14px;
}

.cfb-styled.cfb-theme-ak .cfb-message-success {
	color: var(--ak-ink);
	background: var(--ak-paper);
	border: 1px solid var(--ak-line);
	border-left: 3px solid var(--ak-ink);
}

.cfb-styled.cfb-theme-ak .cfb-message-error {
	color: var(--ak-danger);
	background: #FFF7F6;
	border: 1px solid #F1C9C5;
	border-left: 3px solid var(--ak-danger);
}

/* ---------- Thank-you panel (after a successful send) ---------- */

.cfb-styled.cfb-theme-ak.cfb-done .cfb-form-head,
.cfb-styled.cfb-theme-ak.cfb-done .cfb-form-foot {
	display: none;
}

.cfb-styled.cfb-theme-ak.cfb-done .cfb-message-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 28px 8px 14px;
	font-family: var(--ak-font);
	font-size: 14.5px;
	text-align: center;
	color: var(--ak-ink);
	background: transparent;
	border: 0;
}

.cfb-styled.cfb-theme-ak.cfb-done .cfb-message-success::before {
	content: none;
}

.cfb-styled.cfb-theme-ak .cfb-ok-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 0 20px;
}

.cfb-styled.cfb-theme-ak .cfb-ok-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(52, 139, 206, 0.2);
	border-radius: 50%;
	animation: cfb-ak-ring 1.6s ease-out 0.6s 2 both;
}

.cfb-styled.cfb-theme-ak .cfb-ok-icon svg {
	position: relative;
	display: block;
}

.cfb-styled.cfb-theme-ak .cfb-ok-ring {
	stroke: var(--ak-ink);
	stroke-width: 2;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	transform: rotate(-90deg);
	transform-box: fill-box;
	transform-origin: center;
	animation: cfb-ak-draw 0.75s var(--ak-ease) 0.1s forwards;
}

.cfb-styled.cfb-theme-ak .cfb-ok-tick {
	stroke: var(--ak-ink);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: cfb-ak-draw 0.45s var(--ak-ease) 0.65s forwards;
}

.cfb-styled.cfb-theme-ak .cfb-ok-title {
	display: block;
	margin: 0 0 8px;
	font-size: clamp(22px, 4vw, 26px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--ak-ink);
	animation: cfb-ak-rise 0.55s var(--ak-ease) 0.8s both;
}

.cfb-styled.cfb-theme-ak .cfb-ok-text {
	max-width: 38ch;
	margin: 0;
	line-height: 1.6;
	color: var(--ak-slate);
	animation: cfb-ak-rise 0.55s var(--ak-ease) 0.95s both;
}

/* ---------- Motion ---------- */

/* one entrance when the form first scrolls into view */
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro .cfb-form-head,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro .cfb-progress-wrap,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro .cfb-step-active .cfb-step-head,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro .cfb-step-active .cfb-field,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro .cfb-step-active .cfb-note,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro .cfb-step-active .cfb-course-card,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro .cfb-step-nav,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro .cfb-form-foot {
	opacity: 0;
}

.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-form-head,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-progress-wrap,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-active .cfb-step-head,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-active .cfb-field,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-active .cfb-note,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-active .cfb-course-card,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-nav,
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-form-foot {
	animation: cfb-ak-rise 0.65s var(--ak-ease) both;
	animation-delay: var(--d, 0ms);
}

.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-progress-wrap { --d: 90ms; }
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-active .cfb-step-head { --d: 150ms; }
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-active .cfb-course-card { --d: 220ms; }
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-active .cfb-field { --d: calc(210ms + var(--i, 0) * 60ms); }
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-active .cfb-note { --d: 640ms; }
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-step-nav { --d: 720ms; }
.cfb-styled.cfb-theme-ak.cfb-fx.cfb-intro-go .cfb-form-foot { --d: 800ms; }

.cfb-styled.cfb-theme-ak .cfb-grid > .cfb-field:nth-child(1) { --i: 0; }
.cfb-styled.cfb-theme-ak .cfb-grid > .cfb-field:nth-child(2) { --i: 1; }
.cfb-styled.cfb-theme-ak .cfb-grid > .cfb-field:nth-child(3) { --i: 2; }
.cfb-styled.cfb-theme-ak .cfb-grid > .cfb-field:nth-child(4) { --i: 3; }
.cfb-styled.cfb-theme-ak .cfb-grid > .cfb-field:nth-child(5) { --i: 4; }
.cfb-styled.cfb-theme-ak .cfb-grid > .cfb-field:nth-child(6) { --i: 5; }
.cfb-styled.cfb-theme-ak .cfb-grid > .cfb-field:nth-child(7) { --i: 6; }
.cfb-styled.cfb-theme-ak .cfb-grid > .cfb-field:nth-child(n+8) { --i: 7; }

/* steps slide in from the side you are heading to */
.cfb-styled.cfb-theme-ak .cfb-step.cfb-step-active {
	animation: cfb-ak-step-fwd 0.45s var(--ak-ease) both;
}

.cfb-styled.cfb-theme-ak[data-dir="back"] .cfb-step.cfb-step-active {
	animation-name: cfb-ak-step-back;
}

/* a conditional field unfolds when it appears */
.cfb-styled.cfb-theme-ak .cfb-field.cfb-reveal {
	animation: cfb-ak-reveal 0.5s var(--ak-ease) both;
}

@keyframes cfb-ak-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes cfb-ak-step-fwd {
	from { opacity: 0; transform: translateX(18px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes cfb-ak-step-back {
	from { opacity: 0; transform: translateX(-18px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes cfb-ak-reveal {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes cfb-ak-shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-5px); }
	40% { transform: translateX(5px); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(3px); }
}

@keyframes cfb-ak-pop {
	0% { transform: scale(0.6); }
	60% { transform: scale(1.15); }
	100% { transform: scale(1); }
}

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

@keyframes cfb-ak-breathe {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

@keyframes cfb-ak-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes cfb-ak-ring {
	0% { transform: scale(0.8); opacity: 0.9; }
	100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 560px) {
	.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item:not(.cfb-progress-current) .cfb-progress-label {
		display: none;
	}

	.cfb-styled.cfb-theme-ak .cfb-step-next,
	.cfb-styled.cfb-theme-ak .cfb-step-nav .cfb-submit-btn {
		flex: 1 1 100%;
	}

	.cfb-styled.cfb-theme-ak .cfb-step-back {
		flex: 1 1 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cfb-styled.cfb-theme-ak .cfb-form-head,
	.cfb-styled.cfb-theme-ak .cfb-progress-wrap,
	.cfb-styled.cfb-theme-ak .cfb-step-head,
	.cfb-styled.cfb-theme-ak .cfb-field,
	.cfb-styled.cfb-theme-ak .cfb-note,
	.cfb-styled.cfb-theme-ak .cfb-course-card,
	.cfb-styled.cfb-theme-ak .cfb-step-nav,
	.cfb-styled.cfb-theme-ak .cfb-form-foot,
	.cfb-styled.cfb-theme-ak .cfb-ok-title,
	.cfb-styled.cfb-theme-ak .cfb-ok-text {
		opacity: 1 !important;
	}

	.cfb-styled.cfb-theme-ak .cfb-ok-ring,
	.cfb-styled.cfb-theme-ak .cfb-ok-tick {
		stroke-dashoffset: 0 !important;
	}

	.cfb-styled.cfb-theme-ak::before,
	.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item::after {
		transition: none !important;
	}
}

/* ---------- Upload progress popup, OraKnight look ---------- */

.cfb-upload-popup.cfb-theme-ak {
	background: rgba(10, 23, 39, 0.72);
}

.cfb-upload-popup.cfb-theme-ak .cfb-upload-card {
	color: #0A1727;
	font-family: "Plus Jakarta Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	border-top: 3px solid #0A1727;
	border-radius: 0;
	animation: cfb-ak-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cfb-upload-popup.cfb-theme-ak .cfb-upload-icon {
	background-color: #F1F4F8;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1727' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
}

.cfb-upload-popup.cfb-theme-ak.cfb-upload-ok .cfb-upload-icon {
	background-color: #0A1727;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.cfb-upload-popup.cfb-theme-ak .cfb-upload-title {
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #0A1727;
}

.cfb-upload-popup.cfb-theme-ak .cfb-upload-bar {
	height: 6px;
	background: #E9E5DC;
}

.cfb-upload-popup.cfb-theme-ak .cfb-upload-fill {
	background-color: #0A1727;
	background-image: linear-gradient(90deg, #0A1727, #348BCE);
}

.cfb-upload-popup.cfb-theme-ak.cfb-upload-processing .cfb-upload-fill {
	background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.22) 75%, transparent 75%), linear-gradient(90deg, #0A1727, #348BCE);
	background-size: 28px 28px, 100% 100%;
}

.cfb-upload-popup.cfb-theme-ak .cfb-upload-meta,
.cfb-upload-popup.cfb-theme-ak .cfb-upload-text {
	color: #47566A;
}

.cfb-upload-popup.cfb-theme-ak .cfb-upload-close {
	background: #0A1727;
	font-family: inherit;
	font-weight: 700;
}

.cfb-upload-popup.cfb-theme-ak .cfb-upload-close:hover,
.cfb-upload-popup.cfb-theme-ak .cfb-upload-close:focus {
	background: #1B3350;
}

/* ============================================================
   7. SHORT FORMS + ARABIC (RTL) / FRENCH  (4.6.0)
   - the two OraKnight forms are one page now: the second section
     heading gets breathing room instead of a step break;
   - cfb-i18n.js sets dir="rtl" + data-cfb-lang="ar" on the wrapper
     (.cfb-ak-wrap) when the visitor switches the site to Arabic.
   ============================================================ */

.cfb-styled.cfb-theme-ak .cfb-step-head.cfb-section-gap {
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--ak-line);
}

/* Arabic needs joined letters: no letter-spacing / capitals, and an Arabic typeface */
.cfb-ak-wrap[data-cfb-lang="ar"] .cfb-styled.cfb-theme-ak,
.cfb-upload-popup[data-cfb-lang="ar"] {
	--ak-font: "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
	font-family: var(--ak-font);
}

.cfb-ak-wrap[data-cfb-lang="ar"] .cfb-styled.cfb-theme-ak *,
.cfb-upload-popup[data-cfb-lang="ar"] * {
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.cfb-ak-wrap[data-cfb-lang="ar"] .cfb-styled.cfb-theme-ak label {
	font-size: 13px;
}

.cfb-ak-wrap[data-cfb-lang="ar"] .cfb-styled.cfb-theme-ak .cfb-form-title {
	line-height: 1.35;
}

/* mirror the left-based details */
.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak {
	text-align: right;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak::before {
	transform-origin: right center;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-note,
.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-course-card,
.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-message-success,
.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-message-error {
	border-left: 1px solid var(--ak-line);
	border-right: 3px solid var(--ak-ink);
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-message-error {
	border-left: 1px solid #F1C9C5;
	border-right: 3px solid var(--ak-danger);
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-course-card {
	padding: 18px 22px 18px 20px;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-note::before {
	margin: 0 0 0 10px;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-course-meta {
	padding-right: 0;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak select {
	padding-right: 14px;
	padding-left: 42px;
	background-position: left 16px center;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak input[type="file"]::file-selector-button {
	margin-right: 0;
	margin-left: 12px;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-radio-option::before {
	transform-origin: right center;
}

/* e-mail, phone and link are typed left-to-right even on an Arabic page */
.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak input[type="email"],
.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak input[type="tel"],
.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak input[type="url"] {
	direction: ltr;
	text-align: right;
}

/* pill button: label on the right, round arrow on the left, arrow points left */
.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-submit-btn {
	padding: 0 24px 0 8px;
	text-align: right;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-btn-icon {
	transform: scaleX(-1);
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-submit-btn::after {
	left: auto;
	right: -60%;
	transition-property: right;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak .cfb-submit-btn:hover::after {
	left: auto;
	right: 130%;
}

.cfb-ak-wrap[dir="rtl"] .cfb-styled.cfb-theme-ak #cfb_field_case_id {
	direction: ltr;
	text-align: right;
}

/* ============================================================
   8. ORAKNIGHT SQUARE DESIGN  (4.9.0)
   Matches the website: bold navy Plus Jakarta Sans headings, a thin
   gold rule + gold small caps, quiet body text, outlined square
   buttons. NO rounded corners anywhere.
   ============================================================ */

.cfb-styled {
	--ok-navy: #0C1727;
	--ok-gold: #8A7447;
	--ok-gold-soft: #C9B48A;
	--ok-text: #3E4A5B;
	--ok-line: #DDD8CB;
	--ok-paper: #FAF8F3;
	--ok-font: "Plus Jakarta Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--cfb-radius-field: 0;
	--cfb-radius-area: 0;
	--cfb-radius-btn: 0;
	--cfb-radius-card: 0;
}

/* --- no border radius, anywhere inside the form (spinner excepted) --- */
.cfb-styled,
.cfb-styled *,
.cfb-styled *::before,
.cfb-styled *::after,
.cfb-upload-popup *,
.cfb-upload-popup *::before,
.cfb-upload-popup *::after,
.cfb-message,
.cfb-message * {
	border-radius: 0 !important;
}
.cfb-styled .cfb-submit-btn.cfb-loading .cfb-btn-icon::after {
	border-radius: 50% !important; /* keeps the loading spinner a circle */
}

/* --- card --- */
.cfb-styled.cfb-theme-ak {
	background: #FFFFFF;
	border: 0;
	font-family: var(--ok-font);
	color: var(--ok-text);
	box-shadow: 0 34px 70px -34px rgba(2, 8, 16, 0.65);
}
.cfb-styled.cfb-theme-ak::before {
	height: 3px;
	background: var(--ok-gold);
}

/* --- headings: thin gold rule, then a bold navy title --- */
.cfb-styled.cfb-theme-ak .cfb-form-title::before,
.cfb-styled.cfb-theme-ak .cfb-step-kicker::before {
	content: "";
	display: inline-block;
	width: 44px;
	height: 1px;
	margin: 0 14px 4px 0;
	vertical-align: middle;
	background: var(--ok-gold);
}
.cfb-styled.cfb-theme-ak .cfb-form-title {
	font-family: var(--ok-font);
	font-size: clamp(30px, 5.2vw, 42px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -0.04em;
	color: var(--ok-navy);
}
.cfb-styled.cfb-theme-ak .cfb-form-title::before {
	display: block;
	margin: 0 0 16px;
}
.cfb-styled.cfb-theme-ak .cfb-form-intro,
.cfb-styled.cfb-theme-ak .cfb-step-intro {
	font-size: 16px;
	line-height: 1.65;
	color: var(--ok-text);
}
.cfb-styled.cfb-theme-ak .cfb-step-kicker {
	font-family: var(--ok-font);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ok-gold);
}
.cfb-styled.cfb-theme-ak .cfb-step-title {
	font-family: var(--ok-font);
	font-size: clamp(24px, 3.6vw, 30px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.035em;
	color: var(--ok-navy);
}

/* --- labels, required mark, hints --- */
.cfb-styled.cfb-theme-ak label {
	font-family: var(--ok-font);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--ok-navy);
}
.cfb-styled.cfb-theme-ak .cfb-req {
	color: var(--ok-gold);
}
.cfb-styled.cfb-theme-ak .cfb-field-hint,
.cfb-styled.cfb-theme-ak .cfb-form-foot {
	color: #5E6A7B;
}

/* --- fields --- */
.cfb-styled.cfb-theme-ak input[type="text"],
.cfb-styled.cfb-theme-ak input[type="email"],
.cfb-styled.cfb-theme-ak input[type="tel"],
.cfb-styled.cfb-theme-ak input[type="number"],
.cfb-styled.cfb-theme-ak input[type="url"],
.cfb-styled.cfb-theme-ak input[type="date"],
.cfb-styled.cfb-theme-ak select,
.cfb-styled.cfb-theme-ak textarea {
	font-family: var(--ok-font);
	color: var(--ok-navy);
	background: var(--ok-paper);
	border: 1px solid var(--ok-line);
	border-bottom-color: var(--ok-navy);
	box-shadow: none;
}
.cfb-styled.cfb-theme-ak input:focus,
.cfb-styled.cfb-theme-ak select:focus,
.cfb-styled.cfb-theme-ak textarea:focus {
	background: #FFFFFF;
	border-color: var(--ok-navy);
	box-shadow: 0 0 0 3px rgba(138, 116, 71, 0.22);
	outline: none;
}

/* --- radio / checkbox cards keep their own checked style; only the accent changes --- */
.cfb-styled.cfb-theme-ak .cfb-radio-option:hover,
.cfb-styled.cfb-theme-ak .cfb-checkbox-option:hover {
	border-color: var(--ok-gold);
}

/* --- notes / privacy rule --- */
.cfb-styled.cfb-theme-ak .cfb-note {
	background: var(--ok-paper);
	border: 1px solid var(--ok-line);
	border-left: 3px solid var(--ok-gold);
	color: var(--ok-text);
}

/* --- buttons: square, outlined like the site; primary action is solid navy --- */
.cfb-styled.cfb-theme-ak .cfb-step-back,
.cfb-styled.cfb-theme-ak .cfb-step-next,
.cfb-styled.cfb-theme-ak .cfb-submit-btn,
.cfb-styled.cfb-theme-ak button[type="submit"] {
	font-family: var(--ok-font);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	box-shadow: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.cfb-styled.cfb-theme-ak .cfb-step-back {
	color: var(--ok-navy);
	background: transparent;
	border: 1px solid var(--ok-navy);
}
.cfb-styled.cfb-theme-ak .cfb-step-back:hover {
	color: #FFFFFF;
	background: var(--ok-navy);
}
.cfb-styled.cfb-theme-ak .cfb-step-next,
.cfb-styled.cfb-theme-ak .cfb-submit-btn,
.cfb-styled.cfb-theme-ak button[type="submit"] {
	color: #FFFFFF;
	background: var(--ok-navy);
	border: 1px solid var(--ok-navy);
}
.cfb-styled.cfb-theme-ak .cfb-step-next:hover,
.cfb-styled.cfb-theme-ak .cfb-submit-btn:hover,
.cfb-styled.cfb-theme-ak button[type="submit"]:hover {
	color: var(--ok-navy);
	background: transparent;
	transform: none;
}
.cfb-styled.cfb-theme-ak .cfb-step-next::after,
.cfb-styled.cfb-theme-ak .cfb-submit-btn::after {
	display: none; /* no shine streak - flat, square look */
}

/* --- step indicator --- */
.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-done::before,
.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-item.cfb-progress-current::before {
	background: var(--ok-gold);
}
.cfb-styled.cfb-theme-ak .cfb-progress-stepper .cfb-progress-label {
	font-family: var(--ok-font);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* --- upload popup + messages --- */
.cfb-upload-card { border-radius: 0 !important; }
.cfb-upload-fill { background-color: #0C1727; }

/* Forms already saved on the site still contain the two removed headings
   ("Doctor & Case Details" and "Doctor Profile") - hide them too. */
.cfb-styled .cfb-step-head:has([data-i18n="case_s1_t"]),
.cfb-styled .cfb-step-head:has([data-i18n="course_s1_t"]) {
	display: none !important;
}
