/* =====================================================================
   ثبت‌نام آنلاین (ویزارد) + پروفایل من + مدرن‌سازی شیت‌ها/مودال‌ها
   این فایل هم در پرتال (روبه‌روی هنرجو) و هم در پنل مدیریت (کلاس‌های خالی،
   تنظیمات درگاه پرداخت) لود می‌شود.
   ===================================================================== */

/* ---------------- مدرن‌سازی شیت‌های پایین‌رونده‌ی پرتال (مثل حضور و غیاب) ----------------
   نکته: پس‌زمینه‌ی این شیت‌ها را اینجا سفید نمی‌کنیم — portal.css از قبل یک
   پس‌زمینه‌ی تیره برایشان تعریف کرده و بقیه‌ی محتوای شیت‌ها (تاریخ حضور و غیاب،
   مبلغ شهریه، اطلاعات پروفایل و ...) با رنگ روشنِ متناسب با همان پس‌زمینه‌ی
   تیره نوشته شده‌اند. سفید کردن اینجا باعث می‌شد آن متن‌های روشن روی پس‌زمینه‌ی
   سفید عملاً دیده نشوند. */
.msm-sheet-panel {
	border-radius: 26px 26px 0 0 !important;
	box-shadow: 0 -10px 40px rgba(10, 5, 30, 0.45), 0 1px 0 rgba(255,255,255,0.06) inset !important;
}
.msm-sheet-handle-bar {
	position: sticky;
	top: 0;
	z-index: 2;
	padding-top: 10px !important;
}
.msm-sheet-panel h3 {
	position: relative;
	padding-bottom: 10px;
	margin-bottom: 16px !important;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.msm-sheet-panel .msm-table thead th { position: sticky; top: 46px; z-index: 1; }

/* مدرن‌سازی مودال‌های پنل مدیریت (مثلاً تاریخچه‌ی حضور و غیاب هنرجو) */
.msm-modal {
	border-radius: 22px !important;
	box-shadow: 0 30px 70px rgba(30, 20, 80, 0.28), 0 1px 0 rgba(255,255,255,0.7) inset !important;
}
.msm-modal h2 {
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(124, 92, 255, 0.12);
}

/* ---------------- دکمه‌ی «ثبت‌نام هنرجوی جدید» در صفحه‌ی ورود ---------------- */
.msm-portal-login-register {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed rgba(124, 92, 255, 0.25);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.msm-portal-login-register .msm-btn { width: 100%; }

/* ---------------- ویزارد ثبت‌نام (شیت مشترک) ---------------- */
.msm-reg-sheet .msm-sheet-scroll { padding-top: 6px; }

.msm-reg-steps {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	margin: 4px 0 20px;
}
.msm-reg-step {
	flex: 1;
	text-align: center;
	font-size: 11.5px;
	font-weight: 700;
	color: #6b6785;
	padding: 8px 4px;
	border-radius: 12px;
	background: #f3f1fb;
	position: relative;
}
.msm-reg-step.is-active {
	background: linear-gradient(135deg, var(--msm-p-primary, #7c5cff), var(--msm-p-primary-dark, #6440f5));
	color: #fff;
	box-shadow: 0 6px 16px rgba(124, 92, 255, 0.35);
}
.msm-reg-step.is-done { background: #e7f8ee; color: #157347; }

.msm-reg-panel h3 { margin: 4px 0 16px; font-size: 15.5px; font-weight: 800; }
.msm-reg-panel h4 { margin: 18px 0 10px; font-size: 13.5px; font-weight: 800; }

#msm-sheet-register .msm-field { margin-bottom: 14px; }
#msm-sheet-register .msm-field-row { display: flex; gap: 10px; }
#msm-sheet-register .msm-field-row .msm-field { flex: 1; min-width: 0; }
#msm-sheet-register .msm-field label,
.msm-profile-edit .msm-field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var(--msm-p-ink-soft, #6b6785);
	margin-bottom: 6px;
}
#msm-sheet-register .msm-field input,
#msm-sheet-register .msm-field select,
.msm-profile-edit .msm-field input {
	width: 100%;
	border: 1.5px solid #e7e4f5;
	border-radius: 12px;
	padding: 11px 13px;
	font-family: inherit;
	font-size: 13.5px;
	background: #fff;
	color: #1b1730;
	transition: border-color .15s ease, box-shadow .15s ease;
}
#msm-sheet-register .msm-field input:focus,
#msm-sheet-register .msm-field select:focus,
.msm-profile-edit .msm-field input:focus {
	outline: none;
	border-color: var(--msm-p-primary, #7c5cff);
	box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.msm-reg-nav { display: flex; gap: 10px; margin-top: 18px; }
.msm-reg-nav .msm-btn { flex: 1; }
.msm-reg-panel > .msm-reg-next { width: 100%; margin-top: 6px; }

.msm-reg-slots { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.msm-reg-slot-card {
	border: 1.5px solid #e7e4f5;
	border-radius: 16px;
	padding: 13px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, transform .1s ease;
	background: #fff;
}
.msm-reg-slot-card:hover { border-color: var(--msm-p-primary-light, #f1edff); background: #faf9ff; }
.msm-reg-slot-card.is-selected {
	border-color: var(--msm-p-primary, #7c5cff);
	background: var(--msm-p-primary-light, #f1edff);
	box-shadow: 0 4px 14px rgba(124, 92, 255, 0.18);
}
.msm-reg-slot-main { display: flex; flex-direction: column; gap: 3px; }
.msm-reg-slot-teacher { font-weight: 800; font-size: 13.5px; color: #1b1730; }
.msm-reg-slot-time { font-size: 12px; color: #6b6785; }
.msm-reg-slot-note { font-size: 11px; color: #6b6785; font-style: normal; }
.msm-reg-slot-side { text-align: left; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.msm-reg-slot-price { font-weight: 800; font-size: 12.5px; color: var(--msm-p-primary-dark, #6440f5); white-space: nowrap; }
.msm-reg-slot-remaining { font-size: 10.5px; color: #157347; background: #e7f8ee; padding: 2px 8px; border-radius: 20px; }

.msm-reg-summary {
	background: #f6f4ff;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
}
.msm-reg-summary-row { display: flex; justify-content: space-between; font-size: 13px; }
.msm-reg-summary-row span:first-child { color: #6b6785; }
.msm-reg-summary-row strong { color: #1b1730; }
.msm-reg-summary-total { border-top: 1px dashed rgba(124, 92, 255, 0.3); padding-top: 8px; margin-top: 4px; font-weight: 800; }

.msm-reg-rules-text {
	font-size: 12.5px;
	line-height: 2;
	color: #fff;
	background: linear-gradient(160deg, #241c3f, #1b1730);
	border-radius: 14px;
	padding: 16px 18px;
}
.msm-reg-rules-text p { margin: 0 0 14px; }
.msm-reg-rules-text p:last-child { margin-bottom: 0; }
.msm-reg-rules-text strong { color: #ffd166; }
.msm-reg-rules-accept {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed rgba(124, 92, 255, 0.3);
	font-size: 12.5px;
	color: #1b1730;
	font-weight: 600;
	cursor: pointer;
}
.msm-reg-rules-accept input { margin-top: 3px; flex-shrink: 0; }

.msm-msg { font-size: 12.5px; font-weight: 700; min-height: 0; margin: 0; }
.msm-msg:empty { margin: 0; }
.msm-msg.msm-msg-error {
	color: #fff;
	background: linear-gradient(135deg, #ff6b6b, #e5484d);
	padding: 8px 12px;
	border-radius: 10px;
	margin-top: 10px;
}
.msm-msg.msm-msg-success {
	color: #fff;
	background: linear-gradient(135deg, #51cf66, #2f9e44);
	padding: 8px 12px;
	border-radius: 10px;
	margin-top: 10px;
}

.msm-reg-success { text-align: center; padding: 20px 6px; }
.msm-reg-success-icon {
	width: 56px; height: 56px; border-radius: 50%;
	background: #e7f8ee; color: #157347;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 14px;
}
.msm-reg-success h3 { margin-bottom: 8px; }
.msm-reg-success p { color: var(--msm-p-ink-soft, #6b6785); font-size: 13px; line-height: 1.8; margin-bottom: 18px; }

/* ---------------- تب پروفایل من ---------------- */
.msm-profile-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid rgba(124, 92, 255, 0.08);
	font-size: 13px;
}
.msm-profile-row span { color: var(--msm-p-ink-soft, #6b6785); }
.msm-profile-row strong { color: var(--msm-p-ink, #1b1730); font-weight: 700; }
#msm-profile-edit-btn { margin-top: 16px; width: 100%; }

.msm-profile-edit .msm-field { margin-bottom: 12px; }

.msm-profile-divider { height: 1px; background: rgba(124, 92, 255, 0.12); margin: 22px 0 16px; }

.msm-profile-classes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.msm-profile-class-chip {
	background: #f9f8ff;
	border: 1px solid rgba(124, 92, 255, 0.12);
	border-radius: 14px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
/* این چیپ همیشه پس‌زمینه‌ی روشن دارد، صرف‌نظر از تیره‌بودن شیت؛ رنگ‌های
   عمومی (که برای پس‌زمینه‌ی تیره طراحی شده‌اند) اینجا جایگزین می‌شوند. */
.msm-profile-class-chip .msm-hint { color: #6b6785 !important; }
.msm-profile-class-chip .msm-instrument-chip {
	background: rgba(124, 92, 255, 0.1) !important;
	color: #4b3f80 !important;
	border-color: rgba(124, 92, 255, 0.2) !important;
}

#msm-profile-add-class-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; }
