.vq-affidamento-wrap {
    max-width: 1180px;
    margin: 24px auto;
    padding: 0 16px;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

body.vq-affidamento-page .entry-header,
body.vq-affidamento-page .page-header,
body.vq-affidamento-page .post-edit-link {
    display: none !important;
}

body.vq-affidamento-page .site,
body.vq-affidamento-page .site-content,
body.vq-affidamento-page .content-area,
body.vq-affidamento-page .site-main,
body.vq-affidamento-page .entry-content,
body.vq-affidamento-page .post-inner,
body.vq-affidamento-page .wp-block-post-content,
body.vq-affidamento-page .container,
body.vq-affidamento-page .ast-container,
body.vq-affidamento-page .nv-single-page-wrap,
body.vq-affidamento-page .nv-content-wrap {
    max-width: none !important;
}

body.vq-affidamento-page .entry-content,
body.vq-affidamento-page .wp-block-post-content {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.vq-affidamento-frontend {
    box-sizing: border-box;
    width: min(1180px, calc(100vw - 32px));
}

.vq-affidamento-header,
.vq-panel,
.vq-admin-info,
.vq-notice {
    margin-bottom: 18px;
}

.vq-affidamento-header h1,
.vq-affidamento-wrap h1 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.2;
}

.vq-affidamento-header p {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.vq-panel {
    padding: 20px;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    background: #ffffff;
}

.vq-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.25;
}

.vq-grid {
    display: grid;
    gap: 14px;
}

.vq-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vq-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vq-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vq-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}

.vq-field strong {
    color: #ad1f1f;
}

.vq-field input,
.vq-field select,
.vq-field textarea {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid #c8d0da;
    border-radius: 6px;
    padding: 9px 10px;
    background: #ffffff;
    color: #172033;
    font-size: 15px;
    font-family: inherit;
}

.vq-field textarea {
    min-height: 104px;
    resize: vertical;
}

.vq-artwork {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e0e5ec;
    border-radius: 8px;
    background: #fbfcfe;
}

.vq-artwork-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vq-artwork-heading h3 {
    margin: 0;
    font-size: 17px;
}

.vq-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 22px 0;
}

.vq-actions p {
    margin: 0;
    color: #5f6b7a;
}

.vq-primary-button,
.vq-secondary-button,
.vq-remove-button {
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.vq-primary-button {
    background: #172033;
    color: #ffffff;
}

.vq-secondary-button {
    background: #e9edf3;
    color: #172033;
}

.vq-remove-button {
    background: #f2d6d6;
    color: #7f1d1d;
}

.vq-admin-info {
    padding: 14px;
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
}

.vq-admin-info p {
    margin: 8px 0 0;
}

.vq-signature-field {
    display: block;
}

.vq-signature-box {
    border: 1px solid #c8d0da;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.vq-signature-canvas {
    display: block;
    width: 100%;
    height: 190px;
    border: 1px dashed #8d99a8;
    border-radius: 6px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
}

.vq-signature-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .vq-grid.two,
    .vq-grid.three,
    .vq-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 700px) and (max-width: 1200px) {
    body.vq-affidamento-page .site-content,
    body.vq-affidamento-page .content-area,
    body.vq-affidamento-page .site-main,
    body.vq-affidamento-page .entry-content,
    body.vq-affidamento-page .post-inner,
    body.vq-affidamento-page .wp-block-post-content,
    body.vq-affidamento-page .container,
    body.vq-affidamento-page .ast-container,
    body.vq-affidamento-page .nv-single-page-wrap,
    body.vq-affidamento-page .nv-content-wrap {
        display: block !important;
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .vq-affidamento-frontend {
        position: relative;
        left: 50%;
        width: calc(100vw - 32px) !important;
        max-width: none !important;
        margin: 18px 0 32px calc(-50vw + 16px) !important;
        padding: 0 !important;
    }

    .vq-affidamento-frontend .vq-panel {
        padding: 18px;
    }
}

@media (max-width: 620px) {
    .vq-affidamento-wrap {
        margin: 14px auto;
        padding: 0 10px;
    }

    .vq-panel {
        padding: 14px;
    }

    .vq-grid.two,
    .vq-grid.three,
    .vq-grid.four {
        grid-template-columns: 1fr;
    }

    .vq-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .vq-primary-button,
    .vq-secondary-button,
    .vq-remove-button {
        width: 100%;
    }
}
