/* NIOS Admission - Frontend Styles (Premium, colourful design - Astra + Elementor friendly) */
.nios-adm-wrap {
	max-width: 980px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
}

/* Hero banner at the top of the admission form */
.nios-adm-hero {
	background: linear-gradient(120deg, #2563eb 0%, #7c3aed 60%, #db2777 120%);
	border-radius: 16px 16px 0 0;
	padding: 30px 34px;
	color: #fff;
	margin-bottom: -1px;
	box-shadow: 0 10px 26px rgba(88, 28, 235, 0.18);
}

.nios-adm-hero h2 {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.3px;
}

.nios-adm-hero-brand {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.18);
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.nios-adm-hero p {
	margin: 0;
	font-size: 14px;
	opacity: 0.92;
}

.nios-adm-form,
.nios-adm-payment-box,
.nios-adm-receipt-box {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 8px 30px rgba(17, 24, 39, 0.07);
}

.nios-adm-form {
	border-radius: 0 0 16px 16px;
	border-top: none;
}

/* Section titles with colour-coded left accent + numbered badge */
.nios-adm-section-title {
	font-size: 19px;
	font-weight: 800;
	color: #0f172a;
	margin: 30px 0 18px;
	padding: 10px 16px 10px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-left: 5px solid #2563eb;
	background: #eff6ff;
	border-radius: 8px;
}

.nios-adm-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
}

.nios-adm-accent-blue { border-left-color: #2563eb; background: #eff6ff; }
.nios-adm-accent-blue .nios-adm-section-icon { background: #2563eb; }

.nios-adm-accent-purple { border-left-color: #7c3aed; background: #f5f3ff; }
.nios-adm-accent-purple .nios-adm-section-icon { background: #7c3aed; }

.nios-adm-accent-teal { border-left-color: #0d9488; background: #f0fdfa; }
.nios-adm-accent-teal .nios-adm-section-icon { background: #0d9488; }

.nios-adm-accent-orange { border-left-color: #ea580c; background: #fff7ed; }
.nios-adm-accent-orange .nios-adm-section-icon { background: #ea580c; }

.nios-adm-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px 24px;
}

.nios-adm-field.nios-adm-full {
	grid-column: 1 / -1;
}

.nios-adm-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: #111827;
}

.nios-adm-field .req {
	color: #dc2626;
}

.nios-adm-field .nios-adm-optional {
	color: #6b7280;
	font-weight: 400;
	font-size: 12px;
}

.nios-adm-field input[type="text"],
.nios-adm-field input[type="email"],
.nios-adm-field input[type="date"],
.nios-adm-field input[type="number"],
.nios-adm-field input[type="url"],
.nios-adm-field select,
.nios-adm-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	background: #f8fafc;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
	box-sizing: border-box;
}

.nios-adm-field input:focus,
.nios-adm-field select:focus,
.nios-adm-field textarea:focus {
	outline: none;
	border-color: #7c3aed;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.nios-adm-field input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 1.5px dashed #a5b4fc;
	border-radius: 10px;
	background: #f5f3ff;
	font-size: 13px;
	cursor: pointer;
}

.nios-adm-file-preview img {
	margin-top: 8px;
	max-height: 90px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.nios-adm-file-error {
	color: #dc2626;
	font-size: 12px;
	margin-top: 5px;
}

.nios-adm-subjects-wrap {
	margin-top: 10px;
	background: linear-gradient(180deg, #f5f3ff, #fdf4ff);
	border: 1px solid #e9d5ff;
	border-radius: 14px;
	padding: 22px;
}

.nios-adm-note {
	color: #b45309;
	background: #fffbeb;
	border: 1px solid #fde68a;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	display: inline-block;
}

.nios-adm-subjects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px 18px;
	margin-top: 14px;
}

.nios-adm-checkbox,
.nios-adm-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	padding: 9px 12px;
	border-radius: 9px;
	cursor: pointer;
	transition: border-color .12s ease, background .12s ease;
}

.nios-adm-checkbox:has(input:checked),
.nios-adm-radio:has(input:checked) {
	border-color: #7c3aed;
	background: #f5f3ff;
}

.nios-adm-checkbox input,
.nios-adm-radio input {
	width: 16px;
	height: 16px;
	accent-color: #7c3aed;
}

.nios-adm-checkbox.nios-adm-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.nios-adm-subject-count {
	margin-top: 14px;
	font-weight: 700;
	color: #6d28d9;
}

.nios-adm-inline-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.nios-adm-submit-wrap {
	margin-top: 32px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.nios-adm-btn {
	display: inline-block;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	color: #fff !important;
	border: none;
	padding: 14px 34px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 11px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(124, 58, 237, 0.28);
	transition: transform .12s ease, box-shadow .12s ease;
}

.nios-adm-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 26px rgba(124, 58, 237, 0.35);
	color: #fff !important;
}

.nios-adm-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}

.nios-adm-btn-outline {
	background: #ffffff;
	color: #7c3aed !important;
	border: 2px solid #7c3aed;
	box-shadow: none;
}

.nios-adm-btn-outline:hover {
	background: #f5f3ff;
	color: #6d28d9 !important;
	box-shadow: none;
}

.nios-adm-post-submit-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.nios-adm-btn-whatsapp {
	background: linear-gradient(135deg, #25d366, #128c7e);
	box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
}

.nios-adm-razorpay-box {
	background: linear-gradient(135deg, #eff6ff, #f5f3ff);
	border: 1px solid #c7d2fe;
	border-radius: 14px;
	padding: 20px;
	margin: 18px 0;
	text-align: center;
}

.nios-adm-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid #ddd6fe;
	border-top-color: #7c3aed;
	border-radius: 50%;
	animation: nios-adm-spin 0.7s linear infinite;
}

@keyframes nios-adm-spin {
	to { transform: rotate(360deg); }
}

.nios-adm-alert {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	margin-bottom: 18px;
}

.nios-adm-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
}

.nios-adm-alert-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
}

.nios-adm-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
}

/* Payment page */
.nios-adm-payment-details {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	background: linear-gradient(135deg, #f8fafc, #f5f3ff);
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 22px;
	margin: 18px 0;
}

.nios-adm-qr {
	order: 2;
	margin-left: auto;
	flex: 0 0 auto;
	text-align: center;
}

.nios-adm-qr img {
	width: 140px;
	height: 140px;
	object-fit: contain;
	border-radius: 12px;
	border: 2px solid #ddd6fe;
	background: #fff;
	padding: 8px;
	display: block;
	box-shadow: 0 6px 16px rgba(124, 58, 237, 0.15);
}

.nios-adm-qr-label {
	font-size: 11px;
	color: #6b7280;
	margin-top: 6px;
	font-weight: 600;
}

.nios-adm-account-details {
	order: 1;
	flex: 1;
	min-width: 220px;
	font-size: 14px;
	line-height: 1.6;
}

.nios-adm-divider {
	border: none;
	border-top: 1px solid #e5e7eb;
	margin: 26px 0;
}

.nios-adm-receipt-box h3 {
	color: #15803d;
	margin-top: 0;
}

.nios-adm-receipt-box {
	background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
	border-color: #bbf7d0;
}

.nios-adm-whatsapp-note {
	background: #ecfdf5;
	border: 1px solid #86efac;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13.5px;
	color: #166534;
}

.nios-adm-form-notice {
	margin-top: 22px;
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
	border: 2px solid #f59e0b;
	border-radius: 14px;
	padding: 18px 22px;
	text-align: center;
}

.nios-adm-form-notice p {
	margin: 4px 0;
	font-size: 14.5px;
	color: #78350f;
	line-height: 1.6;
}

.nios-adm-form-notice strong {
	color: #92400e;
}

.nios-adm-declaration {
	margin-top: 24px;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
}

.nios-adm-declaration label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	color: #374151;
	line-height: 1.5;
	cursor: pointer;
}

.nios-adm-declaration input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
	accent-color: #7c3aed;
}

.nios-adm-declaration a {
	color: #7c3aed;
	font-weight: 600;
}

@media (max-width: 640px) {
	.nios-adm-grid,
	.nios-adm-subjects-grid {
		grid-template-columns: 1fr;
	}
	.nios-adm-form,
	.nios-adm-payment-box,
	.nios-adm-hero {
		padding: 20px;
	}
	.nios-adm-hero h2 {
		font-size: 21px;
	}
}
