.complaint-form-section {
	padding: 50px 0;
}

.complaint-form,
.complaint-form-section .section-title {
	max-width: 830px;
}

.complaint-form[hidden],
.complaint-form__success[hidden],
.complaint-form__alert[hidden] {
	display: none;
}

.complaint-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 30px;
}

.complaint-form__full {
	grid-column: 1 / -1;
}

.complaint-form .form__group {
	margin-bottom: 24px;
}

.complaint-form .form__input-label {
	display: block;
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 700;
}

.complaint-form__req {
	margin-left: 2px;
}

.complaint-form input[type=text],
.complaint-form input[type=tel],
.complaint-form input[type=email],
.complaint-form textarea {
	width: 100%;
	transition: border-color .3s ease;
}

.complaint-form input:focus,
.complaint-form textarea:focus {
	border-color: #073325;
	outline: none;
}

.complaint-form textarea {
	min-height: 160px;
	line-height: 1.5;
}

.complaint-form .form__group.error .error__text {
	max-height: 200px;
	white-space: pre-line;
	padding: 0;
	margin-top: 6px;
}

.complaint-form__under {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.complaint-form__counter {
	flex-shrink: 0;
	margin-left: auto;
	margin-top: 6px;
	font-size: 12px;
	color: #a3a3a3;
}

.complaint-form .iti {
	display: block;
	width: 100%;
}

/* intl-tel-input pads the input by the button width, so the gap after the divider must live inside the button */
.complaint-form .iti__selected-country {
	padding-right: 24px;
}

.complaint-form .iti__selected-country::after {
	content: "";
	position: absolute;
	top: 0;
	right: 12px;
	bottom: 0;
	border-right: 1px solid #dadada;
}

.complaint-form .form__group.error .iti__selected-country::after {
	border-right-color: #ff4b55;
}

.complaint-form__dropzone {
	padding: 20px;
	border: 1px dashed #b5b5b5;
	background: #fff;
	text-align: center;
	transition: border-color .3s ease, background-color .3s ease;
}

.complaint-form__dropzone.is-dragover {
	border-color: #073325;
	background: #f0f5f3;
}

.form__group.error .complaint-form__dropzone {
	border-color: #ff4b55;
}

.complaint-form__choose {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 4px;
	border: 0;
	background: none;
	color: #073325;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.complaint-form__choose:hover span,
.complaint-form__choose:focus-visible span {
	text-decoration: underline;
}

.complaint-form__choose:focus-visible,
.complaint-form__file-remove:focus-visible,
.complaint-form__again:focus-visible {
	outline: 2px solid #073325;
	outline-offset: 2px;
}

.complaint-form__hint {
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #6f6f6f;
}

.complaint-form__files {
	margin: 0;
	padding: 0;
	list-style: none;
}

.complaint-form__file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	font-size: 14px;
}

.complaint-form__file-name {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.complaint-form__file-size {
	flex-shrink: 0;
	color: #a3a3a3;
	font-size: 12px;
}

.complaint-form__file-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	stroke: #232323;
}

.complaint-form__file-remove:hover {
	stroke: #ff4b55;
}

.complaint-form__file-error {
	flex-basis: 100%;
	font-size: 12px;
	color: #ff4b55;
}

.complaint-form__file-error:empty {
	display: none;
}

.complaint-form__file--error .complaint-form__file-name {
	color: #ff4b55;
}

.complaint-form__consent .form__wrapper {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
}

/* Site input styles (min-width on desktop) stretch the hidden checkbox over the consent text and it swallows link clicks */
.complaint-form__consent .form__checkbox {
	width: 1px;
	min-width: 0;
	height: 1px;
	padding: 0;
	border: 0;
}

.complaint-form__consent .icon {
	margin-top: 1px;
}

.complaint-form__consent .form__checkbox:focus-visible + .icon {
	outline: 2px solid #073325;
	outline-offset: 2px;
}

.complaint-form__consent.error .form__checkbox + .icon path:first-child {
	stroke: #ff4b55;
}

.complaint-form__consent-text {
	font-size: 14px;
	line-height: 1.5;
}

.complaint-form__consent-text a {
	display: inline;
	font-size: inherit;
	line-height: inherit;
	color: #073325;
	font-weight: 700;
	text-decoration: underline;
}

.complaint-form__captcha {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.complaint-form__captcha .error__text {
	text-align: center;
}

.complaint-form__alert {
	margin-bottom: 24px;
	padding: 12px 16px;
	border-left: 3px solid #ff4b55;
	background: #fff1f2;
	color: #b4232c;
	font-size: 14px;
	line-height: 1.5;
}

.complaint-form__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.complaint-form__submit {
	min-width: 200px;
}

.complaint-form__status {
	font-size: 12px;
	color: #6f6f6f;
}

.complaint-form__success {
	max-width: 830px;
	padding: 50px 24px;
	border: 1px solid #dadada;
	text-align: center;
	outline: none;
}

.complaint-form__success .icon {
	margin-bottom: 16px;
}

.complaint-form__success .title--md {
	margin-bottom: 12px;
}

.complaint-form__success p {
	margin: 0 auto 24px;
	max-width: 520px;
	color: #6f6f6f;
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.complaint-form-section {
		padding: 30px 0;
	}

	.complaint-form .form__group {
		margin-bottom: 20px;
	}
}

@media (max-width: 580px) {
	.complaint-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.complaint-form__submit {
		width: 100%;
	}
}

@media (max-width: 360px) {
	.complaint-form__captcha .recaptcha-item {
		transform: scale(.9);
		transform-origin: center top;
		height: 70px;
	}
}
