.wpcustomcrm-quiz {
	--wpcrm-quiz-primary: #4f46e5;
	--wpcrm-quiz-accent: #a855f7;
	--wpcrm-quiz-from: #6366f1;
	--wpcrm-quiz-to: #22d3ee;
	margin: 1.5em auto;
	max-width: 480px;
	font-family: Tahoma, Arial, sans-serif;
}

.wpcustomcrm-quiz.wpcustomcrm-quiz--has-font {
	font-family: "IRANYekan", Tahoma, Arial, sans-serif;
}

.wpcustomcrm-quiz__shell {
	position: relative;
	padding: 3px;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--wpcrm-quiz-from), var(--wpcrm-quiz-accent), var(--wpcrm-quiz-to));
	box-shadow: 0 20px 50px rgba(79, 70, 229, 0.25);
}

.wpcustomcrm-quiz__shell > .wpcustomcrm-quiz__progress {
	height: 4px;
	margin: 0 20px 0;
	background: rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	overflow: hidden;
}

.wpcustomcrm-quiz__progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: #fff;
	border-radius: 4px;
	transition: width 0.35s ease;
}

.wpcustomcrm-quiz__screen {
	padding: 24px 20px 28px;
	border-radius: 21px;
	background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
	min-height: 320px;
}

.wpcustomcrm-quiz__title {
	margin: 0 0 12px;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.45;
	color: #0f172a;
}

.wpcustomcrm-quiz__intro {
	margin: 0 0 20px;
	font-size: 0.95rem;
	line-height: 1.75;
	color: #475569;
}

.wpcustomcrm-quiz__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: none;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpcustomcrm-quiz__btn--primary {
	background: linear-gradient(90deg, var(--wpcrm-quiz-primary), var(--wpcrm-quiz-accent));
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(79, 70, 229, 0.35);
}

.wpcustomcrm-quiz__btn--ghost {
	background: #fff;
	color: #4f46e5 !important;
	border: 2px solid #c7d2fe;
}

.wpcustomcrm-quiz__btn:hover {
	transform: translateY(-1px);
}

.wpcustomcrm-quiz__qnum {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(99, 102, 241, 0.12);
	color: var(--wpcrm-quiz-primary);
	font-size: 12px;
	font-weight: 700;
}

.wpcustomcrm-quiz__qtext {
	margin: 0 0 16px;
	font-size: 1.1rem;
	line-height: 1.6;
	color: #1e293b;
}

.wpcustomcrm-quiz__qhelp {
	margin: -8px 0 14px;
	font-size: 13px;
	color: #64748b;
}

.wpcustomcrm-quiz__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpcustomcrm-quiz__option {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
	text-align: right;
	font-size: 15px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.wpcustomcrm-quiz__option.is-selected,
.wpcustomcrm-quiz__option:hover {
	border-color: var(--wpcrm-quiz-primary);
	background: rgba(99, 102, 241, 0.06);
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.wpcustomcrm-quiz__slider-wrap {
	padding: 8px 4px 16px;
}

.wpcustomcrm-quiz__slider {
	width: 100%;
	height: 8px;
	accent-color: var(--wpcrm-quiz-primary);
}

.wpcustomcrm-quiz__slider-value {
	text-align: center;
	font-size: 2rem;
	font-weight: 800;
	color: var(--wpcrm-quiz-primary);
	margin: 12px 0;
}

.wpcustomcrm-quiz__slider-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #64748b;
}

.wpcustomcrm-quiz__scale {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.wpcustomcrm-quiz__scale-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid #e2e8f0;
	background: #fff;
	font-weight: 700;
	cursor: pointer;
}

.wpcustomcrm-quiz__scale-btn.is-selected {
	background: var(--wpcrm-quiz-primary);
	border-color: var(--wpcrm-quiz-primary);
	color: #fff;
}

.wpcustomcrm-quiz__nav {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: 22px;
}

.wpcustomcrm-quiz__result-card {
	padding: 18px;
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.06));
	border: 1px solid rgba(99, 102, 241, 0.2);
}

.wpcustomcrm-quiz__result-badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--wpcrm-quiz-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.wpcustomcrm-quiz__result-locked {
	position: relative;
	margin-top: 10px;
	padding-bottom: 8px;
	overflow: hidden;
	min-height: 7.5em;
}

.wpcustomcrm-quiz__result-snippet {
	margin: 0 0 6px;
	line-height: 1.9;
	color: #1e293b;
	font-size: 15px;
}

.wpcustomcrm-quiz__result-blur {
	margin: 0;
	line-height: 1.9;
	font-size: 15px;
	color: #334155;
	filter: blur(7px);
	-webkit-filter: blur(7px);
	user-select: none;
	pointer-events: none;
	opacity: 0.92;
	transform: scale(1.02);
}

.wpcustomcrm-quiz__result-blur--placeholder {
	filter: blur(6px);
	-webkit-filter: blur(6px);
}

.wpcustomcrm-quiz__result-fog {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 28%;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.55) 28%,
		rgba(255, 255, 255, 0.95) 72%,
		#ffffff 100%
	);
}

.wpcustomcrm-quiz__result-full {
	margin: 0;
	line-height: 1.85;
	color: #334155;
}

.wpcustomcrm-quiz__guest-cta {
	margin-top: 22px;
	padding: 22px 18px 20px;
	border-radius: 18px;
	text-align: center;
	background: linear-gradient(165deg, #fff7ed 0%, #fff 45%, #f0f9ff 100%);
	border: 2px solid rgba(249, 115, 22, 0.45);
	box-shadow:
		0 12px 32px rgba(249, 115, 22, 0.18),
		0 0 0 1px rgba(99, 102, 241, 0.08) inset;
}

.wpcustomcrm-quiz__guest-cta-icon {
	font-size: 28px;
	line-height: 1;
	margin-bottom: 10px;
}

.wpcustomcrm-quiz__guest-lead {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 800;
	color: #9a3412;
	line-height: 1.65;
}

.wpcustomcrm-quiz__guest-easy {
	margin: 0 0 16px;
	font-size: 14px;
	color: #334155;
	line-height: 1.8;
}

.wpcustomcrm-quiz__guest-no-url {
	margin: 0;
	font-size: 13px;
	color: #b45309;
}

.wpcustomcrm-quiz__btn--register {
	display: inline-flex;
	min-width: 200px;
	padding: 14px 28px;
	font-size: 16px;
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(249, 115, 22, 0.35);
}

.wpcustomcrm-quiz__saved-msg {
	margin-top: 16px;
	text-align: center;
	font-weight: 700;
	color: #15803d;
}

.wpcustomcrm-quiz__duplicate-wrap {
	padding: 2px;
	border-radius: 22px;
	background: linear-gradient(135deg, #1e1b4b 0%, #d97706 42%, #2563eb 100%);
	box-shadow: 0 14px 40px rgba(30, 27, 75, 0.18);
}

.wpcustomcrm-quiz__duplicate-inner {
	padding: 18px 16px 16px;
	background: #fff;
	border-radius: 20px;
}

.wpcustomcrm-quiz__already-msg {
	margin: 0;
	padding: 18px 16px;
	text-align: center;
	background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
	border: 1px solid #ddd6fe;
	border-radius: 14px;
}

.wpcustomcrm-quiz__already-text {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.85;
	color: #1e293b;
}

.wpcustomcrm-quiz__panel-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 2px;
	padding: 2px 10px 3px;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	vertical-align: baseline;
}

.wpcustomcrm-quiz__panel-link:hover,
.wpcustomcrm-quiz__panel-link:focus {
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.55);
	background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
}

.wpcustomcrm-quiz__panel-link:focus {
	outline: 2px solid #a78bfa;
	outline-offset: 2px;
}

.wpcustomcrm-quiz__panel-link-text {
	border-bottom: 2px solid rgba(255, 255, 255, 0.55);
}

.wpcustomcrm-quiz__panel-link-arrow {
	font-size: 14px;
	font-weight: 700;
	opacity: 0.95;
}

.wpcustomcrm-quiz__already-hint {
	margin: 12px 0 0;
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.6;
}

.wpcustomcrm-quiz__resume-error {
	color: #b45309;
	text-align: center;
}

.wpcustomcrm-quiz__insights {
	margin: 12px 0 0;
	padding-right: 18px;
	font-size: 13px;
	color: #475569;
}

/* ——— پنل نتایج آزمون [wpcustomcrm_quiz_results] ——— */
.wpcustomcrm-quiz-results {
	--wpcrm-qr-primary: #6366f1;
	--wpcrm-qr-accent: #a855f7;
	--wpcrm-qr-cyan: #22d3ee;
	--wpcrm-qr-gold: #f59e0b;
	max-width: 560px;
	margin: 1.5em auto;
	font-family: Tahoma, Arial, sans-serif;
}

.wpcustomcrm-quiz-results--font {
	font-family: "IRANYekan", Tahoma, Arial, sans-serif;
}

.wpcustomcrm-qr-hero {
	position: relative;
	margin-bottom: 20px;
	padding: 28px 22px 24px;
	text-align: center;
	border-radius: 22px;
	background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 38%, #7c3aed 68%, #0ea5e9 100%);
	box-shadow: 0 20px 50px rgba(79, 70, 229, 0.35);
	overflow: hidden;
}

.wpcustomcrm-qr-hero__glow {
	position: absolute;
	inset: -40% -20% auto;
	height: 120%;
	background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 55%);
	pointer-events: none;
}

.wpcustomcrm-qr-hero__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 10px;
	font-size: 26px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	backdrop-filter: blur(6px);
}

.wpcustomcrm-qr-hero__title {
	position: relative;
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
}

.wpcustomcrm-qr-hero__subtitle {
	position: relative;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.65;
}

.wpcustomcrm-qr-empty {
	padding: 32px 20px;
	text-align: center;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	border: 1px dashed #c7d2fe;
	border-radius: 18px;
}

.wpcustomcrm-qr-empty__icon {
	display: block;
	font-size: 40px;
	margin-bottom: 12px;
}

.wpcustomcrm-qr-empty p {
	margin: 0 0 8px;
	font-weight: 700;
	color: #334155;
}

.wpcustomcrm-qr-empty__hint {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #64748b !important;
}

.wpcustomcrm-qr-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wpcustomcrm-qr-card {
	position: relative;
	border-radius: 20px;
}

.wpcustomcrm-qr-card__border {
	position: absolute;
	inset: 0;
	border-radius: 20px;
	padding: 2px;
	background: linear-gradient(135deg, #1e1b4b 0%, var(--wpcrm-qr-gold) 35%, var(--wpcrm-qr-primary) 65%, var(--wpcrm-qr-cyan) 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.wpcustomcrm-qr-card__body {
	position: relative;
	padding: 18px 18px 16px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border-radius: 18px;
	box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wpcustomcrm-qr-card:hover .wpcustomcrm-qr-card__body {
	box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
	transform: translateY(-2px);
}

.wpcustomcrm-qr-card__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

.wpcustomcrm-qr-card__emoji {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	font-size: 22px;
	background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
	border-radius: 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wpcustomcrm-qr-card__head-text {
	flex: 1;
	min-width: 0;
}

.wpcustomcrm-qr-card__quiz {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.45;
	color: #0f172a;
	background: linear-gradient(90deg, #312e81 0%, #5b21b6 50%, #0e7490 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.wpcustomcrm-qr-card__date {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
}

.wpcustomcrm-qr-card__score {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 8px 10px;
	text-align: center;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-radius: 12px;
	box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.wpcustomcrm-qr-card__score-label {
	font-size: 10px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

.wpcustomcrm-qr-card__score strong {
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
}

.wpcustomcrm-qr-card__outcome-wrap {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	padding: 14px 14px;
	background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ecfeff 100%);
	border: 1px solid #ddd6fe;
	border-radius: 14px;
}

.wpcustomcrm-qr-card__outcome-icon {
	font-size: 20px;
	line-height: 1.4;
}

.wpcustomcrm-qr-card__outcome {
	margin: 0;
	flex: 1;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.65;
	color: #1e293b;
}

.wpcustomcrm-qr-card__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 14px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	color: #334155;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wpcustomcrm-qr-card__toggle:hover {
	background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
	color: #4338ca;
}

.wpcustomcrm-qr-card.is-open .wpcustomcrm-qr-card__toggle {
	background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
	color: #fff;
	box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.wpcustomcrm-qr-card__toggle-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wpcustomcrm-qr-card__toggle-emoji {
	font-size: 16px;
}

.wpcustomcrm-qr-card__toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
	background: rgba(255, 255, 255, 0.55);
	border-radius: 8px;
	transition: transform 0.25s ease, background 0.2s ease;
}

.wpcustomcrm-qr-card.is-open .wpcustomcrm-qr-card__toggle-icon {
	background: rgba(255, 255, 255, 0.25);
	transform: rotate(180deg);
}

.wpcustomcrm-qr-card__panel {
	margin-top: 12px;
	overflow: hidden;
	animation: wpcrm-qr-panel-in 0.35s ease;
}

@keyframes wpcrm-qr-panel-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wpcustomcrm-qr-card__panel-inner {
	padding: 4px 2px 2px;
}

.wpcustomcrm-qr-card__section {
	margin-bottom: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.wpcustomcrm-qr-card__section:last-child {
	margin-bottom: 0;
}

.wpcustomcrm-qr-card__section h4 {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 800;
	color: #475569;
	display: flex;
	align-items: center;
	gap: 6px;
}

.wpcustomcrm-qr-card__section p {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
	color: #334155;
}

.wpcustomcrm-qr-card__section--advice {
	background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
	border-color: #fde68a;
}

.wpcustomcrm-qr-card__section--advice h4 {
	color: #b45309;
}

.wpcustomcrm-qr-card__section--advice p {
	color: #78350f;
}

.wpcustomcrm-quiz__next-step,
.wpcustomcrm-qr-next-step {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 16px;
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	color: #fff;
	background: linear-gradient(135deg, #f59e0b 0%, #ea580c 45%, #7c3aed 100%);
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wpcustomcrm-quiz__next-step:hover,
.wpcustomcrm-qr-next-step:hover {
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(124, 58, 237, 0.4);
}

.wpcustomcrm-qr-next-step {
	margin-top: 14px;
}

body.wpcustomcrm-admin .wpcustomcrm-quiz-outcomes-panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

/* استایل پنل نتایج/قدم بعدی: quiz-admin.css */

@media (max-width: 480px) {
	.wpcustomcrm-quiz-results {
		max-width: 100%;
		margin: 1em 0;
	}

	.wpcustomcrm-qr-hero {
		padding: 22px 16px 20px;
	}

	.wpcustomcrm-qr-hero__title {
		font-size: 19px;
	}

	.wpcustomcrm-qr-card__head {
		flex-wrap: wrap;
	}

	.wpcustomcrm-qr-card__score {
		margin-right: auto;
	}
}

@media (max-width: 480px) {
	.wpcustomcrm-quiz {
		margin: 1em 0;
		max-width: 100%;
	}

	.wpcustomcrm-quiz__screen {
		padding: 20px 16px 24px;
		min-height: 280px;
	}
}
