/* ===== فرم احراز هویت شناس – استایل تمیز و خوانا ===== */
.shenas-form-wrapper {
	max-width: 520px;
	margin: 28px auto;
	padding: 0;
	direction: rtl;
	text-align: right;
	font-family: inherit;
}

.shenas-form-wrapper .shenas-verify-form {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
	border: 1px solid #e5e7eb;
	padding: 28px 24px;
}

/* توضیحات ابتدای فرم */
.shenas-form-description {
	margin: 0 0 24px 0;
	padding: 14px 18px;
	background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
	border-right: 4px solid #2563eb;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.7;
	color: #374151;
}
.shenas-form-description p:first-child { margin-top: 0; }
.shenas-form-description p:last-child { margin-bottom: 0; }

.shenas-verify-form .shenas-form-field {
	margin-bottom: 20px;
}

.shenas-verify-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #1f2937;
}

.shenas-verify-form .required {
	color: #dc2626;
}

.shenas-verify-form .shenas-input {
	width: 100%;
	max-width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.shenas-verify-form .shenas-input:focus {
	border-color: #2563eb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.shenas-verify-form textarea.shenas-input {
	min-height: 88px;
	resize: vertical;
}

/* تقویم شمسی: سه انتخاب‌گر سال / ماه / روز */
.shenas-verify-form .shenas-date-shamsi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}
.shenas-verify-form .shenas-date-shamsi select {
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	min-width: 0;
}

/* همه selectها: رفع بریدن کاراکترهای اول در RTL */
.shenas-verify-form select,
.shenas-verify-form .shenas-date-shamsi select {
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	padding: 8px 32px 8px 12px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px;
}
.shenas-verify-form .shenas-date-shamsi .shenas-date-year { min-width: 80px; }
.shenas-verify-form .shenas-date-shamsi .shenas-date-month { min-width: 110px; }
.shenas-verify-form .shenas-date-shamsi .shenas-date-day { min-width: 55px; }
.shenas-verify-form .shenas-date-shamsi .shenas-date-value { display: none; }

/* توضیحات زیر هر فیلد */
.shenas-field-description {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.5;
}

/* دکمه ارسال */
.shenas-verify-form .shenas-submit-btn {
	display: inline-block;
	margin-top: 8px;
	padding: 12px 24px;
	background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
	transition: background 0.2s, box-shadow 0.2s, transform 0.05s;
}

.shenas-verify-form .shenas-submit-btn:hover {
	background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
	box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.shenas-verify-form .shenas-submit-btn:active {
	transform: scale(0.98);
}

.shenas-verify-form .shenas-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* پیام موفق/خطا */
.shenas-form-message {
	padding: 14px 18px;
	margin-bottom: 20px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.shenas-form-message.success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}
.shenas-form-wrapper .shenas-form-message.success a {
	color: #047857;
	font-weight: 600;
	text-decoration: none;
}
.shenas-form-wrapper .shenas-form-message.success a:hover {
	text-decoration: underline;
}

.shenas-form-message.error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

/* فیلد آپلود: یک باکس یکپارچه؛ دکمه «انتخاب فایل» داخل همان کادر */
.shenas-file-drop {
	margin-top: 6px;
}
.shenas-file-drop-zone {
	display: block;
	position: relative;
	border: 2px dashed #d1d5db;
	border-radius: 10px;
	padding: 28px 20px;
	text-align: center;
	background: #f9fafb;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}
.shenas-file-drop-zone:hover,
.shenas-file-dragover {
	border-color: #2563eb;
	background: #eff6ff;
}
.shenas-file-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	font-size: 0;
}
.shenas-file-drop-text {
	font-size: 14px;
	color: #4b5563;
}
.shenas-file-browse {
	display: inline-block;
	margin: 0 4px;
	padding: 6px 14px;
	background: #2563eb;
	color: #fff;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	pointer-events: none;
}
.shenas-file-drop-zone:hover .shenas-file-browse {
	background: #1d4ed8;
}
.shenas-file-name {
	margin-top: 10px;
	font-size: 13px;
	color: #059669;
	font-weight: 500;
}
.shenas-file-current {
	margin-top: 8px;
	font-size: 12px;
}
.shenas-file-current a {
	color: #2563eb;
}

/* فیلد نقشه */
.shenas-map-wrap {
	margin-top: 6px;
}
.shenas-map-canvas {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}
.shenas-map-wrap .description {
	margin-top: 6px;
	margin-bottom: 0;
	font-size: 12px;
	color: #6b7280;
}

/* فیلد امضا: کادر نقاشی شبیه Paint با قلم */
.shenas-signature-wrap {
	margin-top: 8px;
}
.shenas-signature-hint {
	margin: 0 0 8px 0;
	font-size: 13px;
	color: #6b7280;
}
.shenas-signature-canvas-wrap {
	display: inline-block;
	border: 2px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
	padding: 4px;
}
.shenas-signature-canvas {
	display: block;
	border-radius: 4px;
	background: #fff;
	touch-action: none;
	cursor: crosshair;
}
.shenas-signature-actions {
	margin: 10px 0 0 0;
}
.shenas-signature-clear {
	padding: 8px 16px;
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
}
.shenas-signature-clear:hover {
	background: #e5e7eb;
}

/* OTP row */
.shenas-otp-row .shenas-input {
	max-width: 120px;
	display: inline-block;
	vertical-align: middle;
}
.shenas-otp-row .button {
	vertical-align: middle;
	margin-left: 8px;
}

/* ——— سطوح احراز (۱، ۲، ۳) ——— */
.shenas-form-wrapper.shenas-verify-levels {
	max-width: 640px;
}
.shenas-verify-level {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e5e7eb;
}
.shenas-verify-level:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.shenas-level-title {
	margin: 0 0 16px 0;
	font-size: 1.1em;
	color: #1f2937;
}
.shenas-form-block {
	margin-bottom: 24px;
}
.shenas-form-block:last-child {
	margin-bottom: 0;
}
.shenas-form-block-title {
	margin: 0 0 12px 0;
	font-size: 1em;
	color: #4b5563;
}
.shenas-form-done {
	padding: 12px 16px;
	background: #f0fdf4;
	border-right: 4px solid #22c55e;
	border-radius: 8px;
	margin-bottom: 16px;
}
.shenas-form-done .shenas-form-message.success {
	margin: 0;
}
