.feedback-form {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.feedback-form[hidden] {
    display: none;
}

body.popup-open {
    overflow: hidden;
}

.feedback-form__overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.feedback-form__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 36px;
    border: 1px solid rgba(209, 173, 123, 0.45);
    border-radius: 5px;
    background: #0b0b0b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.feedback-form__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.feedback-form__title {
    margin: 0 28px 10px 0;
    color: var(--main-color);
    font-family: var(--oswald-semiBold);
    font-size: 32px;
    line-height: 120%;
    text-transform: uppercase;
}

.feedback-form__subtitle {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    line-height: 150%;
}

.feedback-form__form {
    display: grid;
    gap: 15px;
}

.feedback-form__field {
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.feedback-form__field small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.feedback-form__field input,
.feedback-form__field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--main-color);
    font-family: var(--roboto-medium);
    font-size: 16px;
    line-height: 140%;
    outline: none;
}

.feedback-form__field input {
    min-height: 46px;
    padding: 10px 12px;
}

.feedback-form__field textarea {
    min-height: 86px;
    padding: 10px 12px;
    resize: vertical;
}

.feedback-form__field input:focus,
.feedback-form__field textarea:focus {
    border-color: var(--gold-color);
}

.feedback-form__policy {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 145%;
}

.feedback-form__policy input {
    flex: 0 0 auto;
    margin: 3px 0 0;
}

.feedback-form__policy a {
    color: var(--gold-color);
    text-decoration: underline;
}

.feedback-form__status {
    min-height: 20px;
    margin: 0;
    color: #f0a0a0;
    font-size: 14px;
    line-height: 140%;
}

.feedback-form__status.is-success {
    color: #a9d99c;
}

.feedback-form__submit {
    width: 100%;
    border: 2px solid var(--gold-color);
    background: var(--gold-color);
    color: var(--main-bg);
    cursor: pointer;
}

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

@media (max-width: 600px) {
    .feedback-form {
        padding: 12px;
    }

    .feedback-form__dialog {
        max-height: calc(100vh - 24px);
        padding: 30px 20px 20px;
    }

    .feedback-form__title {
        font-size: 27px;
    }
}
