/* LCR Feedback — floating launcher + modal
   Brand: #c9a961 gold, #2C1810 dark, Playfair for heads
   ============================================================= */

/* ----- Launcher ----- */
.lcr-fb-launcher {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem 0.75rem 1rem;
    background: #c9a961;
    color: #2C1810;
    font: 600 0.92rem/1 -apple-system, system-ui, "Segoe UI", sans-serif;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 6px 22px rgba(44, 24, 16, 0.28), 0 2px 6px rgba(44, 24, 16, 0.18);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.lcr-fb-launcher:hover {
    background: #d8b870;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(44, 24, 16, 0.34), 0 3px 8px rgba(44, 24, 16, 0.22);
}
.lcr-fb-launcher:focus-visible {
    outline: 3px solid #2C1810;
    outline-offset: 3px;
}
.lcr-fb-launcher i {
    font-size: 1.15rem;
    line-height: 1;
}
.lcr-fb-launcher-label {
    display: inline-block;
}
@media (max-width: 575px) {
    .lcr-fb-launcher {
        right: 14px;
        bottom: 14px;
        padding: 0.7rem 0.85rem;
    }
    .lcr-fb-launcher-label { display: none; }
    .lcr-fb-launcher i { font-size: 1.3rem; }
}

/* ----- Modal ----- */
.lcr-fb-modal[hidden] { display: none !important; }
.lcr-fb-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lcr-fb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 16, 10, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.lcr-fb-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    padding: 1.6rem 1.75rem 1.4rem;
    font: 400 0.95rem/1.5 -apple-system, system-ui, "Segoe UI", sans-serif;
    color: #2C1810;
    animation: lcrfb-in .22s ease-out;
}
@keyframes lcrfb-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.lcr-fb-close {
    position: absolute;
    top: 0.6rem; right: 0.85rem;
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: #8B7355;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}
.lcr-fb-close:hover { background: rgba(139, 105, 20, 0.08); color: #2C1810; }

.lcr-fb-header { margin-bottom: 1.1rem; padding-right: 2rem; }
.lcr-fb-header h2 {
    margin: 0 0 0.35rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #2C1810;
    font-weight: 600;
}
.lcr-fb-sub { margin: 0; font-size: 0.92rem; color: #5A4A3A; }

.lcr-fb-form { margin: 0; }
.lcr-fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 480px) { .lcr-fb-row { grid-template-columns: 1fr; } }

.lcr-fb-field { margin-bottom: 0.85rem; }
.lcr-fb-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 0.3rem;
    letter-spacing: 0.01em;
}
.lcr-fb-opt { color: #8B7355; font-weight: 400; font-size: 0.74rem; }
.lcr-fb-opt.is-required { color: #c0392b; font-weight: 600; }

.lcr-fb-field input,
.lcr-fb-field select,
.lcr-fb-field textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #D4C5A9;
    border-radius: 8px;
    background: #FAF8F5;
    font: 400 0.95rem/1.45 inherit;
    color: #2C1810;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lcr-fb-field textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.lcr-fb-field input:focus,
.lcr-fb-field select:focus,
.lcr-fb-field textarea:focus {
    outline: none;
    border-color: #8B6914;
    box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.15);
    background: #fff;
}

.lcr-fb-context {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #8B7355;
    background: #FAF6EC;
    border: 1px solid #ECE2C9;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    margin: 0.4rem 0 0.85rem;
}
.lcr-fb-context i { color: #8B6914; }
.lcr-fb-context strong { color: #2C1810; font-weight: 600; }

/* Honeypot — visually hidden, off-screen, not affecting layout */
.lcr-fb-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
}

.lcr-fb-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.lcr-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 600 0.9rem/1 inherit;
    cursor: pointer;
    transition: all .15s ease;
}
.lcr-fb-btn--primary { background: #2C1810; color: #fff; }
.lcr-fb-btn--primary:hover { background: #43261a; }
.lcr-fb-btn--primary:disabled { opacity: 0.6; cursor: wait; }
.lcr-fb-btn--ghost { background: transparent; color: #5A4A3A; border-color: #D4C5A9; }
.lcr-fb-btn--ghost:hover { background: #FAF6EC; }

.lcr-fb-spinner {
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: lcrfb-spin .7s linear infinite;
}
.lcr-fb-btn.is-loading .lcr-fb-spinner { display: inline-block; }
.lcr-fb-btn.is-loading .lcr-fb-btn-label { opacity: 0.7; }
@keyframes lcrfb-spin { to { transform: rotate(360deg); } }

.lcr-fb-legal {
    margin: 0.8rem 0 0;
    font-size: 0.74rem;
    color: #8B7355;
    line-height: 1.5;
}

.lcr-fb-success {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}
.lcr-fb-success-icon {
    font-size: 3rem;
    color: #2d9d4e;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.lcr-fb-success h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    color: #2C1810;
    font-weight: 600;
}
.lcr-fb-success p {
    color: #5A4A3A;
    margin: 0 0 1.25rem;
}

.lcr-fb-error {
    margin-top: 0.85rem;
    padding: 0.7rem 0.9rem;
    background: #fdecea;
    border: 1px solid #f5b3ad;
    color: #8a1c14;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Body scroll lock when modal open */
body.lcr-fb-modal-open { overflow: hidden; }
