/* Prempeh Alumni Join — front-end form */

.paf-join-wrap {
	max-width: 720px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
}

.paf-notice {
	padding: 14px 18px;
	border-radius: 6px;
	border: 1px solid transparent;
	margin-bottom: 20px;
	background: #eef6ff;
	border-color: #b8daff;
	color: #1a3d66;
}

.paf-notice--success { background: #eaf7ee; border-color: #b7e0c2; color: #1d4d2f; }
.paf-notice--error   { background: #fdecec; border-color: #f5b7b7; color: #6b1d1d; }
.paf-notice--warning { background: #fff8e5; border-color: #f0d999; color: #6b4d00; }

.paf-notice a {
	color: inherit;
	text-decoration: underline;
}

.paf-link {
	display: inline-block;
	margin-top: 6px;
	font-weight: 600;
	text-decoration: none;
}

.paf-link:hover,
.paf-link:focus {
	text-decoration: underline;
}

.paf-form {
	margin-top: 8px;
}

.paf-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 24px;
	margin-bottom: 20px;
}

.paf-field {
	display: flex;
	flex-direction: column;
	/* Half-width by default sizing; grows to fill a lone leftover slot
	   on its row instead of leaving a half-empty gap next to it — field
	   count is admin-configurable, so this can't rely on always pairing
	   up evenly. .paf-field--full below overrides this per-field, driven
	   by the Width setting in Settings → Form Fields. */
	flex: 1 1 260px;
}

.paf-field--full {
	flex-basis: 100%;
}

.paf-field label {
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.paf-field input[type="text"],
.paf-field input[type="email"],
.paf-field input[type="tel"],
.paf-field input[type="url"],
.paf-field input[type="number"],
.paf-field input[type="date"],
.paf-field select,
.paf-field textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #ccd1d7;
	border-radius: 6px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
}

.paf-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 11px;
	cursor: pointer;
}

.paf-field input:focus,
.paf-field select:focus,
.paf-field textarea:focus {
	outline: none;
	border-color: #1d4d2f;
	box-shadow: 0 0 0 2px rgba(29, 77, 47, 0.15);
}

.paf-field-help {
	margin: 6px 0 0;
	font-size: 13px;
	color: #6b7280;
}

.paf-required {
	color: #b3261e;
	margin-left: 2px;
}

/* Phone field */
.paf-phone__row {
	display: flex;
	gap: 8px;
}

.paf-phone__country {
	flex: 0 0 220px;
	min-width: 0;
}

.paf-phone__number {
	flex: 1 1 auto;
	min-width: 0;
}

.paf-phone__custom {
	margin-top: 8px;
}

/* Honeypot — must be invisible but present for bots to fill it. */
.paf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.paf-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 16px 0;
	font-size: 14px;
	line-height: 1.5;
}

.paf-consent input {
	margin-top: 3px;
}

/* Custom checkbox-type fields (distinct from the consent checkbox above).
   Selector scoped with .paf-field to outrank the bolder ".paf-field label"
   rule above, since this is itself a <label> nested inside a .paf-field. */
.paf-field .paf-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: 400;
	cursor: pointer;
}

.paf-checkbox input {
	margin: 0;
}

.paf-submit {
	margin-top: 12px;
}

.paf-btn {
	display: inline-block;
	padding: 12px 24px;
	background: #1d4d2f;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.paf-btn:hover {
	background: #163e25;
}

@media (max-width: 480px) {
	/* Below this, even a single 260px field plus its neighbour's gap
	   won't fit two per row, so .paf-fields already wraps to one column
	   on its own — only the phone row's fixed country width needs help. */
	.paf-phone__row {
		flex-direction: column;
	}
	.paf-phone__country {
		flex: 1 1 auto;
	}
}