/* Media Mentor Psychometric Portal - front-end styles */

.mm-portal {
	--mm-orange: #F47920;
	--mm-orange-light: #FFA45C;
	--mm-navy: #0A1D56;
	--mm-navy-2: #1E3A8A;
	--mm-ink: #1F2430;
	--mm-muted: #6B7280;
	--mm-border: #E5E7EB;
	--mm-bg-soft: #FFF6EE;

	max-width: 760px;
	margin: 0 auto 40px;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--mm-ink);
	line-height: 1.6;
}

.mm-portal h2, .mm-portal h3 { color: var(--mm-navy); }
.mm-muted { color: var(--mm-muted); font-size: 14.5px; }

.mm-portal-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--mm-bg-soft);
	border: 1px solid #FBD9B8;
	border-radius: 10px;
	padding: 10px 16px;
	margin-bottom: 22px;
	font-size: 14.5px;
}

/* Notices */
.mm-notice {
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 0 18px;
	font-size: 14.5px;
}
.mm-notice-error { background: #FDECEC; border: 1px solid #F5B5B5; color: #8A1F1F; }
.mm-notice-info { background: #EAF1FF; border: 1px solid #B9CCF5; color: #163166; }

/* Tabs */
.mm-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 2px solid var(--mm-border); }
.mm-tab-link {
	padding: 10px 6px;
	text-decoration: none;
	font-weight: 700;
	color: var(--mm-muted);
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
}
.mm-tab-link.is-active { color: var(--mm-orange); border-bottom-color: var(--mm-orange); }
.mm-tab-pane { display: none; }
.mm-tab-pane.is-active { display: block; }

/* Forms */
.mm-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.mm-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; }
.mm-form input[type="text"],
.mm-form input[type="email"],
.mm-form input[type="tel"],
.mm-form input[type="password"] {
	font-weight: 400;
	padding: 10px 12px;
	border: 1px solid var(--mm-border);
	border-radius: 8px;
	font-size: 15px;
}
.mm-form fieldset.mm-radio-inline { border: none; padding: 0; margin: 0; }
.mm-form fieldset.mm-radio-inline legend { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; padding: 0; }
.mm-form fieldset.mm-radio-inline label { flex-direction: row; align-items: center; font-weight: 400; gap: 8px; }
.mm-checkbox { flex-direction: row !important; align-items: flex-start; font-weight: 400 !important; font-size: 13.5px !important; gap: 8px !important; color: var(--mm-muted); }
.mm-checkbox input { margin-top: 3px; }

.mm-btn {
	display: inline-block;
	background: var(--mm-orange);
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 26px;
	border: none;
	border-radius: 999px;
	font-size: 15px;
	cursor: pointer;
	width: fit-content;
}
.mm-btn:hover { background: #d9691a; }
.mm-btn-large { font-size: 16px; padding: 14px 32px; margin-top: 10px; }
.mm-btn-ghost { background: transparent; color: var(--mm-navy) !important; border: 1px solid var(--mm-navy); padding: 8px 18px; }
.mm-btn-small { font-size: 13px; padding: 6px 14px; }

/* Test */
.mm-progress { background: var(--mm-border); border-radius: 999px; height: 8px; margin: 14px 0 26px; overflow: hidden; }
.mm-progress-bar { background: var(--mm-orange); height: 100%; width: 0%; transition: width .2s ease; }

.mm-section {
	border: 1px solid var(--mm-border);
	border-radius: 12px;
	padding: 20px 22px;
	margin-bottom: 22px;
}
.mm-section legend { font-weight: 800; font-size: 19px; color: var(--mm-navy); padding: 0 6px; }
.mm-scale-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--mm-muted); margin: 6px 0 18px; padding-bottom: 12px; border-bottom: 1px dashed var(--mm-border); }

.mm-question { padding: 14px 0; border-top: 1px solid #F1F1F3; }
.mm-question:first-of-type { border-top: none; }
.mm-question-text { font-size: 15.5px; margin: 0 0 10px; font-weight: 600; }
.mm-scale-options { display: flex; gap: 18px; align-items: center; }
.mm-scale-option { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; color: var(--mm-muted); cursor: pointer; }
.mm-scale-option input { width: 20px; height: 20px; accent-color: var(--mm-orange); }

.mm-thankyou {
	background: linear-gradient(135deg, var(--mm-navy), var(--mm-navy-2));
	color: #fff;
	border-radius: 14px;
	padding: 30px 26px;
	text-align: center;
}
.mm-thankyou h3 { color: #fff; margin-top: 0; }
.mm-thankyou p { color: #D6DCF0; }
.mm-thankyou .mm-muted { color: #AAB6D9; }

@media (max-width: 600px) {
	.mm-scale-options { gap: 10px; }
	.mm-scale-legend { flex-direction: column; gap: 4px; }
}
