* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f0f0f0;
    font-family: 'Arial', 'Helvetica', sans-serif;
    /* Matching the font in image which looks like Arial/Helvetica */
    padding: 20px;
}

.page {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 10mm auto;
    /* Center the page with top spacing */
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}



.logo-parana img {
    height: 55px;
    /* Adjust based on visual match */
}

/* Title */
.document-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Form Styles */
.document-body {
    font-size: 12px;
    line-height: 1.5;
}

.line {
    display: flex;
    align-items: flex-end;
    /* Align inputs to the bottom of text */
    margin-bottom: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.line label {
    font-weight: bold;
    margin-right: 5px;
    white-space: nowrap;
}

/* Inputs styling to look like lines */
input[type="text"] {
    border: none;
    border-bottom: 1px solid #000;
    font-family: inherit;
    font-size: 14px;
    /* Input text slightly larger for readability when typing */
    padding: 0 5px;
    outline: none;
    background: transparent;
    margin-left: 2px;
    margin-right: 2px;
}

.full-width {
    flex: 1;
}

/* Specific Spacings */
.declaration-text {
    margin: 20px 0;
    text-align: justify;
    font-weight: bold;
    font-size: 12px;
}

.spacer-small {
    height: 20px;
}

.spacer-large {
    height: 40px;
}

.spacer-xlarge {
    height: 60px;
}

.spacer-xxlarge {
    height: 80px;
}

.responsibility-text {
    margin-top: 20px;
    font-weight: bold;
    text-align: justify;
    font-size: 11px;
}

.date-line {
    margin-top: 40px;
}

.date-inputs {
    display: flex;
    align-items: flex-end;
}

.date-inputs input {
    text-align: center;
}

.date-inputs .day {
    width: 40px;
}

.date-inputs .month {
    width: 40px;
}

.date-inputs .year {
    width: 60px;
}

/* Signature Block */
.signatures {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.signature-block {
    text-align: center;
    width: 80%;
}

.signature-line {
    border-top: 1px solid #000;
    width: 100%;
    margin-bottom: 5px;
}

.signature-block p {
    font-size: 11px;
    font-weight: bold;
}

/* Print Specifics */
@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        background: none;
        padding: 0;
        margin: 0;
        width: 210mm;
        height: 297mm;
        overflow: hidden;
        /* Prevent spillover */
    }

    .page {
        width: 100%;
        height: 100%;
        /* Force height match */
        box-shadow: none;
        margin: 0;
        padding: 15mm;
        /* Reduce padding slightly for safety */
        border: none;
        position: static;
        /* Remove relative positioning */
    }

    /* Reduce spacers for print to fit */
    .spacer-small {
        height: 10px;
    }

    .spacer-large {
        height: 20px;
    }

    .spacer-xlarge {
        height: 40px;
    }

    .spacer-xxlarge {
        height: 60px;
    }

    header {
        margin-bottom: 20px;
        /* Reduce header margin */
    }

    .document-title {
        margin-bottom: 20px;
    }

    /* Ensure no scrollbars */
    ::-webkit-scrollbar {
        display: none;
    }

    .top-bar,
    .main-header,
    footer,
    .mobile-menu-btn {
        display: none !important;
    }
}