/* ==========================================================================
   Idea Form – Elementor multi-step idea form
   Reference-matched RTL stylesheet. Defaults below; every visual token is
   overridable through the widget's Style controls (CSS custom properties
   are injected on .ife-form by Elementor).
   ========================================================================== */

.ife-form {
	/* palette (sampled from the reference UI) */
	--ife-navy: #073b74;
	--ife-text: #1b2a44;
	--ife-muted: #7a8699;
	--ife-line: #e5e8ef;
	--ife-surface: #eff1f6;
	--ife-btn-from: #74c226;
	--ife-btn-to: #2a8108;
	--ife-mark-from: #7ed321;
	--ife-mark-to: #2fa80b;
	--ife-focus: #63b70a;
	--ife-danger: #d93025;

	direction: rtl;
	text-align: right;
	color: var(--ife-text);
	font-family: 'Vazirmatn', 'IRANYekanX', 'IRANYekan', 'IRANSans', 'Tahoma', sans-serif;
	-webkit-font-smoothing: antialiased;
	max-width: 1080px;
	margin-inline: auto;
}

.ife-form [hidden] {
	display: none !important;
}

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

/* --------------------------------------------------------------- header */

.ife-head {
	margin-bottom: 18px;
}

.ife-head__title {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.4;
	color: var(--ife-navy);
	letter-spacing: -0.2px;
}

.ife-head__sub {
	margin: 0;
	font-size: 14px;
	line-height: 1.9;
	color: #5b6b84;
}

/* -------------------------------------------------------------- stepper */

.ife-steps {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	/* minmax(0, 1fr): plain 1fr floors each track at the item's
	   min-content, so on tablet widths the row overflowed the card and
	   the last pill stuck out (RTL spills left). */
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.ife-step {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	min-height: 66px;
	padding: 12px 18px;
	background: #ffffff;
	border: 1px solid var(--ife-line);
	border-radius: 14px;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
	/* outer shadow (default) */
	box-shadow: 4px 4px 10px 4px #E1E4ED;
}

.ife-step__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ife-step__caption {
	font-size: 12px;
	color: #98a2b6;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ife-step__name {
	font-size: 15.5px;
	font-weight: 800;
	color: #3e4c63;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.ife-step__badge {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eef1f6;
	border: 1px solid transparent;
	color: #98a2b6;
	font-size: 14px;
	font-weight: 800;
	transition: all 0.25s ease;
}

.ife-step__badge .ife-ico {
	width: 20px;
	height: 20px;
	display: none;
}

.ife-step__num {
	line-height: 1;
}

.ife-step.is-active {
	background: #f2fae8;
	border-color: #9fd75c;
	box-shadow:
		0 6px 16px -10px rgba(99, 183, 10, 0.55),
		4px 4px 10px 4px #E1E4ED;
}

.ife-step.is-active .ife-step__name {
	color: var(--ife-navy);
}

.ife-step.is-active .ife-step__badge {
	background: #ffffff;
	border-color: #9fd75c;
	color: #3e9a0b;
}

.ife-step.is-done .ife-step__badge {
	background: #43ab0e;
	border-color: #43ab0e;
	color: #ffffff;
}

.ife-step.is-done .ife-step__num {
	display: none;
}

.ife-step.is-done .ife-step__badge .ife-ico {
	display: block;
}

.ife-step.is-done .ife-step__name {
	color: #1f7a12;
}

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

.ife-card {
	display: block;
	margin: 0;
	padding: 28px 28px 22px;
	background: #ffffff;
	border: 1px solid #edf0f5;
	border-radius: 22px;
	/* outer card shadow (default) */
	box-shadow: 4px 4px 10px 4px #E1E4ED;
}

.ife-panel__title {
	margin: 0 0 18px;
	font-size: 23px;
	font-weight: 800;
	color: var(--ife-navy);
	line-height: 1.5;
}

.ife-panel {
	animation: ife-fade-in 0.28s ease;
}

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

/* ----------------------------------------------------------------- hint */

.ife-hint {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #f1f9e7;
	color: #2e5d17;
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 20px;
	font-size: 13.5px;
	line-height: 1.9;
}

.ife-hint .ife-ico {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	margin-top: 3px;
}

/* ----------------------------------------------------------------- grid */

.ife-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 22px;
}

.ife-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ife-field--full {
	grid-column: 1 / -1;
}

/* Panels/hints/title carry their own bottom margin. */
.ife-hint + .ife-field,
.ife-hint + .ife-grid,
.ife-panel__title + .ife-field,
.ife-panel__title + .ife-grid {
	margin-top: 0;
}

/* Vertical rhythm between field blocks: a label must never hug the control
   above it, and a field's help text keeps its own gap from the next label. */
.ife-grid + .ife-field,
.ife-field + .ife-grid,
.ife-field + .ife-field,
.ife-review + .ife-field {
	margin-top: 18px;
}

/* Grid children stay aligned with each other (grid gap handles the rows). */
.ife-grid > .ife-field {
	margin-top: 0;
}

/* Extra air above the first grid row (نام/شماره sit under the tall option   cards of نوع ثبت ایده and need more separation than a plain block). */
.ife-field + .ife-grid {
	margin-top: 28px;
}

/* The attachment block ends with a big dropzone box – whatever follows it
   (لینک ویدیو معرفی) needs extra air so it never reads as part of it. */
[data-field="attachment"] + .ife-field {
	margin-top: 26px;
}

/* --------------------------------------------------------------- labels */

.ife-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #14213d;
	margin-bottom: 8px;
	line-height: 1.7;
}

.ife-label--group {
	display: block;
}

.ife-req {
	color: #e02d2d;
	font-style: normal;
	font-weight: 800;
	margin-inline-start: 2px;
}

.ife-help {
	margin: 7px 0 0;
	font-size: 12.5px;
	line-height: 1.8;
	color: #7a8699;
}

.ife-err {
	margin: 6px 0 0;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ife-danger);
	line-height: 1.7;
}

/* --------------------------------------------------------------- inputs */

.ife-input,
.ife-select,
.ife-textarea {
	/* block kills the UA inline baseline gap under textareas */
	display: block;
	width: 100%;
	font-family: inherit;
	font-size: 14.5px;
	line-height: 1.7;
	color: #1b2a44;
	background: #eff1f6;
	border: 1px solid #e4e7ef;
	border-radius: 12px;
	padding: 12px 16px;
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	/* neumorphic sunken (default) */
	box-shadow:
		inset 2px 2px 2px 1px rgba(0, 0, 0, 0.12),
		inset -2px -2px 2px 1px rgba(255, 255, 255, 0.8);
}

.ife-input {
	min-height: 50px;
}

/* Theme-proof edge: some themes reset input[type=…] with a hard dark
   border (attribute selectors beat a bare class). Scope ours above it and
   make the border invisible so the neumorphic inset shadow alone defines
   the field. Focus/invalid recolour it later in this file. */
.ife-form .ife-input,
.ife-form .ife-select,
.ife-form .ife-textarea {
	border-color: transparent;
}

/* Phone field: browsers default input[type=tel] to direction:ltr, which
   anchors the text on the LEFT in this RTL form. Keep the digits LTR
   internally but pin the text to the right like every other field. */
.ife-input[type="tel"] {
	direction: ltr;
	text-align: right;
}

.ife-textarea {
	min-height: 132px;
	padding-bottom: 30px;
	resize: vertical;
	line-height: 1.9;
}

.ife-input::placeholder,
.ife-textarea::placeholder {
	color: #9aa4b7;
	opacity: 1;
}

/* Focus: keep the sunken inset only — no green border/ring (user request). */
.ife-input:focus,
.ife-select:focus,
.ife-textarea:focus {
	outline: none;
	background: #ffffff;
	box-shadow:
		inset 2px 2px 2px 1px rgba(0, 0, 0, 0.12),
		inset -2px -2px 2px 1px rgba(255, 255, 255, 0.8);
}

.ife-input[aria-invalid="true"],
.ife-select[aria-invalid="true"],
.ife-textarea[aria-invalid="true"] {
	border-color: var(--ife-danger);
	box-shadow:
		inset 2px 2px 2px 1px rgba(0, 0, 0, 0.12),
		inset -2px -2px 2px 1px rgba(255, 255, 255, 0.8),
		0 0 0 3px rgba(217, 48, 37, 0.12);
}

/* select */

.ife-select-wrap {
	position: relative;
}

.ife-select {
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	min-height: 50px;
	padding-inline-end: 44px;
	cursor: pointer;
	text-align: right;
}

.ife-select-wrap .ife-ico {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #8a93a6;
	pointer-events: none;
}

/* textarea counter */

.ife-textarea-wrap {
	position: relative;
}

.ife-count {
	position: absolute;
	bottom: 10px;
	left: 16px;
	font-size: 12px;
	color: #7a8699;
	pointer-events: none;
}

/* -------------------------------------------------------- option cards */

.ife-opts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ife-opt {
	position: relative;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 74px;
	padding: 14px 18px;
	background: #ffffff;
	border: 1px solid #e3e7ef;
	border-radius: 14px;
	cursor: pointer;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
	/* outer shadow (default) */
	box-shadow: 4px 4px 10px 4px #E1E4ED;
}

.ife-opt:hover {
	border-color: #c9d2e0;
}

.ife-opt input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ife-opt__dot {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #c9cfdd;
	background: #ffffff;
	position: relative;
	transition: border-color 0.18s ease;
}

.ife-opt__dot::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--ife-mark-from), var(--ife-mark-to));
	opacity: 0;
	transform: scale(0.4);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.ife-opt__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	text-align: right;
}

.ife-opt__title {
	font-size: 15.5px;
	font-weight: 800;
	color: var(--ife-navy);
}

.ife-opt__desc {
	font-size: 12.5px;
	line-height: 1.8;
	color: #7a8699;
}

.ife-opt.is-checked {
	background: #f6fce9;
	border-color: #7bc92b;
	box-shadow:
		0 0 0 1px #7bc92b,
		4px 4px 10px 4px #E1E4ED;
}

.ife-opt.is-checked .ife-opt__dot {
	border-color: #43ab0e;
}

.ife-opt.is-checked .ife-opt__dot::after {
	opacity: 1;
	transform: scale(1);
}

/* ------------------------------------------------------------ dropzone */

.ife-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 28px 20px 24px;
	background: #f7f9fc;
	border: 2px dashed #cbd5e4;
	border-radius: 16px;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.18s ease, background-color 0.18s ease;
	/* neumorphic sunken (default) */
	box-shadow:
		inset 2px 2px 2px 1px rgba(0, 0, 0, 0.12),
		inset -2px -2px 2px 1px rgba(255, 255, 255, 0.8);
}

.ife-drop:hover,
.ife-drop.is-dragover {
	border-color: var(--ife-focus);
	background: #f3fbe9;
}

/* Selected files: solid border + tint so the pick is obvious. */
.ife-drop.is-filled {
	border-style: solid;
	border-color: var(--ife-focus);
	background: #f3fbe9;
}

.ife-drop__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	color: #ffffff;
	background: linear-gradient(180deg, var(--ife-mark-from), var(--ife-mark-to));
	box-shadow: 0 10px 18px -8px rgba(47, 168, 11, 0.6);
	margin-bottom: 4px;
}

.ife-drop__icon .ife-ico {
	width: 24px;
	height: 24px;
}

.ife-drop__title {
	font-size: 15px;
	font-weight: 800;
	color: var(--ife-navy);
}

.ife-drop__help {
	font-size: 12.5px;
	color: #7a8699;
}

/* Container for the per-file rows (one row per selected file). */
.ife-filelist {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
}

.ife-filelist .ife-filerow {
	margin-top: 0;
}

.ife-filerow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 12px 14px;
	background: #ffffff;
	border: 1px solid #e7eaf1;
	border-radius: 14px;
	/* outer shadow (default) */
	box-shadow: 4px 4px 10px 4px #E1E4ED;
}

.ife-filerow__ok {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #ffffff;
	background: linear-gradient(180deg, var(--ife-mark-from), var(--ife-mark-to));
}

.ife-filerow__ok .ife-ico {
	width: 16px;
	height: 16px;
}

.ife-filerow__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ife-filerow__name {
	font-size: 14px;
	font-weight: 800;
	color: var(--ife-navy);
	word-break: break-all;
}

.ife-filerow__sub {
	font-size: 12px;
	color: #7a8699;
}

.ife-filerow__x {
	margin-inline-start: auto;
	width: 34px;
	height: 34px;
	border: 1px solid #e7eaf1;
	border-radius: 10px;
	background: #ffffff;
	color: #98a2b6;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.ife-filerow__x:hover {
	color: var(--ife-danger);
	border-color: #f5c6c2;
}

.ife-filerow__x .ife-ico {
	width: 16px;
	height: 16px;
}

/* -------------------------------------------------------------- review */

.ife-review {
	margin-top: 20px;
	padding: 16px 18px;
	background: #e8f0fa;
	border-radius: 14px;
}

.ife-review__title {
	margin: 0 0 12px;
	font-size: 14.5px;
	font-weight: 800;
	color: var(--ife-navy);
}

.ife-review__list {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.ife-review__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	font-size: 13.5px;
	line-height: 1.8;
}

.ife-review__key {
	margin: 0;
	font-weight: 800;
	color: var(--ife-navy);
	flex: 0 1 auto;
}

.ife-review__val {
	margin: 0;
	color: #46536b;
	text-align: left;
	flex: 0 1 auto;
}

/* ------------------------------------------------------------ agreement */

.ife-agree {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	color: #243b53;
	line-height: 1.9;
}

.ife-agree input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ife-agree__box {
	flex: 0 0 auto;
	width: 23px;
	height: 23px;
	margin-top: 3px;
	border-radius: 7px;
	border: 2px solid #c9cfdd;
	background: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	transition: all 0.18s ease;
}

.ife-agree__box .ife-ico {
	width: 15px;
	height: 15px;
}

.ife-agree input:checked + .ife-agree__box {
	background: linear-gradient(180deg, var(--ife-mark-from), var(--ife-mark-to));
	border-color: transparent;
	color: #ffffff;
}

.ife-agree input:focus-visible + .ife-agree__box {
	box-shadow: 0 0 0 3px rgba(99, 183, 10, 0.25);
}

/* optional link on the agreement text («لینک متن پذیرش» control) */
.ife-agree__link {
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

.ife-agree__link:hover,
.ife-agree__link:focus-visible {
	color: #2e9b0c;
}

/* --------------------------------------------------------------- alert */

.ife-alert {
	margin-top: 16px;
	padding: 12px 14px;
	background: #fdecea;
	border: 1px solid #f5c6c2;
	border-radius: 12px;
	color: #b3261e;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.8;
}

/* -------------------------------------------------------------- footer */

.ife-foot {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid #eef0f5;
}

/* Explicit cells so placement never depends on which buttons are visible:
   prev -> right (RTL start), draft -> center, next/submit -> left (RTL end).
   Without this, step 1 (only "next" visible) lands centered instead of left. */
.ife-foot .ife-btn--prev {
	grid-column: 1;
	justify-self: start;
}

.ife-foot .ife-draft {
	grid-column: 2;
	justify-self: center;
}

.ife-foot .ife-btn--next,
.ife-foot .ife-btn--submit {
	grid-column: 3;
	justify-self: end;
}

/* Step 1 has no «مرحله قبل»: the next button sits at the far LEFT and the
   draft badge at the far RIGHT (the arrangement picked from the reference
   screenshot). Desktop/tablet only – phones stack the footer. */
@media (min-width: 768px) {
	.ife-form.is-first-step .ife-foot .ife-btn--next {
		grid-column: 3;
		justify-self: end;
	}

	.ife-form.is-first-step .ife-foot .ife-draft {
		grid-column: 1;
		justify-self: start;
	}
}

.ife-draft {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #2e9b0c;
}

.ife-draft .ife-ico {
	width: 16px;
	height: 16px;
}

/* -------------------------------------------------------------- buttons */

.ife-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.4;
	border: none;
	border-radius: 14px;
	padding: 13px 26px;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease,
		box-shadow 0.15s ease, border-color 0.15s ease;
}

.ife-btn .ife-ico {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.ife-btn--primary {
	color: #ffffff;
	background: linear-gradient(180deg, var(--ife-btn-from), var(--ife-btn-to));
	box-shadow: 0 10px 20px -10px rgba(42, 129, 8, 0.65);
}

.ife-btn--primary:hover {
	filter: brightness(1.07);
	transform: translateY(-1px);
}

.ife-btn--primary:active {
	transform: translateY(0);
	filter: brightness(0.97);
}

.ife-btn--ghost {
	color: #14213d;
	background: #ffffff;
	border: 1px solid #e3e7ef;
	/* outer shadow (default) */
	box-shadow: 4px 4px 10px 4px #E1E4ED;
}

.ife-btn--ghost:hover {
	background: #f6f8fc;
	border-color: #cfd6e2;
}

/* Icon wrapper must be a flex box: an inline <svg> inside the span sits on
   the text baseline and adds ~6px of phantom descender space, which made the
   24px span centre itself and pushed the arrow ~2.4px above the text. */
.ife-btn__ico {
	display: inline-flex;
	align-items: center;
}

.ife-btn__ico--back .ife-ico {
	transform: scaleX(-1);
}

.ife-btn.is-loading {
	pointer-events: none;
	opacity: 0.82;
}

.ife-btn.is-loading::after {
	content: '';
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	animation: ife-spin 0.7s linear infinite;
}

.ife-btn--ghost.is-loading::after {
	border-color: rgba(20, 33, 61, 0.25);
	border-top-color: #14213d;
}

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

/* ------------------------------------------------------------- success */

.ife-success {
	text-align: center;
	padding: 8px 4px 4px;
	animation: ife-fade-in 0.32s ease;
}

.ife-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	color: #ffffff;
	background: radial-gradient(circle at 32% 26%, var(--ife-mark-from), var(--ife-mark-to) 78%);
	box-shadow:
		0 18px 30px -12px rgba(47, 168, 11, 0.6),
		inset 0 -6px 12px rgba(0, 0, 0, 0.12);
}

.ife-mark .ife-ico {
	width: 40px;
	height: 40px;
}

.ife-success__title {
	margin: 20px 0 10px;
	font-size: 32px;
	font-weight: 800;
	color: var(--ife-navy);
	line-height: 1.5;
}

.ife-success__msg {
	margin: 0 auto;
	max-width: 620px;
	font-size: 15px;
	line-height: 2.1;
	color: #46536b;
}

.ife-success__msg b {
	font-weight: 800;
	color: #14213d;
}

.ife-codepill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding: 7px 7px 7px 7px;
	background: #f3f5fa;
	border: 1px solid #e6eaf2;
	border-radius: 13px;
	direction: rtl;
}

.ife-codepill__label {
	font-size: 14px;
	font-weight: 800;
	color: var(--ife-navy);
	padding-inline-start: 8px;
}

.ife-code {
	font-family: 'Vazirmatn', ui-monospace, 'Consolas', monospace;
	font-size: 17px;
	font-weight: 800;
	color: #1f7a12;
	letter-spacing: 0.6px;
	padding: 6px 10px;
	background: #ffffff;
	border: 1px solid #e6eaf2;
	border-radius: 9px;
}

.ife-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	color: var(--ife-navy);
	background: #ffffff;
	border: 1px solid #e3e7ef;
	border-radius: 10px;
	padding: 8px 12px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ife-copy:hover {
	background: #f6f8fc;
	border-color: #cfd6e2;
}

.ife-copy.is-done {
	color: #1f7a12;
	border-color: #b7e49a;
}

.ife-copy .ife-ico {
	width: 16px;
	height: 16px;
}

/* timeline */

.ife-tl {
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 18px;
}

.ife-tl__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	width: 138px;
	text-align: center;
}

.ife-tl__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 800;
	background: #eef1f6;
	border: 2px solid transparent;
	color: #98a2b6;
	transition: all 0.25s ease;
}

.ife-tl__icon .ife-ico {
	width: 24px;
	height: 24px;
}

.ife-tl__item.is-done .ife-tl__icon {
	color: #ffffff;
	background: linear-gradient(180deg, var(--ife-mark-from), var(--ife-mark-to));
	box-shadow: 0 10px 18px -10px rgba(47, 168, 11, 0.65);
}

.ife-tl__item.is-active .ife-tl__icon {
	background: #ffffff;
	border-color: #63b70a;
	color: #3e9a0b;
}

.ife-tl__name {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--ife-navy);
}

.ife-tl__sub {
	font-size: 12.5px;
	line-height: 1.7;
	color: #7a8699;
}

/* notice + actions */

.ife-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
	padding: 13px 16px;
	background: #e9f0fb;
	border-radius: 13px;
	font-size: 13.5px;
	line-height: 1.9;
	color: #2c4a7c;
}

.ife-notice .ife-ico {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

.ife-notice__text b {
	font-weight: 800;
}

.ife-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1024px) {
	.ife-card {
		padding: 22px 20px 18px;
	}

	/* Tablet: tighter pills give the labels room before ellipsis kicks in. */
	.ife-step {
		padding: 10px 14px;
		gap: 8px;
	}

	.ife-head__title {
		font-size: 26px;
	}

	.ife-success__title {
		font-size: 28px;
	}
}

@media (max-width: 767px) {
	.ife-head__title {
		font-size: 22px;
	}

	.ife-head__sub {
		font-size: 13px;
	}

	.ife-steps {
		gap: 8px;
	}

	.ife-step {
		min-height: 56px;
		padding: 9px 10px;
		gap: 6px;
		border-radius: 12px;
	}

	.ife-step__caption {
		font-size: 10.5px;
	}

	.ife-step__name {
		font-size: 12.5px;
	}

	.ife-step__badge {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}

	.ife-card {
		padding: 18px 14px 14px;
		border-radius: 16px;
	}

	.ife-panel__title {
		font-size: 19px;
		margin-bottom: 14px;
	}

	.ife-grid,
	.ife-opts {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.ife-opt {
		min-height: 64px;
		padding: 12px 14px;
	}

	.ife-foot {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	/* Mobile: stacked footer, buttons full-bleed like the reference UI. */
	.ife-foot .ife-btn--prev,
	.ife-foot .ife-btn--next,
	.ife-foot .ife-btn--submit {
		grid-column: 1;
		justify-self: stretch;
		width: 100%;
	}

	.ife-foot .ife-draft {
		grid-column: 1;
		justify-self: center;
	}

	.ife-btn {
		padding: 11px 16px;
		font-size: 14px;
		border-radius: 12px;
	}

	.ife-draft {
		font-size: 11.5px;
	}

	/* success screen stacks vertically on phones */
	.ife-success__title {
		font-size: 24px;
	}

	.ife-success__msg {
		font-size: 14px;
	}

	.ife-codepill {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 8px;
	}

	.ife-tl {
		flex-direction: column;
		gap: 10px;
		margin-top: 20px;
	}

	.ife-tl__item {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			'name icon'
			'sub icon';
		align-items: center;
		width: 100%;
		gap: 2px 12px;
		text-align: right;
		padding: 11px 13px;
		background: #f7f8fa;
		border: 1px solid #edf0f5;
		border-radius: 13px;
	}

	.ife-tl__icon {
		grid-area: icon;
		width: 38px;
		height: 38px;
	}

	.ife-tl__name {
		grid-area: name;
		text-align: right;
		font-size: 14px;
	}

	.ife-tl__sub {
		grid-area: sub;
		text-align: right;
		font-size: 12px;
	}

	.ife-notice {
		justify-content: flex-start;
		font-size: 12.5px;
	}

	.ife-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.ife-actions .ife-btn--primary {
		grid-column: 1 / -1;
		order: -1;
	}

	.ife-actions .ife-btn {
		width: 100%;
		padding: 12px 10px;
		font-size: 13.5px;
	}

	.ife-review__row {
		flex-direction: column;
		gap: 0;
		align-items: stretch;
	}

	.ife-review__val {
		text-align: right;
		color: #14213d;
	}
}

@media (max-width: 420px) {
	.ife-step__caption {
		display: none;
	}

	.ife-step {
		justify-content: center;
	}

	.ife-step__name {
		white-space: normal;
		font-size: 11.5px;
	}

	.ife-btn {
		white-space: normal;
		text-align: center;
	}
}

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

/* ==========================================================================
   Idea Status – tracking panel
   ========================================================================== */

.ife-status-wrap {
	direction: rtl;
	text-align: right;
	color: var(--ife-text);
	font-family: 'Vazirmatn', 'IRANYekanX', 'IRANYekan', 'IRANSans', 'Tahoma', sans-serif;
	max-width: 1080px;
	margin-inline: auto;
	padding: 24px 16px;
}

.ife-status {
	max-width: 560px;
	margin-inline: auto;
}

.ife-status__title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 800;
	color: var(--ife-navy);
}

.ife-status__sub {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.7;
	color: #5b6b84;
}

.ife-status__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 22px;
}

.ife-status__label {
	font-size: 14px;
	font-weight: 700;
	color: #3e4c63;
	margin: 0;
}

.ife-status__code {
	padding: 12px 16px;
	font-size: 15px;
	border: 1px solid var(--ife-line);
	border-radius: 12px;
	background: #ffffff;
	color: var(--ife-text);
}

.ife-status__code:focus {
	outline: none;
	border-color: var(--ife-focus);
	box-shadow: 0 0 0 3px rgba(99, 183, 10, 0.15);
}

.ife-status__btn {
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 700;
	background: linear-gradient(135deg, var(--ife-btn-from), var(--ife-btn-to));
	color: #ffffff;
	border: none;
	border-radius: 12px;
	cursor: pointer;
}

.ife-status__btn:hover {
	filter: brightness(1.05);
}

.ife-status__btn:active {
	transform: translateY(1px);
}

.ife-status__result {
	margin-top: 6px;
	animation: ifeFadeIn 0.35s ease;
}

@keyframes ifeFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ife-status__card {
	padding: 20px;
	background: #ffffff;
	border: 1px solid var(--ife-line);
	border-radius: 16px;
	box-shadow: 4px 4px 10px 4px #E1E4ED;
}

.ife-status__card .ife-status__label {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: #98a2b6;
}

.ife-status__card .ife-status__value {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: #3e4c63;
	word-break: break-word;
}

.ife-status__card .ife-status__value:last-child {
	margin-bottom: 0;
}

.ife-status__badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	min-width: 120px;
}

.ife-status__badge--submitted   { background: #eef6ff; color: #073b74; }
.ife-status__badge--review     { background: #fffbeb; color: #b26a00; }
.ife-status__badge--judging    { background: #eef6ff; color: #073b74; }
.ife-status__badge--approved   { background: #e8f5e9; color: #2a8108; }
.ife-status__badge--rejected   { background: #fdecea; color: #d93025; }

.ife-status__msg {
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.ife-status__msg--error   { color: #d93025; }
.ife-status__msg--success { color: #2a8108; }
.ife-status__msg--warn    { color: #b26a00; }

@media (max-width: 480px) {
	.ife-status-wrap {
		padding: 16px 12px;
	}
	.ife-status__title {
		font-size: 22px;
	}
}


/* ========================================================================
   IDEA STATUS WIDGET — polished Persian RTL theme (v1.3.5)
   ======================================================================== */
.ife-status-wrap {
  --ife-status-primary: #409840;
  --ife-status-primary-dark: #409840;
  --ife-status-pink: #409840;
  --ife-status-ink: #202944;
  --ife-status-muted: #8490a5;
  --ife-status-line: #e8eaf3;
  direction: rtl;
  text-align: right;
  font-family: inherit;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 5% 5%, rgba(64,152,64,.08), transparent 35%),
    radial-gradient(circle at 95% 95%, rgba(64,152,64,.05), transparent 32%);
  color: var(--ife-status-ink);
  box-sizing: border-box;
}
.ife-status-wrap *, .ife-status-wrap *::before, .ife-status-wrap *::after { box-sizing: border-box; }
.ife-status-wrap .ife-status {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(226,229,242,.95);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(39,44,88,.09), 0 4px 14px rgba(39,44,88,.035);
}
.ife-status-wrap .ife-status::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 5px;
  background: linear-gradient(90deg, #409840 0%, #EFFBF4 100%);
}
.ife-status-wrap .ife-status__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--ife-status-ink);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: -.35px;
}
.ife-status-wrap .ife-status__title::before {
  content: "✓";
  display: inline-flex;
  flex: 0 0 43px;
  width: 43px; height: 43px;
  align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #409840, #409840);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(64,152,64,.24);
}
.ife-status-wrap .ife-status__sub {
  margin: 0 0 25px;
  color: #7b849a;
  font-size: 14px;
  line-height: 2;
}
.ife-status-wrap .ife-status__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 22px;
}
.ife-status-wrap .ife-status__form > .ife-status__label {
  display: block;
  margin: 0;
  color: #414a62;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
}
.ife-status-wrap .ife-status__form > .ife-status__code {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 55px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--ife-status-line);
  border-radius: 13px;
  outline: none;
  background: #f9faff;
  color: var(--ife-status-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  direction: ltr !important;
  text-align: right !important;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ife-status-wrap .ife-status__form > input.ife-status__code::placeholder,
.ife-status-wrap .ife-status__form > input.ife-status__code::-webkit-input-placeholder,
.ife-status-wrap .ife-status__form > input.ife-status__code::-moz-placeholder,
.ife-status-wrap .ife-status__form > input.ife-status__code:-ms-input-placeholder,
.ife-status-wrap .ife-status__form > input.ife-status__code::-ms-input-placeholder {
  color: #a5aec0;
  opacity: 1;
  font-weight: 400;
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext;
}
.ife-status-wrap .ife-status__form > .ife-status__code:hover { border-color: #b9dcb9; background: #fff; }
.ife-status-wrap .ife-status__form > .ife-status__code:focus {
  border-color: var(--ife-status-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(64,152,64,.12);
}
/* Explicitly restore the button's visibility against theme/Elementor button rules. */
.ife-status-wrap .ife-status__form > button.ife-status__btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 2;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px;
  width: 100% !important;
  min-width: 100% !important;
  min-height: 55px !important;
  height: auto !important;
  margin: 7px 0 0 !important;
  padding: 13px 20px !important;
  border: 0 !important;
  border-radius: 14px !important;
  outline-offset: 4px;
  background: linear-gradient(120deg, #409840 0%, #409840 55%, #409840 100%) !important;
  background-color: var(--ife-status-primary) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
  text-align: center !important;
  white-space: normal;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(64,152,64,.24) !important;
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ife-status-wrap .ife-status__form > button.ife-status__btn::before {
  content: "⌕";
  display: inline-block;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}
.ife-status-wrap .ife-status__form > button.ife-status__btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 12px 27px rgba(64,152,64,.3) !important;
}
.ife-status-wrap .ife-status__form > button.ife-status__btn:active:not(:disabled) { transform: translateY(0); }
.ife-status-wrap .ife-status__form > button.ife-status__btn:focus-visible { outline: 3px solid rgba(64,152,64,.35); }
.ife-status-wrap .ife-status__form > button.ife-status__btn:disabled {
  cursor: wait !important;
  opacity: .78 !important;
  filter: saturate(.8);
  box-shadow: none !important;
}
.ife-status-wrap .ife-status__result {
  margin-top: 20px;
  animation: ifeStatusEnter133 .3s ease both;
}
.ife-status-wrap .ife-status__result[hidden] { display: none !important; }
@keyframes ifeStatusEnter133 {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ife-status-wrap .ife-status__card {
  display: grid;
  grid-template-columns: minmax(105px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 0 14px;
  padding: 8px 18px;
  border: 1px solid #e4efe4;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff 0%, #fbfffb 100%);
  box-shadow: 0 8px 25px rgba(39,44,88,.045);
}
.ife-status-wrap .ife-status__card > .ife-status__label,
.ife-status-wrap .ife-status__card > .ife-status__value {
  min-width: 0;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #edf4ed;
}
.ife-status-wrap .ife-status__card > .ife-status__label {
  color: var(--ife-status-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
}
.ife-status-wrap .ife-status__card > .ife-status__value {
  color: var(--ife-status-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: normal;
}
.ife-status-wrap .ife-status__card > :nth-last-child(-n+2) { border-bottom: 0; }
.ife-status-wrap .ife-status__card > .ife-status__badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin: 6px 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: #EFFBF4;
  color: #409840;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.8;
  text-align: right;
  white-space: normal;
}
.ife-status-wrap .ife-status__badge::before {
  content: "";
  flex: 0 0 7px;
  width: 7px; height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: currentColor;
}
.ife-status-wrap .ife-status__badge--submitted { background: #eef4ff; color: #2857b6; }
.ife-status-wrap .ife-status__badge--review { background: #fff5df; color: #a66a00; }
.ife-status-wrap .ife-status__badge--judging { background: #EFFBF4; color: #409840; }
.ife-status-wrap .ife-status__badge--approved { background: #e6f8ef; color: #168451; }
.ife-status-wrap .ife-status__badge--rejected { background: #fff0f1; color: #c53245; }
.ife-status-wrap .ife-status__msg {
  margin: 14px 0 0;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.9;
  text-align: right;
  overflow-wrap: anywhere;
}
.ife-status-wrap .ife-status__msg:empty { display: none; }
.ife-status-wrap .ife-status__msg--success { border-color: #d6f2e3; background: #effbf4; color: #167348; }
.ife-status-wrap .ife-status__msg--error { border-color: #f8d9de; background: #fff3f4; color: #bb3042; }
.ife-status-wrap .ife-status__msg--warn { border-color: #f5e6be; background: #fff9e9; color: #966000; }
@media (max-width: 600px) {
  .ife-status-wrap { padding: 12px 7px; border-radius: 20px; }
  .ife-status-wrap .ife-status { padding: 23px 16px; border-radius: 21px; }
  .ife-status-wrap .ife-status__title { gap: 10px; font-size: 21px; }
  .ife-status-wrap .ife-status__title::before { flex-basis: 38px; width: 38px; height: 38px; border-radius: 12px; font-size: 19px; }
  .ife-status-wrap .ife-status__sub { margin-bottom: 21px; font-size: 13px; }
  .ife-status-wrap .ife-status__card { grid-template-columns: minmax(82px, .7fr) minmax(0, 1.3fr); gap: 0 10px; padding: 6px 12px; }
  .ife-status-wrap .ife-status__card > .ife-status__label { font-size: 11px; }
  .ife-status-wrap .ife-status__card > .ife-status__value { font-size: 13px; }
  .ife-status-wrap .ife-status__form > button.ife-status__btn { min-height: 52px !important; font-size: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ife-status-wrap *, .ife-status-wrap *::before, .ife-status-wrap *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}


/* v1.3.5: Keep the example tracking text at the RTL start (right edge). */
.ife-status-wrap .ife-status__form > input.ife-status__code {
  text-align: right !important;
}
.ife-status-wrap .ife-status__form > input.ife-status__code::placeholder,
.ife-status-wrap .ife-status__form > input.ife-status__code::-webkit-input-placeholder,
.ife-status-wrap .ife-status__form > input.ife-status__code::-moz-placeholder,
.ife-status-wrap .ife-status__form > input.ife-status__code:-ms-input-placeholder,
.ife-status-wrap .ife-status__form > input.ife-status__code::-ms-input-placeholder {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: plaintext;
}


/* ========================================================================
   v1.3.7 — Long-content safeguards for desktop, tablet, and mobile
   ======================================================================== */
.ife-form {
	width: 100%;
	min-width: 0;
}

.ife-form .ife-head,
.ife-form .ife-card,
.ife-form .ife-panel,
.ife-form .ife-success,
.ife-form .ife-review,
.ife-form .ife-notice,
.ife-form .ife-actions,
.ife-form .ife-codepill,
.ife-form .ife-tl,
.ife-form .ife-grid,
.ife-form .ife-opts,
.ife-form .ife-foot {
	min-width: 0;
	max-width: 100%;
}

/* General text wraps instead of widening its card. */
.ife-form .ife-head__sub,
.ife-form .ife-help,
.ife-form .ife-err,
.ife-form .ife-label,
.ife-form .ife-review__key,
.ife-form .ife-review__val,
.ife-form .ife-opt__title,
.ife-form .ife-opt__desc,
.ife-form .ife-drop__title,
.ife-form .ife-drop__help,
.ife-form .ife-filerow__name,
.ife-form .ife-filerow__sub,
.ife-form .ife-success__msg,
.ife-form .ife-notice__text,
.ife-form .ife-tl__sub {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: normal;
}

/* Long section/headings get a neat ellipsis after two lines. */
.ife-form .ife-head__title,
.ife-form .ife-panel__title,
.ife-form .ife-review__title,
.ife-form .ife-success__title {
	min-width: 0;
	max-width: 100%;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
	word-break: normal;
}

/* Option card copy: limit only the titles/descriptions, not the card itself. */
.ife-form .ife-opt__body {
	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.ife-form .ife-opt__title,
.ife-form .ife-opt__desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ife-form .ife-opt__title {
	-webkit-line-clamp: 2;
}

.ife-form .ife-opt__desc {
	-webkit-line-clamp: 3;
}

.ife-form .ife-step,
.ife-form .ife-step__body,
.ife-form .ife-step__name {
	min-width: 0;
	max-width: 100%;
}

.ife-form .ife-step__name {
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Review data can be long (URLs, titles, names); wrap it inside its row. */
.ife-form .ife-review__row {
	min-width: 0;
	max-width: 100%;
	align-items: flex-start;
}

.ife-form .ife-review__key,
.ife-form .ife-review__val {
	flex: 0 1 50%;
}

/* Keep long timeline items and notice text inside the success card. */
.ife-form .ife-tl__item {
	min-width: 0;
	max-width: 100%;
}

.ife-form .ife-tl__name {
	min-width: 0;
	max-width: 100%;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	overflow-wrap: anywhere;
}

.ife-form .ife-notice {
	min-width: 0;
	max-width: 100%;
}

.ife-form .ife-notice__text {
	flex: 1 1 0%;
}

/* The final success screen: keep the submitted idea title to one line with ….
   The full value remains available through the title attribute added in JS. */
.ife-form .ife-success__msg [data-ife="idea"] {
	display: inline-block;
	vertical-align: bottom;
	max-width: min(100%, 34rem);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow-wrap: normal;
}

.ife-form .ife-codepill {
	flex-wrap: wrap;
	justify-content: center;
}

.ife-form .ife-codepill__label,
.ife-form .ife-code,
.ife-form .ife-copy {
	min-width: 0;
	max-width: 100%;
}

.ife-form .ife-code {
	overflow-wrap: anywhere;
	white-space: normal;
}

.ife-form .ife-copy,
.ife-form .ife-actions .ife-btn,
.ife-form .ife-foot .ife-btn {
	white-space: normal;
	overflow-wrap: anywhere;
	max-width: 100%;
	min-width: 0;
}

.ife-form .ife-btn .ife-ico {
	flex-shrink: 0;
}

@media (max-width: 767px) {
	.ife-form .ife-review__row {
		flex-direction: column;
		gap: 3px;
		align-items: stretch;
	}

	.ife-form .ife-review__key,
	.ife-form .ife-review__val {
		flex: 0 1 auto;
		width: 100%;
	}

	.ife-form .ife-success__title {
		font-size: clamp(21px, 6vw, 27px);
	}

	.ife-form .ife-success__msg [data-ife="idea"] {
		max-width: 100%;
	}

	.ife-form .ife-codepill {
		width: 100%;
		gap: 8px;
	}
}

@media (max-width: 420px) {
	.ife-form .ife-head__title,
	.ife-form .ife-panel__title,
	.ife-form .ife-success__title {
		-webkit-line-clamp: 2;
	}

	.ife-form .ife-opt {
		min-width: 0;
		max-width: 100%;
		gap: 10px;
		padding-inline: 12px;
	}

	.ife-form .ife-actions {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* ========================================================================
   v1.3.8 — Prevent long idea titles from overflowing review and success UI
   ======================================================================== */
.ife-form,
.ife-form .ife-card,
.ife-form .ife-review,
.ife-form .ife-review__list,
.ife-form .ife-review__row,
.ife-form .ife-success,
.ife-form .ife-success__msg {
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* Review panel: keep arbitrary, unbroken titles inside their value cell. */
.ife-form .ife-review__val {
	min-width: 0 !important;
	max-width: 100% !important;
	overflow-wrap: anywhere !important;
	word-break: break-word;
}

.ife-form .ife-review__val[data-review="idea_title"] {
	display: block !important;
	min-width: 0 !important;
	max-width: 100% !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
}

/* Keep the entire confirmation sentence in the card. The submitted idea
   title gets its own constrained line and ellipsis; JS preserves its full
   text in the title/aria-label attributes. */
.ife-form .ife-success__msg {
	width: 100%;
	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-break: normal;
}

.ife-form .ife-success__msg [data-ife="idea"] {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin-inline: 0 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	overflow-wrap: normal !important;
	word-break: normal !important;
	box-sizing: border-box !important;
	vertical-align: bottom;
}

@media (max-width: 767px) {
	.ife-form .ife-review__val[data-review="idea_title"] {
		width: 100% !important;
	}

	.ife-form .ife-success__msg [data-ife="idea"] {
		max-width: 100% !important;
	}
}

