.vectra-form {
	display: block;
	max-width: 720px;
}

.vectra-form-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}

.vectra-field {
	flex: 1 1 calc( ( var( --vectra-span, 12 ) / 12 * 100% ) - 16px );
	min-width: min( 100%, 180px );
	box-sizing: border-box;
}

.vectra-label,
.vectra-part span {
	display: block;
	margin-bottom: 4px;
}

.vectra-label-has-icon,
.vectra-with-icon {
	display: flex;
	align-items: center;
	gap: 6px;
}

.vectra-label-has-icon {
	margin-bottom: 4px;
}

.vectra-field-icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.vectra-field-shell {
	position: relative;
	display: block;
	box-sizing: border-box;
	border: 1px solid #8c8f94;
	border-radius: 2px;
	background: #fff;
}

.vectra-field-shell > .vectra-field-icon {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 10px;
	margin: 0;
	pointer-events: none;
	transform: translateY(-50%);
}

.vectra-field-shell-right > .vectra-field-icon {
	right: 10px;
	left: auto;
}

.vectra-field-shell:has(textarea) > .vectra-field-icon {
	top: 10px;
	transform: none;
}

.vectra-field-shell input[type="text"],
.vectra-field-shell input[type="email"],
.vectra-field-shell input[type="url"],
.vectra-field-shell input[type="tel"],
.vectra-field-shell input[type="number"],
.vectra-field-shell input[type="date"],
.vectra-field-shell input[type="time"],
.vectra-field-shell input[type="password"],
.vectra-field-shell textarea,
.vectra-field-shell select {
	width: 100%;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.vectra-field-shell-left input[type="text"],
.vectra-field-shell-left input[type="email"],
.vectra-field-shell-left input[type="url"],
.vectra-field-shell-left input[type="tel"],
.vectra-field-shell-left input[type="number"],
.vectra-field-shell-left input[type="date"],
.vectra-field-shell-left input[type="time"],
.vectra-field-shell-left input[type="password"],
.vectra-field-shell-left textarea,
.vectra-field-shell-left select {
	padding-left: 36px;
}

.vectra-field-shell-right input[type="text"],
.vectra-field-shell-right input[type="email"],
.vectra-field-shell-right input[type="url"],
.vectra-field-shell-right input[type="tel"],
.vectra-field-shell-right input[type="number"],
.vectra-field-shell-right input[type="date"],
.vectra-field-shell-right input[type="time"],
.vectra-field-shell-right input[type="password"],
.vectra-field-shell-right textarea,
.vectra-field-shell-right select {
	padding-right: 36px;
}

.vectra-label-has-icon svg,
.vectra-field-shell svg,
.vectra-with-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
}

.vectra-label-has-icon [fill="currentColor"],
.vectra-with-icon [fill="currentColor"],
.vectra-field-shell [fill="currentColor"] {
	fill: currentColor;
	stroke: none;
}

.vectra-sublabel {
	display: block;
	margin: 0 0 4px;
	color: #50575e;
	font-size: 12px;
}

.vectra-labels-left .vectra-label,
.vectra-labels-right .vectra-label {
	display: inline-block;
	width: 30%;
}

.vectra-labels-right .vectra-label {
	text-align: right;
}

.vectra-field input[type="text"],
.vectra-field input[type="email"],
.vectra-field input[type="url"],
.vectra-field input[type="tel"],
.vectra-field input[type="number"],
.vectra-field input[type="date"],
.vectra-field input[type="time"],
.vectra-field textarea,
.vectra-field select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.vectra-parts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vectra-part {
	flex: 1 1 140px;
}

.vectra-choices label {
	display: block;
}

.vectra-description,
.vectra-field-error,
.vectra-form-errors {
	margin: 4px 0 0;
}

.vectra-field-error,
.vectra-form-errors {
	color: var( --wpds-color-fg-content-neutral-strong, #8a2424 );
}

.vectra-required {
	color: var( --wpds-color-fg-content-neutral-strong, #8a2424 );
}

.vectra-form-confirmation {
	padding: 12px 16px;
	border: 1px solid var( --wpds-color-stroke-surface-neutral, #c3c4c7 );
}

.vectra-progress {
	display: flex;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.vectra-progress-bar li {
	flex: 1;
	height: 4px;
	background: var( --wpds-color-bg-surface-neutral, #dcdcde );
	text-indent: -999px;
	overflow: hidden;
}

.vectra-progress-bar li.is-current {
	background: var( --wpds-color-bg-interactive-brand, #3858e9 );
}

.vectra-submit-center {
	text-align: center;
}

.vectra-submit-right {
	text-align: right;
}

.vectra-page-nav {
	flex: 1 1 100%;
}

.vectra-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vectra-likert {
	width: 100%;
	border-collapse: collapse;
}

.vectra-likert th,
.vectra-likert td,
.vectra-matrix-row,
.vectra-stars label,
.vectra-scale label {
	padding: 4px 8px;
}

.vectra-matrix-row,
.vectra-image-choice {
	display: block;
	margin: 4px 0;
}

.vectra-images {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.vectra-image-choice img {
	display: block;
	max-width: 120px;
}
