/* =========================================================================
   آزمون شخصیت سرمایه‌گذاری اکوحسین - استایل
   بدون هیچ کتابخانه‌ی خارجی. همه چیز CSS خام.
   ========================================================================= */

.ecoh-box {
	direction: rtl;
	font-family: inherit;
	max-width: 520px;
	margin: 16px auto;
	padding: 24px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	border: 1px solid #eef0f3;
	text-align: center;
	line-height: 1.9;
}

.ecoh-login-needed {
	background: #fff8e6;
	border-color: #f3e2b3;
	color: #7a5d00;
}

/* ---------- باکس شروع ---------- */
.ecoh-start-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1b2a4a;
}
.ecoh-start-sub {
	font-size: 14px;
	color: #5a6478;
	margin: 0 0 20px;
}

/* ---------- باکس نتیجه (شورت‌کد) ---------- */
.ecoh-result-box {
	background: linear-gradient(135deg, #f5f8ff, #ffffff);
}
.ecoh-result-emoji {
	font-size: 40px;
	margin-bottom: 8px;
}
.ecoh-result-text {
	font-size: 17px;
	color: #1b2a4a;
}

/* ---------- شورت‌کد وضعیت ---------- */
.ecoh-status {
	direction: rtl;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	padding: 6px 12px;
	border-radius: 10px;
}
.ecoh-status-yes {
	background: #e9f9ef;
	color: #1c7a43;
}
.ecoh-status-no {
	background: #fdecec;
	color: #b3261e;
}
.ecoh-icon-check,
.ecoh-icon-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-weight: 700;
	font-size: 13px;
	color: #fff;
}
.ecoh-icon-check { background: #1c9e54; }
.ecoh-icon-x { background: #d23b32; }

/* ---------- دکمه‌ها ---------- */
.ecoh-btn {
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	border-radius: 12px;
	padding: 12px 28px;
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.ecoh-btn:active { transform: translateY(1px); }

.ecoh-start-btn,
.ecoh-btn-primary {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.ecoh-start-btn:hover,
.ecoh-btn-primary:hover { box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45); }

.ecoh-btn-secondary {
	background: #eef1f6;
	color: #41495a;
}
.ecoh-btn-secondary:hover { background: #e2e6ee; }

.ecoh-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

/* ---------- پاپ‌آپ (overlay) ---------- */
.ecoh-modal-overlay {
	direction: rtl;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 16px;
}
.ecoh-modal-overlay.ecoh-open {
	display: flex;
	animation: ecoh-fade 0.2s ease;
}
@keyframes ecoh-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.ecoh-modal {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 20px;
	padding: 28px 26px 22px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: ecoh-pop 0.25s ease;
}
@keyframes ecoh-pop {
	from { transform: scale(0.94) translateY(10px); opacity: 0; }
	to { transform: scale(1) translateY(0); opacity: 1; }
}

.ecoh-modal-close {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #f1f3f7;
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	color: #5a6478;
	transition: background 0.12s ease;
}
.ecoh-modal-close:hover { background: #e3e7ee; }

/* ---------- نوار پیشرفت ---------- */
.ecoh-progress-wrap {
	margin: 8px 0 22px;
}
.ecoh-progress-info {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #5a6478;
	margin-bottom: 8px;
	font-weight: 600;
}
.ecoh-progress-track {
	width: 100%;
	height: 10px;
	background: #eef1f6;
	border-radius: 999px;
	overflow: hidden;
}
.ecoh-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #2563eb, #38bdf8);
	border-radius: 999px;
	transition: width 0.35s ease;
}

/* ---------- ناحیه‌ی سوال ---------- */
.ecoh-question-area {
	min-height: 180px;
}
.ecoh-question-text {
	font-size: 18px;
	font-weight: 700;
	color: #1b2a4a;
	line-height: 1.8;
	margin: 0 0 18px;
}
.ecoh-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ecoh-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	border: 2px solid #e6e9f0;
	border-radius: 12px;
	cursor: pointer;
	font-size: 15px;
	color: #2a3346;
	transition: all 0.12s ease;
	background: #fff;
	text-align: right;
}
.ecoh-option:hover {
	border-color: #b9c8f0;
	background: #f7f9ff;
}
.ecoh-option.ecoh-selected {
	border-color: #2563eb;
	background: #eef4ff;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}
.ecoh-option .ecoh-radio {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #c3cad8;
	flex-shrink: 0;
	position: relative;
	transition: all 0.12s ease;
}
.ecoh-option.ecoh-selected .ecoh-radio {
	border-color: #2563eb;
}
.ecoh-option.ecoh-selected .ecoh-radio::after {
	content: "";
	position: absolute;
	inset: 3px;
	background: #2563eb;
	border-radius: 50%;
}

/* ---------- ناوبری ---------- */
.ecoh-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}
.ecoh-nav .ecoh-btn { flex: 1; }

/* ---------- صفحه‌ی نتیجه‌ی نهایی داخل پاپ‌آپ ---------- */
.ecoh-final {
	text-align: center;
	padding: 10px 0;
}
.ecoh-final-emoji {
	font-size: 56px;
	margin-bottom: 10px;
}
.ecoh-final-label {
	font-size: 24px;
	font-weight: 800;
	color: #1b2a4a;
	margin-bottom: 14px;
}
.ecoh-final-message {
	font-size: 15px;
	color: #475067;
	line-height: 2;
	background: #f7f9ff;
	padding: 18px;
	border-radius: 14px;
	margin-bottom: 18px;
}
.ecoh-final-score {
	font-size: 13px;
	color: #7a839a;
	margin-bottom: 18px;
}

/* ---------- اسپینر بارگذاری ---------- */
.ecoh-spinner {
	width: 36px;
	height: 36px;
	border: 4px solid #e6e9f0;
	border-top-color: #2563eb;
	border-radius: 50%;
	margin: 30px auto;
	animation: ecoh-spin 0.8s linear infinite;
}
@keyframes ecoh-spin {
	to { transform: rotate(360deg); }
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 480px) {
	.ecoh-modal { padding: 22px 18px 18px; }
	.ecoh-question-text { font-size: 16px; }
	.ecoh-option { font-size: 14px; padding: 12px 14px; }
}
