.feedback-card {
    max-width: 720px;
    margin-inline: auto;
}

.feedback-form {
    display: grid;
    gap: 1rem;
}

/* Safari keeps native macOS select chrome unless appearance is reset.
   Match the feedback-type dropdown to the site's other form fields and
   draw a small CSS chevron so it stays clearly identifiable as a select. */
.feedback-form select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.75rem;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 13px) calc(50% - 3px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.feedback-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.feedback-fieldset legend {
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.feedback-rating-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.feedback-rating-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 64px;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color, #d8d8d8);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
}

.feedback-rating-option:has(input:checked) {
    border-width: 2px;
}

.feedback-rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feedback-rating-option:focus-within {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.feedback-rating-icon {
    font-size: 1.45rem;
}

.feedback-form textarea {
    resize: vertical;
}

.feedback-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.feedback-support-note {
    margin-top: 1.25rem;
}

@media (max-width: 560px) {
    .feedback-rating-grid {
        grid-template-columns: 1fr;
    }
}
