/* Aibirds Contact Manager – front-end form styles. Override via the --pgcm-* variables. */
.pgcm {
	--pgcm-accent: #1d4ed8;
	--pgcm-text: inherit;
	--pgcm-muted: #64748b;
	--pgcm-border: #d5dde5;
	--pgcm-bg: #fff;
	--pgcm-error: #c62828;
	--pgcm-radius: 9px;
	color: var(--pgcm-text);
	font: inherit;
}
.pgcm *,
.pgcm *::before,
.pgcm *::after {
	box-sizing: border-box;
}
.pgcm-form[hidden] {
	display: none;
}
.pgcm-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}
.pgcm-field {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}
.pgcm-field--half {
	grid-column: span 1;
}
.pgcm-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	padding: 0;
}
.pgcm-required {
	color: var(--pgcm-error);
	margin-left: 2px;
}
.pgcm input[type="text"],
.pgcm input[type="email"],
.pgcm input[type="tel"],
.pgcm input[type="url"],
.pgcm input[type="number"],
.pgcm input[type="date"],
.pgcm select,
.pgcm textarea {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: inherit;
	background: var(--pgcm-bg);
	border: 1px solid var(--pgcm-border);
	border-radius: var(--pgcm-radius);
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.pgcm select {
	padding-right: 38px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
}
.pgcm textarea {
	min-height: 150px;
	resize: vertical;
}
.pgcm input:focus,
.pgcm select:focus,
.pgcm textarea:focus {
	outline: none;
	border-color: var(--pgcm-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--pgcm-accent) 22%, transparent);
}
.pgcm-group {
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.pgcm-group legend {
	margin-bottom: 4px;
}
.pgcm-choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.45;
	cursor: pointer;
}
.pgcm-choice input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex: none;
	accent-color: var(--pgcm-accent);
}
.pgcm-choice--consent {
	font-size: 14px;
	color: var(--pgcm-muted);
}
.pgcm-choice a {
	color: var(--pgcm-accent);
	text-decoration: underline;
}
.pgcm-help {
	margin: 0;
	font-size: 13px;
	color: var(--pgcm-muted);
}
.pgcm-error {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--pgcm-error);
}
.pgcm-field.has-error input,
.pgcm-field.has-error select,
.pgcm-field.has-error textarea {
	border-color: var(--pgcm-error);
}
.pgcm-status {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: var(--pgcm-radius);
	font-size: 14px;
	background: #f1f5f9;
}
.pgcm-status--error {
	background: #fdecec;
	color: var(--pgcm-error);
	font-weight: 600;
}
.pgcm-status[hidden] {
	display: none;
}
.pgcm-turnstile {
	margin-top: 18px;
}
.pgcm-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 22px;
}
.pgcm-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 13px 26px;
	border: 0;
	border-radius: var(--pgcm-radius);
	background: var(--pgcm-accent);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s, transform .15s;
}
.pgcm-submit:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
}
.pgcm-submit:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--pgcm-accent) 45%, transparent);
	outline-offset: 3px;
}
.pgcm-submit:disabled {
	opacity: .7;
	cursor: progress;
	transform: none;
}
.pgcm-form.is-loading .pgcm-submit::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pgcm-spin .7s linear infinite;
}
.pgcm-required-note {
	margin: 0;
	font-size: 12px;
	color: var(--pgcm-muted);
}
.pgcm-required-note span {
	color: var(--pgcm-error);
}
.pgcm-success {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 22px;
	border-radius: var(--pgcm-radius);
	background: color-mix(in srgb, #16a34a 9%, #fff);
	border: 1px solid color-mix(in srgb, #16a34a 30%, #fff);
	color: #14532d;
	outline: none;
}
.pgcm-success p {
	margin: 0;
	color: inherit;
	font-size: 16px;
	line-height: 1.55;
}
.pgcm-success__icon {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #16a34a;
	position: relative;
}
.pgcm-success__icon::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 6px;
	width: 7px;
	height: 12px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}
.pgcm-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
.pgcm-notice {
	padding: 12px 16px;
	border: 1px dashed #c62828;
	color: #c62828;
}
@keyframes pgcm-spin {
	to {
		transform: rotate(360deg);
	}
}
@media (max-width: 600px) {
	.pgcm-fields {
		grid-template-columns: 1fr;
	}
	.pgcm-field--half {
		grid-column: 1 / -1;
	}
	.pgcm-submit {
		width: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pgcm * {
		transition: none !important;
		animation-duration: 1.5s !important;
	}
}
