/* Floating feedback button and modal. Everything lives under .cpa-fb-*
   so it can sit on any page without picking up that page's styles. */

.cpa-fb-root {
    position: fixed;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: calc(18px + env(safe-area-inset-right, 0px));
    z-index: 2147483646;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cpa-fb-launcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px 12px 14px;
    background: #ff6046;
    color: #fff;
    font: 600 15px/1 inherit;
    box-shadow: 0 6px 20px rgba(16, 44, 43, .18), 0 1px 2px rgba(16, 44, 43, .12);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cpa-fb-launcher:hover {
    background: #e94b33;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 44, 43, .22), 0 1px 2px rgba(16, 44, 43, .12);
}
.cpa-fb-launcher:focus-visible { outline: 3px solid #ffd457; outline-offset: 2px; }
.cpa-fb-launcher:active { transform: translateY(0); }

.cpa-fb-launcher-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.cpa-fb-launcher-label { white-space: nowrap; }

@media (max-width: 540px) {
    .cpa-fb-root { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
    .cpa-fb-launcher { padding: 12px; }
    .cpa-fb-launcher-label { display: none; }
}

.cpa-fb-modal[hidden] { display: none; }
.cpa-fb-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background: rgba(16, 39, 37, .55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}
@media (min-width: 540px) {
    .cpa-fb-modal { align-items: center; }
}

body.cpa-fb-open { overflow: hidden; }

.cpa-fb-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 30px 60px rgba(16, 39, 37, .35);
    color: #102c2b;
    animation: cpa-fb-pop .18s ease-out;
}
@keyframes cpa-fb-pop {
    from { transform: translateY(8px) scale(.98); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

.cpa-fb-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: #efece6;
    color: #3d4f4c;
    cursor: pointer;
    border-radius: 50%;
}
.cpa-fb-close svg { width: 18px; height: 18px; display: block; }
.cpa-fb-close:hover { background: #e2ded6; color: #102c2b; }
.cpa-fb-close:focus-visible { outline: 3px solid #ffd457; outline-offset: 2px; }

.cpa-fb-title {
    margin: 0 40px 6px 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #102c2b;
}
.cpa-fb-lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.45;
    color: #3d4f4c;
}

.cpa-fb-form { display: flex; flex-direction: column; gap: 12px; }
.cpa-fb-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #102c2b; }
.cpa-fb-field > span { font-weight: 600; }
.cpa-fb-field input,
.cpa-fb-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(16, 44, 43, .18);
    border-radius: 10px;
    padding: 10px 12px;
    font: 400 15px/1.4 inherit;
    background: #fff;
    color: #102c2b;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.cpa-fb-field input:focus,
.cpa-fb-field textarea:focus {
    outline: 0;
    border-color: #ff6046;
    box-shadow: 0 0 0 3px rgba(255, 96, 70, .18);
}
.cpa-fb-field textarea { resize: vertical; min-height: 96px; }

.cpa-fb-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.cpa-fb-error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
}
.cpa-fb-success {
    background: #d1fae5;
    color: #065f46;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.45;
}
.cpa-fb-card.is-sent .cpa-fb-lead,
.cpa-fb-card.is-sent .cpa-fb-field,
.cpa-fb-card.is-sent .cpa-fb-submit { display: none; }

.cpa-fb-submit {
    align-self: flex-end;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 22px;
    font: 700 15px/1 inherit;
    background: #ff6046;
    color: #fff;
    transition: background .12s ease, transform .12s ease;
}
.cpa-fb-submit:hover { background: #e94b33; }
.cpa-fb-submit:focus-visible { outline: 3px solid #ffd457; outline-offset: 2px; }
.cpa-fb-submit:disabled { opacity: .6; cursor: not-allowed; }
