/*
 * Sheipoorchi lead forms (front). Karpoosheh tokens; IRANYekanX unless the form uses the theme font.
 * Selectors are scoped and slightly heavier than common theme rules (input[type=…], button).
 * Colors live in tokens; the three backgrounds (light, colored, dark) only change the tokens.
 * Link colors are !important on our own buttons and links: many themes color every link in the
 * content with a strong selector, which made the download button text unreadable.
 */
@font-face {
	font-family: "SHPYekan";
	src: url("../fonts/IRANYekanXVF.woff2") format("woff2");
	font-weight: 100 1000;
	font-display: swap;
}

.shp-lead {
	--shp-c: #008BD2;
	--shp-ink: #1B2430;
	--shp-ink-2: #4A5565;
	--shp-ink-3: #7A8494;
	--shp-line: #E3E7EC;
	--shp-line-2: #EEF1F4;
	--shp-input: #CDD3DB;
	--shp-field: #fff;
	--shp-field-ink: #1B2430;
	--shp-field-hint: #7A8494;
	--shp-bg: #F5F7FA;
	--shp-chip: #fff;
	--shp-chip-line: #E3E7EC;
	--shp-btn: var(--shp-c);
	--shp-btn-ink: #fff;
	--shp-accent: var(--shp-c);
	--shp-soft: color-mix(in srgb, var(--shp-c) 9%, #fff);
	--shp-ring: color-mix(in srgb, var(--shp-c) 22%, transparent);
	--shp-surface: #fff;
	--shp-paint: linear-gradient(180deg, color-mix(in srgb, var(--shp-c) 8%, #fff) 0, #fff 150px);
	--shp-shadow: 0 1px 2px rgba(27, 36, 48, .04), 0 10px 30px -12px rgba(27, 36, 48, .14);
	box-sizing: border-box;
	position: relative;
	margin: 32px 0;
	padding: 24px;
	border: 1px solid var(--shp-line);
	border-radius: 16px;
	background: var(--shp-surface);
	background-image: var(--shp-paint);
	box-shadow: var(--shp-shadow);
	color: var(--shp-ink);
	font-family: "SHPYekan", Tahoma, sans-serif;
	font-feature-settings: "ss02";
	font-size: 15px;
	line-height: 1.75;
	text-align: start;
	clear: both;
	scroll-margin-top: 96px;
}

/* Colored: the main color as the background, white text, white button. */
.shp-lead--color {
	--shp-ink: #fff;
	--shp-ink-2: rgba(255, 255, 255, .88);
	--shp-ink-3: rgba(255, 255, 255, .72);
	--shp-line: transparent;
	--shp-line-2: rgba(255, 255, 255, .2);
	--shp-input: transparent;
	--shp-chip: rgba(255, 255, 255, .14);
	--shp-chip-line: rgba(255, 255, 255, .24);
	--shp-btn: #fff;
	--shp-btn-ink: color-mix(in srgb, var(--shp-c) 82%, #000);
	--shp-accent: #fff;
	--shp-soft: rgba(255, 255, 255, .14);
	--shp-ring: rgba(255, 255, 255, .45);
	--shp-surface: var(--shp-c);
	--shp-paint: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .2) 0, transparent 55%), linear-gradient(135deg, var(--shp-c) 0%, color-mix(in srgb, var(--shp-c) 74%, #000) 100%);
	--shp-shadow: 0 14px 34px -14px color-mix(in srgb, var(--shp-c) 70%, transparent);
}

/* Dark. */
.shp-lead--dark {
	--shp-ink: #F2F5F9;
	--shp-ink-2: #BAC3CF;
	--shp-ink-3: #8C97A6;
	--shp-line: #223041;
	--shp-line-2: #263446;
	--shp-input: #314055;
	--shp-field: #0C131B;
	--shp-field-ink: #F2F5F9;
	--shp-field-hint: #6F7B8B;
	--shp-bg: #17212D;
	--shp-chip: rgba(255, 255, 255, .05);
	--shp-chip-line: #2A3849;
	--shp-accent: color-mix(in srgb, var(--shp-c) 62%, #fff);
	--shp-soft: rgba(255, 255, 255, .06);
	--shp-ring: color-mix(in srgb, var(--shp-c) 45%, transparent);
	--shp-surface: #121A24;
	--shp-paint: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--shp-c) 30%, transparent) 0, transparent 60%);
	--shp-shadow: 0 14px 34px -16px rgba(0, 0, 0, .55);
}

.shp-lead--inherit,
.shp-font-inherit {
	font-family: inherit;
	font-feature-settings: normal;
}

.shp-lead *,
.shp-lead *::before,
.shp-lead *::after {
	box-sizing: border-box;
}

.shp-lead [hidden] {
	display: none !important;
}

.shp-lead p.shp-lead__title,
.shp-lead p.shp-lead__desc,
.shp-lead p.shp-lead__sub,
.shp-lead p.shp-lead__note,
.shp-lead p.shp-lead__timer,
.shp-lead p.shp-lead__meta,
.shp-lead p.shp-lead__msg {
	margin: 0;
	padding: 0;
}

/* Head. */
.shp-lead__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 20px;
}

.shp-lead__icon {
	flex: 0 0 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--shp-btn);
	color: var(--shp-btn-ink);
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--shp-c) 60%, transparent);
}

.shp-lead__icon svg {
	display: block;
}

.shp-lead__intro {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 2px;
}

.shp-lead p.shp-lead__title {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.6;
	color: var(--shp-ink);
}

.shp-lead p.shp-lead__desc {
	margin-top: 4px;
	font-size: 14px;
	color: var(--shp-ink-2);
}

/* Fields. */
.shp-lead__step {
	margin: 0;
	padding: 0;
	border: 0;
}

.shp-lead form.shp-lead__step {
	padding-top: 18px;
	border-top: 1px solid var(--shp-line-2);
}

.shp-lead__field + .shp-lead__field {
	margin-top: 12px;
}

.shp-lead label.shp-lead__label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--shp-ink-2);
}

.shp-lead__opt {
	font-weight: 400;
	color: var(--shp-ink-3);
}

.shp-lead__row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.shp-lead .shp-lead__input,
.shp-lead input.shp-lead__input[type] {
	display: block;
	width: 100%;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--shp-input);
	border-radius: 10px;
	background: var(--shp-field);
	box-shadow: none;
	color: var(--shp-field-ink);
	font: inherit;
	font-size: 15px;
	line-height: 46px;
	letter-spacing: normal;
	text-transform: none;
	outline: 0;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}

.shp-lead .shp-lead__input::placeholder {
	color: var(--shp-field-hint);
	opacity: 1;
}

.shp-lead .shp-lead__input:focus {
	border-color: var(--shp-accent);
	box-shadow: 0 0 0 3px var(--shp-ring);
}

.shp-lead--color .shp-lead__input:focus {
	border-color: #fff;
}

.shp-lead .shp-lead__input--ltr {
	direction: ltr;
	text-align: left;
}

[dir="rtl"] .shp-lead .shp-lead__input--ltr:placeholder-shown,
.rtl .shp-lead .shp-lead__input--ltr:placeholder-shown {
	text-align: right;
}

.shp-lead .shp-lead__input--code {
	direction: ltr;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .35em;
	font-variant-numeric: tabular-nums;
	padding-left: calc(14px + .35em);
}

/* Buttons. */
.shp-lead .shp-lead__btn,
.shp-lead button.shp-lead__btn,
.shp-lead a.shp-lead__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	min-width: 120px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--shp-btn);
	box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--shp-c) 70%, transparent);
	color: var(--shp-btn-ink) !important;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: filter .15s, opacity .15s, transform .15s;
}

.shp-lead--color .shp-lead__btn {
	box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35);
}

.shp-lead .shp-lead__btn:hover,
.shp-lead .shp-lead__btn:focus,
.shp-lead a.shp-lead__btn:visited {
	background: var(--shp-btn);
	color: var(--shp-btn-ink) !important;
	text-decoration: none !important;
}

.shp-lead .shp-lead__btn:hover {
	filter: brightness(.94);
}

.shp-lead .shp-lead__btn:active {
	transform: translateY(1px);
}

.shp-lead .shp-lead__btn:focus-visible {
	outline: 3px solid var(--shp-ring);
	outline-offset: 2px;
}

.shp-lead .shp-lead__btn[disabled] {
	opacity: .7;
	cursor: progress;
}

.shp-lead .shp-lead__btn--block,
.shp-lead a.shp-lead__btn--block {
	display: flex;
	width: 100%;
	margin-top: 16px;
	height: 52px;
	font-size: 16px;
}

.shp-lead button.shp-lead__link {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--shp-accent) !important;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}

.shp-lead--color button.shp-lead__link {
	text-decoration: underline;
}

.shp-lead button.shp-lead__link:hover,
.shp-lead button.shp-lead__link:focus {
	background: none;
	color: var(--shp-accent) !important;
	text-decoration: underline;
}

/* Consent and small print. */
.shp-lead label.shp-lead__check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.7;
	color: var(--shp-ink-2);
	cursor: pointer;
}

.shp-lead .shp-lead__check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: var(--shp-c);
}

.shp-lead--color .shp-lead__check input[type="checkbox"] {
	accent-color: #fff;
}

.shp-lead p.shp-lead__note {
	margin-top: 10px;
	font-size: 12px;
	color: var(--shp-ink-3);
}

/* Code step. */
.shp-lead p.shp-lead__sub {
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--shp-ink-2);
}

.shp-lead p.shp-lead__timer {
	min-height: 22px;
	margin-top: 8px;
	font-size: 13px;
	color: var(--shp-ink-3);
}

/* Done. */
.shp-lead__done {
	padding-top: 18px;
	border-top: 1px solid var(--shp-line-2);
}

.shp-lead__done p.shp-lead__title {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* A circle in the button color with the check cut out (the background shows through). */
.shp-lead__done p.shp-lead__title::before {
	content: "";
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	background: var(--shp-btn);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 1 0 0 20a10 10 0 1 0 0-20zM8.6 14.3L4.7 10.4l1.4-1.4l2.5 2.5l5.3-5.8l1.5 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 1 0 0 20a10 10 0 1 0 0-20zM8.6 14.3L4.7 10.4l1.4-1.4l2.5 2.5l5.3-5.8l1.5 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.shp-lead p.shp-lead__meta {
	margin-top: 8px;
	font-size: 12px;
	color: var(--shp-ink-3);
	text-align: center;
}

.shp-lead__coupon {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

.shp-lead__coupon code {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	border: 1px dashed var(--shp-accent);
	border-radius: 10px;
	background: var(--shp-soft);
	color: var(--shp-ink);
	font: 600 17px/1 ui-monospace, Menlo, Consolas, monospace;
	letter-spacing: .08em;
	direction: ltr;
}

/* Messages. */
.shp-lead p.shp-lead__msg {
	margin-top: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #FEF3F2;
	color: #B42318;
	font-size: 13px;
	line-height: 1.7;
}

.shp-lead p.shp-lead__msg.is-ok {
	background: var(--shp-soft);
	color: var(--shp-ink);
}

/* Honeypot (off screen, not display:none, so simple bots still fill it). */
.shp-lead .shp-lead__hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	inset-inline-start: -9999px;
}

.shp-lead.is-busy {
	cursor: progress;
}

/* Compact layout. */
.shp-lead--compact {
	padding: 16px;
	border-radius: 12px;
	box-shadow: none;
}

.shp-lead--compact.shp-lead--light {
	--shp-paint: none;
	--shp-surface: var(--shp-bg);
	border-color: var(--shp-line-2);
}

.shp-lead--compact .shp-lead__icon {
	display: none;
}

.shp-lead--compact .shp-lead__head {
	margin-bottom: 12px;
}

.shp-lead--compact form.shp-lead__step,
.shp-lead--compact .shp-lead__done {
	padding-top: 0;
	border-top: 0;
}

.shp-lead-empty {
	padding: 12px 16px;
	border: 1px dashed #CDD3DB;
	border-radius: 8px;
	color: #4A5565;
	font-size: 13px;
}

/* Download box: cover, facts. */
.shp-lead__cover {
	flex: 0 0 104px;
	width: 104px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--shp-bg);
	border: 3px solid #fff;
	box-shadow: 0 2px 4px rgba(27, 36, 48, .1), 0 12px 24px -8px rgba(27, 36, 48, .3);
}

.shp-lead .shp-lead__cover img.shp-lead__cover-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.shp-lead ul.shp-lead__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.shp-lead ul.shp-lead__facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--shp-chip);
	border: 1px solid var(--shp-chip-line);
	font-size: 12.5px;
	line-height: 1.9;
	color: var(--shp-ink);
}

.shp-lead ul.shp-lead__facts li::before,
.shp-lead ul.shp-lead__facts li::marker {
	content: none;
}

.shp-lead .shp-lead__fact-label {
	color: var(--shp-ink-3);
}

.shp-lead .shp-lead__fact-value {
	font-weight: 700;
}

.shp-lead__html {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--shp-soft);
	font-size: 14.5px;
	line-height: 1.9;
	overflow-wrap: anywhere;
}

.shp-lead__html > :first-child {
	margin-top: 0;
}

.shp-lead__html > :last-child {
	margin-bottom: 0;
}

.shp-lead .shp-lead__html a {
	color: var(--shp-accent) !important;
	text-decoration: underline;
}

/* Note at the top of the post: tells the reader there is something to download further down. */
.shp-teaser,
a.shp-teaser {
	--shp-c: #008BD2;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	padding: 10px 14px;
	border: 1px solid color-mix(in srgb, var(--shp-c) 24%, #fff);
	border-radius: 14px;
	background: color-mix(in srgb, var(--shp-c) 7%, #fff);
	color: #1B2430 !important;
	font-family: "SHPYekan", Tahoma, sans-serif;
	font-feature-settings: "ss02";
	font-size: 14px;
	line-height: 1.6;
	text-align: start;
	text-decoration: none !important;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}

a.shp-teaser:hover,
a.shp-teaser:focus {
	border-color: var(--shp-c);
	box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--shp-c) 70%, transparent);
	color: #1B2430 !important;
	text-decoration: none !important;
}

a.shp-teaser:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--shp-c) 35%, transparent);
	outline-offset: 2px;
}

.shp-teaser__icon {
	flex: 0 0 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--shp-c);
	color: #fff;
}

.shp-teaser svg,
.shp-float svg {
	display: block;
	flex: 0 0 auto;
}

.shp-teaser__text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.shp-teaser__title {
	font-weight: 700;
}

.shp-teaser__meta {
	font-size: 12.5px;
	color: #4A5565;
}

.shp-teaser__go {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--shp-c);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

a.shp-teaser--color {
	border-color: transparent;
	background: linear-gradient(135deg, var(--shp-c) 0%, color-mix(in srgb, var(--shp-c) 74%, #000) 100%);
	color: #fff !important;
}

a.shp-teaser--color:hover,
a.shp-teaser--color:focus {
	border-color: transparent;
	color: #fff !important;
}

.shp-teaser--color .shp-teaser__icon {
	background: rgba(255, 255, 255, .2);
}

.shp-teaser--color .shp-teaser__meta {
	color: rgba(255, 255, 255, .8);
}

.shp-teaser--color .shp-teaser__go {
	color: #fff;
}

a.shp-teaser--dark {
	border-color: #223041;
	background: #121A24;
	color: #F2F5F9 !important;
}

a.shp-teaser--dark:hover,
a.shp-teaser--dark:focus {
	color: #F2F5F9 !important;
}

.shp-teaser--dark .shp-teaser__meta {
	color: #BAC3CF;
}

.shp-teaser--dark .shp-teaser__go {
	color: color-mix(in srgb, var(--shp-c) 62%, #fff);
}

/* Floating button: shown by lead.js while the form is further down the page. */
.shp-float,
a.shp-float {
	--shp-c: #008BD2;
	position: fixed;
	z-index: 9990;
	left: 50%;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--shp-c);
	box-shadow: 0 10px 28px -8px rgba(15, 23, 34, .45);
	color: #fff !important;
	font-family: "SHPYekan", Tahoma, sans-serif;
	font-feature-settings: "ss02";
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transform: translateX(-50%);
	animation: shp-float-in .2s ease-out;
}

a.shp-float:hover,
a.shp-float:focus {
	color: #fff !important;
	filter: brightness(.94);
}

a.shp-float--dark {
	background: #121A24;
	box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .6), inset 0 0 0 1px #2A3849;
}

.shp-float[hidden] {
	display: none !important;
}

@keyframes shp-float-in {
	from {
		opacity: 0;
		transform: translate(-50%, 12px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.shp-float {
		animation: none;
	}

	.shp-lead .shp-lead__btn,
	.shp-teaser {
		transition: none;
	}
}

@media print {
	.shp-float,
	.shp-teaser {
		display: none !important;
	}
}

/* Narrow screens: field and button stack. */
@media (max-width: 480px) {
	.shp-lead {
		padding: 18px;
	}

	.shp-lead__row {
		flex-direction: column;
	}

	.shp-lead .shp-lead__btn {
		width: 100%;
	}

	.shp-lead__icon {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}

	.shp-lead__cover {
		flex-basis: 80px;
		width: 80px;
	}

	.shp-lead p.shp-lead__title {
		font-size: 16.5px;
	}

	.shp-teaser__go-text {
		display: none;
	}
}
