/**
 * Public-facing styles for Pontiac Education Plugin
 *
 * @package    Pontiac_Education
 */

.pontiac-education-registration-form,
.pontiac-education-application-form {
	max-width: 600px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.pontiac-education-registration-form h2,
.pontiac-education-application-form h2 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #333;
}

.pontiac-education-my-account {
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.pontiac-education-my-account h2 {
	margin-top: 0;
	margin-bottom: 16px;
	color: #333;
}

.pontiac-education-account-header {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eee;
}

.pontiac-education-account-avatar img {
	border-radius: 50%;
	display: block;
}

.pontiac-education-account-name {
	font-size: 18px;
	font-weight: 700;
	color: #222;
}

.pontiac-education-account-meta {
	margin-top: 4px;
	font-size: 14px;
	color: #666;
}

.pontiac-education-account-sep {
	margin: 0 8px;
	color: #aaa;
}

.pontiac-education-account-actions {
	margin-top: 8px;
}

.pontiac-education-account-badges {
	margin-top: 10px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pontiac-education-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	border: 1px solid transparent;
}

.pontiac-education-badge-success {
	background: #d4edda;
	border-color: #c3e6cb;
	color: #155724;
}

.pontiac-education-badge-warning {
	background: #fff3cd;
	border-color: #ffeeba;
	color: #856404;
}

.pontiac-education-badge-muted {
	background: #f6f7f7;
	border-color: #e2e4e7;
	color: #50575e;
}

.pontiac-education-account-logout {
	color: #0073aa;
	text-decoration: none;
}

.pontiac-education-account-logout:hover {
	text-decoration: underline;
}

.pontiac-education-account-section {
	margin-top: 20px;
}

.pontiac-education-account-section h3 {
	margin: 0 0 12px;
	color: #333;
}

.pontiac-education-profile-notice {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 14px;
}

.pontiac-education-profile-notice--success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.pontiac-education-profile-notice--error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.pontiac-education-profile-section .pontiac-education-profile-form {
	max-width: 480px;
	padding: 16px;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
	box-sizing: border-box;
}

.pontiac-education-profile-toggle {
	max-width: 480px;
}

.pontiac-education-profile-summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	color: #333;
	margin: 0 0 12px;
}

.pontiac-education-profile-summary::-webkit-details-marker {
	display: none;
}

.pontiac-education-edit-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
}

.pontiac-education-profile-field {
	margin: 0 0 14px;
}

.pontiac-education-profile-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.pontiac-education-profile-field input[type="text"],
.pontiac-education-profile-field input[type="email"],
.pontiac-education-profile-field input[type="password"],
.pontiac-education-profile-field input[type="file"],
.pontiac-education-profile-field select {
	width: 100%;
	max-width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
}

.pontiac-education-profile-field--checkbox label {
	font-weight: 500;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.pontiac-education-profile-field--checkbox input {
	margin-top: 3px;
}

.pontiac-education-profile-hint {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #666;
	font-weight: 400;
}

.pontiac-education-profile-actions {
	margin: 0;
}

.pontiac-education-profile-submit {
	background: #0073aa;
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.pontiac-education-profile-submit:hover {
	background: #005a87;
}

/* Dashboard embed: compact multi-column profile form */
.pontiac-education-profile-section .pontiac-education-profile-form.pontiac-education-profile-form--dashboard {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px 16px;
	max-width: 720px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-sizing: border-box;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard > input[type="hidden"] {
	display: none;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field {
	margin: 0;
	box-sizing: border-box;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--half {
	flex: 1 1 calc(50% - 8px);
	width: calc(50% - 8px);
	max-width: calc(50% - 8px);
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--full,
.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-actions--dashboard,
.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-password-section--dashboard {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--quarter {
	flex: 1 1 calc(25% - 12px);
	width: calc(25% - 12px);
	max-width: calc(25% - 12px);
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--three-quarter {
	flex: 1 1 calc(75% - 4px);
	width: calc(75% - 4px);
	max-width: calc(75% - 4px);
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--civic {
	flex: 0 1 88px;
	width: 88px;
	max-width: 88px;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--street {
	flex: 1 1 180px;
	width: auto;
	min-width: 120px;
	max-width: none;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--apartment {
	flex: 0 1 80px;
	width: 80px;
	max-width: 80px;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--city-row {
	flex: 1 1 calc(45% - 8px);
	width: calc(45% - 8px);
	max-width: calc(45% - 8px);
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--province-row {
	flex: 1 1 calc(30% - 8px);
	width: calc(30% - 8px);
	max-width: calc(30% - 8px);
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--postal-row {
	flex: 0 1 calc(25% - 8px);
	width: calc(25% - 8px);
	max-width: calc(25% - 8px);
	min-width: 110px;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field label {
	margin-bottom: 4px;
	font-size: 13px;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field input[type="text"],
.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field input[type="email"],
.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field input[type="password"],
.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field input[type="file"],
.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field select {
	padding: 6px 10px;
	font-size: 13px;
	width: 100%;
	box-sizing: border-box;
}

.pontiac-education-profile-photo-card {
	max-width: 280px;
	padding: 16px;
	background: #f8f9fa;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	box-sizing: border-box;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-photo-card--dashboard {
	flex: 0 1 280px;
	width: 280px;
	max-width: 280px;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-photo-card--row {
	flex: 1 1 100%;
	width: 100%;
	max-width: 280px;
}

.pontiac-education-profile-photo-card__preview {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.pontiac-education-profile-photo-card__preview img {
	border-radius: 50%;
	display: block;
}

.pontiac-education-profile-photo-card .pontiac-education-profile-field {
	margin: 0 0 10px;
}

.pontiac-education-profile-photo-card .pontiac-education-profile-field:last-child {
	margin-bottom: 0;
}

.pontiac-education-profile-password-section {
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid #e2e4e7;
}

.pontiac-education-profile-password-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
}

.pontiac-education-profile-hint--password {
	margin: 0;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-hint {
	margin-top: 4px;
	font-size: 11px;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-actions--dashboard {
	margin-top: 4px;
}

.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-submit {
	padding: 8px 16px;
	font-size: 13px;
}

@media (max-width: 640px) {
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--half,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--quarter,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--three-quarter,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--civic,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--street,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--apartment,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--city-row,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--province-row,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-field--postal-row,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-photo-card--dashboard,
	.pontiac-education-profile-section .pontiac-education-profile-form--dashboard .pontiac-education-profile-photo-card--row {
		flex-basis: 100%;
		width: 100%;
		max-width: 100%;
	}
}

.pontiac-education-account-hint {
	margin: 8px 0 0;
	font-size: 12px;
	color: #666;
	font-weight: 400;
	line-height: 1.4;
}

.pontiac-education-account-dl {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 8px 16px;
	margin: 0;
}

.pontiac-education-account-dl dt {
	font-weight: 600;
	color: #333;
}

.pontiac-education-account-dl dd {
	margin: 0;
	color: #444;
}

.pontiac-education-empty {
	color: #888;
}

.pontiac-education-account-inline-media {
	margin-top: 12px;
}

.pontiac-education-account-inline-media img {
	max-width: 120px;
	height: auto;
	border-radius: 8px;
	border: 1px solid #eee;
}

.pontiac-education-table-wrap {
	overflow-x: auto;
	margin-top: 10px;
	border: 1px solid #eee;
	border-radius: 8px;
}

.pontiac-education-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.pontiac-education-table th,
.pontiac-education-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: top;
	font-size: 14px;
}

.pontiac-education-table th {
	text-align: left;
	background: #fafafa;
	color: #333;
	font-weight: 700;
	white-space: nowrap;
}

.pontiac-education-table tr:last-child td {
	border-bottom: none;
}

.pontiac-education-kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 10px;
}

.pontiac-education-kpi {
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 12px;
}

.pontiac-education-kpi-label {
	font-size: 12px;
	color: #666;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pontiac-education-kpi-value {
	margin-top: 6px;
	font-size: 20px;
	font-weight: 800;
	color: #222;
}

@media (max-width: 600px) {
	.pontiac-education-account-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.pontiac-education-account-dl {
		grid-template-columns: 1fr;
	}
	.pontiac-education-kpis {
		grid-template-columns: 1fr;
	}
}

.pontiac-education-form-messages {
	margin-bottom: 20px;
	padding: 10px;
	border-radius: 4px;
	display: none;
}

.pontiac-education-form-messages.success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	display: block;
}

.pontiac-education-form-messages.error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	display: block;
}

.pontiac-education-form-field {
	margin-bottom: 20px;
}

.pontiac-education-form-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333;
}

.pontiac-education-form-field .required {
	color: #dc3545;
}

.pontiac-education-form-field input[type="text"],
.pontiac-education-form-field input[type="email"],
.pontiac-education-form-field input[type="tel"],
.pontiac-education-form-field input[type="file"],
.pontiac-education-form-field textarea,
.pontiac-education-form-field select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.pontiac-education-form-field textarea {
	resize: vertical;
	min-height: 100px;
}

.pontiac-education-form-field .description {
	margin-top: 5px;
	font-size: 12px;
	color: #666;
	font-style: italic;
}

.pontiac-education-submit-button {
	background-color: #0073aa;
	color: #fff;
	padding: 12px 24px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
}

.pontiac-education-submit-button:hover {
	background-color: #005a87;
}

.pontiac-education-submit-button:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.pontiac-education-login-required {
	max-width: 600px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
}

.pontiac-education-login-required a {
	color: #0073aa;
	text-decoration: none;
}

.pontiac-education-login-required a:hover {
	text-decoration: underline;
}

/* ACF Field Styling */
.pontiac-education-application-form .acf-field {
	margin-bottom: 20px;
}

.pontiac-education-application-form .acf-label {
	margin-bottom: 5px;
}

.pontiac-education-application-form .acf-input input,
.pontiac-education-application-form .acf-input textarea,
.pontiac-education-application-form .acf-input select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
   Staff directory cards — inherit Elementor globals where available
   ------------------------------------------------------------------------- */
.pe-staff {
	font-family: inherit;
	color: inherit;
	box-sizing: border-box;
}

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

.pe-staff__empty {
	margin: 0;
	opacity: 0.75;
}

.pe-staff__section + .pe-staff__section {
	margin-top: 2.5em;
}

.pe-staff__heading {
	margin: 0 0 1em;
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-weight: var(--e-global-typography-primary-font-weight, 600);
	color: var(--e-global-color-primary, inherit);
	line-height: 1.3;
}

.pe-staff__grid {
	display: grid;
	grid-template-columns: repeat(var(--pe-staff-columns, 3), minmax(0, 1fr));
	gap: 1.5rem;
}

.pe-staff-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.75rem 1.25rem;
	background: color-mix(in srgb, currentColor 4%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 12px;
	box-shadow: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pe-staff-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px color-mix(in srgb, currentColor 10%, transparent);
}

.pe-staff-card__media {
	margin-bottom: 1rem;
}

.pe-staff-card__photo {
	width: 7.5rem;
	height: 7.5rem;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 3px solid color-mix(in srgb, var(--e-global-color-primary, currentColor) 20%, transparent);
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.pe-staff-card__photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--e-global-color-primary, #64748b);
	color: #fff;
}

.pe-staff-card__initials {
	font-size: 1.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
}

.pe-staff-card__body {
	width: 100%;
}

.pe-staff-card__name {
	margin: 0 0 0.35em;
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-weight: var(--e-global-typography-primary-font-weight, 700);
	font-size: 1.15em;
	line-height: 1.3;
	color: var(--e-global-color-primary, inherit);
}

.pe-staff-card__title,
.pe-staff-card__group {
	margin: 0 0 0.25em;
	font-family: var(--e-global-typography-secondary-font-family, inherit);
	font-size: 0.95em;
	line-height: 1.4;
	color: var(--e-global-color-text, inherit);
	opacity: 0.85;
}

.pe-staff-card__group {
	font-size: 0.85em;
	opacity: 0.7;
}

.pe-staff-card__contact {
	list-style: none;
	margin: 0.85em 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}

.pe-staff-card__contact-item {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.4;
	word-break: break-word;
}

.pe-staff-card__link {
	color: var(--e-global-color-accent, var(--e-global-color-primary, inherit));
	text-decoration: none;
}

.pe-staff-card__link:hover,
.pe-staff-card__link:focus {
	text-decoration: underline;
}

@media (max-width: 900px) {
	.pe-staff__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.pe-staff__grid {
		grid-template-columns: 1fr;
	}
}
