/* ==========================================================================
   Global MBA Scholarship & Eligibility Assessment
   Premium navy / teal / gold / white assessment interface.
   Mobile-first, accessible, no school-exam feel.
   ========================================================================== */

.sc-mba {
	--mba-navy: #04102e;
	--mba-navy-2: #071b4d;
	--mba-navy-3: #0e2a55;
	--mba-teal: #16d5c0;
	--mba-teal-deep: #0fb6c1;
	--mba-gold: #c9a06b;
	--mba-gold-soft: #f0d9a5;
	--mba-ivory: #f4f9ff;
	--mba-ink: #0f172a;
	--mba-muted: #475569;
	--mba-border: #e2e8f0;
	--mba-error: #b91c1c;
	--mba-error-bg: #fef2f2;
	--mba-success: #166534;
	--mba-warn: #92400e;
	--mba-radius: 16px;
	--mba-radius-lg: 22px;
	--mba-shadow: 0 14px 40px rgba(7, 27, 77, 0.08);
	--mba-shadow-hover: 0 22px 56px rgba(7, 27, 77, 0.14);
	font-family: "Outfit", "DM Sans", system-ui, sans-serif;
	color: var(--mba-ink);
	background: #f7fafc;
}

.sc-mba-main {
	display: block;
	background: #f7fafc;
}

.sc-mba-container {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ===== HERO ============================================================== */

.sc-mba-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(72px, 9vw, 110px) 0 clamp(56px, 7vw, 84px);
	color: #fff;
	background:
		radial-gradient(ellipse 80% 55% at 78% 12%, rgba(22, 213, 192, 0.16) 0%, transparent 60%),
		radial-gradient(ellipse 70% 50% at 12% 100%, rgba(201, 160, 107, 0.14) 0%, transparent 60%),
		linear-gradient(160deg, var(--mba-navy) 0%, var(--mba-navy-2) 45%, var(--mba-navy-3) 100%);
}

.sc-mba-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.sc-mba-hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.5;
}

.sc-mba-hero__orb--a {
	width: 360px;
	height: 360px;
	background: rgba(22, 213, 192, 0.32);
	right: -8%;
	top: -10%;
}

.sc-mba-hero__orb--b {
	width: 280px;
	height: 280px;
	background: rgba(201, 160, 107, 0.22);
	left: -6%;
	bottom: -14%;
}

.sc-mba-hero__grid {
	position: absolute;
	inset: 0;
	opacity: 0.18;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 0%, transparent 75%);
}

.sc-mba-hero .sc-mba-container {
	position: relative;
	z-index: 1;
}

.sc-mba-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	margin: 0 0 18px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	color: rgba(232, 251, 249, 0.95);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	backdrop-filter: blur(10px) saturate(140%);
	-webkit-backdrop-filter: blur(10px) saturate(140%);
}

.sc-mba-eyebrow__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mba-teal);
	box-shadow: 0 0 0 4px rgba(22, 213, 192, 0.22), 0 0 14px rgba(22, 213, 192, 0.7);
}

.sc-mba-hero__title {
	margin: 0 0 16px;
	font-size: clamp(1.85rem, 4.6vw, 3.2rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #fff;
}

.sc-mba-hero__sub {
	margin: 0 0 22px;
	max-width: 720px;
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	line-height: 1.62;
	color: rgba(244, 249, 255, 0.88);
}

.sc-mba-hero__pills {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sc-mba-hero__pills li {
	padding: 7px 14px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--mba-ivory);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* ===== SECTIONS / CARDS ================================================== */

.sc-mba-section {
	padding: clamp(36px, 5vw, 64px) 0 clamp(72px, 9vw, 110px);
}

.sc-mba-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--mba-border);
	border-radius: var(--mba-radius-lg);
	box-shadow: var(--mba-shadow);
	padding: clamp(24px, 3.5vw, 40px);
	margin: -68px auto 0;
	max-width: 920px;
}

.sc-mba[data-compact="1"] .sc-mba-card {
	margin-top: 0;
}

.sc-mba-stage {
	display: none;
}

.sc-mba-stage.is-active {
	display: block;
}

.sc-mba-card__head {
	margin: 0 0 20px;
}

.sc-mba-card__title {
	margin: 0 0 6px;
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	font-weight: 800;
	color: var(--mba-navy-2);
	letter-spacing: -0.015em;
}

.sc-mba-card__sub {
	margin: 0;
	color: var(--mba-muted);
	font-size: 0.98rem;
	line-height: 1.55;
}

/* ===== FORM ============================================================== */

.sc-mba-form {
	display: block;
}

.sc-mba-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
	margin-bottom: 16px;
}

.sc-mba-field {
	display: block;
}

.sc-mba-field__label {
	display: block;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--mba-navy-2);
	letter-spacing: 0.01em;
	margin-bottom: 6px;
}

.sc-mba-field__label em {
	color: var(--mba-error);
	font-style: normal;
	font-weight: 800;
}

.sc-mba-field input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1.5px solid var(--mba-border);
	border-radius: 12px;
	background: #fff;
	color: var(--mba-ink);
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.18s ease, box-shadow 0.22s ease, background 0.18s ease;
	box-sizing: border-box;
}

.sc-mba-field input:hover {
	border-color: #b8c4d4;
}

.sc-mba-field input:focus {
	outline: none;
	border-color: var(--mba-teal);
	box-shadow: 0 0 0 4px rgba(22, 213, 192, 0.18);
}

.sc-mba-field input::placeholder {
	color: #94a3b8;
}

/* Rules block */
.sc-mba-rules {
	margin: 18px 0 22px;
	padding: 18px 20px;
	border: 1px solid rgba(22, 213, 192, 0.28);
	background:
		linear-gradient(180deg, rgba(22, 213, 192, 0.06), rgba(22, 213, 192, 0.02));
	border-radius: 14px;
}

.sc-mba-rules__title {
	margin: 0 0 8px;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mba-navy-2);
}

.sc-mba-rules ul {
	margin: 0;
	padding-left: 18px;
	color: var(--mba-muted);
	font-size: 0.96rem;
	line-height: 1.6;
}

.sc-mba-rules li + li {
	margin-top: 4px;
}

.sc-mba-form__actions {
	margin-top: 20px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.sc-mba-error {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid #fecaca;
	background: var(--mba-error-bg);
	color: var(--mba-error);
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 600;
}

/* ===== BUTTONS =========================================================== */

.sc-mba-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 12px 24px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	border-radius: 14px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition:
		transform 0.18s ease,
		box-shadow 0.22s ease,
		filter 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
	white-space: nowrap;
}

.sc-mba-btn--primary {
	background: linear-gradient(135deg, #2ee0c8 0%, var(--mba-teal) 50%, var(--mba-teal-deep) 100%);
	color: #052831;
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow:
		0 12px 28px rgba(22, 213, 192, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.sc-mba-btn--primary:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow:
		0 16px 36px rgba(22, 213, 192, 0.36),
		0 0 0 1px rgba(22, 213, 192, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.sc-mba-btn--primary:disabled,
.sc-mba-btn--primary[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.7;
	transform: none;
	filter: grayscale(0.2);
}

.sc-mba-btn--submit {
	background: linear-gradient(135deg, var(--mba-gold-soft) 0%, var(--mba-gold) 100%);
	color: #2a1a07;
	box-shadow: 0 12px 28px rgba(201, 160, 107, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	border-color: rgba(255, 255, 255, 0.5);
}

.sc-mba-btn--submit:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 16px 36px rgba(201, 160, 107, 0.42);
}

.sc-mba-btn--ghost {
	background: #fff;
	color: var(--mba-navy-2);
	border-color: var(--mba-border);
	box-shadow: 0 4px 14px rgba(7, 27, 77, 0.04);
}

.sc-mba-btn--ghost:hover {
	border-color: var(--mba-teal);
	color: var(--mba-navy-2);
	box-shadow: 0 8px 20px rgba(7, 27, 77, 0.08);
}

.sc-mba-btn--ghost:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sc-mba-btn--whatsapp {
	background: #25d366;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 12px 28px rgba(37, 211, 102, 0.26);
}

.sc-mba-btn--whatsapp:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 16px 36px rgba(37, 211, 102, 0.34);
	color: #fff;
}

.sc-mba-btn--whatsapp svg {
	width: 18px;
	height: 18px;
}

/* ===== TEST STAGE ======================================================== */

.sc-mba-stage--test {
	padding-top: 22px;
	user-select: none;
	-webkit-user-select: none;
}

.sc-mba-test__topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.sc-mba-test__progresslabel {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--mba-navy-2);
	letter-spacing: 0.02em;
}

.sc-mba-test__progresslabel span {
	color: var(--mba-teal-deep);
}

.sc-mba-timer {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: 0.04em;
	color: var(--mba-navy-2);
	background: rgba(22, 213, 192, 0.10);
	border: 1px solid rgba(22, 213, 192, 0.35);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sc-mba-timer__icon {
	display: inline-flex;
	color: var(--mba-teal-deep);
}

.sc-mba-timer.is-warning {
	background: rgba(201, 160, 107, 0.16);
	border-color: rgba(201, 160, 107, 0.6);
	color: var(--mba-warn);
}

.sc-mba-timer.is-warning .sc-mba-timer__icon {
	color: var(--mba-warn);
}

.sc-mba-timer.is-critical {
	background: rgba(185, 28, 28, 0.10);
	border-color: rgba(185, 28, 28, 0.5);
	color: #991b1b;
	animation: scMbaPulse 1.1s ease-in-out infinite;
}

.sc-mba-timer.is-critical .sc-mba-timer__icon {
	color: #b91c1c;
}

@keyframes scMbaPulse {
	0%, 100% {
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 0 0 rgba(185, 28, 28, 0);
	}
	50% {
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 0 6px rgba(185, 28, 28, 0.18);
	}
}

.sc-mba-progress {
	width: 100%;
	height: 6px;
	background: #eef2f7;
	border-radius: 999px;
	overflow: hidden;
	margin: 4px 0 22px;
}

.sc-mba-progress__bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--mba-teal), var(--mba-gold));
	transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
	border-radius: 999px;
}

/* Question */
.sc-mba-question {
	margin: 4px 0 28px;
}

.sc-mba-question__title {
	margin: 0 0 18px;
	font-size: clamp(1.05rem, 1.9vw, 1.35rem);
	font-weight: 700;
	line-height: 1.45;
	color: var(--mba-ink);
	letter-spacing: -0.005em;
}

.sc-mba-question__num {
	display: inline-block;
	min-width: 32px;
	padding: 2px 10px;
	margin-right: 10px;
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--mba-teal-deep);
	background: rgba(22, 213, 192, 0.12);
	border: 1px solid rgba(22, 213, 192, 0.3);
	border-radius: 999px;
	letter-spacing: 0.06em;
	vertical-align: middle;
}

.sc-mba-options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.sc-mba-option {
	display: block;
	margin: 0;
}

.sc-mba-option__btn {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--mba-ink);
	background: #fff;
	border: 1.5px solid var(--mba-border);
	border-radius: 14px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.22s ease, transform 0.15s ease;
}

.sc-mba-option__btn:hover {
	border-color: #b8c4d4;
	background: #f8fafc;
}

.sc-mba-option__btn:focus-visible {
	outline: none;
	border-color: var(--mba-teal);
	box-shadow: 0 0 0 4px rgba(22, 213, 192, 0.18);
}

.sc-mba-option__btn.is-selected {
	border-color: var(--mba-teal);
	background: rgba(22, 213, 192, 0.08);
	box-shadow:
		0 0 0 3px rgba(22, 213, 192, 0.14),
		0 10px 22px rgba(22, 213, 192, 0.10);
}

.sc-mba-option__radio {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.sc-mba-option__btn.is-selected .sc-mba-option__radio {
	border-color: var(--mba-teal);
	background: #fff;
}

.sc-mba-option__radio::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--mba-teal);
	transform: scale(0);
	transition: transform 0.18s ease;
}

.sc-mba-option__btn.is-selected .sc-mba-option__radio::after {
	transform: scale(1);
}

.sc-mba-option__letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 8px;
	background: #f1f5f9;
	color: var(--mba-navy-2);
	font-weight: 800;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

.sc-mba-option__btn.is-selected .sc-mba-option__letter {
	background: var(--mba-teal);
	color: #052831;
}

.sc-mba-option__text {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
}

/* Test actions */
.sc-mba-test__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.sc-mba-test__spacer {
	flex: 1 1 auto;
}

.sc-mba-test__hint {
	margin: 14px 0 0;
	color: var(--mba-muted);
	font-size: 0.9rem;
}

/* ===== MODAL ============================================================= */

.sc-mba-modal {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.sc-mba-modal[aria-hidden="false"],
.sc-mba-modal:not([hidden]) {
	display: flex;
}

.sc-mba-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 27, 77, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.sc-mba-modal__panel {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
	padding: 28px 26px 24px;
	z-index: 1;
}

.sc-mba-modal__panel h3 {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--mba-navy-2);
}

.sc-mba-modal__panel p {
	margin: 0 0 12px;
	color: var(--mba-muted);
	font-size: 0.98rem;
	line-height: 1.55;
}

.sc-mba-modal__meta {
	font-size: 0.88rem !important;
	color: var(--mba-teal-deep) !important;
	font-weight: 700;
}

.sc-mba-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 8px;
	flex-wrap: wrap;
}

/* ===== SUCCESS =========================================================== */

.sc-mba-stage--success {
	text-align: center;
}

.sc-mba-success {
	padding: 12px 4px 4px;
}

.sc-mba-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--mba-teal-deep);
	margin: 0 auto 14px;
}

.sc-mba-success__title {
	margin: 0 0 10px;
	font-size: clamp(1.4rem, 2.6vw, 1.8rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--mba-navy-2);
}

.sc-mba-success__text {
	margin: 0 auto 22px;
	max-width: 560px;
	color: var(--mba-muted);
	font-size: 1rem;
	line-height: 1.65;
}

.sc-mba-success__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.sc-mba-success__small {
	margin: 18px auto 0;
	max-width: 520px;
	font-size: 0.82rem;
	color: #94a3b8;
	line-height: 1.55;
}

/* ===== RESPONSIVE ======================================================== */

@media (max-width: 720px) {
	.sc-mba-form__row {
		grid-template-columns: 1fr;
	}
	.sc-mba-card {
		margin-top: -42px;
		padding: 22px;
	}
	.sc-mba-hero {
		padding: 64px 0 60px;
	}
	.sc-mba-option__btn {
		padding: 14px 14px;
	}
	.sc-mba-test__topbar {
		gap: 10px;
	}
	.sc-mba-test__progresslabel {
		font-size: 0.88rem;
	}
	.sc-mba-timer {
		padding: 6px 12px;
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	.sc-mba-test__actions {
		gap: 8px;
	}
	.sc-mba-btn {
		flex: 1 1 auto;
		min-height: 46px;
		padding: 10px 14px;
		font-size: 0.95rem;
	}
	.sc-mba-test__spacer {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sc-mba-progress__bar,
	.sc-mba-option__btn,
	.sc-mba-option__radio::after,
	.sc-mba-timer {
		transition: none !important;
	}
	.sc-mba-timer.is-critical {
		animation: none !important;
	}
}
