/**
 * Structural styles only.
 * Colours, typography, spacing and borders are set by the widget's
 * Style tab so they stay editable in the builder.
 */

.pi-ja__form { margin: 0; }

.pi-ja__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pi-ja__group {
	border: 0;
	padding: 0;
	margin: 0;
}

.pi-ja__label {
	display: block;
	padding: 0;
}

.pi-ja__row {
	display: flex;
	flex-wrap: wrap;
}

.pi-ja__col {
	flex: 1 1 220px;
	min-width: 0;
}

.pi-ja input[type="text"],
.pi-ja input[type="email"] {
	width: 100%;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.pi-ja input[type="text"]:focus,
.pi-ja input[type="email"]:focus {
	outline: none;
}

.pi-ja__hint { display: block; }

.pi-ja__notice { margin-top: 0; }

.pi-ja__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.pi-ja__submit {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pi-ja__submit:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 2px;
}

/* Editor: the form is inert so a stray click can't submit it. */
.pi-ja--editor .pi-ja__submit { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	.pi-ja input,
	.pi-ja__submit { transition: none; }
}
