@page {
    size: letter;
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #e0e0e0;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans",
        sans-serif;

}

#load-btn {
    position: fixed;
    /* keep it floating */
    right: 1rem;
    top: 1rem;
    z-index: 9999;
    /* ensure it stays above content */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 999px;
    /* pill shape */
    background: #e47208;
    /* blue */
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page {
    position: relative;
    width: 8.5in;
    height: 11in;
    margin: 20px auto;
    background-color: white;
    background-size: contain;
    background-repeat: no-repeat;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Background Images (Ensure these files are in the same folder) */
#page1 {
    background-image: url('page1.png');
}

#page2 {
    background-image: url('page2.png');
}

/* Fillable Input Styling */
.fill-input {
    position: absolute;
    background: rgba(0, 100, 255, 0.05);
    /* Faint tint for visibility */
    border: none;
    border-bottom: 1px dashed transparent;

    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;

    font-size: 11pt;
    padding: 1px 4px;
    box-sizing: border-box;
}

.fill-input:focus {
    background: rgba(255, 255, 255, 0.9);
    outline: 1px solid #0078d7;
}

.initial-box {
    width: 0.4in;
    height: 0.3in;
    text-align: center;
    font-weight: bold;
}

/* Printing logic */
@media print {
    body {
        background: none;
    }

    .page {
        margin: 0;
        box-shadow: none;
        page-break-after: always;
    }

    .fill-input {
        background: transparent !important;
        border: none !important;
    }

    ::placeholder {
        color: transparent;
    }
}

/* COORDINATE POSITIONING (Adjust these to match your images) */

/* PAGE 1 FIELDS */
.f-name {
    top: 2.00in;
    left: 1.15in;
    width: 3.5in;
}

.f-address {
    top: 2.27in;
    left: 1.27in;
    width: 3.4in;
}

.f-phone {
    top: 2.55in;
    left: 1.7in;
    width: 2.0in;
}

.f-email {
    top: 2.80in;
    left: 1.15in;
    width: 3.4in;
}

.f-mtype {
    top: 2.5in;
    left: 6.2in;
    width: 1.5in;
}

/* .f-init1    { top: 4.40in; left: 0.65in; } X (Initial) */
.f-pad-amt {
    top: 6.56in;
    left: 6.56in;
    width: 0.9in;
}

.f-pad-day {
    top: 6.75in;
    left: 0.8in;
    width: 0.4in;
}

/* PAGE 2 FIELDS */
/* .f-init2    { top: 2.30in; left: 0.65in; } X (Recourse Initial) */
/* .f-init3    { top: 3.65in; left: 0.65in; } X (Cancellation Initial) */

/* .f-sig-member { top: 6.25in; left: 0.75in; width: 4.2in; } */
.f-date1 {
    top: 6.53in;
    left: 3.80in;
    width: 1.6in;
}

/* .f-sig-parent { top: 7.10in; left: 0.75in; width: 4.2in; } */
.f-date2 {
    top: 7.4in;
    left: 3.80in;
    width: 1.6in;
}

.f-staff {
    top: 6.50in;
    left: 6.1in;
    width: 2.2in;
}

.floating-print-btn {
    position: fixed;
    /* keep it floating */
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    /* ensure it stays above content */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 999px;
    /* pill shape */
    background: #2563eb;
    /* blue */
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.floating-print-btn:hover {
    background: #1e40af;
    /* darker blue on hover */
}

/* Hide the button in print */
@media print {
    .floating-print-btn {
        display: none !important;
    }

    .floating-Fill-btn {
        display: none !important;
    }


    body {
        color: rgb(119, 5, 5);
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .pdf-input {
        border: 0.5px solid #f8f0f0;
    }

    input,
    textarea,
    select {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

}

#load-btn {
    position: fixed;
    /* keep it floating */
    right: 1rem;
    top: 1rem;
    z-index: 9999;
    /* ensure it stays above content */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 999px;
    /* pill shape */
    background: #e47208;
    /* blue */
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.floating-Fill-btn:hover {
    background: #1e40af;
    /* darker blue on hover */
}