.pmay-primary-button {
	appearance: none;
	background: #126c43;
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: inherit;
	font-weight: 700;
	min-height: 46px;
	padding: 12px 22px;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease;
}

.pmay-primary-button:hover,
.pmay-primary-button:focus {
	background: #0d5b38;
	color: #fff;
}

.pmay-primary-button:disabled {
	cursor: wait;
	opacity: .7;
}

.pmay-secondary-button {
	appearance: none;
	background: #eef2f7;
	border: 0;
	border-radius: 6px;
	color: #1f2937;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font: inherit;
	font-weight: 700;
	min-height: 46px;
	padding: 12px 22px;
	text-decoration: none;
}

.pmay-modal {
	display: none;
	inset: 0;
	position: fixed;
	z-index: 99999;
}

.pmay-modal.is-open {
	display: block;
}

.pmay-modal__overlay {
	background: rgba(15, 23, 42, .68);
	inset: 0;
	position: absolute;
}

.pmay-modal__card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
	height: 92vh;
	left: 50%;
	max-height: 90vh;
	max-width: 1180px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(1180px, 96vw);
}

.pmay-modal__close {
	align-items: center;
	background: #d43767;
	border: 0;
	border-radius: 8px;
	box-sizing: border-box;
	box-shadow: 0 8px 20px rgba(15, 23, 42, .22);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 28px;
	font-weight: 400;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 12px;
	top: 12px;
	width: 44px;
	z-index: 5;
}

.pmay-html-form-wrap {
	background: #f4f7fb;
	height: 100%;
	width: 100%;
}

.pmay-html-form-frame {
	border: 0;
	display: block;
	height: 100%;
	min-height: 92vh;
	width: 100%;
}

.pmay-registration-form {
	--primary:#1f4f8f;
	--primary-dark:#173b6b;
	--success:#198754;
	--saffron:#ff9933;
	--green:#138808;
	--bg:#f4f7fb;
	--card:#fff;
	--text:#172033;
	--muted:#687386;
	--border:#dfe5ee;
	--danger:#c0392b;
	--shadow:0 8px 24px rgba(20,35,60,.08);
	background: var(--bg);
	color: var(--text);
	font-family: Inter, "Noto Sans Devanagari", sans-serif;
	line-height: 1.5;
	margin: 0;
	width: 100%;
}

.pmay-registration-form *,
.pmay-registration-form *::before,
.pmay-registration-form *::after {
	box-sizing: border-box;
}

.pmay-registration-form button,
.pmay-registration-form input,
.pmay-registration-form select,
.pmay-registration-form textarea {
	font: inherit;
}

.pmay-application-shell {
	background: var(--bg);
	min-height: 100%;
	width: 100%;
}

.gov-header {
	background:#fff;
	border-bottom:1px solid var(--border);
}

.header-content {
	align-items:center;
	display:flex;
	gap:20px;
	justify-content:space-between;
	margin:auto;
	max-width:1180px;
	padding:14px 22px;
}

.header-left {
	align-items:center;
	display:flex;
	gap:14px;
}

.emblem-container {
	align-items:center;
	border:1px solid var(--border);
	border-radius:50%;
	display:flex;
	font-size:28px;
	height:52px;
	justify-content:center;
	width:52px;
}

.portal-title {
	font-size:1.05rem;
	font-weight:800;
	letter-spacing:.02em;
	margin:0;
}

.portal-sub {
	font-size:1rem;
	font-weight:700;
	margin:2px 0;
}

.portal-badge {
	color:var(--muted);
	font-size:.76rem;
}

.header-right {
	text-align:right;
}

.app-id-pill {
	background:#eef4fb;
	border:1px solid #d6e2f1;
	border-radius:999px;
	font-size:.78rem;
	padding:5px 11px;
}

.pill-label {
	color:var(--muted);
}

.pill-value {
	font-weight:700;
}

.tricolor-accent {
	display:flex;
	height:4px;
}

.color-band {
	flex:1;
}

.saffron {
	background:var(--saffron);
}

.white {
	background:#fff;
}

.green {
	background:var(--green);
}

.main-container {
	margin:28px auto;
	max-width:1180px;
	padding:0 20px 22px;
}

.desktop-stepper {
	align-items:center;
	display:flex;
	justify-content:center;
	margin-bottom:24px;
}

.step-node {
	align-items:center;
	background:transparent;
	border:0;
	color:#8791a1;
	display:flex;
	font-size:.82rem;
	gap:8px;
	padding:0;
}

.step-num {
	background:#fff;
	border:1px solid #ccd4df;
	border-radius:50%;
	display:grid;
	font-weight:700;
	height:31px;
	place-items:center;
	width:31px;
}

.step-node.active,
.step-node.completed,
.step-node.is-active,
.step-node.is-complete {
	color:var(--primary);
}

.step-node.active .step-num,
.step-node.completed .step-num,
.step-node.is-active .step-num,
.step-node.is-complete .step-num {
	background:var(--primary);
	border-color:var(--primary);
	color:#fff;
}

.step-connector {
	background:#d6dce5;
	height:1px;
	margin:0 10px;
	width:55px;
}

.mobile-stepper {
	display:none;
}

.form-step,
.pmay-ms-panel {
	display:none;
}

.form-step.active,
.pmay-ms-panel.is-active {
	display:block;
}

.form-card,
.pmay-ms-panel {
	background:var(--card);
	border:1px solid var(--border);
	border-radius:14px;
	box-shadow:var(--shadow);
	margin-bottom:18px;
	overflow:hidden;
}

.card-header,
.pmay-ms-panel-head {
	align-items:center;
	background:linear-gradient(90deg,#f8fbff,#fff);
	border-bottom:1px solid var(--border);
	display:flex;
	gap:13px;
	padding:18px 22px;
}

.section-badge,
.pmay-ms-panel-head::before {
	background:#e9f1fb;
	border-radius:10px;
	color:var(--primary);
	display:grid;
	font-weight:800;
	height:38px;
	place-items:center;
	width:38px;
}

.pmay-ms-panel-head::before {
	content: attr(data-step-label);
}

.header-text h2,
.pmay-ms-panel-head strong {
	font-size:1.15rem;
	margin:0;
}

.bilingual-sub,
.pmay-ms-panel-head small {
	color:var(--muted);
	font-size:.82rem;
	margin:2px 0 0;
}

.card-body,
.pmay-ms-panel > .pmay-form-grid,
.pmay-ms-panel > .pmay-plot-options,
.pmay-ms-panel > .pmay-declaration,
.pmay-ms-panel > .pmay-terms,
.pmay-ms-panel > label {
	padding:24px;
}

.form-grid,
.pmay-form-grid {
	display:grid;
	gap:18px;
	grid-template-columns:repeat(2,minmax(0,1fr));
}

.full-width,
.pmay-field-wide {
	grid-column:1/-1;
}

.form-group label,
.pmay-registration-form label {
	align-items:baseline;
	color:var(--text);
	display:flex;
	font-size:.82rem;
	font-weight:700;
	gap:7px;
	margin-bottom:7px;
}

.req {
	color:var(--danger);
}

.pmay-registration-form input,
.pmay-registration-form select,
.pmay-registration-form textarea {
	background:#fff;
	border:1px solid #ccd5e1;
	border-radius:8px;
	outline:none;
	padding:11px 12px;
	transition:.2s;
	width:100%;
}

.pmay-registration-form textarea {
	resize:vertical;
}

.pmay-registration-form input:focus,
.pmay-registration-form select:focus,
.pmay-registration-form textarea:focus {
	border-color:var(--primary);
	box-shadow:0 0 0 3px rgba(31,79,143,.1);
}

.pmay-registration-form .is-invalid {
	border-color:var(--danger);
}

.plot-cards-grid,
.pmay-plot-options {
	display:grid;
	gap:12px;
	grid-template-columns:repeat(4,1fr);
}

.plot-card,
.pmay-plot-options label {
	background:#fff;
	border:1px solid var(--border);
	border-radius:10px;
	cursor:pointer;
	display:block;
	padding:17px;
	text-align:center;
	transition:.2s;
}

.plot-card:hover,
.plot-card.active,
.pmay-plot-options label:has(input:checked) {
	background:#f2f7fd;
	border-color:var(--primary);
	box-shadow:0 4px 14px rgba(31,79,143,.12);
}

.plot-card input,
.pmay-plot-options input {
	position:absolute;
	opacity:0;
	pointer-events:none;
}

.plot-title,
.pmay-plot-options span {
	font-size:.9rem;
	font-weight:800;
	margin-top:7px;
}

.plot-sub,
.pmay-plot-options small {
	color:var(--muted);
	display:block;
	font-size:.74rem;
}

.highlight-box {
	background:#f7fbff;
	border:1px solid #dce8f7;
	border-radius:10px;
	margin-top:20px;
	padding:17px;
}

.highlight-header h4 {
	font-size:.88rem;
	margin:0;
}

.highlight-desc {
	color:var(--muted);
	font-size:.79rem;
	margin:9px 0 0;
}

.notice-callout {
	background:#fff8e8;
	border:1px solid #f2dfb0;
	border-radius:8px;
	color:#725514;
	display:flex;
	font-size:.77rem;
	gap:9px;
	margin-bottom:18px;
	padding:12px 14px;
}

.declaration-text,
.pmay-declaration {
	background:#f7f9fc;
	border-left:4px solid var(--primary);
	border-radius:6px;
	color:#475468;
	font-size:.85rem;
	margin:0;
	padding:17px 19px;
}

.checkbox-bar,
.pmay-terms {
	background:#f7f9fc;
	border:1px solid var(--border);
	border-radius:9px;
	margin:20px 0;
	padding:13px 15px;
}

.checkbox-container,
.pmay-terms {
	align-items:flex-start;
	display:flex !important;
	gap:10px !important;
}

.checkbox-container input,
.pmay-terms input {
	flex:0 0 auto;
	margin-top:4px;
	width:auto;
}

.checkbox-label {
	font-size:.82rem;
}

.font-bold {
	font-weight:700;
}

.btn {
	align-items:center;
	border:0;
	border-radius:8px;
	display:inline-flex;
	font-size:.82rem;
	font-weight:700;
	gap:8px;
	justify-content:center;
	padding:10px 15px;
}

.btn-primary {
	background:var(--primary);
	color:#fff;
}

.btn-success {
	background:var(--success);
	color:#fff;
}

.btn-secondary {
	background:#eef1f5;
	color:#25334a;
}

.form-action-bar,
.pmay-ms-actions {
	align-items:center;
	background:rgba(255,255,255,.96);
	backdrop-filter:blur(8px);
	border:1px solid var(--border);
	border-radius:12px;
	box-shadow:var(--shadow);
	display:flex;
	gap:12px;
	justify-content:space-between;
	padding:12px 15px;
	position:sticky;
	bottom:0;
}

.action-right {
	display:flex;
	flex-wrap:wrap;
	gap:9px;
}

.pmay-registration-form h3 {
	color: #111827;
	font-size: 24px;
	line-height: 1.25;
	margin: 0;
}

.pmay-ms-header {
	align-items: flex-start;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin: 0 42px 18px 0;
	padding-bottom: 18px;
}

.pmay-ms-header p {
	color: #64748b;
	font-size: 13px;
	margin: 5px 0 0;
}

.pmay-ms-header span {
	background: #eef7f2;
	border: 1px solid #cfe9da;
	border-radius: 999px;
	color: #126c43;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 800;
	padding: 7px 12px;
}

.pmay-ms-stepper {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-bottom: 18px;
}

.pmay-ms-step {
	align-items: center;
	background: #fff;
	border: 1px solid #d8e0ea;
	border-radius: 8px;
	color: #64748b;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	gap: 7px;
	justify-content: center;
	min-height: 42px;
	padding: 8px;
}

.pmay-ms-step span {
	align-items: center;
	background: #f1f5f9;
	border-radius: 999px;
	display: inline-flex;
	height: 24px;
	justify-content: center;
	width: 24px;
}

.pmay-ms-step.is-active,
.pmay-ms-step.is-complete {
	border-color: #126c43;
	color: #126c43;
}

.pmay-ms-step.is-active span,
.pmay-ms-step.is-complete span {
	background: #126c43;
	color: #fff;
}

.pmay-ms-panel {
	display: none;
}

.pmay-ms-panel.is-active {
	display: block;
}

.pmay-ms-panel-head {
	background: linear-gradient(90deg, #f8fbff, #fff);
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: grid;
	gap: 2px;
	margin-bottom: 16px;
	padding: 14px 16px;
}

.pmay-ms-panel-head strong {
	color: #111827;
	font-size: 17px;
}

.pmay-ms-panel-head small {
	color: #64748b;
	font-size: 13px;
}

.pmay-form-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pmay-registration-form label {
	color: #1f2937;
	display: grid;
	font-size: 14px;
	font-weight: 650;
	gap: 7px;
}

.pmay-registration-form input,
.pmay-registration-form textarea,
.pmay-registration-form select {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	color: #111827;
	font: inherit;
	min-height: 43px;
	padding: 10px 12px;
	width: 100%;
}

.pmay-registration-form textarea {
	resize: vertical;
}

.pmay-registration-form input:focus,
.pmay-registration-form textarea:focus,
.pmay-registration-form select:focus {
	border-color: #126c43;
	box-shadow: 0 0 0 3px rgba(18, 108, 67, .12);
	outline: 0;
}

.pmay-registration-form .is-invalid {
	border-color: #b42318;
	box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

.pmay-registration-form input[readonly] {
	background: #f8fafc;
	color: #475569;
}

.pmay-field-wide {
	grid-column: 1 / -1;
}

.pmay-terms {
	align-items: flex-start;
	display: flex !important;
	gap: 10px !important;
	margin-top: 16px;
}

.pmay-terms input {
	flex: 0 0 auto;
	margin-top: 2px;
	min-height: 18px;
	width: 18px;
}

.pmay-disclaimer {
	background: #f8fafc;
	border-left: 3px solid #126c43;
	color: #475569;
	font-size: 13px;
	line-height: 1.5;
	margin: 16px 0;
	padding: 10px 12px;
}

.pmay-declaration {
	background: #f8fafc;
	border-left: 3px solid #126c43;
	border-radius: 6px;
	color: #475569;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 16px;
	padding: 12px 14px;
}

.pmay-plot-options {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 18px;
}

.pmay-plot-options label {
	cursor: pointer;
	display: block;
}

.pmay-plot-options input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.pmay-plot-options span {
	background: #fff;
	border: 1px solid #d8e0ea;
	border-radius: 8px;
	display: grid;
	font-size: 15px;
	font-weight: 800;
	gap: 3px;
	min-height: 82px;
	padding: 15px;
	place-items: center;
	text-align: center;
}

.pmay-plot-options small {
	color: #64748b;
	font-size: 12px;
	font-weight: 650;
}

.pmay-plot-options input:checked + span {
	background: #eef7f2;
	border-color: #126c43;
	color: #126c43;
}

.pmay-form-message {
	color: #b42318;
	font-size: 14px;
	font-weight: 650;
	margin: 10px 0;
	min-height: 20px;
}

.pmay-ms-actions {
	border-top: 1px solid #e5e7eb;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 18px;
	padding-top: 16px;
}

.pmay-ms-actions button[hidden] {
	display: none;
}

.pmay-payment-result {
	margin: 48px auto;
	max-width: 820px;
	padding: 0 18px;
}

.pmay-payment-result h2 {
	font-size: 30px;
	margin-bottom: 20px;
}

.pmay-receipt {
	background: #fff;
	border: 1px solid #d8e0ea;
	border-radius: 8px;
	box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
	margin-bottom: 18px;
	overflow: hidden;
}

.pmay-receipt-head {
	background: #f8fafc;
	border-bottom: 1px solid #e5e7eb;
	padding: 18px 22px;
}

.pmay-receipt-brand {
	align-items: center;
	display: flex;
	gap: 14px;
}

.pmay-receipt-logo {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	height: 58px;
	object-fit: contain;
	padding: 6px;
	width: 58px;
}

.pmay-receipt-brand-name {
	color: #111827;
	display: block;
	font-size: 18px;
	line-height: 1.25;
	margin-bottom: 4px;
}

.pmay-receipt-head h3 {
	color: #111827;
	font-size: 20px;
	margin: 0;
}

.pmay-result-list {
	display: grid;
	grid-template-columns: minmax(180px, 240px) 1fr;
	margin: 0;
}

.pmay-result-list dt {
	background: #f8fafc;
	border-bottom: 1px solid #e5e7eb;
	color: #475569;
	font-weight: 700;
	padding: 12px 18px;
}

.pmay-result-list dd {
	border-bottom: 1px solid #e5e7eb;
	margin: 0;
	padding: 12px 18px;
	word-break: break-word;
}

.pmay-result-list dt:nth-last-of-type(1),
.pmay-result-list dd:nth-last-of-type(1) {
	border-bottom: 0;
}

.pmay-receipt-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}

.pmay-download-receipt {
	margin: 0;
}

@media (max-width: 640px) {
	.pmay-modal__card {
		border-radius: 0;
		height: 100dvh !important;
		left: 0;
		max-height: 100dvh !important;
		max-width: 100vw !important;
		padding: 0;
		top: 0;
		transform: none;
		width: 100vw !important;
	}

	.pmay-html-form-wrap,
	.pmay-html-form-frame {
		height: 100dvh !important;
		min-height: 100dvh !important;
	}

	.pmay-modal__close {
		height: 42px;
		right: 10px;
		top: 10px;
		width: 42px;
	}

	.pmay-form-grid {
		grid-template-columns: 1fr;
	}

	.pmay-ms-header {
		display: block;
		margin-right: 42px;
	}

	.pmay-ms-header span {
		display: inline-flex;
		margin-top: 10px;
	}

	.pmay-ms-stepper,
	.pmay-plot-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pmay-ms-step {
		font-size: 12px;
	}

	.pmay-registration-form h3 {
		font-size: 22px;
	}

	.pmay-ms-actions {
		flex-direction: column;
	}

	.pmay-result-list {
		grid-template-columns: 1fr;
	}

	.pmay-result-list dt {
		border-bottom: 0;
		padding-bottom: 4px;
	}

	.pmay-result-list dd {
		padding-top: 0;
	}
}

@media print {
	body * {
		visibility: hidden;
	}

	.pmay-payment-result,
	.pmay-payment-result * {
		visibility: visible;
	}

	.pmay-payment-result {
		left: 0;
		margin: 0;
		max-width: none;
		padding: 0;
		position: absolute;
		top: 0;
		width: 100%;
	}

	.pmay-receipt-actions,
	.pmay-retry-payment,
	.pmay-form-message {
		display: none !important;
	}

	.pmay-receipt {
		box-shadow: none;
	}
}

.pmay-plot-application .pmay-ms-panel {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
	margin-bottom: 18px;
	overflow: hidden;
}

.pmay-plot-application .pmay-ms-panel-head {
	align-items: center;
	background: linear-gradient(90deg,#f8fbff,#fff);
	border: 0;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
	display: flex;
	gap: 13px;
	margin: 0;
	padding: 18px 22px;
}

.pmay-plot-application .pmay-ms-panel:nth-of-type(1) .pmay-ms-panel-head::before { content: "01"; }
.pmay-plot-application .pmay-ms-panel:nth-of-type(2) .pmay-ms-panel-head::before { content: "02"; }
.pmay-plot-application .pmay-ms-panel:nth-of-type(3) .pmay-ms-panel-head::before { content: "03"; }
.pmay-plot-application .pmay-ms-panel:nth-of-type(4) .pmay-ms-panel-head::before { content: "04"; }
.pmay-plot-application .pmay-ms-panel:nth-of-type(5) .pmay-ms-panel-head::before { content: "05"; }

.pmay-plot-application .pmay-ms-panel-head::before {
	background: #e9f1fb;
	border-radius: 10px;
	color: var(--primary);
	display: grid;
	flex: 0 0 auto;
	font-weight: 800;
	height: 38px;
	place-items: center;
	width: 38px;
}

.pmay-plot-application .pmay-ms-panel-head strong,
.pmay-plot-application .pmay-ms-panel-head small {
	display: block;
}

.pmay-plot-application .pmay-ms-panel > .pmay-form-grid,
.pmay-plot-application .pmay-ms-panel > .pmay-plot-options,
.pmay-plot-application .pmay-ms-panel > .pmay-declaration,
.pmay-plot-application .pmay-ms-panel > .pmay-terms,
.pmay-plot-application .pmay-ms-panel > label {
	margin: 0;
	padding: 24px;
}

.pmay-plot-application .pmay-ms-panel > .pmay-plot-options + .pmay-form-grid {
	padding-top: 0;
}

.pmay-plot-application .pmay-form-message {
	margin: 0 0 10px;
}

.pmay-plot-application .form-action-bar {
	margin-top: 8px;
}

@media (max-width: 800px) {
	.pmay-modal__card {
		width: min(100vw, 100%);
	}

	.pmay-plot-application .header-right {
		display: none;
	}

	.pmay-plot-application .desktop-stepper {
		display: none;
	}

	.pmay-plot-application .mobile-stepper {
		display: flex;
		justify-content: space-between;
		gap: 15px;
		padding: 10px 13px;
		background: #fff;
		border: 1px solid var(--border);
		border-radius: 9px;
		margin-bottom: 15px;
		font-size: .76rem;
	}

	.pmay-plot-application .mobile-step-title {
		font-weight: 800;
	}

	.pmay-plot-application .pmay-form-grid,
	.pmay-plot-application .form-grid {
		grid-template-columns: 1fr;
	}

	.pmay-plot-application .pmay-plot-options,
	.pmay-plot-application .plot-cards-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pmay-plot-application .form-action-bar {
		position: static;
		flex-direction: column;
	}

	.pmay-plot-application .action-left,
	.pmay-plot-application .action-right {
		width: 100%;
	}

	.pmay-plot-application .action-right > * {
		flex: 1;
	}
}
