/*
 * The public abuse page's form.
 *
 * Only the form: the prose around it is `content-page.css`, shared with Privacy, and this file
 * deliberately adds nothing to that. Somebody reading this page is not browsing — they have usually
 * just been shown something alarming — so the page stays in the site's ordinary reading style and
 * the form is the one thing that looks like a control.
 */

.abuse-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 40rem;
    margin: 1rem 0 0;
}

.abuse-form label {
    margin-top: 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.abuse-form input,
.abuse-form select,
.abuse-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--ap-border, #293548);
    border-radius: 8px;
    background: var(--ap-field, rgba(255, 255, 255, 0.04));
    color: inherit;
    font: inherit;
    font-size: 0.95rem;
}

.abuse-form textarea { resize: vertical; min-height: 6rem; }

.abuse-form input:focus,
.abuse-form select:focus,
.abuse-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.abuse-help {
    margin: 0.1rem 0 0;
    font-size: 0.82rem;
    opacity: 0.7;
    line-height: 1.5;
}

.abuse-optional { font-weight: 400; opacity: 0.65; }

.abuse-submit {
    align-self: flex-start;
    margin-top: 1.4rem;
    padding: 0.6rem 1.4rem;
    border: 0;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.abuse-submit:hover { background: #818cf8; }
.abuse-submit[disabled] { opacity: 0.6; cursor: default; }

.abuse-result {
    margin-top: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.abuse-result.is-ok {
    background: rgba(52, 211, 153, 0.14);
    color: #34d399;
}

.abuse-result.is-error {
    background: rgba(248, 113, 113, 0.14);
    color: #f87171;
}

/*
 * The placeholder policy notice.
 *
 * Amber and stated on the page rather than only in a source comment. What counts as acceptable use
 * is the ground on which an account gets terminated, and shipping a draft that reads as settled is
 * worse than shipping none — an author disputing a takedown is entitled to know whether the rule
 * they are being held to has actually been decided.
 */
.abuse-placeholder {
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1px dashed rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    font-size: 0.88rem;
}
