/* ===== SKP Pre-Test — สไตล์ชีตกลาง (ใช้ร่วมกันหลายหน้า) ===== */
:root {
	--pt-blue: #2563eb;
	--pt-blue-d: #1e3a8a;
	--pt-indigo: #4f46e5;
	--pt-pink: #ec4899;
	--pt-ink: #1f2937;
	--pt-muted: #6b7280;
	--pt-bg: #f6f8fc;
	--pt-line: #e5e7eb;
	--pt-radius: 18px;
	--pt-shadow: 0 10px 30px rgba(30, 58, 138, .10);
}

body.pt-body {
	font-family: "Anuphan", "Prompt", sans-serif;
	background: var(--pt-bg);
	color: var(--pt-ink);
	margin: 0;
}

.pt-page { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }

/* แถบหัวแบบไล่เฉด */
.pt-head {
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #4f46e5 100%);
	color: #fff; border-radius: 22px 22px 0 0; padding: 30px 28px; text-align: center;
	position: relative; overflow: hidden;
}
.pt-head::after {
	content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
	background: rgba(236, 72, 153, .18); bottom: -120px; right: -50px;
}
.pt-head .ico {
	width: 60px; height: 60px; border-radius: 16px; background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .4); display: grid; place-items: center;
	font-size: 1.7rem; margin: 0 auto 12px; position: relative; z-index: 1;
}
.pt-head h1 { font-family: "Prompt", sans-serif; font-weight: 800; font-size: 1.6rem; margin: 0; position: relative; z-index: 1; }
.pt-head p { margin: 6px 0 0; opacity: .92; position: relative; z-index: 1; }

/* การ์ดเนื้อหา */
.pt-panel {
	background: #fff; border: 1px solid #eef1f7; border-top: 0;
	border-radius: 0 0 22px 22px; box-shadow: var(--pt-shadow); padding: 28px;
}

/* หัวข้อย่อยในฟอร์ม */
.pt-group-title {
	font-family: "Prompt", sans-serif; font-weight: 700; color: var(--pt-blue-d);
	font-size: 1.05rem; margin: 6px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #eef1f7;
	display: flex; align-items: center; gap: 8px;
}

/* ช่องกรอก */
.pt-panel label, .pt-field label { font-weight: 600; color: var(--pt-ink); margin-bottom: 6px; }
.pt-panel .form-control, .pt-panel .form-select {
	border-radius: 12px; padding: 11px 14px; border: 1.5px solid var(--pt-line); font-size: 1rem;
	line-height: 1.6;
}
/* select: Chrome บังคับ line-height เป็น normal เสมอ ต้องใช้ height สูงพอ + ไม่มี padding บน-ล่าง
   ข้อความไทย (สระ/วรรณยุกต์) จึงไม่โดนตัด และอยู่กึ่งกลางช่อง */
.pt-panel select.form-control, .pt-panel select.form-select, .pt-field select.form-control {
	height: 50px; padding: 0 14px; line-height: normal;
}
.pt-panel .form-control:focus, .pt-panel .form-select:focus {
	border-color: var(--pt-blue); box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}
.pt-hint { font-size: .82rem; color: var(--pt-muted); margin-top: 4px; }

/* ปุ่ม */
.pt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; border: 0; border-radius: 999px; padding: 14px; font-weight: 700; font-size: 1.08rem;
	color: #fff; background: var(--pt-pink); box-shadow: 0 10px 24px rgba(236, 72, 153, .4);
	transition: transform .15s, box-shadow .15s; cursor: pointer; text-decoration: none;
}
.pt-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(236, 72, 153, .5); color: #fff; }
.pt-btn-ghost {
	display: inline-flex; align-items: center; gap: 6px; color: #fff;
	text-decoration: none; font-weight: 600; opacity: .95;
}
.pt-btn-ghost:hover { color: #fff; opacity: 1; }

.pt-back { margin-bottom: 14px; }
.pt-back a { color: var(--pt-blue); text-decoration: none; font-weight: 600; }
.pt-back a:hover { text-decoration: underline; }

/* กล่อง autocomplete โรงเรียน */
.pt-panel .list-group-item.school-item { cursor: pointer; border-color: #eef1f7; }
.pt-panel .list-group-item.school-item:hover { background: #eef4ff; }

/* alert */
.pt-alert { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.pt-alert.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

@media (max-width: 640px) {
	.pt-head { padding: 24px 18px; }
	.pt-panel { padding: 20px 16px; }
}

/* แถบหัวเรื่องสำหรับหน้าภายใน (วางในพื้นที่เนื้อหา) */
.pt-titleband {
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #4f46e5 100%);
	color: #fff; border-radius: 20px; padding: 24px 28px; margin: 20px 0 24px;
	box-shadow: var(--pt-shadow); position: relative; overflow: hidden;
}
.pt-titleband::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(236,72,153,.18); bottom: -100px; right: -40px; }
.pt-titleband h1 { font-family: "Prompt", sans-serif; font-weight: 800; font-size: 1.5rem; margin: 0; position: relative; z-index: 1; }
.pt-titleband p { margin: 4px 0 0; opacity: .92; position: relative; z-index: 1; }

/* พื้นหลังอ่อนสำหรับ section เนื้อหาในหน้า template เดิม */
.pt-soft-bg { background: var(--pt-bg); }
