/*!
 * Urgent-request form (UniForm "callback") when it opens as a POPUP (service pages, contact pill, …).
 * Generated from the homepage card styles in css/contact.css (.rp-ct-form → popup wrapper) so both look the same.
 * The heading (.rp-cb-pop) lives in uniform/callback/form.tpl and is shown only in the popup.
 */
.mfp-content .uf-wrapper-inline { --ct-red: #fb4848; --ct-ink: #29292B; width: min(560px, calc(100vw - 24px)); margin: 24px auto; direction: rtl; text-align: right; font-family: 'IranSans', sans-serif; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.rp-cb-pop, .rp-cb-close { display: none !important; }
.mfp-content .rp-cb-close { display: block !important; }
.mfp-content .rp-cb-pop { display: flex !important; flex-direction: column; }
.mfp-content .rp-cb-pop h3 { margin: 14px 0 6px; font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 21px; line-height: 1.6; color: #fff; }
.mfp-content .rp-cb-pop p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .62); }
.mfp-content .uf-wrapper-inline .rp-cb-close.mfp-close {
	position: absolute; top: 16px; left: 16px; right: auto; width: 36px; height: 36px; padding: 0; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; opacity: 1;
	font: 22px/34px Arial, sans-serif; text-align: center; cursor: pointer; transition: background-color .25s, transform .4s;
}
.mfp-content .uf-wrapper-inline .rp-cb-close.mfp-close:hover { background: #fb4848; border-color: #fb4848; transform: rotate(90deg); }
@media (max-width: 575px) {
	.mfp-content .uf-wrapper-inline { padding: 24px 18px 18px; border-radius: 22px; }
	.mfp-content .uf-wrapper-inline .uf-content { grid-template-columns: minmax(0, 1fr); }
}

.mfp-content .uf-wrapper-inline {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 30px 30px 26px;
	border-radius: 28px;
	background:
		radial-gradient(520px 260px at 100% 0%, rgba(251, 72, 72, .22), transparent 70%),
		#1b1b1d;
	color: #fff;
	overflow: hidden;
}
.rp-ct-badge {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: 12.5px;
}
.rp-ct-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ct-red); box-shadow: 0 0 0 4px rgba(251, 72, 72, .25); }
.mfp-content .uf-wrapper-inline h3 { margin: 14px 0 6px; font-family: 'IranSansBold', 'IranSans', sans-serif; font-weight: normal; font-size: 21px; line-height: 1.6; color: #fff; }
.mfp-content .uf-wrapper-inline > p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .62); }
/* fields in two columns: name | phone, then time | send, then the optional note */
.mfp-content .uf-wrapper-inline .uf-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
.mfp-content .uf-wrapper-inline .uf-content > * { grid-column: 1 / -1; }
/* children: 1 name, 2 phone, 3 time, 4 note toggle (.dpd), 5 send */
.mfp-content .uf-wrapper-inline .uf-content > .uf-field:nth-child(1), .mfp-content .uf-wrapper-inline .uf-content > .uf-field:nth-child(2),
.mfp-content .uf-wrapper-inline .uf-content > .uf-field:nth-child(3), .mfp-content .uf-wrapper-inline .uf-content > .uf-field:nth-child(5) { grid-column: auto; }
.mfp-content .uf-wrapper-inline .uf-content > .dpd { order: 6; }
.mfp-content .uf-wrapper-inline .uf-content > .uf-field:nth-child(3) .uf-label { display: none; }
.mfp-content .uf-wrapper-inline .uf-content > .uf-field:nth-child(5) .uf-btn { margin-top: 0; }

/* Uniform callback form, restyled for the dark card */
.mfp-content .uf-wrapper-inline .uf-wrapper-inline, .mfp-content .uf-wrapper-inline .uf-content { padding: 0; background: none; box-shadow: none; border: 0; }
.mfp-content .uf-wrapper-inline .uf-field { margin: 0 0 12px; }
.mfp-content .uf-wrapper-inline .uf-label { margin-bottom: 6px; font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 13px; color: rgba(255, 255, 255, .7); text-align: right; }
.mfp-content .uf-wrapper-inline .uf-input {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 14px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-family: 'IranSans', sans-serif;
	font-size: 14.5px;
	text-align: right;
	direction: rtl;
	box-shadow: none;
	transition: border-color .25s, background-color .25s;
}
.mfp-content .uf-wrapper-inline textarea.uf-input { height: auto; min-height: 96px; padding: 12px 16px; line-height: 1.9; }
.mfp-content .uf-wrapper-inline select.uf-input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: 20px 22px, 15px 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 36px; }
.mfp-content .uf-wrapper-inline select.uf-input option { color: var(--ct-ink); }
.mfp-content .uf-wrapper-inline .uf-input::placeholder { color: rgba(255, 255, 255, .5); }
.mfp-content .uf-wrapper-inline .uf-input:focus { outline: none; border-color: var(--ct-red); background-color: rgba(255, 255, 255, .09); }
.mfp-content .uf-wrapper-inline input[name="phone"] { direction: ltr; text-align: left; }
.mfp-content .uf-wrapper-inline input[name="phone"]::placeholder { text-align: right; }
.mfp-content .uf-wrapper-inline .uf-input-error { border-color: var(--ct-red); }
.mfp-content .uf-wrapper-inline .dpd__title { text-decoration: none; margin: 2px 0 10px; color: rgba(255, 255, 255, .78); font-family: 'IranSansMedium', 'IranSans', sans-serif; font-size: 13px; cursor: pointer; text-align: right; }
.mfp-content .uf-wrapper-inline .dpd__title::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 8px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.mfp-content .uf-wrapper-inline .dpd_active .dpd__title::before { content: "−"; }
.mfp-content .uf-wrapper-inline .dpd br { display: none; }
.mfp-content .uf-wrapper-inline .uf-field[style] { text-align: right !important; }
.mfp-content .uf-wrapper-inline .uf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	margin-top: 6px;
	border: 0;
	border-radius: 14px;
	background: var(--ct-red);
	color: #fff;
	font-family: 'IranSansMedium', 'IranSans', sans-serif;
	font-size: 15px;
	box-shadow: 0 14px 30px -14px rgba(251, 72, 72, .9);
	transition: background-color .25s, transform .25s;
}
.mfp-content .uf-wrapper-inline .uf-btn:hover { background: #e53d3d; transform: translateY(-2px); }
.mfp-content .uf-wrapper-inline .uf-alert { border-radius: 14px; font-size: 13.5px; text-align: right; }
.mfp-content .uf-wrapper-inline .uf-inline-loading { min-height: 170px; }

/* ---- submit button: same hover as the services "جزئیات و تعرفه" button, without the running light.
   Red square on the left grows to fill the button; the label slides out and a white label with an arrow slides in. */
.mfp-content .uf-wrapper-inline .uf-btn.rp-fx-btn {
	position: relative;
	display: block;
	padding: 0;
	overflow: hidden;
	background: rgba(255, 255, 255, .05);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
	transform: none;
}
.mfp-content .uf-wrapper-inline .uf-btn.rp-fx-btn:hover { background: rgba(255, 255, 255, .05); transform: none; }
.mfp-content .uf-wrapper-inline .rp-fx-btn .ladda-label { /* beats Ladda's .ladda-button[data-style] .ladda-label inline-block */
	position: relative;
	z-index: 1;
	display: flex !important;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding: 0 20px 0 7px;
	isolation: isolate;
}
