/* Sama Onboarding portal — Arabic RTL first, logical properties throughout. */

.sama-portal {
	max-inline-size: 1100px;
	margin-inline: auto;
	padding: 16px;
	font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
	color: #1f2933;
	line-height: 1.7;
}

.sama-head h1 {
	font-size: 26px;
	color: #1a237e;
	margin-block-end: 4px;
}

.sama-welcome {
	color: #52606d;
	margin-block-end: 24px;
}

.sama-empty,
.sama-intro {
	background: #f5f7fa;
	border: 1px solid #d9e2ec;
	border-radius: 10px;
	padding: 20px;
	margin-block-end: 24px;
}

.sama-intro h2,
.sama-empty h2 {
	font-size: 18px;
	color: #1a237e;
	margin-block-end: 10px;
}

.sama-intro ol {
	margin: 0;
	padding-inline-start: 22px;
}

.sama-intro li {
	margin-block-end: 6px;
}

.sama-help-link {
	margin-block-end: 0;
	margin-block-start: 12px;
}

.sama-case {
	background: #fff;
	border: 1px solid #d9e2ec;
	border-radius: 12px;
	padding: 20px;
	margin-block-end: 24px;
}

.sama-case-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: flex-start;
}

.sama-case-head h2 {
	font-size: 20px;
	color: #1a237e;
	margin: 0;
}

.sama-case-sub {
	color: #52606d;
	margin: 4px 0 0;
}

.sama-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 16px 0 20px;
}

.sama-progress-track {
	flex: 1 1 220px;
	block-size: 10px;
	background: #e4e7eb;
	border-radius: 6px;
	overflow: hidden;
}

.sama-progress-fill {
	block-size: 100%;
	background: linear-gradient(90deg, #2490ef, #1a237e);
	border-radius: 6px;
}

.sama-progress-num {
	font-weight: 700;
	color: #1a237e;
}

.sama-progress-note {
	color: #52606d;
	font-size: 14px;
}

.sama-alert {
	border-radius: 8px;
	padding: 10px 14px;
	margin-block-end: 16px;
	font-size: 15px;
}

.sama-alert-orange {
	background: #fff3e0;
	color: #8a4b00;
	border: 1px solid #ffd9a8;
}

.sama-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.sama-card {
	background: #fcfdff;
	border: 1px solid #d9e2ec;
	border-inline-start: 4px solid #bcccdc;
	border-radius: 10px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sama-card-gray { border-inline-start-color: #9aa5b1; }
.sama-card-blue { border-inline-start-color: #2490ef; }
.sama-card-orange { border-inline-start-color: #f0932b; }
.sama-card-red { border-inline-start-color: #d64545; }
.sama-card-green { border-inline-start-color: #2f855a; }

.sama-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.sama-card-head h3 {
	font-size: 16px;
	margin: 0;
	color: #243b53;
}

.sama-badge {
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.sama-badge-gray { background: #f0f4f8; color: #486581; }
.sama-badge-blue { background: #e3f2fd; color: #1565c0; }
.sama-badge-orange { background: #fff3e0; color: #b35309; }
.sama-badge-red { background: #ffe9e9; color: #ab2020; }
.sama-badge-green { background: #e6f4ea; color: #1e6b3f; }

.sama-card-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	color: #627d98;
}

.sama-mini-progress {
	block-size: 6px;
	background: #e4e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.sama-mini-fill {
	block-size: 100%;
	background: #2490ef;
}

.sama-clarification {
	background: #fff5f5;
	border: 1px solid #ffd4d4;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
}

.sama-clarification p {
	margin: 4px 0 0;
	white-space: pre-wrap;
}

.sama-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block-start: auto;
}

.sama-btn {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	min-block-size: 40px;
	line-height: 1.5;
}

.sama-btn:focus-visible {
	outline: 3px solid #1a237e;
	outline-offset: 2px;
}

.sama-btn-primary { background: #2490ef; color: #fff; }
.sama-btn-primary:hover { background: #1565c0; color: #fff; }
.sama-btn-success { background: #2f855a; color: #fff; }
.sama-btn-success:hover { background: #276749; color: #fff; }
.sama-btn-warning { background: #b35309; color: #fff; }
.sama-btn-warning:hover { background: #8a4b00; color: #fff; }
.sama-btn-ghost { background: #fff; color: #243b53; border-color: #bcccdc; }
.sama-btn-ghost:hover { background: #f0f4f8; color: #243b53; }
.sama-btn[disabled] { opacity: 0.6; cursor: progress; }

.sama-foot {
	margin-block-start: 32px;
	padding-block-start: 16px;
	border-block-start: 1px solid #d9e2ec;
	display: flex;
	gap: 20px;
	justify-content: center;
}

/* Guides */
.sama-guide {
	background: #fff;
	border: 1px solid #d9e2ec;
	border-radius: 10px;
	padding: 18px;
	margin-block-end: 16px;
}

.sama-guide h2 {
	font-size: 17px;
	color: #1a237e;
	margin-block-end: 8px;
}

/* Web Form pages: keep the Arabic forms readable and RTL-correct. */
.web-form-wrapper,
.web-form-container {
	direction: rtl;
	text-align: start;
}

.web-form-wrapper .form-control,
.web-form-wrapper textarea,
.web-form-wrapper input {
	direction: rtl;
	text-align: start;
}

.web-form-wrapper input[type="email"],
.web-form-wrapper input[type="url"],
.web-form-wrapper input[type="tel"],
.web-form-wrapper input[type="number"] {
	direction: ltr;
	text-align: start;
}

@media (max-width: 768px) {
	.sama-portal { padding: 12px; }
	.sama-head h1 { font-size: 21px; }
	.sama-grid { grid-template-columns: 1fr; }
	.sama-case { padding: 14px; }
	.sama-card-head { flex-direction: column; }
	.sama-actions .sama-btn { flex: 1 1 100%; text-align: center; }
	.sama-case-head .sama-btn { inline-size: 100%; text-align: center; }
}
