:root {
    --feedback-color-primary: #E62D88;
    --feedback-color-secondary: #FF66B1;
    --feedback-color-light: #FF9FCE;
    --feedback-color-placeholder: #FFD6EA;
    --feedback-color-error: #F80206;
    --feedback-color-error-bg: #FF5D8B;
    --feedback-radius-card: 26px;
    --feedback-radius-field: 16px;
}
/* ===== Форма обратной связи ===== */

.feedback-form,
.feedback-form *,
.feedback-form *::before,
.feedback-form *::after {
    box-sizing: border-box;
}

.feedback-form {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 40px;
    background-color: var(--feedback-color-primary);
    border-radius: var(--feedback-radius-card);
	margin: 40px 0;
}

.feedback-form__photo {
    flex: 0 0 404px;
    align-self: stretch;
    border-radius: var(--feedback-radius-card);
    overflow: hidden;
}

.feedback-form__photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-form__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 44px 40px 0;
}

/* когда тема выбрана — фото прячется, поля растягиваются на всю ширину карточки */
.feedback-form.is-expanded .feedback-form__photo {
    display: none;
}
.feedback-form.is-expanded .feedback-form__body {
    padding-left: 44px;
}

/* состояние "Отправлено" занимает всю карточку целиком */
.feedback-form.is-success {
    align-items: center;
}
.feedback-form.is-success .feedback-form__photo,
.feedback-form.is-success .feedback-form__body {
    display: none;
}

.feedback-form__title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.12;
}

/* ===== Выпадающие списки (тема / бренд / продукт) — один и тот же компонент везде ===== */

.feedback-form__select {
    position: relative;
}

.feedback-form__select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 24px 32px;
    background-color: var(--feedback-color-secondary);
    border: 2px solid transparent;
    border-radius: var(--feedback-radius-field);
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.12;
    cursor: pointer;
    transition: border-radius .2s ease, border-color .2s ease;
}

.feedback-form__select-toggle-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feedback-form__select-arrow {
    display: flex;
    flex: none;
    transition: transform .25s ease;
}

.feedback-form__select-arrow-icon {
    display: block;
    width: 18px;
    height: 10px;
}

.feedback-form__select.is-open .feedback-form__select-toggle {
    border-radius: 16px;
}

.feedback-form__select.is-open .feedback-form__select-arrow {
    transform: rotate(180deg);
}

.feedback-form__select-list {
    position: absolute;
    z-index: 5;
    top: 100%;
    left: 12px;
    right: 12px;
    margin: 0;
    padding: 0px 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: var(--feedback-color-light);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.feedback-form__select.is-open .feedback-form__select-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.feedback-form__select-item + .feedback-form__select-item {
    border-top: 1px solid var(--feedback-color-secondary);
}

.feedback-form__select-item-btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.feedback-form__select-item-btn:hover,
.feedback-form__select-item-btn:focus-visible {
    opacity: .8;
}

.feedback-form__select-empty {
    padding: 14px 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    opacity: .8;
}

/* поисковый вариант (Продукт) — тоггл превращается в поле ввода */
.feedback-form__select-search-input {
    flex: 1 1 auto;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0px!important;
}

.feedback-form__select-search-input::placeholder {
    color: var(--feedback-color-placeholder);
}

.feedback-form__select.is-open .feedback-form__select-toggle:has(.feedback-form__select-search-input) {
    border-color: #fff;
}

/* скроллируемый список (Продукт) — до ~5 пунктов, дальше прокрутка */
.feedback-form__select-list--scroll {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #8B8B8B #FCFCFC;
}

.feedback-form__select-list--scroll::-webkit-scrollbar {
    width: 10px;
}
.feedback-form__select-list--scroll::-webkit-scrollbar-track {
    background: #FCFCFC;
    border-radius: 10px;
}
.feedback-form__select-list--scroll::-webkit-scrollbar-thumb {
    background: #8B8B8B;
    border-radius: 10px;
}

/* ===== Поля формы ===== */

.feedback-form__fields {
    display: none;
    flex-direction: column;
    gap: 30px;
    margin-top: 10px;
}

.feedback-form__fields.is-active {
    display: flex;
}

.feedback-form__field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feedback-form__field-label {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.12;
    flex-direction: column;
}

.feedback-form__field-hint {
    font-size: 18px;
    font-weight: 600;
}

.feedback-form__field-hint--block {
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
}

.feedback-form__field-input,
.feedback-form__field-textarea {
    width: 100%;
    padding: 24px 32px;
    background-color: var(--feedback-color-secondary);
    border: 2px solid transparent;
    border-radius: var(--feedback-radius-field);
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease;
    margin-bottom: 0px !important;
}

.feedback-form__field-input::placeholder,
.feedback-form__field-textarea::placeholder {
    color: var(--feedback-color-placeholder);
}

.feedback-form__field-input:focus,
.feedback-form__field-textarea:focus {
    outline: none;
    border-color: #fff;
}

.feedback-form__field-textarea {
    min-height: 180px;
    resize: vertical;
}

.feedback-form__field.is-error .feedback-form__field-input,
.feedback-form__field.is-error .feedback-form__field-textarea {
    background-color: var(--feedback-color-error-bg);
    border-color: var(--feedback-color-error);
}

.feedback-form__field-error {
    display: none;
    position: absolute;
    left: 40px;
    top: 100%;
    margin-top: 10px;
    padding: 10px 18px;
    background: #fff;
    color: var(--feedback-color-error);
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    z-index: 3;
    max-width: 90%;
}

.feedback-form__field-error::before {
    content: '';
    position: absolute;
    left: 24px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

.feedback-form__field.is-error .feedback-form__field-error {
    display: block;
}

/* ===== Статичные картинки-примеры (этикетка / маркировка) ===== */

.feedback-form__photo-refs {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.feedback-form__photo-refs-images {
    display: flex;
    gap: 14px;
    flex: none;
	flex-wrap: wrap;
}

.feedback-form__photo-ref {
    display: block;
    width: 165px;
    height: 149px;
    border-radius: var(--feedback-radius-card);
    object-fit: cover;
    flex: none;
}

.feedback-form__photo-ref--wide {
    width: 340px;
    height: 139px;
}

/* ===== Вложения ===== */

.feedback-form__attach {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* внутри блока "Фото этикетки / Маркировка" зона вложения стоит рядом с картинками-примерами */
.feedback-form__photo-refs .feedback-form__attach {
    flex: 1 1 260px;
    min-width: 260px;
}

.feedback-form__attach-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feedback-form__attach-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border: 3px solid #fff;
    border-radius: 50px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.feedback-form__attach-chip-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: none;
}

.feedback-form__attach-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.feedback-form__attach-chip-remove img {
    display: block;
    width: 100%;
    height: 100%;
}

.feedback-form__attach-controls {
    display: flex;
    /*align-items: center;*/
    flex-wrap: wrap;
    gap: 24px;
	flex-direction: column;
}

.feedback-form__attach-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	background: none;
	border: none;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	margin: 0;
	padding: 0;
	text-align: left;
}

.feedback-form__attach-icon {
    display: flex;
    flex: none;
    width: 50px;
    height: 50px;
    /* иконка скрепки в макете развёрнута на -133.54deg 
    transform: rotate(-133.54deg);*/
}

.feedback-form__attach-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

/* маленький чекбокс "Нет фото" рядом с кнопкой прикрепления */
.feedback-form__checkbox--nophoto {
    gap: 12px;
}
.feedback-form__checkbox--nophoto .feedback-form__checkbox-box {
    width: 28px;
    height: 28px;
}
.feedback-form__checkbox--nophoto .feedback-form__checkbox-text {
    font-size: 18px;
}

/* ===== Нижняя строка: чекбоксы + кнопка отправки ===== */

.feedback-form__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 10px;
}

.feedback-form__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 16px;
	flex: 0 0 550px;
}

.feedback-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

.feedback-form__checkbox-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.feedback-form__checkbox-box {
    flex: none;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 8px;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 12px;
    transition: background-color .2s ease;
}

.feedback-form__checkbox-input:checked + .feedback-form__checkbox-box {
    background-color: var(--feedback-color-secondary);
    background-image: url("/local/custom/img/check.svg");
}

.feedback-form__checkbox-input:focus-visible + .feedback-form__checkbox-box {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.feedback-form__checkbox.is-error .feedback-form__checkbox-box {
    box-shadow: 0 0 0 2px var(--feedback-color-error);
}

.feedback-form__checkbox-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.feedback-form__checkbox-text a {
    color: #fff;
    text-decoration: underline;
}

.feedback-form__submit {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 392px;
    height: 104px;
    padding: 0% 9% 0% 10%;
    border: none;
    color: var(--feedback-color-primary);
    font-family: inherit;
    font-size: 32px;
    font-weight: 600;
    cursor: pointer;
	background: url(/local/custom/img/button.png);
    background-size: 100%;
    background-repeat: no-repeat;
    transition: opacity .2s ease;
}

.feedback-form__submit:hover {
    opacity: .9;
}

/* ===== Состояние "Отправлено" ===== */

.feedback-form__success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 60px 40px;
    text-align: center;
}

.feedback-form.is-success .feedback-form__success {
    display: flex;
}

.feedback-form__success-icon img {
    display: block;
    width: 130px;
    height: auto;
}

.feedback-form__success-title {
    margin: 0;
    color: #fff;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.12;
}

.feedback-form__success-text {
    margin: 0;
    max-width: 640px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.feedback-form__general-error {
    display: none;
    padding: 16px 24px;
    background: #fff;
    color: var(--feedback-color-error);
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
}
.feedback-form__general-error.is-visible {
    display: block;
}

.feedback-form__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ===== Адаптив ===== */
@media (max-width: 992px) {
    .feedback-form {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }
    .feedback-form__photo {
        flex-basis: auto;
        width: 100%;
        height: 220px;
    }
    .feedback-form__body {
        padding: 0;
    }
    .feedback-form.is-expanded .feedback-form__body {
        padding: 0;
    }
    .feedback-form__title {
        font-size: 26px;
    }
    .feedback-form__select-toggle,
    .feedback-form__select-item-btn,
    .feedback-form__select-search-input {
        font-size: 18px;
    }
    .feedback-form__field-label {
        font-size: 20px;
    }
    .feedback-form__field-input,
    .feedback-form__field-textarea {
        font-size: 18px;
        padding: 16px 20px;
    }
    .feedback-form__photo-refs-images {
        width: 100%;
    }
    .feedback-form__photo-ref,
    .feedback-form__photo-ref--wide {
		flex: 1 1 auto;
        width: auto;
        max-width: 100%;
        height: auto;
    }
    .feedback-form__bottom {
        flex-direction: column;
        align-items: stretch;
    }
    .feedback-form__submit {
		width: 100%;
        /* height: auto; */
        justify-content: center;
        /* padding: 18px 36px; */
        font-size: 22px;
        /* clip-path: none; */
        /* border-radius: 50px; */
        /* background-size: auto;*/
    }
	.feedback-form__checkboxes {
		display: flex;
		flex-direction: column;
		gap: 16px;
		flex: 0;
	}
    .feedback-form__success-title {
        font-size: 34px;
    }
    .feedback-form__success-text {
        font-size: 18px;
    }
}
