/* ==================================================
   MDCR – Final SaaS Polish (Ultra Light)
   Primary: #1b26a3
   ================================================== */

:root{
	--mdcr-primary:#1b26a3;
	--mdcr-border:#e5e7eb;
	--mdcr-muted:#6b7280;
	--mdcr-bg:#f8fafc;
	--mdcr-radius:10px;
}

/* ---------- GLOBAL RHYTHM ---------- */
.mdcr-rating-summary,
#mdcr-form,
#mdcr-msg,
#mdcr-reviews,
#mdcr-load-more{
	margin-top:20px;
}

/* ---------- RATING SUMMARY (PREMIUM BOX) ---------- */
.mdcr-rating-summary{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	padding:16px 20px;
	border:1px solid var(--mdcr-border);
	border-radius:var(--mdcr-radius);
	background:linear-gradient(180deg,#ffffff,#f6f8ff);
}

.mdcr-rating-summary .mdcr-stars{
	font-size:28px;              /* Desktop */
	color:#f5a623;
	letter-spacing:3px;
	white-space:nowrap;
	line-height:1;
}

/* Mobile optimization */
@media (max-width:768px){
	.mdcr-rating-summary{
		flex-direction:column;
		align-items:flex-start;
		gap:10px;
	}

	.mdcr-rating-summary .mdcr-stars{
		font-size:32px;          /* Bigger on mobile */
	}

	.mdcr-rating-summary strong{
		font-size:20px;
	}
}


.mdcr-rating-summary strong{
	font-size:18px;
	font-weight:700;
	color:#0f172a;
}

.mdcr-rating-summary span{
	font-size:14px;
	color:var(--mdcr-muted);
}

/* ---------- FORM ---------- */
#mdcr-form{
	border:1px solid var(--mdcr-border);
	background:#fff;
	border-radius:var(--mdcr-radius);
	padding:20px;
}

#mdcr-form input,
#mdcr-form textarea,
#mdcr-form select{
	width:100%;
	padding:12px 14px;
	margin-bottom:14px;
	border:1px solid var(--mdcr-border);
	border-radius:8px;
	font-size:14px;
	line-height:1.4;
	background:#fff;
	letter-spacing:.1px;
}

#mdcr-form select{
	height:46px;
	appearance:auto;
	-webkit-appearance:auto;
	-moz-appearance:auto;
}

#mdcr-form textarea{
	min-height:96px;
	resize:vertical;
}

#mdcr-form input:focus,
#mdcr-form textarea:focus,
#mdcr-form select:focus{
	outline:none;
	border-color:var(--mdcr-primary);
}
/* ---------- FORM SUBMIT (LEFT ALIGNED, CLEAN) ---------- */
#mdcr-form{
	display:flex;
	flex-direction:column;
}

#mdcr-form button{
	margin-top:16px;
	align-self:flex-start;     /* LEFT aligned */
	padding:12px 28px;
	background:var(--mdcr-primary);
	color:#fff;
	border:0;
	border-radius:999px;
	font-weight:600;
	font-size:15px;
	cursor:pointer;
	min-width:200px;
}

#mdcr-form button:hover{
	opacity:.95;
}

/* Mobile: full width (better UX) */
@media (max-width:768px){
	#mdcr-form button{
		width:100%;
		align-self:stretch;
	}
}





#mdcr-form button:hover{
	opacity:.96;
}

/* ---------- SUCCESS / ERROR MESSAGE ---------- */
#mdcr-msg{
	text-align:center;
	font-size:14px;
	padding:10px 12px;
	border-radius:8px;
}

#mdcr-msg.success{
	background:#eef2ff;
	color:var(--mdcr-primary);
	border:1px solid #dbe1ff;
}

#mdcr-msg.error{
	background:#fef2f2;
	color:#991b1b;
	border:1px solid #fee2e2;
}

/* ---------- REVIEWS LIST ---------- */
#mdcr-reviews{
	margin-top:28px;
}

.mdcr-review{
	display:flex;
	gap:14px;
	padding:18px 0;
	border-bottom:1px solid var(--mdcr-border);
}

.mdcr-review:last-child{
	border-bottom:0;
}

/* avatar */
.mdcr-avatar{
	width:42px;
	height:42px;
	border-radius:50%;
	background:#eef2ff;
	color:var(--mdcr-primary);
	display:flex;
	align-items:center;
	justify-content:center;
	font-weight:700;
	flex-shrink:0;
}

/* body */
.mdcr-review-body{
	flex:1;
}

.mdcr-review-body strong{
	font-size:14px;
	font-weight:600;
	color:#0f172a;
	letter-spacing:.2px;
}

.mdcr-course{
	font-size:13px;
	color:var(--mdcr-muted);
	margin-left:4px;
}

.mdcr-review-body .mdcr-stars{
	margin:6px 0;
	font-size:13px;
	color:#f5a623;
}

.mdcr-review-body p{
	margin:0;
	font-size:14px;
	color:#374151;
	line-height:1.6;
}

/* ---------- LOAD MORE ---------- */
#mdcr-load-more{
	display:block;
	margin:30px auto 0;
	padding:12px 26px;
	background:#fff;
	border:1px solid var(--mdcr-border);
	border-radius:999px;
	font-size:14px;
	font-weight:500;
	color:#0f172a;
	cursor:pointer;
}

#mdcr-load-more:hover{
	background:var(--mdcr-bg);
}



/* ---------- RATING BREAKDOWN SUMMARY ---------- */
.mdcr-breakdown{
	display:flex;
	gap:28px;
	padding:20px;
	border:1px solid var(--mdcr-border);
	border-radius:12px;
	background:#fff;
}

.mdcr-breakdown-left{
	min-width:140px;
	text-align:center;
}

.mdcr-avg{
	font-size:36px;
	font-weight:700;
	color:#111827;
	line-height:1;
}

.mdcr-breakdown-left .mdcr-stars{
	color:#f5a623;
	font-size:18px;
	margin:6px 0;
}

.mdcr-count{
	font-size:13px;
	color:#16a34a;
	display:flex;
	align-items:center;
	justify-content:center;
	gap:4px;
}

.mdcr-breakdown-right{
	flex:1;
}

.mdcr-bar-row{
	display:flex;
	align-items:center;
	gap:10px;
	margin-bottom:8px;
	font-size:13px;
}

.mdcr-bar-label{
	width:28px;
	color:#374151;
	white-space:nowrap;
}

.mdcr-bar{
	flex:1;
	height:8px;
	background:#e5e7eb;
	border-radius:999px;
	overflow:hidden;
}

.mdcr-bar span{
	display:block;
	height:100%;
	background:#f59e0b;
	border-radius:999px;
}

.mdcr-bar-percent{
	width:42px;
	text-align:right;
	color:#6b7280;
}
