/* NCDES registration / SLP / course-enrollment forms
 * All styles are scoped under .ncdes-page so they don't bleed into
 * the surrounding WordPress theme.
 */

@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap");

html,
body {
	margin: 0;
	padding: 0;
	background: #f5f1eb;
	min-height: 100%;
}

.ncdes-page {
	max-width: 980px;
	margin: 0 auto;
	padding: 32px 28px 64px;
	background: #f5f1eb;
	font-family: "Source Serif 4", "Source Serif Pro", "Tiempos Text", Georgia,
		"Times New Roman", serif;
	color: #1f2937;
	line-height: 1.55;
}

.ncdes-page .standardText {
	font-size: 16px;
}

.ncdes-page span.required {
	color: #dc2626;
	font-weight: 700;
	display: inline-block;
	width: 14px;
	text-align: center;
}

/* ---------- Header (logo + page title) ---------- */
.ncdes-page .ncdes-header {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 8px 0 20px;
	border-bottom: 3px solid #d97757;
	margin-bottom: 28px;
}

.ncdes-page .ncdes-header img {
	width: 96px;
	height: 96px;
	flex-shrink: 0;
}

.ncdes-page h1 {
	font-size: 30px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.2;
}

.ncdes-page > p.standardText {
	background: #faefe5;
	border-left: 4px solid #d97757;
	padding: 10px 14px;
	margin: 0 0 24px;
	border-radius: 4px;
}

/* ---------- Section card: <h2> + <table> ---------- */
.ncdes-page h2 {
	background: linear-gradient(135deg, #d97757, #c15f3c);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	padding: 12px 18px;
	margin: 28px 0 0;
	border-radius: 8px 8px 0 0;
	letter-spacing: 0.2px;
}

.ncdes-page h2 + table {
	width: 100%;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 8px 8px;
	margin: 0 0 8px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	border-collapse: separate;
	border-spacing: 0;
}

.ncdes-page h2 + table td {
	padding: 10px 14px;
	vertical-align: middle;
}

.ncdes-page h2 + table tr:not(:last-child) td {
	border-bottom: 1px solid #f1f5f9;
}

.ncdes-page td label.standardText {
	font-weight: 500;
	color: #334155;
}

/* ---------- Form controls ---------- */
.ncdes-page input[type="text"],
.ncdes-page input[type="date"],
.ncdes-page input[type="email"],
.ncdes-page input[type="number"],
.ncdes-page select,
.ncdes-page textarea {
	font-size: 15px;
	font-family: inherit;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	color: #0f172a;
	min-width: 280px;
	max-width: 100%;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ncdes-page select {
	min-width: 300px;
	cursor: pointer;
}

.ncdes-page input[type="text"]:focus,
.ncdes-page input[type="date"]:focus,
.ncdes-page input[type="email"]:focus,
.ncdes-page input[type="number"]:focus,
.ncdes-page select:focus,
.ncdes-page textarea:focus {
	outline: none;
	border-color: #d97757;
	box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.22);
}

.ncdes-page input[readonly] {
	background: #f1f5f9;
	color: #475569;
	cursor: not-allowed;
}

.ncdes-page input[type="file"] {
	font-size: 14px;
	padding: 6px;
	border: 1px dashed #cbd5e1;
	border-radius: 6px;
	background: #f8fafc;
	max-width: 100%;
}

.ncdes-page input[type="checkbox"],
.ncdes-page input[type="radio"] {
	width: 16px;
	height: 16px;
	margin-right: 6px;
	vertical-align: middle;
	accent-color: #d97757;
	cursor: pointer;
}

.ncdes-page input[type="checkbox"] + label.standardText,
.ncdes-page input[type="radio"] + label.standardText {
	cursor: pointer;
}

/* ---------- Inline h3 (program type banner) ---------- */
.ncdes-page h3 {
	font-size: 16px;
	color: #c15f3c;
	background: #faefe5;
	padding: 10px 14px;
	border-left: 4px solid #d97757;
	margin: 8px 0;
	border-radius: 4px;
	display: inline-block;
}

/* ---------- Links ---------- */
.ncdes-page a {
	color: #c15f3c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ncdes-page a:hover {
	color: #a04a2c;
}

/* ---------- Error message ---------- */
.ncdes-page > p[style*="color:red"],
.ncdes-page > p[style*="color: red"] {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c !important;
	padding: 12px 16px;
	border-radius: 6px;
	margin: 0 0 20px;
	font-weight: 500;
}

/* ---------- Submit button ---------- */
.ncdes-page input[type="submit"] {
	background: linear-gradient(135deg, #d97757, #c15f3c);
	color: #fff;
	border: none;
	padding: 12px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.05s ease, box-shadow 0.15s ease, filter 0.15s ease;
	box-shadow: 0 2px 6px rgba(193, 95, 60, 0.28);
	margin-top: 20px;
	letter-spacing: 0.3px;
}

.ncdes-page input[type="submit"]:hover {
	filter: brightness(1.06);
	box-shadow: 0 4px 12px rgba(193, 95, 60, 0.36);
}

.ncdes-page input[type="submit"]:active {
	transform: translateY(1px);
	box-shadow: 0 1px 3px rgba(193, 95, 60, 0.28);
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
	.ncdes-page {
		padding: 16px 14px 32px;
	}

	.ncdes-page .ncdes-header {
		gap: 14px;
	}

	.ncdes-page .ncdes-header img {
		width: 64px;
		height: 64px;
	}

	.ncdes-page h1 {
		font-size: 22px;
	}

	.ncdes-page h2 + table,
	.ncdes-page h2 + table tbody,
	.ncdes-page h2 + table tr,
	.ncdes-page h2 + table td {
		display: block;
		width: 100% !important;
		text-align: left !important;
		white-space: normal !important;
	}

	.ncdes-page h2 + table td {
		padding: 8px 12px;
	}

	.ncdes-page h2 + table tr:not(:last-child) td:last-child {
		border-bottom: 1px solid #e2e8f0;
		padding-bottom: 14px;
	}

	.ncdes-page input[type="text"],
	.ncdes-page input[type="date"],
	.ncdes-page select,
	.ncdes-page textarea {
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
}
