.symbiotisk-profile-form {
	--sym-profile-border: var(--wp--preset--color--contrast);
	--sym-profile-bg: var(--wp--preset--color--white);
	--sym-profile-text: var(--wp--preset--color--contrast);
	--sym-profile-muted: var(--wp--preset--color--accent-4);
	--sym-profile-success-bg: var(--wp--preset--color--accent-2b);
	--sym-profile-error-bg: var(--wp--preset--color--base);
	--sym-profile-accent: var(--wp--preset--color--accent-3);
	--sym-profile-avatar-border: var(--wp--custom--avatar-border-color, #ccc);
	max-width: var(--wp--style--global--content-size, 645px);
	width: 100%;
	margin: 0 auto;
	color: var(--sym-profile-text);
	font-family: var(--wp--preset--font-family--base, "Sora", sans-serif);
}

.symbiotisk-profile-form__form {
	display: grid;
	gap: 1rem;
}

.symbiotisk-profile-form__field,
.symbiotisk-profile-form__actions {
	margin: 0;
}

.symbiotisk-profile-form label {
	display: inline-block;
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.3;
}

.symbiotisk-profile-form input[type="text"],
.symbiotisk-profile-form input[type="email"],
.symbiotisk-profile-form input[type="password"],
.symbiotisk-profile-form input[type="file"] {
	width: 100%;
	border: 1px solid var(--sym-profile-border);
	border-radius: 0;
	background: var(--sym-profile-bg);
	color: var(--sym-profile-text);
	font: inherit;
	padding: 0.625rem 0.75rem;
	box-sizing: border-box;
}

.symbiotisk-profile-form input[type="file"] {
	padding: 0.45rem 0.5rem;
}

.symbiotisk-profile-form input::placeholder {
	color: var(--sym-profile-muted);
	opacity: 1;
}

.symbiotisk-profile-form input:focus-visible {
	outline: 2px solid var(--sym-profile-accent);
	outline-offset: 1px;
}

.symbiotisk-profile-form__field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-bottom: 0;
	font-weight: 400;
}

.symbiotisk-profile-form__field--checkbox input[type="checkbox"] {
	margin-top: 0.15rem;
}

.symbiotisk-profile-form__avatar {
	display: inline-flex;
	margin-top: 0.35rem;
}

.symbiotisk-profile-form__avatar img {
	display: block;
	border: 1px solid var(--sym-profile-avatar-border);
	border-radius: 100%;
}

.symbiotisk-profile-form__notice {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--sym-profile-border);
	font-size: 0.95rem;
}

.symbiotisk-profile-form__notice p {
	margin: 0;
}

.symbiotisk-profile-form__notice p + p {
	margin-top: 0.5rem;
}

.symbiotisk-profile-form__notice--success {
	background: var(--sym-profile-success-bg);
}

.symbiotisk-profile-form__notice--error {
	background: var(--sym-profile-error-bg);
}

.symbiotisk-profile-form__actions button {
	background: var(--sym-profile-accent);
	border: 1px solid var(--sym-profile-accent);
	border-radius: 100px;
	color: var(--wp--preset--color--white);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0.75rem 1.125rem;
	min-height: 2.8rem;
}

.symbiotisk-profile-form__actions button:hover,
.symbiotisk-profile-form__actions button:focus-visible {
	background: color-mix(in srgb, var(--sym-profile-accent) 85%, black);
	border-color: color-mix(in srgb, var(--sym-profile-accent) 85%, black);
}

@media (max-width: 782px) {
	.symbiotisk-profile-form {
		max-width: 100%;
	}
}
