* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    font-family: 'Arial', 'Helvetica', sans-serif;
    padding: 20px;
}

.page {
    width: 210mm;
    min-height: 297mm;
    padding: 15mm 20mm 15mm 20mm;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 10mm auto;
    display: flex;
    flex-direction: column;
}

/* Header logos */
.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.doc-header img {
    height: 60px;
    width: auto;
}

/* Main title */
.doc-title {
    font-size: 13px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 14px;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Section tables (DADO DO PROPRIETÁRIO, CARACTERÍSTICAS DO VEÍCULO) */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 11.5px;
}

.info-table th {
    background: white;
    border: 1.5px solid #000;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    font-size: 12px;
    text-transform: uppercase;
}

.info-table td {
    border: 1.5px solid #000;
    padding: 5px 8px;
    vertical-align: middle;
    font-weight: bold;
    font-size: 11.5px;
}

.info-table td input[type="text"] {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: normal;
    width: 100%;
    padding: 0;
    min-width: 0;
}

/* Body text paragraphs */
.doc-text {
    font-size: 11px;
    text-align: justify;
    margin-bottom: 10px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Checkboxes */
.checkbox-list {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
}

.checkbox-list li {
    font-size: 11px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.checkbox-list li input[type="checkbox"] {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    cursor: pointer;
}

/* IMPORTANTE section */
.important-title {
    font-size: 11.5px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.important-item {
    font-size: 11px;
    text-align: justify;
    margin-bottom: 10px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Local e Data line */
.local-data-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin: 18px 0 24px 0;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding-left: 20mm;
}

.local-data-row .field-group {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.local-data-row input[type="text"] {
    border: none;
    border-bottom: 1px solid #000;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    padding: 0 3px;
}

.local-input { width: 160px; }
.date-dd { width: 28px; text-align: center; }
.date-mm { width: 28px; text-align: center; }
.date-yyyy { width: 44px; text-align: center; }

/* Signature area */
.signature-area {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.signature-line {
    width: 75%;
    border-top: 1px solid #000;
}

.signature-label {
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

/* Print */
@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        background: none;
        padding: 0;
        margin: 0;
    }

    .top-bar,
    .main-header,
    footer#contact,
    .print-btn-container {
        display: none !important;
    }

    .page {
        width: 210mm;
        height: 297mm;
        min-height: unset;
        box-shadow: none;
        margin: 0;
        padding: 15mm 20mm 15mm 20mm;
        border: none;
    }

    .info-table input[type="text"] {
        border: none;
        outline: none;
    }
}
