body.is-feedback-dialog-open {
    overflow: hidden;
}

.feedback-dialog {
    width: min(780px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(96, 165, 250, 0.42);
    border-radius: 8px;
    color: #f4f4ff;
    background:
        radial-gradient(circle at 85% 8%, rgba(139, 92, 246, 0.22), transparent 352px),
        linear-gradient(145deg, rgba(7, 11, 24, 0.98), rgba(2, 6, 18, 0.98));
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    scrollbar-width: thin;
    scrollbar-color: #3e4266 #0b0d19;
}

.feedback-dialog::backdrop {
    background: rgba(2, 4, 14, 0.76);
    backdrop-filter: blur(8px);
}

.feedback-dialog__panel {
    position: relative;
    padding: 28px 32px;
}

.feedback-dialog__close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #a7abc5;
    background: transparent;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease;
}

.feedback-dialog__close:hover {
    color: #ffffff;
    background: rgba(146, 155, 214, 0.1);
}

.feedback-dialog__heading {
    margin-bottom: 28px;
    padding-right: 30px;
}

.feedback-dialog__heading h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.feedback-dialog__heading p {
    margin: 0;
    color: #a6aac4;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.feedback-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.feedback-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
}

.feedback-field label {
    color: #b8bad0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.feedback-field input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #34364d;
    border-radius: 8px;
    outline: none;
    color: #f3f4ff;
    background: rgba(8, 10, 23, 0.64);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.feedback-field input::placeholder {
    color: #777d98;
    opacity: 1;
}

.feedback-field input:focus {
    border-color: #6ab5ff;
    box-shadow: 0 0 0 3px rgba(68, 147, 255, 0.15);
}

.feedback-field input[aria-invalid="true"] {
    border-color: #f594ac;
}

.feedback-form__consent {
    margin: 22px 0 0;
}

.feedback-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #a0a5bf;
    font-size: 0.75rem;
    line-height: 1.7;
    cursor: pointer;
}

.feedback-consent input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #6b8cff;
    cursor: pointer;
}

.feedback-consent input[aria-invalid="true"] {
    outline: 1px solid #f594ac;
    outline-offset: 2px;
}

.feedback-consent a {
    color: #a4baff;
    text-decoration: underline;
    text-decoration-color: rgba(164, 186, 255, 0.55);
    text-underline-offset: 3px;
}

.feedback-consent a:hover {
    color: #d7e2ff;
}

.feedback-field__error {
    margin: 0;
    color: #ffacc0;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.feedback-form__consent > .feedback-field__error {
    margin-top: 8px;
    margin-left: 29px;
}

.feedback-form__status {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(142, 163, 222, 0.28);
    border-radius: 10px;
    color: #c3cbe4;
    background: rgba(98, 124, 204, 0.08);
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.feedback-form__status[data-kind="error"] {
    border-color: rgba(245, 148, 172, 0.3);
    color: #ffb9c9;
    background: rgba(173, 55, 84, 0.1);
}

.feedback-form__status[data-kind="success"] {
    border-color: rgba(83, 211, 179, 0.3);
    color: #a2eed8;
    background: rgba(28, 136, 110, 0.1);
}

.feedback-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 24px;
    border: 1px solid rgba(180, 186, 255, 0.38);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(100deg, #0a84ff, rgba(0, 163, 255, 0.92) 45%, rgba(124, 58, 237, 0.95));
    box-shadow: 0 6px 24px rgba(78, 78, 185, 0.22);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: filter 150ms ease, box-shadow 150ms ease;
}

.feedback-form__submit:hover:not(:disabled) {
    filter: brightness(1.12);
    box-shadow: 0 6px 28px rgba(89, 104, 233, 0.35);
}

.feedback-form__submit:disabled {
    cursor: wait;
    opacity: 0.6;
}

.feedback-dialog__close:focus-visible,
.feedback-form__submit:focus-visible,
.feedback-consent input:focus-visible,
.feedback-consent a:focus-visible,
.feedback-form__status:focus-visible {
    outline: 2px solid #6ab5ff;
    outline-offset: 4px;
}

.feedback-form__honeypot {
    display: none;
}

@media (max-width: 600px) {
    .feedback-dialog {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 8px;
    }

    .feedback-dialog__panel {
        padding: 28px 20px;
    }

    .feedback-dialog__close {
        top: 12px;
        right: 12px;
    }

    .feedback-dialog__heading {
        margin-bottom: 24px;
    }

    .feedback-form__fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .feedback-field input {
        font-size: 1rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    .feedback-dialog *,
    .feedback-dialog *::before,
    .feedback-dialog *::after {
        transition: none;
    }
}
