.feedback {
    padding: 112px 0 56px;
}

.feedback__card {
    max-width: 640px;
    margin: 0 auto;
    padding: 44px;
    border: 1px solid var(--theme-line);
    border-radius: 24px;
    background-color: var(--theme-surface);
}

.site .feedback__title {
    margin: 0 0 12px;
    font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
    font-weight: 600;
    line-height: 1.4;
}

.feedback__intro {
    margin: 0 0 24px;
    color: var(--theme-muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

.feedback__form {
    display: grid;
    gap: 26px;
}

.feedback__field {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.feedback__label {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    font-size: .95rem;
    font-weight: 600;
}

.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 6px;
}

.rating-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rating-input label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--theme-line);
    border-radius: 12px;
    color: var(--theme-line);
    font-size: 1.3rem;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    border-color: #F5B301;
    color: #F5B301;
}

.rating-input label:active {
    transform: scale(.94);
}

.rating-input input:focus-visible + label {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.feedback__textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--theme-line);
    border-radius: 14px;
    background-color: var(--theme-page);
    color: inherit;
    font: inherit;
    line-height: 1.9;
    resize: vertical;
}

.feedback__textarea:focus {
    border-color: var(--brand-primary);
    outline: none;
}

.feedback__textarea[aria-invalid="true"] {
    border-color: #DC2626;
}

.feedback__error {
    margin: 8px 0 0;
    color: #DC2626;
    font-size: .88rem;
}

.feedback__submit,
.feedback__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    justify-self: start;
    padding: 14px 28px;
    border: 0;
    border-radius: 12px;
    background-color: var(--brand-primary);
    color: #FFFFFF;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.feedback__done {
    display: inline-flex;
    margin-bottom: 18px;
    color: #16A34A;
    font-size: 2.4rem;
}

.feedback__trap,
.feedback__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .feedback {
        padding-top: 112px;
    }
}

@media (max-width: 575.98px) {
    .feedback {
        padding: 100px 0 56px;
    }

    .feedback__card {
        padding: 28px 22px;
    }

    .rating-input label {
        width: 42px;
        height: 42px;
    }

    .feedback__submit {
        justify-self: stretch;
    }
}
