ActiveForm errorCssClass

Can someone answer why ActiveForm is not adding errorCssClass to field container on form submit?

<?php $form = ActiveForm::begin([
	'action'               => ['/order/create'],
	'enableAjaxValidation' => false,
    'validationStateOn' => ActiveForm::VALIDATION_STATE_ON_CONTAINER,
    'errorCssClass' => 'i-error',
	'fieldConfig'          => [
        'options'      => ['class' => 'js-input i-input',],
		'errorOptions' => ['class' => 'form-input__error i-input-error', 'tag' => 'div'],
        'template'     => '<label class="i-input__inner">
                                {input}
                                <span class="i-input__placeholder">{labelTitle}</span>
                            </label>
                            {error}
                            <div class="i-input-notice"></div>',
		'inputOptions' => ['class' => 'i-input__field'],
	],
	'options'              => [
		'id'    => 'order-form',
		'class' => 'lg:drop-shadow-default flex flex-col lg:col-span-9 xl:col-span-10 lg:p-8 mt-4 lg:mt-8 rounded-[39px] bg-white dartc_order_form',
		'style' => 'height: max-content'
	],
]); ?>