/* feedback-modal.css — redesigned "Tell Bob what's up" feedback modal.
   Mirrors _design/design_handoff_feedback prototype. Scoped under
   #feedbackModal so it only restyles this one Bootstrap modal.
   Design --bf-*/--fg* tokens inlined as hex (chat shell doesn't import
   colors_and_type.css). Mobile bottom-sheet rules live in
   mobile-feedback-modal.css. */

#feedbackModal .fb-dialog { max-width: 440px; }

#feedbackModal .modal-content.fb {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px rgba(20, 35, 60, 0.28);
}

/* ---- Header — warm cream band with Bob ----------------------------- */
#feedbackModal .fb-head {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #fff4ec 0%, #ffe9da 100%);
    border-bottom: 1px solid #f4ddcb;
    padding: 20px 22px 18px;
    display: flex;
    align-items: center;
    gap: 13px;
}
#feedbackModal .fb-head::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(254, 98, 17, 0.06);
}
#feedbackModal .fb-head .bob {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    flex: none;
    box-shadow: 0 4px 10px rgba(20, 40, 69, 0.10);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}
#feedbackModal .fb-head .bob img { width: 100%; height: 100%; object-fit: contain; }
#feedbackModal .fb-head .ht { flex: 1; min-width: 0; position: relative; z-index: 1; }
#feedbackModal .fb-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #2a1206;
}
#feedbackModal .fb-head p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: #8a5638;
    line-height: 1.4;
}
#feedbackModal .fb-head .close {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    flex: none;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: #495057;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
#feedbackModal .fb-head .close:hover { background: #fff; color: #212529; }

/* ---- Body ---------------------------------------------------------- */
#feedbackModal .fb-body { padding: 20px 22px 4px; }
#feedbackModal .fb-label {
    font-size: 12px;
    font-weight: 700;
    color: #495057;
    letter-spacing: 0.01em;
    margin: 0 0 9px;
}

/* Type cards */
#feedbackModal .fb-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 20px;
}
#feedbackModal .fb-type {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: 13px;
    padding: 12px 13px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.15s ease;
}
#feedbackModal .fb-type:hover { border-color: #ffb071; background: #fffaf6; }
#feedbackModal .fb-type .ico {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: #f1f3f5;
    color: #495057;
    transition: all 0.15s ease;
}
#feedbackModal .fb-type .tl { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#feedbackModal .fb-type .tl .t { font-size: 13.5px; font-weight: 700; color: #212529; }
#feedbackModal .fb-type .tl .d { font-size: 11px; color: #868e96; }
#feedbackModal .fb-type.on {
    border-color: #fe6211;
    background: #fff4ec;
    box-shadow: 0 0 0 3px rgba(254, 98, 17, 0.07);
}
#feedbackModal .fb-type.on .ico { background: #fe6211; color: #fff; }

/* Message */
#feedbackModal .fb-msg {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border: 1.5px solid #dee2e6;
    border-radius: 14px;
    background: #f8f9fa;
    padding: 13px 15px;
    font-family: inherit;
    font-size: 14px;
    color: #212529;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
#feedbackModal .fb-msg::placeholder { color: #adb5bd; }
#feedbackModal .fb-msg:focus {
    background: #fff;
    border-color: #ff8a3d;
    box-shadow: 0 0 0 4px rgba(254, 98, 17, 0.10);
}
#feedbackModal .fb-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 2px 0;
}
#feedbackModal .fb-meta .hint {
    font-size: 11.5px;
    color: #868e96;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#feedbackModal .fb-meta .hint i { color: #fe6211; }
#feedbackModal .fb-meta .count {
    font-size: 11.5px;
    color: #adb5bd;
    font-variant-numeric: tabular-nums;
}
#feedbackModal #feedback-response:not(:empty) { margin: 12px 2px 0; }

/* ---- Footer -------------------------------------------------------- */
#feedbackModal .fb-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px 20px;
}
#feedbackModal .fb-foot .spacer { flex: 1; }
#feedbackModal .fb-btn {
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 12px 20px;
    transition: background 0.15s ease, transform 0.15s ease;
}
#feedbackModal .fb-btn.ghost { background: transparent; color: #495057; }
#feedbackModal .fb-btn.ghost:hover { background: #f1f3f5; color: #212529; }
#feedbackModal .fb-btn.primary {
    background: #fe6211;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(17, 24, 39, 0.10);
}
#feedbackModal .fb-btn.primary:hover:not(:disabled) { background: #e2560c; }
#feedbackModal .fb-btn.primary:disabled {
    background: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---- Success state ------------------------------------------------- */
#feedbackModal .fb-success {
    padding: 40px 28px 36px;
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
}
#feedbackModal .fb.done #feedbackForm { display: none; }
#feedbackModal .fb.done .fb-success { display: flex; }
#feedbackModal .fb-success .seal {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #e3f4e9;
    color: #1f8a4c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    animation: fb-seal 360ms cubic-bezier(.2, .7, .3, 1.3);
}
@keyframes fb-seal { from { transform: scale(0.6); } to { transform: scale(1); } }
#feedbackModal .fb-success h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #212529;
}
#feedbackModal .fb-success p {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: #495057;
    line-height: 1.5;
    max-width: 30ch;
}
