/* In-page feedback panel — loaded on every node page by the default layout.
   Brand tokens match the public forms: gold #c9a14a action, cream #f7f4ee,
   warm brown #6b6256. Scoped under .fbp so it can never leak into a page.

   Sits on top only while open (the element is [hidden] otherwise), so unlike a
   floating button it never covers content. */

.fbp,
.fbp * { box-sizing: border-box; }

.fbp {
    position: fixed;
    inset: 0;
    z-index: 1200; /* above the 50px fixed nav and the floating translate flag */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.fbp[hidden] { display: none; }

body.fbp-open { overflow: hidden; }

.fbp__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(40, 35, 28, .45);
    animation: fbp-fade .15s ease-out;
}

.fbp__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    background: #fffdf8;
    border: 1px solid #ece5d6;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
    animation: fbp-rise .18s ease-out;
}

@keyframes fbp-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes fbp-rise {
    from { opacity: 0; transform: translateY(12px) }
    to   { opacity: 1; transform: none }
}

@media (prefers-reduced-motion: reduce) {
    .fbp__backdrop, .fbp__dialog { animation: none }
}

.fbp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #f1ebdd;
}

.fbp__title {
    margin: 0;
    font-size: 1.15rem;
    color: #4a4238;
}

.fbp__close {
    border: 0;
    background: transparent;
    color: #8a8073;
    font-size: 1.15rem;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
}
.fbp__close:hover { background: #f7f4ee; color: #4a4238 }

.fbp__body {
    padding: 14px 18px 18px;
    overflow-y: auto;
}

.fbp__lead {
    margin: 0 0 .9rem;
    color: #6b6256;
    font-size: .9rem;
}

.fbp__label {
    display: block;
    font-weight: 600;
    margin: 0 0 .3rem;
    color: #4a4238;
    font-size: .9rem;
}

.fbp__types {
    border: 0;
    margin: 0 0 .9rem;
    padding: 0;
    display: grid;
    gap: 6px;
}

.fbp__opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border: 1.5px solid #ece5d6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: .92rem;
    color: #4a4238;
}
.fbp__opt:hover { border-color: #ddd0b0 }
.fbp__opt:has(input:checked) { border-color: #c9a14a; background: #fffbf0 }

.fbp__opt input { margin-top: 2px; accent-color: #c9a14a; flex: none }
.fbp__opt--share { margin-bottom: .9rem }
.fbp__opt-title { display: block; font-weight: 600 }
.fbp__opt-desc { display: block; font-size: .8rem; color: #8a8073; margin-top: 2px }

.fbp__input,
.fbp__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ece5d6;
    border-radius: 8px;
    font: inherit;
    background: #fff;
    margin-bottom: .9rem;
    color: #4a4238;
}
.fbp__input:focus,
.fbp__textarea:focus { outline: 2px solid #c9a14a; outline-offset: 1px; border-color: #c9a14a }

.fbp__input[readonly] { background: #f7f4ee; color: #6b6256 }

.fbp__textarea { resize: vertical; min-height: 96px }

.fbp__submit {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #c9a14a;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.fbp__submit:hover { background: #b8913f }
.fbp__submit:disabled { opacity: .6; cursor: default }

.fbp__error {
    background: #fdf0f0;
    border: 1px solid #f3d4d4;
    color: #8a3b3b;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: .9rem;
    font-size: .88rem;
}

.fbp__success {
    text-align: center;
    padding: 18px 8px 10px;
    color: #4a4238;
}
.fbp__success i { font-size: 2rem; color: #7ba05b; display: block; margin-bottom: .6rem }
.fbp__success p { margin: 0 }

@media (max-width: 520px) {
    .fbp { padding: 0; align-items: flex-end }
    .fbp__dialog { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh }
}
