@page { size: A4; margin: 15mm; }
body { font-family: 'Arial', sans-serif; background-color: #f9f9f9; padding: 0; }
.wrapper { width: 100%; max-width: 210mm; margin: auto; background: white; padding: 6mm; border: 0px solid #333; box-sizing: border-box; }
.btn-group { text-align: center; margin-bottom: 10px; }
.btn { padding: 8px 15px; margin: 5px; cursor: pointer; border: none; color: white; font-weight: bold; border-radius: 5px; }
.bg-green { background-color: #2e7d32; }

.header-text { text-align: center; font-size: 11px; margin-bottom: 5px; }
.title { text-align: center; font-weight: bold; text-decoration: underline; font-size: 20px; margin-bottom: 5px; }
.annex { text-align: center; font-weight: bold; margin-bottom: 1px; }

p { font-size: 12px; margin: 4px 0; }
.form-input { border: none; border-bottom: 1px dotted #000; color: #000; font-weight: bold; width: 120px; }
/* School name input needs more width */
.school-input { width: 250px; }
.form-input::placeholder { color: blue; opacity: 1; }


.notes { font-size: 11px; margin-top: 5px; }

.footer-container { margin-top: 15px; display: flex; justify-content: space-between; align-items: flex-start; }
.footer-left { width: 45%; }
.footer-right { width: 40%; text-align: right; }

.signature-box { border: none; height: 50px; width: 100%; background-color: white; display: flex; align-items: center; justify-content: center; }
.sig-input { width: 90%; height: 40px; border: none; background: transparent; text-align: center; }

.final-footer {  text-align: center; margin-top: 10px; font-weight: bold; color: #888;}
.creator-info { text-align: center; font-size: 10px; margin-top: 5px; color: #888; }

.auto-width-input {
    border: none;
    border-bottom:
    1px dotted #000;
    color: #000;
    font-weight: bold;
    field-sizing: content; /* Automatically shrinks or grows to fit text */
    min-width: 150px;       /* Keeps it from completely disappearing when empty */
    max-width: 300px;      /* Prevents it from breaking your layout */
}

@media print {
    .btn-group { display: none; }            .
                                             .wrapper { border: none; padding: 0; }
    .creator-info { display: none; }
    @page
    {
        size: A4 portrait;
        min-height: 100%;
        min-width: 100%;
        width: auto;
        height: auto;
        padding: 25;
        /* Set top, right, bottom, and left margins in order */
        margin: 1.0cm 1.0cm 1.0cm 1.5cm;
    }
    /* The trick: A fixed empty container that repeats on every page */
    #print-page-border {
        display: block !important;
        position: fixed;
        /* Adjust offsets to create an outer 'matting' effect */
        left: 5px; top: 5px; right: 5px; bottom: 5px;
        border: 4px solid #000000;
        outline: 1px solid #000000; /* Extra inner line */
        outline-offset: -8px;
        pointer-events: none;
    }
    /* Hide the print border container on the normal web screen view */
    @media screen {
        #print-page-border {
            display: none;
        }
    }
}