/* استایل‌های صفحات عمومی افزونه نماپست آموزش (نظرسنجی، آزمون، گواهینامه) */

.npe-public-page {
	direction: rtl;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	background: #f3f4f6;
	padding: 40px 16px;
	box-sizing: border-box;
}

.npe-public-card {
	max-width: 640px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.npe-public-header {
	background: linear-gradient(135deg, var(--npe-color, #2271b1), #1a5a8a);
	color: #fff;
	padding: 28px 32px;
	text-align: center;
}

.npe-public-header h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
}

.npe-public-header p {
	margin: 0;
	font-size: 14px;
	opacity: 0.9;
}

.npe-public-body {
	padding: 28px 32px 32px;
}

.npe-field {
	margin-bottom: 20px;
}

.npe-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
	color: #1f2937;
}

.npe-field input[type="text"],
.npe-field input[type="email"],
.npe-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.npe-field input:focus,
.npe-field textarea:focus {
	outline: none;
	border-color: var(--npe-color, #2271b1);
}

.npe-star-question {
	background: #f9fafb;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 14px;
}

.npe-star-question p {
	margin: 0 0 10px;
	font-weight: 600;
	font-size: 14px;
	color: #1f2937;
}

.npe-star-options {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.npe-star-options label {
	flex: 1;
	min-width: 44px;
	text-align: center;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	padding: 8px 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #4b5563;
	transition: all 0.15s;
	position: relative;
}

.npe-star-options input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.npe-star-options label:hover {
	border-color: var(--npe-color, #2271b1);
}

.npe-star-options input[type="radio"]:checked + span,
.npe-star-options label:has(input[type="radio"]:checked),
.npe-star-options label.npe-selected {
	background: var(--npe-color, #2271b1);
	border-color: var(--npe-color, #2271b1);
	color: #fff;
}

.npe-divider {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 24px 0;
}

.npe-btn {
	display: inline-block;
	background: var(--npe-color, #2271b1);
	color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 13px 28px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	transition: opacity 0.15s;
	font-family: inherit;
}

.npe-btn:hover {
	opacity: 0.9;
}

.npe-btn-block {
	display: block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.npe-message-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #ecfdf5;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin: 0 auto 16px;
}

.npe-message-icon.npe-icon-error {
	background: #fef2f2;
	color: #dc2626;
}

.npe-message-text {
	text-align: center;
	font-size: 15px;
	color: #374151;
	line-height: 1.9;
	margin-bottom: 20px;
}

.npe-message-actions {
	text-align: center;
}

.npe-notice-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 18px;
}

.npe-notice-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 18px;
}

.npe-notice-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 18px;
}

.npe-question-block {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e5e7eb;
}

.npe-question-block p.npe-q-title {
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 10px;
	color: #111827;
}

.npe-option-label {
	display: block;
	background: #f9fafb;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 8px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.15s;
}

.npe-option-label:hover {
	border-color: var(--npe-color, #2271b1);
}

.npe-option-label input[type="radio"]:checked ~ *,
.npe-option-label:has(input:checked) {
	border-color: var(--npe-color, #2271b1);
	background: #eef4fb;
}

/* ---------- ویجت امتیاز ستاره‌ای (نظرسنجی) ---------- */

.npe-rating {
	text-align: center;
	padding: 6px 0 4px;
}

.npe-rating-stars {
	display: flex;
	justify-content: center;
	gap: 6px;
	direction: ltr;
}

.npe-star-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 40px;
	line-height: 1;
	color: #e2e4e9;
	padding: 4px;
	transition: transform 0.1s, color 0.15s;
}

.npe-star-btn:hover {
	transform: scale(1.12);
}

.npe-star-btn.npe-star-filled {
	color: #f5a623;
}

.npe-rating-caption {
	margin-top: 6px;
	font-size: 13px;
	color: #6b7280;
	font-weight: 600;
}

.npe-rating-value {
	color: var(--npe-color, #2271b1);
	font-weight: 700;
}

/* ---------- تایمر آزمون ---------- */

.npe-exam-timer {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #111827;
	color: #fff;
	text-align: center;
	padding: 10px 16px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	border-radius: 0 0 10px 10px;
	margin: -28px -32px 24px;
}

.npe-exam-timer.npe-timer-warning {
	background: #b91c1c;
}

/* ---------- گزینه‌های چهارگزینه‌ای/چندگزینه‌ای آزمون (تضمین چیدمان عمودی) ---------- */

.npe-options-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.npe-options-list .npe-option-label {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-bottom: 0;
}

/* ---------- Wizard (نمایش تک‌تک سؤالات) ---------- */

.npe-progress-track {
	background: #e5e7eb;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
	margin-bottom: 10px;
}

.npe-progress-bar {
	background: var(--npe-color, #2271b1);
	height: 100%;
	width: 0;
	transition: width 0.25s ease;
	border-radius: 999px;
}

.npe-progress-text {
	text-align: center;
	font-size: 13px;
	color: #6b7280;
	margin: 0 0 22px;
	font-weight: 600;
}

.npe-step {
	animation: npe-fade-in 0.25s ease;
}

@keyframes npe-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.npe-wizard-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}

.npe-btn-secondary {
	background: #f3f4f6 !important;
	color: #374151 !important;
	border: 1px solid #d1d5db;
}

.npe-btn-secondary:hover {
	background: #e5e7eb !important;
}

.npe-wizard-nav .npe-btn {
	flex: 1;
}

.npe-step-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--npe-color, #2271b1);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.npe-video-embed {
	position: relative;
	width: 100%;
	max-width: 640px;
	padding-top: 56.25%;
	margin: 10px 0;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}

.npe-video-embed iframe {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.npe-material-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	margin-bottom: 10px;
}

.npe-material-item .npe-material-title {
	font-weight: 600;
}
