/**
 * Feedback popup.
 */

.aurora-feedback-popup {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: #1a1208;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.aurora-feedback-popup.is-visible {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.aurora-feedback-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 18, 8, 0.42);
}

.aurora-feedback-popup__dialog {
    position: relative;
    width: min(100%, 430px);
    padding: 1.5rem;
    border: 1px solid #1a1208;
    border-radius: var(--radius-modal, 20px);
    background: #d4bc8a;
    color: #1a1208;
    box-shadow: 0 22px 60px rgba(26, 18, 8, 0.22);
}

.aurora-feedback-popup__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #1a1208;
    border-radius: 50%;
    background: transparent;
    color: #1a1208;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.aurora-feedback-popup__title {
    max-width: 20rem;
    margin: 0 2rem 0.45rem 0;
    color: #1a1208;
    font-family: var(--font--heading--family);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.15;
}

.aurora-feedback-popup__text {
    margin: 0 0 1rem;
    color: #1a1208;
    font-size: 1rem;
    line-height: 1.45;
}

.aurora-feedback-popup__form {
    display: grid;
    gap: 0.85rem;
}

.aurora-feedback-popup__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.aurora-feedback-popup__stars {
    display: flex;
    gap: 0.25rem;
}

.aurora-feedback-popup__star {
    border: 0;
    background: transparent;
    color: #1a1208;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.42;
    transition: opacity 160ms ease, transform 160ms ease;
}

.aurora-feedback-popup__star.is-active,
.aurora-feedback-popup__star:hover,
.aurora-feedback-popup__star:focus-visible {
    opacity: 1;
}

.aurora-feedback-popup__star:focus-visible {
    outline: 2px solid #1a1208;
    outline-offset: 2px;
}

.aurora-feedback-popup__star:hover {
    transform: translateY(-1px);
}

.aurora-feedback-popup__label {
    color: #1a1208;
    font-size: 0.95rem;
    font-weight: 700;
}

.aurora-feedback-popup__textarea {
    width: 100%;
    min-height: 7rem;
    resize: vertical;
    border: 1px solid #1a1208;
    border-radius: var(--radius-input, 12px);
    background: rgba(255, 255, 255, 0.18);
    color: #1a1208;
    font: inherit;
    padding: 0.85rem;
}

.aurora-feedback-popup__textarea::placeholder {
    color: rgba(26, 18, 8, 0.68);
}

.aurora-feedback-popup__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aurora-feedback-popup__submit,
.aurora-feedback-popup__dismiss {
    min-height: 2.75rem;
    border: 1px solid #1a1208;
    border-radius: var(--radius-button, 50px);
    cursor: pointer;
    font-family: var(--font--paragraph--family);
    font-weight: 700;
}

.aurora-feedback-popup__submit {
    flex: 1;
    background: #1a1208;
    color: #d4bc8a;
    padding: 0.75rem 1.25rem;
}

.aurora-feedback-popup__dismiss {
    background: transparent;
    color: #1a1208;
    padding: 0.75rem 1rem;
}

.aurora-feedback-popup__submit:disabled {
    cursor: progress;
    opacity: 0.72;
}

.aurora-feedback-popup__status {
    min-height: 1.25rem;
    margin: 0;
    color: #1a1208;
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .aurora-feedback-popup {
        align-items: end;
        padding: 1rem;
    }

    .aurora-feedback-popup__dialog {
        width: 100%;
        padding: 1.25rem;
    }

    .aurora-feedback-popup__actions {
        flex-direction: column;
        align-items: stretch;
    }
}
