/* ========================================================================
   AHPC Register — public styles
   ======================================================================== */

.ahpc-hero,
.ahpc-register {
	--ahpc-navy: #171f3d;
	--ahpc-navy-2: #202a4e;
	--ahpc-teal: #4ec7bf;
	--ahpc-teal-dark: #3aada6;
	--ahpc-ink: #1e2430;
	--ahpc-muted: #6b7280;
	--ahpc-line: #e5e8ef;
	box-sizing: border-box;
}
.ahpc-hero *,
.ahpc-register * {
	box-sizing: inherit;
}

/* ------------------------------------------------------------------
   Homepage "Check the Register" block
   ------------------------------------------------------------------ */

.ahpc-hero {
	background: var(--ahpc-navy);
	color: #fff;
	padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem);
}

.ahpc-hero__inner {
	max-width: 640px;
}

.ahpc-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	padding: 0.5em 1.15em;
	font-size: 0.95rem;
	line-height: 1;
	color: #fff;
}

.ahpc-hero__dot {
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: var(--ahpc-teal);
	flex: none;
}

.ahpc-hero__title {
	margin: 0.6em 0 0.45em;
	color: #fff;
	font-size: clamp(2.1rem, 5.2vw, 3.4rem);
	font-weight: 700;
	line-height: 1.08;
}

.ahpc-hero__text {
	margin: 0 0 1.7em;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	line-height: 1.65;
	max-width: 58ch;
}

.ahpc-hero__form {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
	max-width: 560px;
}

.ahpc-hero__inputwrap {
	position: relative;
	flex: 1 1 auto;
	display: block;
	margin: 0;
}

.ahpc-hero__icon {
	position: absolute;
	left: 0.95rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.15rem;
	height: 1.15rem;
	color: #6b7280;
	pointer-events: none;
}

.ahpc-hero .ahpc-hero__inputwrap input[type="search"] {
	width: 100%;
	height: 3.4rem;
	border: 0;
	border-radius: 8px;
	padding: 0 1rem 0 2.7rem;
	font-size: 1rem;
	color: var(--ahpc-ink);
	background: #fff;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.ahpc-hero .ahpc-hero__inputwrap input[type="search"]:focus {
	outline: 3px solid var(--ahpc-teal);
	outline-offset: 1px;
}

.ahpc-hero .ahpc-hero__btn {
	flex: none;
	height: 3.4rem;
	border: 0;
	border-radius: 8px;
	padding: 0 1.9rem;
	background: var(--ahpc-teal);
	color: #0d2b29;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ahpc-hero .ahpc-hero__btn:hover,
.ahpc-hero .ahpc-hero__btn:focus {
	background: var(--ahpc-teal-dark);
	color: #06201e;
}

.ahpc-hero__count {
	margin-top: 2.2rem;
}

.ahpc-hero__num {
	display: block;
	color: var(--ahpc-teal);
	font-size: clamp(2rem, 4.5vw, 2.9rem);
	font-weight: 700;
	line-height: 1.1;
}

.ahpc-hero__countlabel {
	margin: 0.35em 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.ahpc-hero__phone {
	display: flex;
	align-items: center;
	gap: 0.55em;
	margin: 2rem 0 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.95rem;
}

.ahpc-hero__phone svg {
	width: 1em;
	height: 1em;
	flex: none;
}

@media (max-width: 560px) {
	.ahpc-hero__form {
		flex-direction: column;
	}
	.ahpc-hero .ahpc-hero__btn {
		width: 100%;
	}
}

/* ------------------------------------------------------------------
   Public register table
   ------------------------------------------------------------------ */

.ahpc-register {
	color: var(--ahpc-ink);
	font-size: 1rem;
	margin: 1rem 0 2rem;
}

/* Toolbar */
.ahpc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.ahpc-search {
	position: relative;
	flex: 1 1 260px;
	min-width: 220px;
	margin: 0;
}

.ahpc-search svg {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.05rem;
	height: 1.05rem;
	color: var(--ahpc-muted);
	pointer-events: none;
}

.ahpc-register .ahpc-search__input {
	width: 100%;
	height: 2.9rem;
	border: 1px solid var(--ahpc-line);
	border-radius: 10px;
	padding: 0 0.9rem 0 2.45rem;
	font-size: 0.98rem;
	background: #fff;
	color: var(--ahpc-ink);
	-webkit-appearance: none;
	appearance: none;
}

.ahpc-register .ahpc-search__input:focus,
.ahpc-register .ahpc-filter__select:focus,
.ahpc-register .ahpc-perpage__select:focus {
	outline: 2px solid var(--ahpc-teal);
	outline-offset: 1px;
	border-color: var(--ahpc-teal);
}

.ahpc-filter,
.ahpc-perpage {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.92rem;
	color: var(--ahpc-muted);
}

.ahpc-register select {
	height: 2.9rem;
	border: 1px solid var(--ahpc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ahpc-ink);
	font-size: 0.95rem;
	padding: 0 0.7rem;
	max-width: 100%;
}

.ahpc-register .ahpc-clear {
	height: 2.9rem;
	border: 1px solid var(--ahpc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ahpc-ink);
	font-size: 0.92rem;
	padding: 0 1rem;
	cursor: pointer;
}

.ahpc-register .ahpc-clear:hover {
	border-color: var(--ahpc-teal);
	color: var(--ahpc-teal-dark);
}

/* Table */
.ahpc-tablewrap {
	background: #fff;
	border: 1px solid var(--ahpc-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(23, 31, 61, 0.06), 0 8px 24px -18px rgba(23, 31, 61, 0.25);
}

.ahpc-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	border: 0;
	font-size: 0.98rem;
}

.ahpc-table thead th {
	background: var(--ahpc-navy);
	color: #fff;
	text-align: left;
	padding: 0;
	border: 0;
	font-weight: 600;
}

.ahpc-table .ahpc-sort {
	display: flex;
	align-items: center;
	gap: 0.4em;
	width: 100%;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	font-weight: 600;
	padding: 0.95rem 1.1rem;
	cursor: pointer;
	text-align: left;
}

.ahpc-table .ahpc-sort:hover,
.ahpc-table .ahpc-sort:focus {
	background: var(--ahpc-navy-2);
	color: #fff;
	outline: none;
}

.ahpc-sort__arrow::after {
	content: "↕";
	opacity: 0.45;
	font-size: 0.85em;
}

th[aria-sort="ascending"] .ahpc-sort__arrow::after {
	content: "↑";
	opacity: 1;
	color: var(--ahpc-teal);
}

th[aria-sort="descending"] .ahpc-sort__arrow::after {
	content: "↓";
	opacity: 1;
	color: var(--ahpc-teal);
}

.ahpc-table tbody td {
	padding: 0.8rem 1.1rem;
	border: 0;
	border-top: 1px solid var(--ahpc-line);
	vertical-align: middle;
	background: transparent;
}

.ahpc-table tbody tr:nth-child(even) td {
	background: #f8fafc;
}

.ahpc-table tbody tr:hover td {
	background: #eefaf9;
}

.ahpc-pill {
	display: inline-block;
	background: rgba(78, 199, 191, 0.12);
	color: #22726c;
	border-radius: 999px;
	padding: 0.28em 0.85em;
	font-size: 0.88em;
	font-weight: 500;
	white-space: nowrap;
}

.ahpc-regno {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
	letter-spacing: 0.02em;
	color: var(--ahpc-navy);
	background: #eef1f7;
	border-radius: 6px;
	padding: 0.22em 0.5em;
	white-space: nowrap;
}

.ahpc-noresults {
	margin: 0;
	padding: 2.2rem 1.2rem;
	text-align: center;
	color: var(--ahpc-muted);
}

/* Footer bar: info + pagination */
.ahpc-footerbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.9rem;
}

.ahpc-info {
	margin: 0;
	color: var(--ahpc-muted);
	font-size: 0.92rem;
}

.ahpc-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.ahpc-pagination button {
	min-width: 2.4rem;
	height: 2.4rem;
	border: 1px solid var(--ahpc-line);
	border-radius: 9px;
	background: #fff;
	color: var(--ahpc-ink);
	font-size: 0.92rem;
	padding: 0 0.6rem;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease;
}

.ahpc-pagination button:hover:not(:disabled) {
	border-color: var(--ahpc-teal);
	color: var(--ahpc-teal-dark);
}

.ahpc-pagination button[aria-current="page"] {
	background: var(--ahpc-navy);
	border-color: var(--ahpc-navy);
	color: #fff;
	font-weight: 600;
}

.ahpc-pagination button:disabled {
	opacity: 0.4;
	cursor: default;
}

.ahpc-pagination .ahpc-ellipsis {
	align-self: center;
	color: var(--ahpc-muted);
	padding: 0 0.15rem;
}

/* ------------------------------------------------------------------
   Mobile: table becomes stacked cards
   ------------------------------------------------------------------ */

@media (max-width: 700px) {
	.ahpc-toolbar {
		gap: 0.5rem;
	}
	.ahpc-search {
		flex-basis: 100%;
	}
	.ahpc-filter {
		flex: 1 1 auto;
	}
	.ahpc-filter .ahpc-filter__select {
		width: 100%;
	}

	.ahpc-tablewrap {
		border: 0;
		background: none;
		box-shadow: none;
		border-radius: 0;
		overflow: visible;
	}

	.ahpc-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
	}

	.ahpc-table,
	.ahpc-table tbody,
	.ahpc-table tr,
	.ahpc-table td {
		display: block;
		width: 100%;
	}

	.ahpc-table tbody tr {
		background: #fff;
		border: 1px solid var(--ahpc-line);
		border-radius: 12px;
		margin-bottom: 0.7rem;
		padding: 0.35rem 0;
		box-shadow: 0 1px 2px rgba(23, 31, 61, 0.05);
	}

	.ahpc-table tbody td,
	.ahpc-table tbody tr:nth-child(even) td,
	.ahpc-table tbody tr:hover td {
		background: none;
		border: 0;
		padding: 0.35rem 1rem;
	}

	.ahpc-table tbody td::before {
		content: attr(data-label);
		display: block;
		font-size: 0.72rem;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: var(--ahpc-muted);
		margin-bottom: 0.15rem;
	}

	.ahpc-table tbody td:first-child {
		font-weight: 600;
		padding-top: 0.75rem;
	}

	.ahpc-table tbody td:last-child {
		padding-bottom: 0.8rem;
	}

	.ahpc-footerbar {
		flex-direction: column;
		align-items: center;
	}
}
