/* "Where did you hear about TraceFind?" (js/tf-found-us.js) — site dark surface, red accent. */
.tf-found {
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    margin: 22px auto 0;
    padding: 18px 18px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(207, 54, 45, 0.08), rgba(15, 15, 18, 0.96) 60%);
    color: #f4f4f5;
    text-align: left;
    font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
    animation: tf-found-in 0.35s ease;
}

.tf-found * {
    box-sizing: border-box;
}

@keyframes tf-found-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

.tf-found-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tf-found-kicker {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5d984;
    font-weight: 600;
}

.tf-found-skip {
    border: 0;
    background: none;
    color: #a1a1aa;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
}

.tf-found-skip:hover {
    color: #f4f4f5;
}

.tf-found-q {
    margin: 6px 0 14px;
    font-size: 17px;
    font-weight: 600;
    color: #f4f4f5;
}

.tf-found-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tf-found-option {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #141418;
    color: #e4e4e7;
    border-radius: 999px;
    padding: 7px 13px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}

.tf-found-option:hover,
.tf-found-option.active {
    border-color: #cf362d;
    background: rgba(207, 54, 45, 0.16);
}

.tf-found-option:disabled {
    opacity: 0.6;
    cursor: default;
}

.tf-found-other {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tf-found-other[hidden] {
    display: none;
}

.tf-found-input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #09090b;
    color: #f4f4f5;
    font: inherit;
    font-size: 13px;
}

.tf-found-input:focus {
    outline: none;
    border-color: #cf362d;
}

.tf-found-send {
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    border: 0;
    background: #cf362d;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.tf-found.done {
    text-align: center;
    padding: 16px;
}

.tf-found-thanks {
    margin: 0;
    color: #4ade80;
    font-weight: 600;
}

/* ---- modal (TFFoundUs.modal / maybePrompt) ------------------------------- */
.tf-found-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    /* Darker and blurrier: the page behind should only be a hint, so the
       question in front is the one thing to read. */
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(14px) saturate(0.8);
    -webkit-backdrop-filter: blur(14px) saturate(0.8);
    animation: tf-found-fade 0.2s ease;
}

.tf-found-backdrop.closing {
    opacity: 0;
    transition: opacity 0.18s ease;
}

@keyframes tf-found-fade {
    from {
        opacity: 0;
    }
}

.tf-found-dialog {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 24px 22px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* Solid card (the gradient started transparent, so the page showed through). */
    background: linear-gradient(180deg, #1a0f10, #0f0f12 46%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.4);
    color: #f4f4f5;
    text-align: left;
    font-family: var(--font-sans, 'Geist', system-ui, sans-serif);
    animation: tf-found-pop 0.32s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

.tf-found-dialog * {
    box-sizing: border-box;
}

@keyframes tf-found-pop {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
}

.tf-found-dialog .tf-found-title {
    margin: 6px 0 4px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #fafafa;
}

.tf-found-sub {
    margin: 0 0 16px;
    font-size: 13.5px;
    color: #a1a1aa;
}

.tf-found-dialog .tf-found-option {
    padding: 9px 14px;
    font-size: 14px;
}

.tf-found-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
}

.tf-found-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fafafa;
}

.tf-found-close svg {
    width: 18px;
    height: 18px;
}

.tf-found-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-found-never {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a1a1aa;
    cursor: pointer;
    user-select: none;
}

.tf-found-never input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #cf362d;
}

.tf-found-later {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #e4e4e7;
    border-radius: 9px;
    padding: 8px 14px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.tf-found-later:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tf-found-dialog.done {
    padding: 34px 22px;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .tf-found-backdrop,
    .tf-found-dialog {
        animation: none;
    }
}
