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

.sp-feedback-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: inherit;
}

.sp-feedback-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 28, 0.66);
    backdrop-filter: blur(5px);
}

.sp-feedback-popup__dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 8px;
    background: #f7f7f7;
    color: #111827;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
    padding: 36px;
}

.sp-feedback-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.sp-feedback-popup__step {
    display: none;
}

.sp-feedback-popup__step.is-active {
    display: block;
}

.sp-feedback-popup__eyebrow {
    margin: 0 0 10px;
    color: #246bfe;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.sp-feedback-popup__title {
    margin: 0 42px 14px 0;
    color: #111827;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 800;
}

.sp-feedback-popup__text {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
    line-height: 1.45;
}

.sp-feedback-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.sp-feedback-popup__button {
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 13px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sp-feedback-popup__button:hover {
    transform: translateY(-1px);
}

.sp-feedback-popup__button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.sp-feedback-popup__button--primary {
    background: #246bfe;
    color: #fff;
}

.sp-feedback-popup__button--secondary {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

.sp-feedback-popup__options {
    display: grid;
    gap: 10px;
}

.sp-feedback-popup__option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    padding: 13px 14px;
    color: #111827;
    font-size: 15px;
    line-height: 1.35;
    cursor: pointer;
}

.sp-feedback-popup__option input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #246bfe;
}

.sp-feedback-popup__field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

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

.sp-feedback-popup__field input,
.sp-feedback-popup__field textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    padding: 14px 16px;
    font: inherit;
    font-weight: 400;
    resize: vertical;
}

.sp-feedback-popup__error,
.sp-feedback-popup__success {
    margin: 14px 0 0;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.35;
}

.sp-feedback-popup__error {
    background: #fee2e2;
    color: #991b1b;
}

.sp-feedback-popup__success {
    background: #dcfce7;
    color: #166534;
}

.sp-feedback-popup__error[hidden],
.sp-feedback-popup__success[hidden] {
    display: none;
}

body.sp-feedback-popup-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .sp-feedback-popup {
        padding: 12px;
        align-items: flex-end;
    }

    .sp-feedback-popup__dialog {
        max-height: calc(100vh - 24px);
        padding: 28px 20px 22px;
    }

    .sp-feedback-popup__title {
        margin-right: 34px;
        font-size: 26px;
    }

    .sp-feedback-popup__text {
        font-size: 15px;
    }

    .sp-feedback-popup__actions,
    .sp-feedback-popup__button {
        width: 100%;
    }
}
