/*!
 * Brief form «شروع همکاری» (UniForm popup, uniform/test/form.tpl; behaviour: js/brief-form.js).
 * Grey at rest, red when chosen / hovered. IranSans everywhere.
 */
.mfp-content .rp-bf, .rp-bf {
	--bf-red: #fb4848; --bf-red-soft: #fff4f4; --bf-ink: #29292B; --bf-muted: #6b6b72; --bf-line: #e6e6ea; --bf-soft: #f6f6f8;
	--bf-ease: cubic-bezier(.22, 1, .36, 1);
	display: grid; grid-template-columns: 290px 1fr;
	max-width: 990px; width: 100%; margin: 24px auto;
	border-radius: 24px; overflow: hidden; background: #fff;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
	direction: rtl; text-align: right; font-family: 'IranSans', sans-serif; color: var(--bf-ink);
}
.rp-bf *, .rp-bf *::before, .rp-bf *::after { box-sizing: border-box; }
.rp-bf button { font-family: inherit; cursor: pointer; }
.rp-bf [hidden] { display: none !important; }

/* ---- close */
.rp-bf .rp-bf-close.mfp-close {
	position: absolute; top: 16px; left: 16px; right: auto; z-index: 5;
	width: 38px; height: 38px; line-height: 36px; padding: 0; text-align: center;
	border-radius: 50%; border: 1px solid var(--bf-line); background: #fff; color: var(--bf-muted);
	font: 22px/36px Arial, sans-serif; opacity: 1; cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--bf-ease);
}
.rp-bf .rp-bf-close.mfp-close:hover { background: var(--bf-ink); border-color: var(--bf-ink); color: #fff; transform: rotate(90deg); }

/* ---- side panel */
.rp-bf-side {
	position: relative; display: flex; flex-direction: column; gap: 22px;
	padding: 34px 28px 28px; background: #1d1d20; color: #fff; isolation: isolate; overflow: hidden;
}
.rp-bf-side::before {
	content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; left: -160px; top: -150px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(251, 72, 72, .38), transparent);
}
.rp-bf-side::after {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 18px 18px;
	mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.rp-bf-brand { display: flex; flex-direction: column; gap: 2px; }
.rp-bf-brand b { font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 20px; letter-spacing: -.2px; }
.rp-bf-brand b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--bf-red); }
.rp-bf-brand small { font-size: 12px; color: #a3a3ab; }
.rp-bf-side-title { margin: 6px 0 0; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 24px; line-height: 1.55; color: #fff; }
.rp-bf-side-title em { font-style: normal; color: var(--bf-red); }
.rp-bf-side-lead { margin: -10px 0 0; font-size: 13.5px; line-height: 2; color: #c4c4cb; }

.rp-bf-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.rp-bf-steps::before { content: ""; position: absolute; right: 16px; top: 22px; bottom: 22px; width: 1px; background: rgba(255, 255, 255, .14); }
.rp-bf-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #8d8d96; transition: color .3s; }
.rp-bf-steps li > span {
	flex: 0 0 33px; height: 33px; display: grid; place-items: center; border-radius: 50%;
	background: #2a2a2e; border: 1px solid rgba(255, 255, 255, .14); font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 13px;
	transition: background-color .35s, border-color .35s, color .35s, box-shadow .35s;
}
.rp-bf-steps li b { display: block; font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 14px; }
.rp-bf-steps li small { display: block; font-size: 11.5px; opacity: .8; }
.rp-bf-steps li.is-current { color: #fff; }
.rp-bf-steps li.is-current > span { background: var(--bf-red); border-color: var(--bf-red); color: #fff; box-shadow: 0 0 0 5px rgba(251, 72, 72, .18); }
.rp-bf-steps li.is-done { color: #d6d6dc; }
.rp-bf-steps li.is-done > span { background: #fff; border-color: #fff; color: var(--bf-ink); font-size: 0; }
.rp-bf-steps li.is-done > span::before { content: "\f00c"; font: normal 12px/1 FontAwesome; }

.rp-bf-trust { list-style: none; margin: auto 0 0; padding: 16px 0 0; display: flex; gap: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #a3a3ab; }
.rp-bf-trust b { display: block; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 20px; color: #fff; }
.rp-bf-call {
	display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
	padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
	color: #fff !important; text-decoration: none !important; transition: background-color .3s, border-color .3s;
}
.rp-bf-call i { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .08); transition: background-color .3s; }
.rp-bf-call span { font-size: 11.5px; color: #a3a3ab; }
.rp-bf-call b { font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 15px; text-align: right; }
.rp-bf-call:hover { background: rgba(251, 72, 72, .12); border-color: rgba(251, 72, 72, .35); }
.rp-bf-call:hover i { background: var(--bf-red); }

/* ---- main */
.rp-bf-main { position: relative; display: flex; flex-direction: column; min-height: 600px; padding: 34px 36px 28px; }
.rp-bf-progress { height: 3px; margin: 4px 0 0 56px; border-radius: 3px; background: var(--bf-soft); overflow: hidden; }
.rp-bf-progress i { display: block; height: 100%; width: 33.33%; border-radius: inherit; background: var(--bf-red); transition: width .6s var(--bf-ease); }
.rp-bf-count { margin: 10px 0 18px; font-size: 12px; color: var(--bf-muted); }

.rp-bf-step { animation: rpBfIn .5s var(--bf-ease) both; }
.rp-bf-step.is-back { animation-name: rpBfInBack; }
@keyframes rpBfIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes rpBfInBack { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.rp-bf-step h3 { margin: 0 0 6px; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 22px; line-height: 1.5; color: var(--bf-ink); }
.rp-bf-hint { margin: 0 0 20px; font-size: 13.5px; line-height: 1.9; color: var(--bf-muted); }

/* service cards */
.rp-bf-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rp-bf-svc {
	position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
	padding: 14px; border: 1px solid var(--bf-line); border-radius: 16px; background: #fff; text-align: right; color: var(--bf-ink);
	transition: border-color .25s, background-color .25s, box-shadow .35s, transform .35s var(--bf-ease);
}
.rp-bf-svc i {
	grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
	background: var(--bf-soft); color: #8a8a92; font-size: 17px; transition: background-color .25s, color .25s;
}
.rp-bf-svc b { font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 14px; line-height: 1.5; }
.rp-bf-svc small { font-size: 11.5px; line-height: 1.6; color: var(--bf-muted); }
.rp-bf-svc::after {
	content: "\f00c"; position: absolute; top: 9px; left: 9px; width: 18px; height: 18px; display: grid; place-items: center;
	border-radius: 50%; background: var(--bf-red); color: #fff; font: normal 9px/1 FontAwesome;
	opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s var(--bf-ease);
}
.rp-bf-svc:hover { border-color: #f2b5b5; transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(251, 72, 72, .45); }
.rp-bf-svc:hover i { color: var(--bf-red); background: var(--bf-red-soft); }
.rp-bf-svc[aria-pressed="true"] { border-color: var(--bf-red); background: var(--bf-red-soft); }
.rp-bf-svc[aria-pressed="true"] i { background: var(--bf-red); color: #fff; }
.rp-bf-svc[aria-pressed="true"]::after { opacity: 1; transform: none; }
.rp-bf-svc--wide { grid-column: 1 / -1; border-style: dashed; }
.rp-bf-svc:focus-visible, .rp-bf-chip:focus-visible, .rp-bf-btn:focus-visible { outline: 2px solid var(--bf-red); outline-offset: 2px; }

/* sub-options for a chosen service */
.rp-bf-subs { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rp-bf-sub { padding: 14px 16px; border-radius: 16px; background: var(--bf-soft); animation: rpBfSub .45s var(--bf-ease) both; }
@keyframes rpBfSub { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rp-bf-sub > p { margin: 0 0 10px; font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 13px; color: var(--bf-ink); }

/* chips */
.rp-bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-bf-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--bf-line); border-radius: 999px;
	background: #fff; color: #55555c; font-size: 13px; line-height: 1.6;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.rp-bf-chip:hover { border-color: var(--bf-red); color: var(--bf-red); }
.rp-bf-chip:active { transform: scale(.97); }
.rp-bf-chip[aria-pressed="true"] { background: var(--bf-red); border-color: var(--bf-red); color: #fff; }
.rp-bf-chip[aria-pressed="true"]::before { content: "\f00c"; font: normal 10px/1 FontAwesome; }

/* questions + fields */
.rp-bf-q { margin-bottom: 18px; }
.rp-bf-label { margin: 0 0 9px; font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 13.5px; color: var(--bf-ink); }
.rp-bf-label small { font-family: 'IranSans', sans-serif; font-size: 12px; color: var(--bf-muted); }
.rp-bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-bf-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; font-weight: normal; }
.rp-bf-field > span { font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 13.5px; color: var(--bf-ink); }
.rp-bf-field > span b { color: var(--bf-red); font-weight: normal; }
.rp-bf-field > span small { font-family: 'IranSans', sans-serif; font-size: 12px; color: var(--bf-muted); }
.rp-bf-field input, .rp-bf-field textarea {
	width: 100%; min-height: 48px; margin: 0; padding: 11px 14px; border: 1px solid var(--bf-line); border-radius: 12px;
	background: #fafafb; color: var(--bf-ink); font: 14px/1.7 'IranSans', sans-serif; box-shadow: none;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.rp-bf-field textarea { resize: vertical; min-height: 92px; }
.rp-bf-field input[dir="ltr"] { text-align: left; }
.rp-bf-field input[dir="ltr"]:placeholder-shown { text-align: right; }
.rp-bf-field input::placeholder, .rp-bf-field textarea::placeholder { color: #a9a9b0; }
.rp-bf-field input:focus, .rp-bf-field textarea:focus { outline: none; border-color: var(--bf-ink); background: #fff; box-shadow: 0 0 0 4px rgba(41, 41, 43, .07); }
.rp-bf-field.is-bad input { border-color: var(--bf-red); background: #fff7f7; box-shadow: 0 0 0 4px rgba(251, 72, 72, .1); }

/* summary */
.rp-bf-summary { margin-top: 4px; padding: 14px 16px; border: 1px dashed #d9d9de; border-radius: 16px; }
.rp-bf-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; line-height: 1.8; }
.rp-bf-summary dt { color: var(--bf-muted); font-weight: normal; }
.rp-bf-summary dd { margin: 0; color: var(--bf-ink); }
.rp-bf-summary dd button { margin-right: 6px; padding: 0; border: 0; background: none; color: var(--bf-red); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* footer nav */
.rp-bf-note { min-height: 22px; margin: 8px 0 0; font-size: 13px; color: var(--bf-red); }
.rp-bf-nav { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid #f0f0f3; }
.rp-bf-nav [data-bf-next], .rp-bf-nav .rp-bf-submit { margin-right: auto; }
.rp-bf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
	border-radius: 14px; border: 1px solid transparent; font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 14.5px;
	text-decoration: none !important; transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--bf-ease), box-shadow .35s;
}
.rp-bf-btn--primary { background: var(--bf-ink); color: #fff !important; }
.rp-bf-btn--primary:hover { background: var(--bf-red); box-shadow: 0 16px 30px -16px rgba(251, 72, 72, .8); }
.rp-bf-btn--primary:hover i { transform: translateX(-4px); }
.rp-bf-btn i { transition: transform .35s var(--bf-ease); }
.rp-bf-btn--ghost { background: #fff; border-color: var(--bf-line); color: var(--bf-muted) !important; }
.rp-bf-btn--ghost:hover { border-color: var(--bf-ink); color: var(--bf-ink) !important; }
.rp-bf-submit.ladda-button { padding: 0 24px; }
.rp-bf-submit .ladda-label { display: inline-flex; align-items: center; gap: 10px; }
.rp-bf-submit[data-loading] { background: var(--bf-red); cursor: wait; }

/* honeypot: never visible */
.rp-bf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* server-side error box */
.rp-bf-alert { margin: 0 0 18px 56px; padding: 14px 16px; border-radius: 14px; background: #fff4f4; border: 1px solid #ffd2d2; font-size: 13.5px; line-height: 1.9; color: #b42323; }
.rp-bf-alert ul { margin: 6px 0 0; padding: 0 18px 0 0; }

/* sent */
.rp-bf-done { margin: auto 0; padding: 10px 0; text-align: center; animation: rpBfIn .6s var(--bf-ease) both; }
.rp-bf-done > svg { width: 74px; height: 74px; fill: none; stroke: var(--bf-red); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rp-bf-done > svg circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: rpBfDraw .8s .1s var(--bf-ease) forwards; }
.rp-bf-done > svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: rpBfDraw .5s .7s var(--bf-ease) forwards; }
@keyframes rpBfDraw { to { stroke-dashoffset: 0; } }
.rp-bf-done h3 { margin: 14px 0 6px; font-family: 'IranSansBlack', 'IranSans', sans-serif; font-weight: normal; font-size: 23px; color: var(--bf-ink); }
.rp-bf-done > p { margin: 0 0 22px; font-size: 14px; color: var(--bf-muted); }
.rp-bf-next { list-style: none; max-width: 430px; margin: 0 auto 26px; padding: 0; text-align: right; }
.rp-bf-next li { display: flex; gap: 14px; padding: 10px 0; }
.rp-bf-next li + li { border-top: 1px dashed var(--bf-line); }
.rp-bf-next li > span { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bf-red-soft); color: var(--bf-red); font-family: 'IranSansBold', 'IranSans', sans-serif; font-size: 13px; }
.rp-bf-next b { display: block; font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 14px; }
.rp-bf-next small { display: block; font-size: 12.5px; line-height: 1.8; color: var(--bf-muted); }
.rp-bf-done-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---- tablet / phone */
@media (max-width: 860px) {
	.mfp-content .rp-bf, .rp-bf { grid-template-columns: 1fr; margin: 10px auto; border-radius: 20px; }
	.rp-bf-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 18px 20px 16px 64px; }
	.rp-bf-side-title { width: 100%; margin: 4px 0 0; font-size: 18px; }
	.rp-bf-side-lead, .rp-bf-steps, .rp-bf-trust, .rp-bf-call { display: none; }
	.rp-bf .rp-bf-close.mfp-close { top: 14px; left: 14px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); color: #fff; }
	.rp-bf-main { min-height: 0; padding: 22px 20px 20px; }
	.rp-bf-progress, .rp-bf-alert { margin-left: 0; }
	.rp-bf-services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.rp-bf-row { grid-template-columns: 1fr; gap: 0; }
	.rp-bf-svc { grid-template-columns: 1fr; padding: 12px; row-gap: 6px; }
	.rp-bf-svc i { grid-row: auto; width: 36px; height: 36px; }
	.rp-bf-svc small { display: none; }
	.rp-bf-svc--wide small { display: block; }
	.rp-bf-step h3 { font-size: 19px; }
	.rp-bf-nav { position: sticky; bottom: 0; margin: auto -20px -20px; padding: 12px 20px; background: #fff; box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .35); }
	.rp-bf-btn { min-height: 46px; padding: 0 16px; }
	.rp-bf-nav .rp-bf-submit, .rp-bf-nav [data-bf-next] { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.rp-bf *, .rp-bf *::before, .rp-bf *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
