/* ฟอร์มสมัครเรียน /สมัครเรียน/ — โหลดเฉพาะหน้าที่มี [hk_admission] */
.hka {
	--a-line: #dbe4f7;
	--a-soft: #f4f8ff;
	--a-err: #c62f3a;
	--a-ok: #0f8a5f;
	--a-text: #3a4766;
	--a-muted: #6b7799;
	max-width: 880px;
	margin: 0 auto;
	padding: 0 16px clamp(48px, 7vw, 96px);
	color: var(--a-text);
	font-size: 1rem;
	line-height: 1.6;
}

.hka *,
.hka *::before,
.hka *::after {
	box-sizing: border-box;
}

.hka h2,
.hka h3,
.hka legend,
.hka-btn {
	font-family: var(--wp--preset--font-family--fontsecondary, "Prompt", sans-serif);
}

/* ---------- กรอบฟอร์ม ---------- */
.hka-form,
.hka-done,
.hka-closed {
	position: relative;
	margin-top: -64px;
	padding: clamp(22px, 4vw, 44px);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(29, 63, 216, 0.07), 0 40px 80px -48px rgba(11, 27, 77, 0.5);
	z-index: 2;
}

.hka-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* แถบขั้นตอน */
.hka-progress {
	display: none;
	counter-reset: s;
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	gap: 8px;
}

.hka-form.is-stepped .hka-progress {
	display: flex;
}

.hka-progress li {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	font-size: 0.85rem;
	color: var(--a-muted);
}

.hka-progress li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 17px;
	left: calc(50% + 24px);
	right: calc(-50% + 24px);
	height: 2px;
	border-radius: 2px;
	background: var(--a-line);
	transition: background-color 0.4s;
}

.hka-progress-num {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--a-soft);
	border: 1.5px solid var(--a-line);
	color: var(--a-muted);
	font-family: var(--wp--preset--font-family--fontsecondary, "Prompt", sans-serif);
	font-weight: 500;
	transition: all 0.35s;
}

.hka-progress li.is-current {
	color: var(--hk-navy, #0b1b4d);
}

.hka-progress li.is-current .hka-progress-num {
	background: var(--hk-blue, #1d3fd8);
	border-color: var(--hk-blue, #1d3fd8);
	color: #fff;
	box-shadow: 0 0 0 5px rgba(29, 63, 216, 0.12);
}

.hka-progress li.is-done .hka-progress-num {
	background: #e3ecff;
	border-color: #e3ecff;
	color: var(--hk-blue, #1d3fd8);
	font-size: 0;
}

.hka-progress li.is-done .hka-progress-num::before {
	content: "✓";
	font-size: 1rem;
}

.hka-progress li.is-done::after {
	background: #9cbcf5;
}

/* ขั้นตอน */
.hka-step {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.hka-form:not(.is-stepped) .hka-step + .hka-step {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--a-line);
}

.hka-form.is-stepped .hka-step:not([hidden]) {
	animation: hka-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hka-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.hka-step-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0;
	margin-bottom: 4px;
}

.hka-step-num {
	font-size: 0.82rem;
	letter-spacing: 0.04em;
	color: var(--hk-blue, #1d3fd8);
}

.hka-step-title {
	font-size: clamp(1.35rem, 2.6vw, 1.7rem);
	font-weight: 500;
	color: var(--hk-navy, #0b1b4d);
	outline: none;
}

.hka-step-desc {
	margin: 0 0 22px;
	color: var(--a-muted);
}

/* ---------- ช่องกรอก ---------- */
.hka-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.hka-field {
	grid-column: 1 / -1;
	min-width: 0;
}

.hka-field.is-half {
	grid-column: span 1;
}

.hka-subhead {
	grid-column: 1 / -1;
	margin: 10px 0 -4px;
	padding-top: 16px;
	border-top: 1px dashed var(--a-line);
	font-family: var(--wp--preset--font-family--fontsecondary, "Prompt", sans-serif);
	font-size: 0.95rem;
	color: var(--hk-navy, #0b1b4d);
}

.hka-field > label,
.hka-field legend {
	display: block;
	margin-bottom: 6px;
	padding: 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--hk-navy, #0b1b4d);
}

.hka-field fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.hka-req {
	color: var(--a-err);
	font-weight: 500;
}

.hka-opt {
	color: var(--a-muted);
	font-weight: 400;
	font-size: 0.82rem;
}

.hka input:not([type="radio"]):not([type="checkbox"]),
.hka select,
.hka textarea {
	width: 100%;
	min-height: 50px;
	padding: 11px 14px;
	border: 1.5px solid var(--a-line);
	border-radius: 14px;
	background: #fff;
	color: var(--hk-navy, #0b1b4d);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.hka select {
	padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d3fd8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
	cursor: pointer;
}

.hka textarea {
	min-height: 96px;
	resize: vertical;
}

.hka input::placeholder,
.hka textarea::placeholder {
	color: #a3aec8;
}

.hka input:focus,
.hka select:focus,
.hka textarea:focus {
	outline: none;
	border-color: #4fa3f7;
	box-shadow: 0 0 0 4px rgba(79, 163, 247, 0.18);
}

.hka-field.has-error input,
.hka-field.has-error select,
.hka-field.has-error textarea {
	border-color: var(--a-err);
	background-color: #fff8f8;
}

.hka-msg {
	margin: 6px 0 0;
	color: var(--a-err);
	font-size: 0.86rem;
}

.hka-msg:empty {
	display: none;
}

.hka-help {
	margin: 6px 0 0;
	color: var(--a-muted);
	font-size: 0.86rem;
}

.hka-help a {
	color: var(--hk-blue, #1d3fd8);
}

/* ตัวเลือกแบบปุ่ม */
.hka-choices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.hka-choices.is-multi {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hka-choice {
	position: relative;
	display: block;
	cursor: pointer;
}

.hka-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hka-choice span {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	min-height: 50px;
	padding: 10px 14px;
	border: 1.5px solid var(--a-line);
	border-radius: 14px;
	background: #fff;
	color: var(--hk-navy, #0b1b4d);
	line-height: 1.4;
	transition: all 0.2s;
}

.hka-choices.is-multi .hka-choice span {
	min-height: 42px;
	padding: 6px 14px;
	border-radius: 999px;
}

.hka-choice span::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 2px solid #b7c4e8;
	border-radius: 50%;
	transition: all 0.2s;
}

.hka-choice input[type="checkbox"] + span::before {
	border-radius: 5px;
}

.hka-choice:hover span {
	border-color: #9cbcf5;
}

.hka-choice input:checked + span {
	border-color: var(--hk-blue, #1d3fd8);
	background: #eef3ff;
}

.hka-choice input[type="radio"]:checked + span::before {
	border-color: var(--hk-blue, #1d3fd8);
	background: radial-gradient(circle, var(--hk-blue, #1d3fd8) 0 4px, transparent 5px);
}

.hka-choice input[type="checkbox"]:checked + span::before {
	border-color: var(--hk-blue, #1d3fd8);
	background: var(--hk-blue, #1d3fd8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 12px;
}

.hka-choice input:focus-visible + span {
	box-shadow: 0 0 0 4px rgba(79, 163, 247, 0.25);
}

.hka-field.has-error .hka-choice span {
	border-color: #efb4b9;
}

/* ความยินยอม */
.hka-consent {
	margin-top: 24px;
}

.hka-choice.is-consent span {
	align-items: flex-start;
	padding: 16px 18px;
	background: var(--a-soft);
	font-size: 0.93rem;
	color: var(--a-text);
}

.hka-choice.is-consent span::before {
	margin-top: 3px;
}

.hka-consent.has-error .hka-choice span {
	border-color: var(--a-err);
}

/* สรุปข้อมูลก่อนส่ง */
.hka-review {
	display: grid;
	gap: 14px;
	margin-bottom: 26px;
}

.hka-review:empty {
	display: none;
}

.hka-review section {
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--a-soft);
}

.hka-review header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.hka-review h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	color: var(--hk-navy, #0b1b4d);
}

.hka-edit {
	border: 0;
	background: none;
	color: var(--hk-blue, #1d3fd8);
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	text-decoration: underline;
}

.hka-review dl,
.hka-done dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 20px;
	margin: 0;
}

.hka-review dl div {
	display: flex;
	gap: 8px;
	font-size: 0.92rem;
	min-width: 0;
}

.hka-review dt {
	flex: 0 0 auto;
	color: var(--a-muted);
}

.hka-review dt::after {
	content: ":";
}

.hka-review dd {
	margin: 0;
	color: var(--hk-navy, #0b1b4d);
	overflow-wrap: anywhere;
}

/* ปุ่ม */
.hka-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--a-line);
}

.hka-nav [data-next],
.hka-nav .is-submit {
	margin-left: auto;
}

.hka-form:not(.is-stepped) .hka-nav [data-next],
.hka-form:not(.is-stepped) .hka-nav [data-prev] {
	display: none;
}

.hka-form:not(.is-stepped) .hka-nav:not(:has(.is-submit)) {
	display: none;
}

.hka-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 28px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background: linear-gradient(120deg, var(--hk-blue, #1d3fd8), #4fa3f7);
	color: #fff;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 12px 26px -14px rgba(29, 63, 216, 0.85);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, background-color 0.2s;
}

.hka-btn:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 16px 30px -14px rgba(29, 63, 216, 0.95);
}

.hka-btn:active {
	transform: scale(0.98);
}

.hka-btn:disabled {
	opacity: 0.65;
	cursor: progress;
}

.hka-btn.is-line {
	background: #fff;
	border-color: var(--a-line);
	color: var(--hk-blue, #1d3fd8);
	box-shadow: none;
}

.hka-btn.is-line:hover {
	border-color: var(--hk-blue, #1d3fd8);
	color: var(--hk-blue, #1d3fd8);
}

.hka-btn.is-submit {
	padding: 0 36px;
	min-height: 54px;
	font-size: 1.05rem;
}

.hka-alert {
	margin: 0 0 22px;
	padding: 14px 18px 14px 48px;
	border-radius: 14px;
	background: #fdecee;
	color: #a1222c;
	position: relative;
}

.hka-alert::before {
	content: "!";
	position: absolute;
	left: 16px;
	top: 14px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--a-err);
	color: #fff;
	font-weight: 700;
	font-size: 0.8rem;
	line-height: 22px;
	text-align: center;
}

/* ---------- ส่งสำเร็จ ---------- */
.hka-done,
.hka-closed {
	text-align: center;
}

.hka-done h2,
.hka-closed h2 {
	margin: 0 0 4px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 500;
	color: var(--hk-navy, #0b1b4d);
}

.hka-done-icon {
	width: 76px;
	height: 76px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat center / 36px,
		linear-gradient(135deg, var(--hk-blue, #1d3fd8), #4fa3f7);
	box-shadow: 0 0 0 10px #eef3ff, 0 18px 30px -14px rgba(29, 63, 216, 0.8);
	animation: hka-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hka-pop {
	from { transform: scale(0.4); opacity: 0; }
	to { transform: none; opacity: 1; }
}

.hka-done-no {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	margin: 24px 0 8px;
	padding: 16px 34px;
	border: 2px dashed #9cbcf5;
	border-radius: 18px;
	background: var(--a-soft);
}

.hka-done-no span,
.hka-done-no small {
	color: var(--a-muted);
	font-size: 0.85rem;
}

.hka-done-no strong {
	font-family: var(--wp--preset--font-family--fontsecondary, "Prompt", sans-serif);
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--hk-blue, #1d3fd8);
}

.hka-next {
	counter-reset: n;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 26px 0;
	padding: 0;
	text-align: left;
}

.hka-next li {
	counter-increment: n;
	padding: 16px;
	border-radius: 16px;
	background: var(--a-soft);
	font-size: 0.92rem;
}

.hka-next li::before {
	content: counter(n);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: #fff;
	color: var(--hk-blue, #1d3fd8);
	font-weight: 600;
}

.hka-next b {
	display: block;
	color: var(--hk-navy, #0b1b4d);
	font-weight: 500;
}

.hka-done-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

/* ---------- ตรวจสอบสถานะ ---------- */
.hka-check {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 16px 28px;
	align-items: center;
	margin-top: 28px;
	padding: clamp(20px, 3vw, 30px);
	border-radius: 24px;
	background: var(--a-soft);
	box-shadow: inset 0 0 0 1px #e3ebfb;
}

.hka-check h2 {
	margin: 0 0 4px;
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--hk-navy, #0b1b4d);
}

.hka-check-text p {
	margin: 0;
	color: var(--a-muted);
	font-size: 0.92rem;
}

.hka-check-form {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 10px;
	align-items: end;
}

.hka-check-form label span {
	display: block;
	margin-bottom: 4px;
	font-size: 0.85rem;
	color: var(--a-muted);
}

.hka-check-form input {
	min-height: 48px !important;
}

.hka-check-result {
	grid-column: 1 / -1;
	margin: 0;
	padding: 14px 18px;
	border-radius: 14px;
	background: #fff;
}

.hka-check-result.is-err {
	color: #a1222c;
	background: #fdecee;
}

.hka-check-result p {
	margin: 6px 0 0;
}

.hka-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 500;
	background: #eef3ff;
	color: var(--hk-blue, #1d3fd8);
}

.hka-badge.is-ok {
	background: #e6f6ef;
	color: #0b6b4a;
}

.hka-badge.is-off {
	background: #f1f2f6;
	color: var(--a-muted);
}

/* ---------- มือถือ ---------- */
@media (max-width: 760px) {
	.hka {
		padding: 0 12px 56px;
	}

	.hka-form,
	.hka-done,
	.hka-closed {
		margin-top: -40px;
		border-radius: 22px;
		padding: 22px 18px;
	}

	.hka-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hka-field.is-half {
		grid-column: 1 / -1;
	}

	.hka-choices {
		grid-template-columns: 1fr;
	}

	.hka-progress {
		margin-bottom: 22px;
	}

	.hka-progress-label {
		display: none;
	}

	.hka-progress li.is-current .hka-progress-label {
		display: block;
		position: absolute;
		top: 42px;
		white-space: nowrap;
		font-size: 0.8rem;
	}

	.hka-progress li:not(:last-child)::after {
		left: calc(50% + 22px);
		right: calc(-50% + 22px);
	}

	.hka-form.is-stepped .hka-progress {
		padding-bottom: 22px;
	}

	.hka-review dl {
		grid-template-columns: 1fr;
	}

	.hka-nav {
		position: sticky;
		bottom: 0;
		margin: 26px -18px -22px;
		padding: 14px 18px;
		border-radius: 0 0 22px 22px;
		background: rgba(255, 255, 255, 0.97);
		box-shadow: 0 -10px 20px -16px rgba(11, 27, 77, 0.35);
	}

	.hka-nav .hka-btn {
		flex: 1;
		padding: 0 16px;
	}

	.hka-next {
		grid-template-columns: 1fr;
	}

	.hka-check {
		grid-template-columns: 1fr;
	}

	.hka-check-form {
		grid-template-columns: 1fr;
	}
}

/* พิมพ์ */
@media print {
	.hka-nav,
	.hka-progress {
		display: none !important;
	}
}

/* ปุ่มที่เป็นลิงก์: กันสีลิงก์ของธีมทับ */
.hka a.hka-btn,
.hka a.hka-btn:hover {
	color: #fff;
	text-decoration: none;
}

.hka a.hka-btn.is-line,
.hka a.hka-btn.is-line:hover {
	color: var(--hk-blue, #1d3fd8);
}

/* ช่องที่ซ่อนตามคำตอบ */
.hka-field[hidden] {
	display: none !important;
}

/* สวิตช์ (เช่น ที่อยู่เดียวกับนักเรียน) */
.hka-choice.is-switch span {
	min-height: 46px;
	background: var(--a-soft);
	border-style: dashed;
}

.hka-choice.is-switch input:checked + span {
	border-style: solid;
}

.hka-age {
	color: var(--hk-blue, #1d3fd8);
	font-weight: 500;
}

/* เอกสารวันมอบตัว */
.hka-docs {
	margin: 0 0 24px;
	padding: 18px 20px;
	border-radius: 16px;
	background: #fffaf0;
	box-shadow: inset 0 0 0 1px #f3e2bd;
}

.hka-docs h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 500;
	color: #7a5200;
}

.hka-docs ol {
	margin: 0;
	padding-left: 22px;
	columns: 2;
	column-gap: 28px;
	font-size: 0.9rem;
}

.hka-docs li {
	break-inside: avoid;
	margin-bottom: 3px;
}

@media (max-width: 760px) {
	.hka-docs ol {
		columns: 1;
	}
}

/* ===== ปฏิทินเลือกวันนัด ===== */
.hka-cal-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0;
	pointer-events: none;
}

.hka-field.is-visit {
	position: relative;
}

.hka-cal {
	max-width: 440px;
	padding: 16px;
	border: 1.5px solid var(--a-line);
	border-radius: 18px;
	background: #fff;
}

.hka-field.has-error .hka-cal {
	border-color: var(--a-err);
}

.hka-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.hka-cal-head strong {
	font-family: var(--wp--preset--font-family--fontsecondary, "Prompt", sans-serif);
	font-weight: 500;
	color: var(--hk-navy, #0b1b4d);
}

.hka-cal-nav {
	width: 38px;
	height: 38px;
	border: 1px solid var(--a-line);
	border-radius: 50%;
	background: #fff;
	color: var(--hk-blue, #1d3fd8);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.hka-cal-nav:disabled {
	opacity: 0.3;
	cursor: default;
}

.hka-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.hka-cal-dow {
	padding: 4px 0;
	text-align: center;
	font-size: 0.78rem;
	color: var(--a-muted);
}

.hka-cal-dow.is-we {
	color: #c3cbe0;
}

.hka-cal-day {
	position: relative;
	aspect-ratio: 1;
	border: 0;
	border-radius: 12px;
	background: #eef4ff;
	color: var(--hk-navy, #0b1b4d);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, transform 0.2s;
}

.hka-cal-day:hover:not(:disabled) {
	background: #d6e5ff;
}

.hka-cal-day:active:not(:disabled) {
	transform: scale(0.94);
}

.hka-cal-day:disabled {
	cursor: not-allowed;
	background: transparent;
	color: #c3cbe0;
}

.hka-cal-day.is-holiday {
	color: #d48a8f;
	text-decoration: line-through;
}

.hka-cal-day.is-holiday i {
	position: absolute;
	left: 50%;
	bottom: 5px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--a-err);
}

.hka-cal-day.is-out {
	color: #dfe4f0;
}

.hka-cal-day.is-picked {
	background: var(--hk-blue, #1d3fd8);
	color: #fff;
	box-shadow: 0 8px 16px -8px rgba(29, 63, 216, 0.8);
}

.hka-cal-day:focus-visible {
	outline: 3px solid rgba(79, 163, 247, 0.5);
	outline-offset: 1px;
}

.hka-cal-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 12px 0 0;
	font-size: 0.78rem;
	color: var(--a-muted);
}

.hka-cal-legend span::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 5px;
	border-radius: 3px;
	vertical-align: -1px;
}

.hka-cal-legend .is-ok::before {
	background: #eef4ff;
	box-shadow: inset 0 0 0 1px #c9dafb;
}

.hka-cal-legend .is-holiday::before {
	background: var(--a-err);
	border-radius: 50%;
	width: 6px;
	height: 6px;
}

.hka-cal-legend .is-weekend::before {
	background: #f1f3f8;
}

.hka-cal-chosen {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 12px;
	background: #f6f8fc;
	color: var(--a-muted);
	font-size: 0.92rem;
}

.hka-cal-chosen.is-set {
	background: #e6f6ef;
	color: #0b6b4a;
}

.hka-cal-chosen strong {
	margin-left: 6px;
	font-weight: 500;
}

/* หน้าส่งสำเร็จ: วันนัด */
.hka-done-visit {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	margin: 8px 0 0;
	padding: 12px 24px;
	border-radius: 14px;
	background: #e6f6ef;
	color: #0b6b4a;
}

.hka-done-visit span {
	font-size: 0.85rem;
}

.hka-done-visit strong {
	font-family: var(--wp--preset--font-family--fontsecondary, "Prompt", sans-serif);
	font-size: 1.1rem;
	font-weight: 500;
}
