.mcsi2-portal {
	--mcsi-ink: #10192b;
	--mcsi-muted: #657188;
	--mcsi-line: #dfe6f1;
	--mcsi-blue: #1268e8;
	--mcsi-cyan: #04aeda;
	--mcsi-green: #147d59;
	--mcsi-red: #b93245;
	color: var(--mcsi-ink);
	font-family: "Tajawal", "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 24px auto;
	max-width: 980px;
}

.mcsi2-portal *,
.mcsi2-portal *::before,
.mcsi2-portal *::after {
	box-sizing: border-box;
}

.mcsi2-shell {
	background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%);
	border: 1px solid #e4ebf5;
	border-radius: 28px;
	box-shadow: 0 25px 70px rgba(23, 53, 94, .14);
	overflow: hidden;
}

.mcsi2-hero {
	align-items: center;
	background:
		radial-gradient(circle at 14% 10%, rgba(0, 208, 255, .28), transparent 31%),
		linear-gradient(125deg, #0c1833, #173a74);
	color: #fff;
	display: flex;
	gap: 20px;
	padding: 34px clamp(22px, 5vw, 54px);
}

.mcsi2-mark {
	align-items: center;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 20px;
	display: flex;
	font-size: 38px;
	height: 76px;
	justify-content: center;
	width: 76px;
}

.mcsi2-kicker {
	color: #72ddff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.mcsi2-hero h1 {
	color: #fff;
	font-size: clamp(25px, 4vw, 39px);
	line-height: 1.3;
	margin: 0 0 7px;
}

.mcsi2-hero p:last-child {
	color: #d5e2f8;
	margin: 0;
}

.mcsi2-search-form {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: clamp(24px, 5vw, 52px);
}

.mcsi2-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mcsi2-field-full {
	grid-column: 1 / -1;
}

.mcsi2-field label {
	font-size: 14px;
	font-weight: 800;
}

.mcsi2-field input,
.mcsi2-field select {
	appearance: none;
	background: #fff;
	border: 1px solid var(--mcsi-line);
	border-radius: 14px;
	color: var(--mcsi-ink);
	font: inherit;
	min-height: 52px;
	outline: none;
	padding: 0 16px;
	transition: border-color .2s, box-shadow .2s;
	width: 100%;
}

.mcsi2-field select {
	background-image:
		linear-gradient(45deg, transparent 50%, #58708e 50%),
		linear-gradient(135deg, #58708e 50%, transparent 50%);
	background-position: 18px 23px, 13px 23px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-left: 38px;
}

.mcsi2-field input:focus,
.mcsi2-field select:focus {
	border-color: var(--mcsi-blue);
	box-shadow: 0 0 0 4px rgba(18,104,232,.12);
}

.mcsi2-field small {
	color: var(--mcsi-muted);
}

.mcsi2-trap {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}

.mcsi2-submit {
	align-items: center;
	background: linear-gradient(120deg, var(--mcsi-blue), var(--mcsi-cyan));
	border: 0;
	border-radius: 14px;
	box-shadow: 0 12px 26px rgba(18,104,232,.25);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 900;
	gap: 10px;
	justify-content: center;
	min-height: 54px;
	padding: 0 30px;
	transition: transform .2s, box-shadow .2s;
	width: max-content;
}

.mcsi2-submit:hover {
	box-shadow: 0 16px 30px rgba(18,104,232,.33);
	transform: translateY(-2px);
}

.mcsi2-submit:disabled {
	cursor: wait;
	opacity: .7;
	transform: none;
}

.mcsi2-feedback,
.mcsi2-result {
	margin: 0 clamp(24px, 5vw, 52px) 30px;
	scroll-margin-top: 25px;
}

.mcsi2-feedback {
	border-radius: 14px;
	font-weight: 700;
	padding: 16px 18px;
}

.mcsi2-feedback-working {
	background: #eaf4ff;
	color: #15558f;
}

.mcsi2-feedback-error {
	background: #fff0f2;
	border: 1px solid #ffd0d8;
	color: #9b2939;
}

.mcsi2-alert {
	border: 1px solid #f2d590;
	border-radius: 20px;
	padding: 36px;
	text-align: center;
}

.mcsi2-alert > span {
	align-items: center;
	background: #fff2c7;
	border-radius: 50%;
	color: #8a6000;
	display: inline-flex;
	font-size: 26px;
	font-weight: 900;
	height: 58px;
	justify-content: center;
	width: 58px;
}

.mcsi2-alert h2 {
	margin: 16px 0 8px;
}

.mcsi2-alert p {
	color: #705b29;
	margin: 0 auto;
	max-width: 570px;
}

.mcsi2-result-card {
	background: #fff;
	border: 1px solid var(--mcsi-line);
	border-radius: 22px;
	box-shadow: 0 15px 40px rgba(20, 50, 90, .08);
	overflow: hidden;
}

.mcsi2-result-head {
	align-items: center;
	background: #f8fbff;
	border-bottom: 1px solid var(--mcsi-line);
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: 25px;
}

.mcsi2-result-head span,
.mcsi2-summary span {
	color: var(--mcsi-muted);
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 5px;
}

.mcsi2-result-head h2 {
	font-size: clamp(20px, 3vw, 28px);
	margin: 0;
}

.mcsi2-status {
	border-radius: 999px;
	flex: 0 0 auto;
	font-size: 13px;
	padding: 8px 13px;
}

.mcsi2-status-passed {
	background: #e5f7ef;
	color: var(--mcsi-green);
}

.mcsi2-status-failed {
	background: #fff0f2;
	color: var(--mcsi-red);
}

.mcsi2-status-absent {
	background: #f0f2f5;
	color: #596272;
}

.mcsi2-summary {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(5, 1fr);
	background: var(--mcsi-line);
}

.mcsi2-summary > div {
	background: #fff;
	padding: 20px;
}

.mcsi2-paid-note {
	background: #e8f8f1;
	color: var(--mcsi-green);
	font-weight: 800;
	margin: 20px;
	padding: 12px 15px;
}

.mcsi2-table-wrap {
	overflow-x: auto;
	padding: 24px;
}

.mcsi2-table-wrap table {
	border-collapse: collapse;
	font-size: 14px;
	margin: 0;
	min-width: 560px;
	width: 100%;
}

.mcsi2-table-wrap th,
.mcsi2-table-wrap td {
	border-bottom: 1px solid #edf1f6;
	padding: 13px 12px;
	text-align: right;
}

.mcsi2-table-wrap th {
	background: #f4f7fb;
	color: #3a4961;
}

.mcsi2-result-card footer {
	border-top: 1px solid var(--mcsi-line);
	color: var(--mcsi-muted);
	font-size: 12px;
	padding: 15px 24px;
	text-align: center;
}

.mcsi2-privacy {
	color: var(--mcsi-muted);
	font-size: 12px;
	margin: 5px 28px 28px;
	text-align: center;
}

@media (max-width: 700px) {
	.mcsi2-portal {
		margin: 10px;
	}

	.mcsi2-shell {
		border-radius: 20px;
	}

	.mcsi2-hero {
		align-items: flex-start;
		padding: 25px 20px;
	}

	.mcsi2-mark {
		font-size: 26px;
		height: 54px;
		width: 54px;
	}

	.mcsi2-search-form {
		grid-template-columns: 1fr;
		padding: 24px 18px;
	}

	.mcsi2-field,
	.mcsi2-field-full {
		grid-column: 1;
	}

	.mcsi2-submit {
		width: 100%;
	}

	.mcsi2-feedback,
	.mcsi2-result {
		margin-left: 18px;
		margin-right: 18px;
	}

	.mcsi2-result-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.mcsi2-summary {
		grid-template-columns: repeat(2, 1fr);
	}

	.mcsi2-table-wrap {
		padding: 14px;
	}

	.mcsi2-table-wrap table {
		font-size: 12px;
		min-width: 100%;
		table-layout: fixed;
	}

	.mcsi2-table-wrap th,
	.mcsi2-table-wrap td {
		padding: 10px 4px;
		word-break: break-word;
	}

	.mcsi2-table-wrap th:first-child,
	.mcsi2-table-wrap td:first-child {
		width: 40%;
	}
}
