/*
 * ib-forms skin: gives the two submission forms (PWD form, general WPForms form) and the
 * «قدم فكرتك» landing the visual language of the new initiativesbank.ps design:
 * navy ink, orange + blue, Rubik, soft sky background, 14–26px radii, glass hero box.
 *
 * Loaded after form.css / gateway.css, so it only overrides looks. Behaviour, markup of the
 * form itself and every accessibility rule stay as they were (visible field borders >= 3:1,
 * focus rings, 52px targets, text on orange is navy, never white).
 */

/* ------------------------------------------------------------ shared tokens */
.ibf.ibf,
.ibf-gw.ibf-gw,
.ibf-hero {
	--sk-navy: #101740;
	--sk-blue: #0561a0;
	--sk-blue-d: #034a7c;
	--sk-orange: #f27731;
	--sk-orange-d: #a8470c;
	--sk-orange-50: #fef0e6;
	--sk-blue-50: #eaf3fb;
	--sk-blue-100: #d3e6f5;
	--sk-bg2: #f4f8fc;
	--sk-line: #e4e9f3;
	--sk-text2: #3a4468;
	--sk-muted: #5a6585;
	--sk-shadow: 0 1px 2px rgb(16 23 64 / 4%), 0 14px 34px -18px rgb(16 23 64 / 28%);
	--sk-grad: linear-gradient(135deg, #f68b47 0%, #f27731 55%, #e2621c 100%);
	--sk-grad-text: linear-gradient(90deg, #f27731 0%, #f0951f 55%, #c98a06 100%);
	--sk-font: "Rubik", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

/* Soft sky page behind the glass boxes, like the new design (only on pages that carry them). */
body:has(.ibf-hero, .ibf-gw--landing) .site-content {
	background: linear-gradient(180deg, #eef5fc 0, #f6f8fc 640px);
}

/* The theme's own title bar is replaced by the hero below. */
body:has(.ibf-hero) .page-header {
	display: none;
}

/* ------------------------------------------------------------ hero box (PWD page + landing) */
.ibf-hero,
.ibf-gw--landing .ibf-lp-hero {
	direction: rtl;
	font-family: var(--sk-font);
}

.ibf-hero {
	box-sizing: border-box;
	max-inline-size: 1180px;
	margin: 0 auto;
	padding: 24px 16px 4px;
}

.ibf-hero__box,
.ibf-gw.ibf-gw--landing .ibf-lp-in {
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	display: block;
	max-inline-size: none;
	margin: 0;
	padding: 26px 20px 24px;
	border: 1px solid #fff;
	border-radius: 26px;
	background: rgb(255 255 255 / 76%);
	backdrop-filter: blur(10px);
	box-shadow: var(--sk-shadow);
	color: var(--sk-navy);
}

.ibf-hero__box::after,
.ibf-gw.ibf-gw--landing .ibf-lp-in::after {
	content: "";
	position: absolute;
	inline-size: 260px;
	block-size: 260px;
	border-radius: 50%;
	inset-inline-end: -80px;
	inset-block-start: -110px;
	background: radial-gradient(circle, rgb(242 119 49 / 20%), transparent 70%);
	pointer-events: none;
}

.ibf-hero__crumbs {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	color: var(--sk-muted);
}

.ibf-hero__crumbs a {
	color: inherit;
	text-decoration: none;
}

.ibf-hero__crumbs a:hover,
.ibf-hero__crumbs a:focus-visible {
	color: var(--sk-orange-d);
	text-decoration: underline;
}

.ibf-hero__title,
.ibf-gw.ibf-gw--landing .ibf-lp-title {
	position: relative;
	z-index: 1;
	margin: 0 0 10px;
	max-inline-size: none;
	font-family: var(--sk-font);
	font-size: clamp(1.9rem, 4.2vw, 2.9rem);
	font-weight: 800;
	line-height: 1.3;
	color: var(--sk-navy);
	text-wrap: balance;
}

.ibf-hero .grad,
.ibf-gw--landing .grad {
	background: var(--sk-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ibf-hero__lead,
.ibf-gw.ibf-gw--landing .ibf-lp-lead {
	position: relative;
	z-index: 1;
	max-inline-size: 46em;
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.85;
	color: var(--sk-text2);
}

.ibf-badges {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.ibf-badges li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 14px;
	border: 1px solid var(--sk-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--sk-shadow);
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--sk-text2);
}

.ibf-badges svg {
	flex: none;
	inline-size: 16px;
	block-size: 16px;
	color: var(--sk-orange);
}

/* On phones the hero spans the screen like the form below it (same trick as .ibf bleed). */
@media (max-width: 599.98px) {
	.ibf-hero {
		max-inline-size: none;
		margin-inline: calc(50% - 50vw) !important;
	}
}

@media (min-width: 720px) {
	.ibf-hero {
		padding-block-start: 36px;
	}

	.ibf-hero__box,
	.ibf-gw.ibf-gw--landing .ibf-lp-in {
		padding: 36px 36px 30px;
	}
}

/* ------------------------------------------------------------ the PWD form */
.ibf.ibf {
	--ibf-radius: 14px;
	--_page: #f6f8fc;
	--_surface: #fff;
	--_surface-2: var(--sk-bg2);
	--_ink: var(--sk-navy);
	--_muted: var(--sk-muted);
	--_line: var(--sk-line);
	--_field-line: #7d88a8; /* 3.4:1 on the field fill */
	--_input-bg: var(--sk-bg2);
	--_action: var(--sk-blue);
	--_action-hover: var(--sk-blue-d);
	--_on-action: #fff;
	--_soft: var(--sk-blue-50);
	--_soft-line: var(--sk-blue-100);
	--_marker: var(--sk-orange);
	--_on-marker: var(--sk-navy);
	--_err: #b3261e;
	--_err-bg: #fdf0ee;
	--_ok: #1d6b3a;
	--_warn-bg: #fff3d6;
	--_focus: var(--sk-blue);
	--_shadow: var(--sk-shadow);
	--_r: 20px;
	--_r-sm: 14px;

	color-scheme: light;
	font-family: var(--sk-font);
}

.ibf .ibf-app,
.ibf .ibf-head {
	font-family: var(--sk-font);
}

/* Main card: white, soft border and shadow, no coloured top bar. */
@container ibf (min-width: 600px) {
	.ibf .ibf-app {
		padding: 0;
		background: none;
	}

	.ibf .ibf-main {
		border: 1px solid var(--sk-line);
		border-block-start: 1px solid var(--sk-line);
		border-radius: 26px;
		box-shadow: var(--sk-shadow);
		overflow: clip;
	}

	.ibf .ibf-actions {
		border-radius: 0;
		margin-block-end: 0;
	}
}

/* Step header: orange pill count, bold title, blue→orange progress bar. */
.ibf.ibf .ibf-stepcount {
	display: inline-flex;
	align-items: center;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--sk-orange-50);
	color: var(--sk-orange-d);
	font-weight: 700;
}

.ibf.ibf .ibf-steptitle,
.ibf.ibf .ibf-title {
	color: var(--sk-navy);
	font-family: var(--sk-font);
	font-weight: 800;
}

.ibf .ibf-progress__track {
	block-size: 5px;
	background: var(--sk-line);
}

.ibf .ibf-progress__fill {
	background: linear-gradient(90deg, var(--sk-blue), var(--sk-orange));
}

/* Section headings inside a step get the hexagon marker used across the new design. */
.ibf.ibf .ibf-heading__title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--sk-navy);
	font-weight: 800;
}

.ibf.ibf .ibf-heading__title::before {
	content: "";
	flex: none;
	inline-size: 16px;
	block-size: 16px;
	background: var(--sk-orange);
	clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.ibf .ibf-heading {
	border-block-start-color: var(--sk-line);
}

/* Labels and fields. */
.ibf .ibf-label {
	color: var(--sk-navy);
	font-weight: 700;
}

.ibf.ibf .ibf-input {
	border-radius: 14px;
	background: var(--sk-bg2);
}

.ibf.ibf .ibf-input:hover {
	background: #eef4fa;
}

.ibf.ibf .ibf-input:focus {
	background: #fff;
	border-color: var(--sk-blue);
	box-shadow: 0 0 0 5px rgb(5 97 160 / 14%);
}

.ibf.ibf .has-error > .ibf-input,
.ibf.ibf .has-error > .ibf-select-wrap > .ibf-input {
	background: var(--_err-bg);
}

/* Choices: soft rounded tiles, blue when picked (the check mark stays, so colour is never alone). */
.ibf.ibf label.opt {
	border-radius: 14px;
	background: #fff;
	border-color: var(--sk-line);
}

.ibf.ibf label.opt:hover {
	border-color: #aab7cc;
	background: var(--sk-bg2);
}

.ibf.ibf label.opt:has(input:checked) {
	border-color: var(--sk-blue);
	background: var(--sk-blue-50);
	color: var(--sk-blue-d);
	font-weight: 600;
}

/* Buttons: blue "next", orange gradient on the last step, white "previous". */
.ibf.ibf .ibf-btn {
	border-radius: 12px;
	font-family: var(--sk-font);
	font-weight: 600;
}

.ibf.ibf .ibf-btn--primary {
	background: var(--sk-blue);
	border-color: var(--sk-blue);
	color: #fff;
}

.ibf.ibf .ibf-btn--primary:hover:not(:disabled) {
	background: var(--sk-blue-d);
	border-color: var(--sk-blue-d);
}

.ibf.ibf .ibf-btn--submit,
.ibf.ibf .ibf-btn--submit:hover:not(:disabled) {
	background: var(--sk-grad);
	border-color: transparent;
	color: var(--sk-navy);
	font-weight: 800;
	box-shadow: 0 10px 22px -12px var(--sk-orange);
}

.ibf.ibf .ibf-btn--secondary {
	background: #fff;
	border-color: var(--sk-line);
	color: var(--sk-navy);
	box-shadow: var(--sk-shadow);
}

.ibf.ibf .ibf-btn--secondary:hover:not(:disabled) {
	border-color: var(--sk-orange);
	color: var(--sk-orange-d);
}

.ibf.ibf .ibf-btn--add {
	border-radius: 16px;
	border-color: var(--sk-blue-100);
	color: var(--sk-blue);
	background: transparent;
}

.ibf.ibf .ibf-btn--add:hover {
	background: var(--sk-blue-50);
	border-color: var(--sk-blue);
}

/* Action bar. */
.ibf .ibf-actions {
	background: rgb(251 252 254 / 96%);
	border-block-start-color: var(--sk-line);
}

/* Repeating cards (team members, activities): numbered round badge, alternating blue / orange. */
.ibf .ibf-cards {
	counter-reset: ibfc;
}

.ibf .ibf-card {
	counter-increment: ibfc;
	border: 1.5px solid var(--sk-line);
	border-radius: 20px;
	background: #fff;
}

.ibf.ibf .ibf-card__title {
	font-weight: 800;
	color: var(--sk-navy);
}

.ibf.ibf .ibf-card__title::before {
	content: counter(ibfc);
	display: grid;
	place-items: center;
	flex: none;
	inline-size: 34px;
	block-size: 34px;
	border-radius: 50%;
	background: var(--sk-blue);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 800;
}

.ibf .ibf-card:nth-child(even) .ibf-card__title::before {
	background: var(--sk-orange);
	color: var(--sk-navy);
}

/* Review. */
.ibf .ibf-rev {
	border: 1px solid var(--sk-line);
	border-radius: 18px;
	background: #fff;
}

.ibf.ibf .ibf-rev__title {
	color: var(--sk-blue);
	font-weight: 800;
}

.ibf.ibf .ibf-edit {
	border-radius: 10px;
	background: var(--sk-bg2);
	color: var(--sk-blue);
	font-weight: 600;
}

.ibf.ibf .ibf-edit:hover {
	background: var(--sk-blue);
	color: #fff;
}

/* Desktop side rail: round numbers like the new wizard (current = orange ring). */
@container ibf (min-width: 980px) {
	.ibf .is-visited .ibf-rail__num {
		border-color: var(--sk-blue);
		background: var(--sk-blue);
		color: #fff;
	}

	.ibf .is-current .ibf-rail__num {
		border-color: var(--sk-orange);
		background: #fff;
		color: var(--sk-orange-d);
		box-shadow: 0 0 0 6px var(--sk-orange-50);
	}

	.ibf.ibf .is-current .ibf-rail__btn {
		background: transparent;
		color: var(--sk-navy);
	}
}

/* Success screen, notices. */
.ibf .ibf-success,
.ibf .ibf-closed {
	border-radius: 26px;
}

.ibf .ibf-notice {
	border-radius: 14px;
}

/* ------------------------------------------------------------ «قدم فكرتك» landing + choice */
.ibf-gw.ibf-gw {
	--ibf-radius: 14px;
	font-family: var(--sk-font);
}

.ibf-gw.ibf-gw--landing {
	--lp-ink: var(--sk-navy);
	--lp-muted: var(--sk-muted);
	--lp-line: var(--sk-line);
	--lp-soft-blue: var(--sk-blue-50);
	--lp-soft-teal: var(--sk-orange-50);
	gap: 32px;
	padding-block-end: 48px;
	font-family: var(--sk-font);
}

.ibf-gw.ibf-gw--landing .ibf-lp-hero {
	margin-inline: 0;
	background: none;
	color: var(--sk-navy);
	overflow: visible;
}

.ibf-gw.ibf-gw--landing .ibf-lp-hero::after {
	display: none;
}

.ibf-gw.ibf-gw--landing .ibf-lp-actions {
	position: relative;
	z-index: 1;
	margin-block-start: 18px;
}

.ibf-gw.ibf-gw--landing .ibf-lp-cta {
	background: var(--sk-grad);
	color: var(--sk-navy);
	border-radius: 12px;
	font-weight: 800;
	box-shadow: 0 10px 22px -12px var(--sk-orange);
}

.ibf-gw.ibf-gw--landing .ibf-lp-note {
	color: var(--sk-muted);
}

/* Choice card sits under the hero (no overlap) and looks like the wizard cards. */
.ibf-gw.ibf-gw--landing .ibf-gw-ask,
.ibf-gw .ibf-gw-ask {
	margin-block: 0 8px;
	border: 1px solid var(--sk-line);
	border-block-start: 1px solid var(--sk-line);
	border-radius: 26px;
	background: #fff;
	box-shadow: var(--sk-shadow);
}

.ibf-gw .ibf-gw-step {
	display: inline-flex;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--sk-orange-50);
	color: var(--sk-orange-d);
}

.ibf-gw .ibf-gw-q {
	font-family: var(--sk-font);
	font-weight: 800;
	color: var(--sk-navy);
}

.ibf-gw .ibf-gw-btn {
	border: 2px solid var(--sk-line);
	border-radius: 20px;
	background: #fff;
	font-family: var(--sk-font);
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ibf-gw .ibf-gw-btn:hover {
	transform: translateY(-2px);
}

.ibf-gw .ibf-gw-ico {
	border-radius: 15px;
}

/* General initiative = blue, inclusive (PWD) initiative = orange, as in the new design. */
.ibf-gw.ibf-gw .ibf-gw-btn--no {
	border-color: var(--sk-blue-100);
	background: linear-gradient(180deg, #f3f8fd, #fff);
}

.ibf-gw.ibf-gw .ibf-gw-btn--no .ibf-gw-ico {
	background: var(--sk-blue-50);
	color: var(--sk-blue);
}

.ibf-gw.ibf-gw .ibf-gw-btn--no:hover,
.ibf-gw.ibf-gw .ibf-gw-btn--no[aria-checked="true"] {
	border-color: var(--sk-blue);
	box-shadow: 0 16px 30px -22px var(--sk-blue);
}

.ibf-gw.ibf-gw .ibf-gw-btn--yes {
	border-color: #fbd9c3;
	background: linear-gradient(180deg, #fff7f1, #fff);
}

.ibf-gw.ibf-gw .ibf-gw-btn--yes .ibf-gw-ico {
	background: var(--sk-orange-50);
	color: var(--sk-orange);
}

.ibf-gw.ibf-gw .ibf-gw-btn--yes:hover,
.ibf-gw.ibf-gw .ibf-gw-btn--yes[aria-checked="true"] {
	border-color: var(--sk-orange);
	box-shadow: 0 16px 30px -22px var(--sk-orange);
}

.ibf-gw.ibf-gw .ibf-gw-btn--no .ibf-gw-cta {
	background: var(--sk-blue);
	color: #fff;
	border-radius: 12px;
}

.ibf-gw.ibf-gw .ibf-gw-btn--yes .ibf-gw-cta {
	background: var(--sk-grad);
	color: var(--sk-navy);
	border-radius: 12px;
	font-weight: 800;
}

/* Info sections under the choice. */
.ibf-gw.ibf-gw--landing .ibf-lp-sec h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--sk-navy);
	font-weight: 800;
}

.ibf-gw.ibf-gw--landing .ibf-lp-sec h2::before {
	content: "";
	flex: none;
	inline-size: 16px;
	block-size: 16px;
	background: var(--sk-orange);
	clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.ibf-gw.ibf-gw--landing .ibf-lp-sub {
	color: var(--sk-muted);
}

.ibf-gw.ibf-gw--landing .ibf-lp-steps li {
	gap: 8px;
	padding: 20px;
	border: 1px solid var(--sk-line);
	border-block-start: 1px solid var(--sk-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--sk-shadow);
}

.ibf-gw.ibf-gw--landing .ibf-lp-num {
	display: grid;
	place-items: center;
	justify-self: start;
	inline-size: 40px;
	block-size: 40px;
	border-radius: 50%;
	background: var(--sk-blue);
	color: #fff;
	font-size: 1.05rem;
}

.ibf-gw.ibf-gw--landing .ibf-lp-steps li:nth-child(even) .ibf-lp-num {
	background: var(--sk-orange);
	color: var(--sk-navy);
}

.ibf-gw.ibf-gw--landing .ibf-lp-domains li::before {
	background: var(--sk-orange);
}

.ibf-gw.ibf-gw--landing .ibf-lp-faq details {
	border: 1px solid var(--sk-line);
	border-radius: 14px;
	background: #fff;
}

.ibf-gw.ibf-gw--landing .ibf-lp-faq summary {
	font-weight: 700;
	color: var(--sk-navy);
}

/* ------------------------------------------------------------ the general form (WPForms 28040) */
.ibf-gw .ibf-gw-old {
	--gf-ink: var(--sk-navy);
	--gf-muted: var(--sk-muted);
	--gf-line: #7d88a8;
	--gf-soft: var(--sk-bg2);
	--gf-accent: var(--sk-blue);
	--gf-accent-2: var(--sk-orange);
}

.ibf-gw .ibf-gw-old div.wpforms-container-full {
	--wpforms-field-border-radius: 14px;
	--wpforms-field-border-color: #7d88a8;
	--wpforms-field-background-color: var(--sk-bg2);
	--wpforms-button-border-radius: 12px;
	border: 1px solid var(--sk-line);
	border-radius: 26px;
	box-shadow: var(--sk-shadow);
	font-family: var(--sk-font);
	color: var(--sk-navy);
}

.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form .wpforms-field-label {
	color: var(--sk-navy);
	font-weight: 700;
}

.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="date"], select, textarea) {
	border-radius: 14px !important;
	background: var(--sk-bg2) !important;
}

.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="date"], select, textarea):focus {
	background: #fff !important;
	border-color: var(--sk-blue) !important;
	box-shadow: 0 0 0 5px rgb(5 97 160 / 14%) !important;
}

/* Section dividers: same hexagon-marker heading as the PWD form instead of a tinted box. */
.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form .wpforms-field-divider {
	border-radius: 0;
	background: none;
	border-inline-start: 0;
	border-block-start: 1px solid var(--sk-line);
	padding-block-start: 22px !important;
}

.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form .wpforms-field-divider h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--sk-navy);
	font-family: var(--sk-font);
	font-weight: 800;
}

.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form .wpforms-field-divider h3::before {
	content: "";
	flex: none;
	inline-size: 16px;
	block-size: 16px;
	background: var(--sk-orange);
	clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form .wpforms-field-radio li,
.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form .wpforms-field-checkbox li {
	border-radius: 14px;
}

.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form .wpforms-field-radio li:has(input:checked),
.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form .wpforms-field-checkbox li:has(input:checked) {
	border-color: var(--sk-blue);
	background: var(--sk-blue-50);
}

.ibf-gw .ibf-gw-old div.wpforms-container-full .wpforms-form button.wpforms-submit {
	background: var(--sk-grad) !important;
	color: var(--sk-navy) !important;
	font-family: var(--sk-font) !important;
	font-weight: 800 !important;
	box-shadow: 0 10px 22px -12px var(--sk-orange) !important;
}

@media (prefers-reduced-motion: reduce) {
	.ibf-gw .ibf-gw-btn {
		transition: none;
	}

	.ibf-gw .ibf-gw-btn:hover {
		transform: none;
	}
}

/* ------------------------------------------------------------ «قدم فكرتك»: one-page wizard layout */
.ibf-gw--landing .ibf-lp-wiz {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.ibf-gw--landing .ibf-lp-main {
	min-inline-size: 0;
	border: 1px solid var(--sk-line);
	border-radius: 26px;
	background: #fff;
	box-shadow: var(--sk-shadow);
	overflow: hidden;
}

.ibf-gw--landing .ibf-lp-main .ibf-gw-ask {
	margin: 0;
	padding: 26px 22px 28px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

/* The chosen form lives inside the same card, under a thin divider. */
.ibf-gw--landing .ibf-gw-pwd,
.ibf-gw--landing .ibf-gw-old {
	border-block-start: 1px solid var(--sk-line);
}

.ibf-gw--landing .ibf-gw-pwd .ibf .ibf-app {
	padding: 0;
	background: none;
}

.ibf-gw--landing .ibf-gw-pwd .ibf .ibf-main {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ibf-gw--landing .ibf-gw-old div.wpforms-container-full {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
}

/* Side column: tip card (blue) + FAQ card. */
.ibf-gw--landing .ibf-lp-aside {
	position: sticky;
	inset-block-start: 100px;
	display: grid;
	gap: 16px;
}

.ibf-tip {
	padding: 22px;
	border-radius: 22px;
	background: linear-gradient(160deg, var(--sk-blue), var(--sk-blue-d));
	color: #fff;
	font-family: var(--sk-font);
}

.ibf-tip__ico {
	display: grid;
	place-items: center;
	inline-size: 42px;
	block-size: 42px;
	margin-block-end: 10px;
	border-radius: 13px;
	background: rgb(255 255 255 / 15%);
}

.ibf-tip__ico svg {
	inline-size: 22px;
	block-size: 22px;
}

.ibf-tip b {
	display: block;
	margin-block-end: 6px;
	font-size: 1.05rem;
}

.ibf-tip p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.85;
	color: rgb(255 255 255 / 90%);
}

.ibf-gw--landing .ibf-side-card {
	display: block;
	padding: 20px;
	border: 1px solid var(--sk-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--sk-shadow);
}

.ibf-gw--landing .ibf-side-card h3 {
	margin: 0 0 12px;
	font-size: 1.05rem;
	color: var(--sk-navy);
}

.ibf-gw--landing .ibf-side-card details {
	margin-block-end: 10px;
}

@media (max-width: 900px) {
	.ibf-gw--landing .ibf-lp-wiz {
		grid-template-columns: minmax(0, 1fr);
	}

	.ibf-gw--landing .ibf-lp-aside {
		position: static;
		display: contents;
	}

	.ibf-gw--landing .ibf-tip {
		order: -1;
	}

	.ibf-gw--landing .ibf-lp-main {
		order: 1;
	}

	.ibf-gw--landing .ibf-side-card {
		order: 2;
	}
}

/* Choice cards = the wizard's "kind" cards: icon tile, title, text, round tick; no big button. */
.ibf-gw--landing .ibf-gw-cta {
	display: none;
}

.ibf-gw--landing .ibf-gw-btn {
	position: relative;
	flex-wrap: nowrap;
	align-items: flex-start;
	padding: 20px;
	row-gap: 0;
}

.ibf-gw--landing .ibf-gw-btn::after {
	content: "";
	position: absolute;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	inline-size: 22px;
	block-size: 22px;
	border: 2px solid #b8c2d6;
	border-radius: 50%;
	background: #fff center / 12px no-repeat;
	transition: 0.25s ease;
}

.ibf-gw--landing .ibf-gw-btn--no[aria-checked="true"]::after {
	border-color: var(--sk-blue);
	background-color: var(--sk-blue);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.ibf-gw--landing .ibf-gw-btn--yes[aria-checked="true"]::after {
	border-color: var(--sk-orange);
	background-color: var(--sk-orange);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101740' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.ibf-gw--landing .ibf-gw-btn--no[aria-checked="true"] .ibf-gw-ico {
	background: var(--sk-blue);
	color: #fff;
}

.ibf-gw--landing .ibf-gw-btn--yes[aria-checked="true"] .ibf-gw-ico {
	background: var(--sk-orange);
	color: var(--sk-navy);
}

.ibf-gw--landing .ibf-gw-btn--yes[aria-checked="true"] {
	background: linear-gradient(180deg, #fff1e6, #fff);
}

.ibf-gw--landing .ibf-gw-btn--no[aria-checked="true"] {
	background: linear-gradient(180deg, #e6f1fa, #fff);
}

/* ------------------------------------------------------------ step circles when the form is narrow */
/* From 980px the form shows its vertical side rail. Below that (phones, and the form inside the
   «قدم فكرتك» card) the same steps appear as a row of numbered circles on top, like the new wizard:
   done = blue with a tick, current = orange ring, next = grey. Visited steps are clickable. */
@container ibf (max-width: 979.98px) {
	.ibf .ibf-rail {
		display: block;
		padding: 18px 12px 4px;
		background: linear-gradient(180deg, #f6fafe, #fff);
	}

	.ibf .ibf-rail__list {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 2px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.ibf.ibf .ibf-rail__btn {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 6px;
		inline-size: 100%;
		min-block-size: 48px;
		margin: 0;
		padding: 4px 2px;
		border: 0;
		border-radius: 12px;
		background: none;
		color: var(--sk-muted);
		font: inherit;
		font-size: 0.78rem;
		font-weight: 600;
		line-height: 1.35;
		text-align: center;
		text-transform: none;
		letter-spacing: normal;
		box-shadow: none;
		cursor: pointer;
	}

	.ibf.ibf .ibf-rail__btn:disabled {
		cursor: default;
		opacity: 1;
	}

	.ibf .ibf-rail__num {
		display: grid;
		place-items: center;
		flex: none;
		inline-size: 34px;
		block-size: 34px;
		border: 2px solid var(--sk-line);
		border-radius: 50%;
		background: #fff;
		color: var(--sk-muted);
		font-size: 0.95rem;
		font-weight: 700;
		font-variant-numeric: tabular-nums;
		transition: 0.3s ease;
	}

	.ibf .ibf-rail__label {
		text-wrap: balance;
	}

	.ibf .is-visited .ibf-rail__btn {
		color: var(--sk-blue);
	}

	.ibf .is-visited .ibf-rail__num {
		border-color: var(--sk-blue);
		background: var(--sk-blue);
		color: transparent;
		position: relative;
	}

	.ibf .is-visited .ibf-rail__num::after {
		content: "";
		position: absolute;
		inset: 0;
		background: #fff;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 16px no-repeat;
	}

	.ibf .is-current .ibf-rail__btn {
		color: var(--sk-navy);
		font-weight: 800;
	}

	.ibf .is-current .ibf-rail__num {
		border-color: var(--sk-orange);
		background: #fff;
		color: var(--sk-orange-d);
		box-shadow: 0 0 0 5px var(--sk-orange-50);
		transform: scale(1.06);
	}

	.ibf .ibf-progress__track {
		display: none;
	}
}

/* Phones: seven labels do not fit; the current step's name is the title right below. */
@container ibf (max-width: 599.98px) {
	.ibf .ibf-rail__label {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.ibf .ibf-rail__num {
		inline-size: 32px;
		block-size: 32px;
	}

	.ibf .ibf-rail {
		padding-inline: 8px;
	}
}

/* Hero above the form: same edges as the form (rail + card), even gaps above and below. */
.ibf-hero {
	max-inline-size: none;
	margin: 0;
	padding: 0 0 20px;
}

/* Page that opens with the form hero: the theme's 100px top padding becomes a normal gap. */
body:has(.entry-content > .ibf-hero:first-child) .content-area {
	margin-block-start: 0;
}

body:has(.entry-content > .ibf-hero:first-child) .keydesign-container.e-con:has(.ibf-hero) {
	padding-block-start: 32px !important;
}
