/* CareerHike University Review & Rating System
   All rules are scoped under .ch-university-review-system so the plugin
   never touches global theme styles. */

.ch-university-review-system {
	--ch-primary: #F35000;
	--ch-primary-dark: #d94500;
	--ch-secondary: #0D3B66;
	--ch-bg: #FFF4ED;
	font-family: 'Inter', sans-serif;
	color: var(--ch-secondary);
	line-height: 1.5;
}
.ch-university-review-system *,
.ch-university-review-system *::before,
.ch-university-review-system *::after {
	box-sizing: border-box;
}
.ch-university-review-system h2,
.ch-university-review-system h3,
.ch-university-review-system h4 {
	font-family: 'Poppins', sans-serif;
	color: var(--ch-secondary);
	margin: 0 0 .5em;
}
.ch-hidden { display: none !important; }

/* ---------- Hero ---------- */
.ch-hero {
	text-align: center;
	padding: 36px 20px;
	background: var(--ch-bg);
	border-radius: 16px;
	margin-bottom: 28px;
}
.ch-hero h2 { font-size: 26px; }
.ch-hero p { color: #5b6b82; max-width: 560px; margin: 0 auto; font-size: 15px; }

/* ---------- Steps ---------- */
.ch-steps {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.ch-step {
	padding: 6px 16px;
	border-radius: 999px;
	background: #efeff1;
	font-size: 13px;
	font-weight: 600;
	color: #93a0b3;
}
.ch-step.active { background: var(--ch-primary); color: #fff; }

/* ---------- University picker ---------- */
.ch-university-picker { margin-bottom: 32px; }
.ch-university-search {
	width: 100%;
	padding: 14px 18px;
	border-radius: 12px;
	border: 1px solid #e9dccf;
	font-size: 15px;
	margin-bottom: 22px;
	background: #fff;
	font-family: inherit;
}
.ch-university-search:focus { outline: none; border-color: var(--ch-primary); }

.ch-university-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.ch-university-card {
	background: #fff;
	border: 1px solid #f0e2d8;
	border-radius: 14px;
	padding: 18px;
	transition: box-shadow .2s ease, transform .2s ease;
}
.ch-university-card:hover { box-shadow: 0 8px 20px rgba(13, 59, 102, .08); transform: translateY(-2px); }
.ch-university-card h4 { font-size: 16px; }
.ch-uni-rating { color: var(--ch-primary); font-weight: 600; margin-bottom: 14px; font-size: 14px; }
.ch-uni-rating span { color: #8a94a6; font-weight: 400; margin-left: 6px; }
.ch-no-results { text-align: center; color: #8a94a6; padding: 24px; grid-column: 1/-1; }

/* ---------- Buttons ---------- */
.ch-btn {
	display: inline-block;
	border: none;
	cursor: pointer;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 24px;
	border-radius: 10px;
	text-decoration: none;
	transition: background .2s ease, transform .1s ease;
}
.ch-btn-primary { background: var(--ch-primary); color: #fff; }
.ch-btn-primary:hover { background: var(--ch-primary-dark); color: #fff; }
.ch-btn-outline { background: transparent; border: 1.5px solid var(--ch-primary); color: var(--ch-primary); }
.ch-btn-outline:hover { background: var(--ch-primary); color: #fff; }

/* ---------- Review form ---------- */
.ch-review-form-wrap {
	background: #fff;
	border: 1px solid #f0e2d8;
	border-radius: 16px;
	padding: 26px;
	max-width: 640px;
	margin: 0 auto;
}
.ch-reviewing-label {
	background: var(--ch-bg);
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: space-between;
	flex-wrap: wrap;
}
.ch-reviewing-label.ch-no-university { color: #a34424; }
.ch-change-university { background: none; border: none; color: var(--ch-primary); font-weight: 600; cursor: pointer; font-size: 13px; }

.ch-review-form fieldset { border: none; padding: 0; margin: 0 0 22px; }
.ch-review-form legend {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: var(--ch-secondary);
	margin-bottom: 12px;
	padding: 0;
	font-size: 15px;
}
.ch-review-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #425067;
	margin-bottom: 16px;
}
.ch-review-form input[type=text],
.ch-review-form input[type=email],
.ch-review-form select,
.ch-review-form textarea,
.ch-review-form input[type=file] {
	width: 100%;
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid #e2d6cc;
	border-radius: 9px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	background: #fffaf6;
	font-weight: 400;
	color: var(--ch-secondary);
}
.ch-review-form input:focus,
.ch-review-form select:focus,
.ch-review-form textarea:focus { outline: none; border-color: var(--ch-primary); }
.ch-review-form textarea { resize: vertical; }

.ch-star-input { font-size: 30px; color: #ddd; cursor: pointer; user-select: none; margin: 8px 0 16px; letter-spacing: 2px; }
.ch-star-input .ch-star { transition: color .15s ease; }
.ch-star-input .ch-star.active { color: #ffb400; }

.ch-confirm-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 13px;
	color: #5b6b82;
	margin-bottom: 18px;
}
.ch-confirm-checkbox input { width: auto; margin-top: 3px; }

.ch-form-msg { margin: 4px 0 16px; font-size: 13px; }
.ch-form-msg.ch-error { color: #c0392b; }

.ch-thank-you { text-align: center; padding: 48px 20px; }
.ch-thank-you h3 { color: var(--ch-primary); font-size: 24px; }
.ch-thank-you p { color: #5b6b82; }

/* ---------- Summary ---------- */
.ch-review-summary {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 26px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.ch-summary-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.ch-summary-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #f3f4f6;
	color: var(--ch-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ch-summary-head h3 { font-size: 18px; margin: 0 0 2px; }
.ch-summary-outof { font-size: 14px; color: #425067; margin-bottom: 4px; }
.ch-summary-stars-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ch-summary-stars { color: #ffb400; letter-spacing: 1px; font-size: 13px; }
.ch-summary-count-link { color: #1a56db; text-decoration: none; font-weight: 500; }
.ch-summary-count-link:hover { text-decoration: underline; }

.ch-breakdown-row { max-width: 100%; }
.ch-breakdown-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.ch-breakdown-label { width: 52px; flex: 0 0 52px; color: var(--ch-secondary); font-weight: 500; }
.ch-breakdown-bar { flex: 1; height: 8px; background: #e5edfb; border-radius: 6px; overflow: hidden; }
.ch-breakdown-fill { height: 100%; background: var(--ch-primary); }
.ch-breakdown-pct { width: 40px; flex: 0 0 40px; text-align: right; color: #425067; }

.ch-verified-line {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ch-secondary);
	font-weight: 600;
	margin: 18px 0 14px;
	padding-top: 14px;
	border-top: 1px solid #eef0f3;
}
.ch-verified-check { display: inline-flex; }

.ch-ai-summary { margin-bottom: 14px; }
.ch-ai-summary h4 { font-size: 15px; margin: 0 0 6px; }
.ch-ai-summary p { font-size: 13px; color: #425067; margin: 0 0 6px; line-height: 1.6; }
.ch-ai-attribution { font-size: 12px; color: #9aa4b2; }

.ch-ratings-explainer { border-top: 1px solid #eef0f3; padding-top: 14px; margin-bottom: 18px; }
.ch-explainer-toggle {
	background: none;
	border: none;
	color: #1a56db;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
}
.ch-explainer-icon { display: inline-block; width: 16px; text-align: center; }
.ch-explainer-body p { font-size: 13px; color: #425067; margin: 10px 0 0; line-height: 1.65; }

.ch-review-summary .ch-write-review-link { margin-top: 4px; }

/* ---------- Reviews list ---------- */
.ch-reviews-toolbar {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 22px;
	font-size: 13px;
	font-weight: 600;
	color: #425067;
}
.ch-reviews-toolbar select {
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid #e2d6cc;
	background: #fff;
	margin-left: 8px;
	font-weight: 400;
	font-family: inherit;
}
.ch-reviews-items { display: grid; gap: 16px; }
.ch-review-card { background: #fff; border: 1px solid #f0e2d8; border-radius: 14px; padding: 22px; }
.ch-review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.ch-reviewer-name { font-weight: 700; font-family: 'Poppins', sans-serif; font-size: 15px; }
.ch-verified-badge { font-size: 12px; color: #0a7d2b; font-weight: 600; }
.ch-review-stars { color: #ffb400; letter-spacing: 2px; margin-bottom: 10px; }
.ch-review-title { margin: 0 0 8px; font-size: 16px; }
.ch-review-content { color: #425067; font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.ch-review-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #8a94a6; margin-bottom: 14px; }
.ch-review-meta span { background: var(--ch-bg); padding: 4px 12px; border-radius: 999px; }
.ch-review-helpful { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #5b6b82; flex-wrap: wrap; }
.ch-helpful-btn { background: #f6f1ec; border: none; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 13px; font-family: inherit; }
.ch-helpful-btn:hover { background: #eee0d4; }
.ch-helpful-btn:disabled { opacity: .6; cursor: default; }

.ch-load-more-btn,
.ch-load-more-universities { display: block; margin: 26px auto 0; }
.ch-no-reviews { text-align: center; color: #8a94a6; padding: 24px; }

/* ---------- Inline shortcodes ---------- */
.ch-rating-inline,
.ch-count-inline { font-weight: 600; color: var(--ch-primary); font-family: 'Poppins', sans-serif; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.ch-review-form-wrap { padding: 20px; }
	.ch-university-cards { grid-template-columns: 1fr; }
	.ch-reviews-toolbar { flex-direction: column; gap: 12px; }
	.ch-hero h2 { font-size: 22px; }
}
