/*
 * « Signaler un contenu » (T-51, 50-1 to 50-5, 0-67): the fields of the only form of the public site, in its style
 * (vitrine.css, whose colours and fonts are reused), and the box of its confirmation. The text of an error keeps 4.5:1
 * on white (the red of « Refusé », 0-33); the box of the confirmation is green (the tints of « Ouvert », 0-33).
 */

:root {
    --report-error: #A3141E;
    --report-error-tile: #FFE1E1;
    --report-done: #2D5A06;
    --report-done-tile: #D6F2B4;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-required-note,
.report-help {
    margin: 0;
    color: var(--slate);
    font-size: 15px;
}

.report-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.report-field > label,
.report-choices legend {
    padding: 0;
    font-weight: 600;
}

.report-optional {
    color: var(--slate);
    font-weight: 400;
}

.report-optional[hidden] {
    display: none;
}

.report-field input[type="text"],
.report-field input[type="email"],
.report-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid var(--lavender);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 17px;
}

.report-field textarea {
    min-height: 200px;
    resize: vertical;
}

.report-field input:focus-visible,
.report-field textarea:focus-visible,
.report-choice input:focus-visible,
.report-check input:focus-visible,
.report-choices:focus-visible,
.report-errors:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
}

.report-field input[aria-invalid="true"],
.report-field textarea[aria-invalid="true"] {
    border-color: var(--report-error);
}

.report-choices {
    gap: 10px;
}

.report-choice,
.report-check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 4px 10px;
}

.report-choice input,
.report-check input {
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: var(--navy);
}

.report-check > label {
    font-weight: 400;
}

.report-check .report-help,
.report-check .report-error {
    grid-column: 2;
}

.report-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    color: var(--report-error);
    font-size: 15px;
}

.report-error svg {
    flex: none;
    margin-top: 3px;
}

.report-errors {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 22px;
    border-left: 4px solid var(--report-error);
    border-radius: 10px;
    background: var(--report-error-tile);
}

.report-errors-title {
    margin: 0;
    font-weight: 600;
}

.report-errors ul {
    margin: 0;
}

.report-errors a {
    color: var(--report-error);
}

.report-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.report-submit {
    align-self: flex-start;
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: var(--white);
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.report-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

.report-submit:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}

.report-received {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 22px;
    border-left: 4px solid var(--report-done);
    border-radius: 10px;
    background: var(--report-done-tile);
}

.report-received p {
    margin: 0;
}
