/**
 * Christian Members - front-end styles.
 *
 * Deliberately theme-neutral: inherits the Charifund theme's fonts and colours
 * and only lays the forms out.
 */

.pcf-form,
.pcf-directory {
	--pcf-border: #dcdfe4;
	--pcf-muted: #6b7280;
	--pcf-accent: #1f5f8b;
	--pcf-radius: 8px;

	max-width: 900px;
	margin: 0 auto;
}

.pcf-form {
	background: #fff;
	border: 1px solid var(--pcf-border);
	border-radius: var(--pcf-radius);
	padding: 28px;
}

.pcf-legend {
	margin: 28px 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--pcf-border);
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.pcf-legend:first-of-type {
	margin-top: 0;
}

.pcf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 4px 20px;
}

.pcf-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 4px 20px;
}

.pcf-field {
	margin: 0 0 16px;
}

.pcf-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	font-size: 0.92rem;
}

.pcf-field small {
	display: block;
	margin-top: 4px;
	color: var(--pcf-muted);
	font-size: 0.8rem;
}

.pcf-field input[type="text"],
.pcf-field input[type="email"],
.pcf-field input[type="tel"],
.pcf-field input[type="date"],
.pcf-field input[type="password"],
.pcf-field select,
.pcf-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--pcf-border);
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.4;
}

.pcf-field select:disabled {
	background: #f4f5f7;
	color: var(--pcf-muted);
}

.pcf-field input:focus,
.pcf-field select:focus,
.pcf-field textarea:focus {
	outline: 2px solid var(--pcf-accent);
	outline-offset: 1px;
	border-color: var(--pcf-accent);
}

.pcf-field--check label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
}

.pcf-field--check input {
	margin-top: 3px;
}

.pcf-required {
	color: #b32d2e;
}

/* The honeypot must be reachable by bots but invisible to people. */
.pcf-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.pcf-quota {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 24px;
	padding: 12px 16px;
	border-radius: 6px;
	background: #eef5fa;
	border: 1px solid #cfe1ee;
}

.pcf-quota strong {
	font-size: 1.5rem;
	line-height: 1;
	color: var(--pcf-accent);
}

.pcf-quota span {
	color: var(--pcf-muted);
	font-size: 0.9rem;
}

.pcf-actions {
	margin: 24px 0 0;
}

.pcf-button {
	display: inline-block;
	padding: 12px 26px;
	border: 0;
	border-radius: 6px;
	background: var(--pcf-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pcf-button:hover,
.pcf-button:focus {
	background: #17475f;
	color: #fff;
}

.pcf-alt {
	margin: 18px 0 0;
	color: var(--pcf-muted);
	font-size: 0.9rem;
}

.pcf-sep {
	margin: 0 6px;
}

.pcf-muted {
	color: var(--pcf-muted);
}

/* Notices ---------------------------------------------------------------- */

.pcf-notice {
	max-width: 900px;
	margin: 0 auto 20px;
	padding: 14px 18px;
	border-radius: 6px;
	border-left: 4px solid;
	font-size: 0.95rem;
}

.pcf-notice ul {
	margin: 0;
	padding-left: 18px;
}

.pcf-notice ul li + li {
	margin-top: 4px;
}

.pcf-notice p {
	margin: 0;
}

.pcf-notice--error {
	background: #fdf0f0;
	border-color: #b32d2e;
	color: #8a2224;
}

.pcf-notice--success {
	background: #eef7ee;
	border-color: #2f7a35;
	color: #235c28;
}

.pcf-notice--closed {
	background: #fdf7e7;
	border-color: #d8a417;
	color: #7a5c07;
}

/* Profile ---------------------------------------------------------------- */

.pcf-profile-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--pcf-border);
}

.pcf-profile-head h3 {
	margin: 0 0 2px;
}

.pcf-profile-head p {
	margin: 0;
	font-size: 0.9rem;
}

.pcf-logout {
	white-space: nowrap;
	font-size: 0.9rem;
}

/* Directory -------------------------------------------------------------- */

.pcf-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	align-items: end;
	gap: 4px 16px;
	margin-bottom: 22px;
	padding: 20px;
	border: 1px solid var(--pcf-border);
	border-radius: var(--pcf-radius);
	background: #fafbfc;
}

.pcf-filters .pcf-actions {
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.pcf-reset {
	font-size: 0.9rem;
	color: var(--pcf-muted);
}

.pcf-count {
	margin: 0 0 14px;
	color: var(--pcf-muted);
	font-size: 0.9rem;
}

.pcf-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pcf-card {
	display: flex;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--pcf-border);
	border-radius: var(--pcf-radius);
	background: #fff;
}

.pcf-avatar img {
	border-radius: 50%;
	display: block;
}

.pcf-card-body h4 {
	margin: 0 0 4px;
	font-size: 1rem;
}

.pcf-card-meta {
	margin: 0 0 3px;
	color: var(--pcf-muted);
	font-size: 0.85rem;
}

.pcf-tag {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 9px;
	border-radius: 99px;
	background: #eef5fa;
	color: var(--pcf-accent);
	font-size: 0.75rem;
	font-weight: 600;
}

.pcf-empty {
	padding: 30px;
	text-align: center;
	color: var(--pcf-muted);
	border: 1px dashed var(--pcf-border);
	border-radius: var(--pcf-radius);
}

.pcf-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
}

.pcf-page {
	padding: 6px 12px;
	border: 1px solid var(--pcf-border);
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.9rem;
}

.pcf-page.is-current {
	background: var(--pcf-accent);
	border-color: var(--pcf-accent);
	color: #fff;
}

@media (max-width: 600px) {
	.pcf-form {
		padding: 20px 16px;
	}

	.pcf-profile-head {
		flex-direction: column;
		align-items: flex-start;
	}
}
