.grievance-submit-page {
    padding: 40px 20px 90px;
}

.grievance-submit {
    width: min(100%, 760px);
    margin: 0 auto;
}

.grievance-submit h1 {
    margin: 0 0 18px;
    font-size: clamp(44px, 7vw, 70px);
    line-height: .98;
    letter-spacing: -3px;
}

.grievance-submit h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 6px;
    margin-top: 16px;
    background: var(--header-green);
}

.grievance-intro {
    max-width: 620px;
    margin: 26px 0 42px;
    font-size: 17px;
    line-height: 1.65;
}

.grievance-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 800;
    font-size: 15px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 15px 16px;

    border: 1px solid #767676;
    border-radius: 0;

    background: white;

    font: inherit;
    font-size: 16px;
}

.form-field input,
.form-field select {
    min-height: 53px;
}

.form-field textarea {
    resize: vertical;
    line-height: 1.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 3px solid rgba(139, 203, 103, .28);
    border-color: #2f7f3b;
}

.field-help {
    margin: -2px 0 5px;

    color: #666;

    font-size: 14px;
    line-height: 1.45;
}


/* =========================
   CHARTE
   ========================= */

.moderation-charter-link {
    width: fit-content;

    padding: 0;

    border: 0;
    border-bottom: 1px solid currentColor;

    background: none;

    color: #2f7f3b;

    font: inherit;
    font-weight: 700;

    cursor: pointer;
}

.moderation-charter-link:hover {
    opacity: .75;
}


/* =========================
   ENVOI
   ========================= */

.grievance-submit-button {
    min-height: 56px;

    margin-top: 6px;

    padding: 14px 28px;

    border: 0;

    background: #c94c64;
    color: white;

    font: inherit;
    font-size: 17px;
    font-weight: 800;

    cursor: pointer;
}

.grievance-submit-button:hover {
    opacity: .9;
}


/* =========================
   MODALE CHARTE
   ========================= */

.charter-modal[hidden] {
    display: none;
}

.charter-modal {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: grid;
    place-items: center;

    padding: 24px;
}

.charter-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .48);
}

.charter-dialog {
    position: relative;
    z-index: 1;

    width: min(850px, 100%);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    box-sizing: border-box;

    padding: 55px 60px 60px;

    background: white;
}

.charter-close {
    position: absolute;

    top: 14px;
    right: 18px;

    border: 0;
    background: transparent;

    font-size: 35px;
    line-height: 1;

    cursor: pointer;
}

.charter-close:hover {
    opacity: .65;
}

.charter-dialog h2 {
    margin: 0 50px 35px 0;

    font-size: 42px;
    line-height: 1.05;
}

.charter-content {
    font-size: 16px;
    line-height: 1.7;
}

.charter-content h3 {
    margin-top: 32px;
}

.charter-content p {
    margin-bottom: 18px;
}

body.charter-open {
    overflow: hidden;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 680px) {

    .grievance-submit-page {
        padding: 30px 16px 65px;
    }

    .grievance-submit h1 {
        font-size: 46px;
        letter-spacing: -2px;
    }

    .grievance-intro {
        margin-bottom: 34px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .grievance-submit-button {
        width: 100%;
    }

    .charter-modal {
        padding: 12px;
    }

    .charter-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);

        padding: 55px 24px 40px;
    }

    .charter-dialog h2 {
        font-size: 33px;
    }
}