/* =========================================================================
   Typeform-style layer on top of Forms.md
   ========================================================================= */
:root {
	--spe-accent: #1f3c88;
	--spe-accent-soft: rgba(31, 60, 136, 0.08);
	--spe-gold: #e9a23b;
	--spe-ink: #14213d;
	--spe-muted: #5c6680;
	--spe-bg: #fbfaf7;
	--spe-card: #ffffff;
	--spe-line: rgba(20, 33, 61, 0.12);
}

html,
body {
	background: var(--spe-bg);
	-webkit-font-smoothing: antialiased;
}
body {
	margin: 0;
	min-height: 100vh;
}

/* Brand bar (top-left, like Typeform's logo slot) */
.spe-brandbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 6;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 24px;
	font: 600 15px/1.2 "Inter", "Hind Siliguri", system-ui, sans-serif;
	color: var(--spe-ink);
	pointer-events: none;
}
.spe-brandbar img {
	width: 30px;
	height: 30px;
	border-radius: 8px;
}

/* Center the form column vertically & horizontally */
#admission-form {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 24px;
}
#admission-form .fmd-root {
	min-height: 100vh;
	min-height: 100svh;
}
#admission-form .fmd-main {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-top: 80px;
	padding-bottom: 110px;
}

/* Thin progress bar flush to the top */
#admission-form .fmd-page-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 7;
	height: 4px;
	border-radius: 0;
	margin: 0;
	background: rgba(31, 60, 136, 0.1);
}

/* Icons */
.spe-ico {
	width: 1.05em;
	height: 1.05em;
	flex: none;
	vertical-align: -0.16em;
	margin-right: 0.4em;
}
.spe-ico-sm {
	width: 0.95em;
	height: 0.95em;
	margin: 0 0 0 0.3em;
}
.spe-meta span,
.spe-paycard-label,
.spe-print {
	display: inline-flex;
	align-items: center;
}
.spe-meta .spe-ico {
	color: var(--spe-accent);
}
.spe-tick-ico {
	width: 30px;
	height: 30px;
	stroke-width: 3;
}

/* Question numbering: number + arrow icon in accent colour */
#admission-form {
	counter-reset: q;
}
#admission-form .fmd-slide .fmd-form-field {
	counter-increment: q;
}
#admission-form .fmd-form-question {
	position: relative;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--spe-ink);
}
#admission-form .fmd-form-question::before {
	content: attr(data-num);
	padding-right: 1.25em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F3C88' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E")
		no-repeat right center / 0.95em;
	display: inline-block;
	margin-right: 10px;
	vertical-align: 0.15em;
	font-size: 0.62em;
	font-weight: 600;
	color: var(--spe-accent);
	white-space: nowrap;
}
#admission-form .fmd-form-question sup {
	color: var(--spe-accent);
}
#admission-form .fmd-form-description {
	color: var(--spe-muted);
	font-family: "Hind Siliguri", "Inter", system-ui, sans-serif;
}

/* Answers: big, accent-coloured, underlined — Typeform's signature */
#admission-form .fmd-form-control,
#admission-form .fmd-form-str-input,
#admission-form .fmd-form-select,
#admission-form .fmd-form-datetime-input {
	color: var(--spe-accent);
	font-size: 1.35em;
	background: transparent;
}
#admission-form .fmd-form-control::placeholder,
#admission-form .fmd-form-str-input::placeholder {
	color: rgba(31, 60, 136, 0.32);
}

/* Choice boxes (qualification): 2-column grid, Typeform-like */
#admission-form .fmd-check-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	max-width: 520px;
}
#admission-form .fmd-check-grid .fmd-form-check {
	margin: 0 !important;
	width: auto !important;
	max-width: none !important;
}
#admission-form .fmd-form-check-label {
	font-size: 1.05rem;
	border-radius: 6px;
	padding-top: 0.55em;
	padding-bottom: 0.55em;
	background: var(--spe-accent-soft);
}

/* Buttons: compact rounded rectangle + "press Enter" hint */
#admission-form .fmd-submit-btn,
#admission-form .fmd-next-btn:not(.fmd-footer .fmd-next-btn) {
	border-radius: 6px;
	font-weight: 600;
	padding-inline: 1.1em;
	box-shadow: 0 2px 6px rgba(20, 33, 61, 0.15);
}
#admission-form .fmd-next-controls {
	align-items: center;
}
#admission-form .fmd-form-question {
	font-size: 1.5rem;
}
.spe-enter-hint {
	margin-left: 14px;
	font-size: 12.5px;
	color: var(--spe-muted);
	white-space: nowrap;
	vertical-align: middle;
}
.spe-enter-hint b {
	font-weight: 600;
}
@media (hover: none) {
	.spe-enter-hint {
		display: none;
	}
}

/* Footer: up/down arrows bottom-right like Typeform */
#admission-form .fmd-footer {
	position: fixed;
	right: 20px;
	bottom: 44px;
	left: auto;
	z-index: 6;
	width: auto;
	background: none;
}

/* Errors */
#admission-form .fmd-error {
	border-radius: 8px;
}

/* ---------- Welcome screen ---------- */
.spe-welcome {
	text-align: left;
}
.spe-welcome-logo {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	margin-bottom: 26px;
	box-shadow: 0 8px 24px rgba(31, 60, 136, 0.22);
}
.spe-eyebrow {
	margin: 0 0 10px;
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--spe-accent);
}
.spe-title {
	margin: 0 0 10px !important;
	font-size: clamp(2rem, 6vw, 3.1rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.03em;
	line-height: 1.05 !important;
	color: var(--spe-ink);
}
.spe-tagline {
	margin: 0 0 22px !important;
	font-family: "Hind Siliguri", system-ui, sans-serif;
	font-size: clamp(1.05rem, 3vw, 1.3rem) !important;
	font-weight: 500;
	color: var(--spe-muted);
}
.spe-tagline::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 3px;
	margin-right: 12px;
	vertical-align: middle;
	border-radius: 2px;
	background: var(--spe-gold);
}
.spe-lead {
	max-width: 34em;
	margin: 0 0 18px !important;
	font-size: 1.02em !important;
	line-height: 1.55;
	color: var(--spe-ink);
}
.spe-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 6px !important;
	font-size: 13.5px !important;
	color: var(--spe-muted);
}

/* ---------- Review & pay ---------- */
.spe-review-title {
	margin: 0 0 18px !important;
	font-size: clamp(1.6rem, 4.5vw, 2.2rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em;
}
.spe-summary {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 10px 22px;
	margin: 0 0 18px;
	padding: 18px 20px;
	font-size: 15px;
	background: var(--spe-card);
	border: 1px solid var(--spe-line);
	border-radius: 12px;
}
.spe-summary dt {
	color: var(--spe-muted);
}
.spe-summary dd {
	margin: 0;
	font-weight: 500;
	overflow-wrap: anywhere;
}
.spe-paycard {
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--spe-accent);
	color: #fff;
}
.spe-paycard > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}
.spe-paycard-label {
	font-size: 14px;
	opacity: 0.85;
}
.spe-paycard-amt {
	font-size: 1.7em;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.spe-paycard p {
	margin: 8px 0 0 !important;
	font-size: 13px !important;
	line-height: 1.5;
	opacity: 0.85;
}
#admission-form .spe-pay-btn {
	font-size: 1.05em;
	padding: 0.7em 1.6em;
}

/* ---------- Thank-you / receipt ---------- */
.spe-receipt {
	text-align: left;
}
.spe-tick {
	width: 56px;
	height: 56px;
	margin: 0 0 18px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #16a34a;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
}
.spe-receipt h2 {
	margin: 0 0 6px !important;
	font-size: clamp(1.6rem, 4.5vw, 2.2rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em;
}
.spe-receipt dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 10px 22px;
	max-width: 460px;
	margin: 20px 0;
	padding: 18px 20px;
	font-size: 15px;
	border: 1px solid var(--spe-line);
	border-radius: 12px;
	background: var(--spe-card);
}
.spe-receipt dt {
	color: var(--spe-muted);
}
.spe-receipt dd {
	margin: 0;
	overflow-wrap: anywhere;
}
.spe-sub {
	color: var(--spe-muted);
	font-size: 0.92em;
}
.spe-print {
	margin-top: 6px;
	padding: 0.6em 1.3em;
	border: 0;
	border-radius: 6px;
	background: var(--spe-accent);
	color: #fff;
	font: 600 15px "Inter", system-ui, sans-serif;
	cursor: pointer;
}

/* ---------- Legal links (bottom-left) ---------- */
.spe-legal {
	position: fixed;
	left: 24px;
	bottom: 16px;
	z-index: 5;
	font: 12px/1.4 "Inter", system-ui, sans-serif;
	color: var(--spe-muted);
}
.spe-legal a {
	color: inherit;
	text-decoration: none;
	margin-right: 12px;
}
.spe-legal a:hover {
	text-decoration: underline;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	#admission-form {
		padding: 0 20px;
	}
	#admission-form .fmd-main {
		justify-content: flex-start;
		padding-top: 84px;
	}
	.spe-brandbar {
		padding: 16px 20px;
		background: var(--spe-bg);
	}
	.spe-legal {
		left: 20px;
	}
	#admission-form .fmd-footer {
		right: 16px;
	}
}

@media print {
	.spe-brandbar,
	.spe-legal,
	.spe-print,
	#admission-form .fmd-footer,
	#admission-form .fmd-page-progress {
		display: none !important;
	}
}
