/* DG Profiles – contact form. Minimal and theme-friendly; override freely. */

.dgprofile-contact {
	--dgpc-muted: #5c6168;
	--dgpc-error: #b3261e;
	--dgpc-success: #1e7a3c;
	display: grid;
	gap: 1rem;
}

.dgprofile-contact__title {
	margin: 0;
}

.dgprofile-contact__field {
	display: grid;
	gap: 0.35rem;
}

.dgprofile-contact__field label {
	font-weight: 600;
}

.dgprofile-contact input[type="text"],
.dgprofile-contact input[type="email"],
.dgprofile-contact textarea {
	width: 100%;
	box-sizing: border-box;
	font-size: 18px;
	width: 100%;
	padding: 10px 15px;
}

.dgprofile-contact__actions {
	text-align: center;
}

.dgprofile-contact__submit {
	border:none;
	outline: none;
	font-size: 18px;
	font-weight: bold;
	padding: 10px 15px;
	background-color: var(--wp--preset--color--colour-6);
	color: #ffffff;
	border-radius: 8px;
	cursor: pointer;
}

.dgprofile-contact [aria-invalid="true"] {
	border-color: var(--dgpc-error);
}

.dgprofile-contact__error {
	color: var(--dgpc-error);
	font-size: 0.875em;
	margin: 0;
}

.dgprofile-contact__error:empty {
	display: none;
}

.dgprofile-contact__privacy {
	color: var(--dgpc-muted);
	font-size: 0.875em;
	margin: 0;
}

.dgprofile-contact__notice {
	margin: 0;
	padding: 0.75rem 1rem;
	border-left: 4px solid currentColor;
}

.dgprofile-contact__notice--success {
	color: var(--dgpc-success);
	background: #f0f8f3;
}

.dgprofile-contact__notice--error {
	color: var(--dgpc-error);
	background: #fdf2f1;
}

.dgprofile-contact[aria-busy="true"] .dgprofile-contact__submit {
	opacity: 0.6;
	cursor: progress;
}

/* Honeypot: off-screen rather than display:none (some bots skip hidden fields). */
.dgprofile-contact__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
