/* Eqra Exam Forms */
.eef-tools-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 10px;
	background: #eef7f2;
	border: 1px solid #c5ddd2;
	border-radius: 12px;
	font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}
.eef-tools-link {
	flex: 1 1 130px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 2px solid #0d4632;
	background: #fff;
	color: #0d4632 !important;
	font-weight: 800;
	text-decoration: none !important;
}
.eef-tools-link.is-active {
	background: #0d4632;
	color: #fff !important;
}

.eef {
	--ink: #0c2f24;
	--green: #0d4632;
	--teal: #0a5c4b;
	--line: #c5ddd2;
	--sand: #f7f3ec;
	--font: "IBM Plex Sans Arabic", Tahoma, sans-serif;
	--display: "Amiri", "Traditional Arabic", serif;
	max-width: 980px;
	margin: 0 auto 40px;
	padding: 18px 14px 48px;
	color: var(--ink) !important;
	font-family: var(--font);
	background: #fffdf9;
	border-radius: 16px;
}

.eef-hero {
	margin-bottom: 16px;
	padding: 18px 16px;
	border-radius: 14px;
	background: #0d4632 !important;
	border: 1px solid #0d4632;
	color: #ffffff !important;
}
.eef-hero *,
.eef-kicker,
.eef-title,
.eef-lead {
	color: #ffffff !important;
	opacity: 1 !important;
}
.eef-kicker {
	margin: 0 0 6px;
	font-weight: 800;
	letter-spacing: 0.04em;
}
.eef-title {
	margin: 0 0 10px;
	font-family: var(--display);
	font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}
.eef-lead {
	margin: 0;
	font-weight: 600;
	line-height: 1.8;
	font-size: 1.02rem;
}

.eef-panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px 16px;
	margin-bottom: 16px;
}
.eef-panel,
.eef-panel label,
.eef-field label,
.eef-check,
.eef-status {
	color: #0c2f24 !important;
	opacity: 1 !important;
}

.eef-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
@media (max-width: 720px) {
	.eef-grid { grid-template-columns: 1fr; }
}

.eef-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 800;
	color: var(--ink) !important;
}
.eef select,
.eef input[type="text"],
.eef input[type="number"] {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid #9fbfb2;
	background: #fff;
	color: var(--ink);
	font: inherit;
	box-sizing: border-box;
}
.eef-inline {
	display: flex;
	align-items: center;
	gap: 8px;
}
.eef-inline select,
.eef-inline input { flex: 1; }

.eef-stepper {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	gap: 8px;
}
.eef-stepper button {
	min-height: 44px;
	border-radius: 10px;
	border: 2px solid var(--green);
	background: #e7f4ee;
	color: var(--green);
	font-size: 1.25rem;
	font-weight: 800;
	cursor: pointer;
}

.eef-fieldset {
	margin: 16px 0;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
}
.eef-fieldset legend {
	padding: 0 6px;
	font-weight: 800;
	color: var(--teal);
}
.eef-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 8px 0;
	font-weight: 650;
	color: var(--ink) !important;
	cursor: pointer;
}

.eef-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.eef-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 16px;
	border-radius: 10px;
	border: 2px solid transparent;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none !important;
}
.eef-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.eef-btn-primary {
	background: #0d4632 !important;
	border-color: #0d4632 !important;
	color: #fff !important;
}
.eef-btn-secondary {
	background: #e7f4ee !important;
	border-color: #0d4632 !important;
	color: #0d4632 !important;
}
.eef-btn-ghost {
	background: #fff !important;
	border-color: #9fbfb2 !important;
	color: #0a5c4b !important;
}
.eef-status {
	margin: 12px 0 0;
	font-weight: 700;
	color: var(--teal) !important;
}
.eef-status.is-err { color: #8a2f12 !important; }

.eef-results-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.eef-sheet-head {
	text-align: center;
	margin-bottom: 18px;
	padding: 16px 14px 14px;
	border-bottom: 0;
	border-radius: 12px;
	background: #0d4632 !important;
	color: #ffffff !important;
}
.eef-sheet-head *,
.eef-sheet-brand,
.eef-sheet-title,
.eef-sheet-meta {
	color: #ffffff !important;
	opacity: 1 !important;
}
.eef-sheet-brand {
	margin: 0;
	font-weight: 800;
	letter-spacing: 0.03em;
}
.eef-sheet-title {
	margin: 6px 0;
	font-family: var(--display);
	font-size: 1.6rem;
}
.eef-sheet-meta {
	margin: 0;
	font-weight: 650;
}

.eef-q {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px;
	margin: 0 0 14px;
	background: #fff;
	break-inside: avoid;
}
.eef-q-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	margin-left: 8px;
	border-radius: 999px;
	background: var(--green);
	color: #fff !important;
	font-weight: 800;
}
.eef-q-prompt {
	margin: 8px 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.7;
	color: var(--ink) !important;
}
.eef-q-meta {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 650;
	color: #35584c !important;
}
.eef-q-answer {
	margin-top: 12px;
	padding: 12px;
	border-radius: 10px;
	background: #f3faf6;
	border: 1px dashed #9fbfb2;
}
.eef-q-answer[hidden] { display: none !important; }
.eef-ayah-text {
	font-family: var(--display);
	font-size: 1.25rem;
	line-height: 2;
	color: #0c2f24 !important;
}
.eef-grade {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.eef-grade label {
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 4px 10px;
	font-weight: 700;
	cursor: pointer;
	background: #fff;
}
.eef-practice-btn {
	margin-top: 10px;
}

.eef.is-student .eef-teacher-only { display: none !important; }
.eef.is-teacher .eef-q-answer { display: block !important; }

.eef-share-open-2 { margin-right: auto; }

.eef-share-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(8, 28, 22, 0.55);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
}
.eef-share-overlay[hidden] { display: none !important; }
.eef-share-sheet {
	width: min(560px, 100%);
	max-height: min(92vh, 760px);
	overflow: auto;
	background: #fffdf9;
	border-radius: 18px 18px 12px 12px;
	padding: 18px 16px 22px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	color: #0c2f24;
}
.eef-share-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.eef-share-head h2 {
	margin: 0;
	font-size: 1.2rem;
	color: #0d4632;
}
.eef-share-close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	background: #eef7f2;
	color: #0d4632;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}
.eef-share-lead {
	margin: 0 0 14px;
	font-weight: 650;
	color: #0c2f24 !important;
	opacity: 1 !important;
}
.eef-share-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.eef-share-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 8px 10px;
	border-radius: 12px;
	border: 1px solid #c5ddd2;
	background: #fff;
	color: #0c2f24;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	text-align: right;
}
.eef-share-item:hover { background: #eef7f2; }
.eef-share-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	flex: 0 0 36px;
}
.eef-share-ico svg {
	width: 20px;
	height: 20px;
	display: block;
}
.eef-wa { background: #25d366; }
.eef-tg { background: #229ed9; }
.eef-x { background: #0f1419; }
.eef-fb { background: #1877f2; }
.eef-ms { background: linear-gradient(135deg, #00c6ff, #0068ff); }
.eef-em { background: #ea4335; }
.eef-cp { background: #0a5c4b; }
.eef-tx { background: #365314; }
.eef-nt { background: #4338ca; }
.eef-pr { background: #334155; }
.eef-pr2 { background: #1e3a5f; }
.eef-share-qr-wrap {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #c5ddd2;
	text-align: center;
}
.eef-share-qr-label {
	margin: 0 0 8px;
	font-weight: 800;
	color: #0a5c4b;
}
.eef-share-qr-wrap img {
	width: 160px;
	height: 160px;
	border-radius: 12px;
	border: 1px solid #c5ddd2;
	background: #fff;
}

@media (min-width: 640px) {
	.eef-share-overlay { align-items: center; }
	.eef-share-sheet { border-radius: 16px; }
	.eef-share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
	.eef-tools-nav,
	.eef-hero,
	.eef-panel:not(.eef-results),
	.eef-results-toolbar,
	.no-print,
	.site-header,
	.site-footer,
	#wpadminbar,
	.eef-share-overlay,
	.eef-practice-btn {
		display: none !important;
	}
	.eef, .eef-panel, .eef-q {
		box-shadow: none !important;
		border-color: #999 !important;
	}
	.eef {
		max-width: none;
		padding: 0;
		background: #fff;
	}
	body * { visibility: hidden; }
	.eef-results, .eef-results * { visibility: visible; }
	.eef-results {
		position: absolute;
		inset: 0;
		width: 100%;
	}
}
