/* Registration & multi-step form tables */

#main {
	margin: 0 auto;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

fieldset {
	border: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

legend {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 16px;
	padding: 0;
	color: #1e40af;
	letter-spacing: -0.01em;
}

fieldset.sectionwrap {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 20px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#feedbackform table,
#frm-add table,
table#detail,
#main table {
	width: 100%;
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 0;
	border: none;
}

#feedbackform table tr,
#frm-add table tr,
table#detail tr,
#main table tr {
	height: auto;
}

#feedbackform table td,
#feedbackform table th,
#frm-add table td,
#frm-add table th,
table#detail td,
table#detail th,
#main table td,
#main table th {
	line-height: 1.5;
	border: none;
	border-bottom: 1px solid #f1f5f9;
	padding: 12px 8px;
	text-align: left;
	vertical-align: middle;
	font-size: 14px;
	color: #1e293b;
}

#feedbackform table tr:last-child td,
table#detail tr:last-child td {
	border-bottom: none;
}

#feedbackform table td:first-child,
table#detail td:first-child,
#main table td:first-child {
	width: 28%;
	font-weight: 500;
	color: #475569;
	padding-right: 16px;
}

#feedbackform table td input[type=text],
#feedbackform table td input[type=password],
#feedbackform table td input[type=file],
#frm-add table td input[type=text],
table#detail td input[type=text],
#main table td input[type=text] {
	width: 100%;
	max-width: 360px;
	box-sizing: border-box;
}

#feedbackform table td input.small,
table#detail td input.small,
#main table td input.small {
	width: 120px;
	max-width: 120px;
}

#feedbackform table td input[type=submit],
#frm-add table td input[type=submit],
table#detail td input[type=submit] {
	margin-left: 0;
}

#feedbackform select,
#frm-add select,
table#detail select {
	min-width: 120px;
}

#steps {
	list-style: none;
	width: 100%;
	overflow: hidden;
	margin: 0 0 24px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	background: #f1f5f9;
	border-radius: 12px;
	padding: 12px;
	box-sizing: border-box;
}

#steps li {
	font-size: 15px;
	float: none;
	flex: 1 1 140px;
	padding: 12px 16px;
	color: #94a3b8;
	background: transparent;
	border-radius: 8px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}

#steps li span {
	font-size: 11px;
	display: block;
	font-weight: 400;
	margin-top: 2px;
	opacity: 0.85;
}

#steps li.current {
	color: #1e40af;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.prev,
.next {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
	padding: 10px 20px;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.prev:hover,
.next:hover {
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(15, 23, 42, 0.1);
	color: #fff;
}

.prev {
	float: left;
	position: static;
	left: auto;
}

.next {
	float: right;
	position: static;
	right: auto;
}

#feedbackform input[type=radio] {
	accent-color: #1e40af;
	margin-right: 6px;
}

#feedbackform input[type=checkbox] {
	accent-color: #059669;
	margin-right: 8px;
}

@media (max-width: 768px) {
	fieldset.sectionwrap {
		padding: 16px;
	}

	#feedbackform table td:first-child,
	table#detail td:first-child {
		display: block;
		width: 100%;
		padding-bottom: 4px;
		border-bottom: none;
	}

	#feedbackform table td,
	table#detail td {
		display: block;
		width: 100%;
		padding-top: 0;
		padding-bottom: 16px;
	}

	#steps li {
		flex: 1 1 100%;
	}
}
