/* Rankers Education Student Portal – Frontend Styles */

/* Focus ring on input wrapper */
#resp-input-wrap:focus-within {
	border-color: #2271b1 !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(34,113,177,.12) !important;
}

#resp-search-btn:hover {
	opacity: .88 !important;
}

/* Loading */
#resp-result .resp-loading {
	text-align: center;
	padding: 40px 20px;
	color: #64748b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.resp-spinner {
	display: inline-block;
	width: 34px;
	height: 34px;
	border: 3px solid #e2e8f0;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: resp-spin .7s linear infinite;
	margin-bottom: 12px;
}

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

/* Not found */
#resp-result .resp-not-found {
	background: #fff8f8;
	border: 1px solid #fecaca;
	border-radius: 12px;
	padding: 28px;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#resp-result .resp-not-found p {
	margin: 6px 0 0;
	font-size: 15px;
	font-weight: 500;
	color: #dc2626;
}

/* Student card */
#resp-result .resp-student-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0,0,0,.09);
	border: 1px solid #e2e8f0;
	animation: resp-fadein .3s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

@keyframes resp-fadein {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Card header */
#resp-result .resp-card-header {
	background: linear-gradient(135deg, #1a3a6b 0%, #2271b1 100%);
	padding: 26px 28px 20px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

#resp-result .resp-avatar {
	width: 56px;
	height: 56px;
	min-width: 56px;
	background: rgba(255,255,255,.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	color: #ffffff;
	border: 2px solid rgba(255,255,255,.3);
}

#resp-result .resp-header-info {
	flex: 1;
	min-width: 0;
}

#resp-result .resp-student-name {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	margin: 0 0 7px !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	background: none !important;
	border: none !important;
}

#resp-result .resp-admission-badge {
	display: inline-block;
	background: rgba(255,255,255,.18);
	border: 1px solid rgba(255,255,255,.3);
	border-radius: 20px;
	padding: 3px 13px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .05em;
	color: #ffffff;
}

/* Details grid */
#resp-result .resp-card-body {
	padding: 24px 28px;
}

#resp-result .resp-details-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

#resp-result .resp-detail-item {
	background: #f8fafc;
	border-radius: 10px;
	padding: 13px 15px;
	border: 1px solid #e8edf5;
}

#resp-result .resp-detail-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #94a3b8;
	margin: 0 0 5px;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
}

#resp-result .resp-detail-label svg {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
}

#resp-result .resp-detail-value {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	word-break: break-word;
	margin: 0;
	padding: 0;
}

/* Pay button */
#resp-result .resp-card-footer {
	padding: 0 28px 26px;
}

#resp-result a.resp-pay-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 9px !important;
	width: 100% !important;
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	border-radius: 10px !important;
	padding: 15px 20px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: .02em !important;
	box-shadow: 0 4px 14px rgba(245,158,11,.3) !important;
	transition: transform .15s, box-shadow .15s;
	border: none !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
}

#resp-result a.resp-pay-btn:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 20px rgba(245,158,11,.42) !important;
	color: #ffffff !important;
}

#resp-result a.resp-pay-btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

#resp-result .resp-no-payment {
	text-align: center;
	color: #94a3b8;
	font-size: 13px;
	padding: 8px;
	margin: 0;
}

/* Responsive */
@media (max-width: 500px) {
	#resp-result .resp-details-grid {
		grid-template-columns: 1fr;
	}
	#resp-result .resp-card-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	#resp-result .resp-card-body,
	#resp-result .resp-card-footer {
		padding-left: 18px;
		padding-right: 18px;
	}
}
