.publicnewticketform {
    --tu-ticket-primary: var(--colorbackhmenu1, var(--colorthemebackhmenu, #966EA2F2));
    --tu-ticket-primary-soft: color-mix(in srgb, var(--tu-ticket-primary) 12%, #ffffff);
}

.publicnewticketform2 {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
}

.publicnewticketform footer {
    display: flex !important;
    width: 252px;
    margin: 0 auto 18px;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0 !important;
    background: linear-gradient(#d9cfe0, #d9cfe0) center / 100% 1px no-repeat;
}

.publicnewticketform footer::after {
    content: '\f025  Soci';
    padding: 0 14px;
    color: var(--tu-ticket-primary);
    background: #fff;
    font-family: 'Font Awesome 5 Free', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
}

.publicnewticketform footer span {
    display: none;
}

.ticketpublicarea {
    box-sizing: border-box;
    width: min(980px, calc(100% - 32px));
    margin: 22px auto;
    padding: 28px 42px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(45, 34, 72, .12);
}

.ticketpublicarea .titre {
    position: relative;
    min-height: 62px;
    margin: 0 0 24px !important;
    padding: 4px 0 0 66px !important;
    color: var(--tu-ticket-primary);
    font-size: 20px;
    font-weight: 700;
    background: none !important;
    border: 0 !important;
}

.tu-ticket-create-guide-note {
    position: absolute;
    top: 35px;
    left: 66px;
    color: #667085;
    font-size: 12px;
    font-weight: 400;
}

.tu-ticket-guide-preview-button {
    position: absolute;
    top: 5px;
    right: 0;
    padding: 8px 12px;
    color: var(--tu-ticket-primary);
    background: var(--tu-ticket-primary-soft);
    border: 1px solid color-mix(in srgb, var(--tu-ticket-primary) 28%, #ffffff);
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.tu-ticket-guide-preview-button:hover {
    color: #fff;
    background: var(--tu-ticket-primary);
}

.tu-ticket-guide-preview-button {
    transition: transform .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease, opacity .2s ease;
}

.tu-ticket-guide-open .tu-ticket-guide-preview-button {
    visibility: hidden;
    pointer-events: none;
}

.tu-ticket-guide-preview-panel {
    position: fixed;
    z-index: 10000;
    top: 0;
    right: 0;
    display: flex;
    width: min(430px, 40vw);
    height: 100vh;
    flex-direction: column;
    background: #fff;
    box-shadow: -8px 0 24px rgba(16, 24, 40, .18);
    transform: translateX(100%);
    transition: transform .25s ease;
}

.tu-ticket-guide-preview-header {
    display: flex;
    min-height: 54px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    color: var(--tu-ticket-primary);
    border-bottom: 1px solid #eaecf0;
    font-size: 13px;
    font-weight: 700;
}

.tu-ticket-guide-preview-close {
    padding: 7px;
    color: #667085;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.tu-ticket-guide-preview-panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

body.tu-ticket-guide-open .tu-ticket-guide-preview-panel {
    transform: translateX(0);
}

body.tu-ticket-guide-open .ticketpublicarea {
    width: calc(100% - min(430px, 40vw) - 48px);
    margin-right: calc(min(430px, 40vw) + 24px);
    margin-left: 24px;
    transition: margin .25s ease, width .25s ease;
}

.ticketpublicarea .titre::before {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    content: '\f56e';
    color: var(--tu-ticket-primary);
    background: var(--tu-ticket-primary-soft);
    border-radius: 7px;
    font-family: 'Font Awesome 5 Free';
    font-size: 18px;
}

#form_create_ticket {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#form_create_ticket .border {
    width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 18px;
}

#form_create_ticket .border td {
    height: auto;
    padding: 0;
    border: 0;
    vertical-align: middle;
}

#form_create_ticket .border td:first-child {
    position: relative;
    width: 205px;
    padding: 0 24px 0 34px;
    color: #241d36;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.tu-field-help {
    margin-left: 7px;
    color: var(--colorftext, #666666);
    cursor: help;
    font-size: 12px;
    opacity: 0.55;
}

.tu-field-icon {
    position: absolute;
    left: 4px;
    color: var(--tu-ticket-primary);
    font-size: 13px;
}

#form_create_ticket .border tr:nth-child(-n+8) td:first-child::before {
    position: absolute;
    left: 4px;
    color: var(--tu-ticket-primary);
    font-family: 'Font Awesome 5 Free';
    font-size: 13px;
}

#form_create_ticket .border tr:nth-child(1) td:first-child::before {
    content: '\f0e0';
}

#form_create_ticket .border tr:nth-child(2) td:first-child::before {
    content: '\f03a';
}

#form_create_ticket .border tr:nth-child(3) td:first-child::before {
    content: '\f07b';
}

#form_create_ticket .border tr:nth-child(4) td:first-child::before {
    content: '\f024';
}

#form_create_ticket .border tr:nth-child(5) td:first-child::before {
    content: '\f075';
}

#form_create_ticket .border tr:nth-child(6) td:first-child::before {
    content: '\f303';
}

#form_create_ticket .border tr:nth-child(7) td:first-child::before {
    content: '\f02b';
}

#form_create_ticket .border tr:nth-child(8) td:first-child::before {
    content: '\f0c6';
}

#form_create_ticket .border tr:has(textarea[name="message"]) td:first-child,
#form_create_ticket .border tr:has(select[name^="categories"]) td:first-child,
#form_create_ticket .border tr:has(input[type="file"]) td:first-child {
    width: 205px !important;
    padding-left: 34px !important;
}

#form_create_ticket .border tr:has(textarea[name="message"]) td:first-child::before,
#form_create_ticket .border tr:has(select[name^="categories"]) td:first-child::before,
#form_create_ticket .border tr:has(input[type="file"]) td:first-child::before {
    position: absolute;
    left: 4px;
    color: var(--tu-ticket-primary);
    font-family: 'Font Awesome 5 Free';
    font-size: 13px;
}

#form_create_ticket .border tr:has(textarea[name="message"]) td:first-child::before {
    content: '\f303';
}

#form_create_ticket .border tr:has(select[name^="categories"]) td:first-child::before {
    content: '\f02b';
}

#form_create_ticket .border tr:has(input[type="file"]) td:first-child::before {
    content: '\f0c6';
}

#form_create_ticket .border tr:has(select[name^="categories"]) td {
    padding-top: 12px;
}

#form_create_ticket .border tr:has(input[type="file"]) td {
    padding-top: 16px;
}

#form_create_ticket .border tr:has(select[name^="categories"]) td:first-child,
#form_create_ticket .border tr:has(input[type="file"]) td:first-child {
    font-weight: 400;
}

#form_create_ticket input[type="text"],
#form_create_ticket input[type="email"],
#form_create_ticket select,
#form_create_ticket textarea {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 42px;
    border: 1px solid #dedcf0;
    border-radius: 7px;
    box-shadow: none;
    color: #38325c;
    font-size: 13px;
    line-height: 1.4;
}

#form_create_ticket .border tr:nth-child(-n+5) td:nth-child(2) input,
#form_create_ticket .border tr:nth-child(-n+5) td:nth-child(2) select {
    width: 392px !important;
    max-width: 100% !important;
}

#form_create_ticket input[name="subject"] {
    width: 392px !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

#form_create_ticket select {
    color: #1f1b2d;
}

#form_create_ticket textarea {
    min-height: 125px;
    padding: 10px 12px;
}

#form_create_ticket .info {
    margin: 5px 0 12px;
    padding: 12px 18px;
    color: var(--tu-ticket-primary);
    background: var(--tu-ticket-primary-soft);
    border: 1px solid color-mix(in srgb, var(--tu-ticket-primary) 35%, #ffffff);
    border-radius: 7px;
}

#form_create_ticket .warning {
    margin: 5px 0 12px;
    padding: 12px 18px;
    color: #111111 !important;
    background: var(--tu-ticket-primary-soft);
    border: 1px solid color-mix(in srgb, var(--tu-ticket-primary) 35%, #ffffff);
    border-left: 4px solid var(--tu-ticket-primary);
    border-radius: 7px;
    box-shadow: none;
}

#form_create_ticket .warning * {
    color: #111111 !important;
}

#form_create_ticket input[type="file"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 18px;
    overflow: hidden;
    color: #1f1b2d;
    border: 1px dashed var(--tu-ticket-primary);
    border-radius: 8px;
    background: var(--tu-ticket-primary-soft);
}

#form_create_ticket #addfile {
    margin-top: 10px !important;
}

#form_create_ticket .border tr:has(input[type="file"]) td:nth-child(2) {
    max-width: 0;
    overflow: hidden;
}

#form_create_ticket input[type="submit"],
#form_create_ticket .butAction {
    border-radius: 7px;
}

#form_create_ticket input[type="submit"],
#form_create_ticket .butAction {
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

#form_create_ticket input[type="submit"]:hover,
#form_create_ticket .butAction:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--tu-ticket-primary) 35%, transparent);
}

#form_create_ticket input[name="save"],
#form_create_ticket .butActionSave {
    color: #fff !important;
    background: var(--tu-ticket-primary) !important;
    border-color: var(--tu-ticket-primary) !important;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--tu-ticket-primary) 30%, transparent);
}

#form_create_ticket input[name="save"].tu-ticket-create-submit--loading,
#form_create_ticket .butActionSave.tu-ticket-create-submit--loading {
    cursor: wait;
    pointer-events: none;
    opacity: .58;
    filter: saturate(.55);
    transform: none;
    box-shadow: none;
}

#form_create_ticket .tu-ticket-create-submit-wrapper {
    display: inline-block;
    position: relative;
}

#form_create_ticket .tu-ticket-create-submit-wrapper input.tu-ticket-create-submit--loading {
    color: transparent !important;
}

#form_create_ticket .tu-ticket-create-submit-label {
    align-items: center;
    color: #fff;
    display: flex;
    font: inherit;
    inset: 0;
    justify-content: center;
    pointer-events: none;
    position: absolute;
}

#form_create_ticket input[name="save"].tu-ticket-create-submit--loading:hover,
#form_create_ticket .butActionSave.tu-ticket-create-submit--loading:hover {
    transform: none;
    filter: saturate(.55);
    box-shadow: none;
}

#form_create_ticket input[name="cancel"] {
    color: #fff !important;
    background: var(--tu-ticket-primary) !important;
    border: 1px solid var(--tu-ticket-primary) !important;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--tu-ticket-primary) 30%, transparent);
}

#form_create_ticket #addfile {
    color: #fff !important;
    background: var(--tu-ticket-primary) !important;
    border-color: var(--tu-ticket-primary) !important;
}

#form_create_ticket>div.center {
    margin: 24px -42px -24px;
    padding: 14px;
    background: #fbfaff;
    border-top: 1px solid #eeeaf3;
}

@media (max-width: 800px) {
    .ticketpublicarea {
        width: calc(100% - 16px);
        padding: 24px 18px;
    }

    .ticketpublicarea .titre {
        padding-left: 64px !important;
        padding-right: 0 !important;
        font-size: 19px;
    }

    .tu-ticket-create-guide-note {
        position: static;
        display: block;
        margin-top: 6px;
    }

    .tu-ticket-guide-preview-button {
        position: static;
        display: block;
        margin-top: 10px;
    }

    .tu-ticket-guide-preview-panel {
        width: min(100%, 430px);
    }

    body.tu-ticket-guide-open .ticketpublicarea {
        width: calc(100% - 16px);
        margin: 16px auto;
    }

    #form_create_ticket .border,
    #form_create_ticket .border tbody,
    #form_create_ticket .border tr,
    #form_create_ticket .border td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    #form_create_ticket .border td:first-child {
        padding: 8px 0;
    }

    #form_create_ticket>div.center {
        margin-right: -18px;
        margin-left: -18px;
    }
}
