@page {
    size: 215.9mm 330.2mm; /* Folio / Philippine Legal (8.5in x 13in) */
    margin: 6mm 10mm 6mm 10mm;
}

body.gcs-form-body {
    background-color: #525659;
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.gcs-sheet-portrait {
    width: 215.9mm;
    min-height: 330.2mm;
    padding: 6mm 10mm 20mm 10mm;
    box-sizing: border-box;
    position: relative;
    background: #ffffff;
    margin: 0 auto;
    color: #000000;
}

/* Top Document Header Container */
.appointment-header-container {
    position: relative;
    width: 100%;
    margin-bottom: 4px;
}

.appointment-header-dept {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9.5pt;
    font-weight: bold;
    letter-spacing: 0.2px;
    text-align: center;
    color: #000000;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 12pt;
}

.appointment-header-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14pt;
    font-weight: bold !important;
    letter-spacing: 0.2px;
    text-align: center;
    color: #000000;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 16pt;
}

/* Preamble Intro Paragraphs */
.consent-preamble {
    width: 100%;
    font-family: 'Times New Roman', Times, serif;
    font-size: 9.96pt;
    line-height: 12pt;
    text-align: justify;
    text-justify: inter-word;
    color: #000000;
    margin-bottom: 6px;
}

.consent-preamble-p {
    margin: 0;
    text-indent: 28.3pt;
}

/* 14-Row Unified Table */
.gcs-consent-tbl {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #000000;
    font-family: 'Times New Roman', Times, serif;
    color: #000000;
}

.gcs-consent-tbl td, 
.gcs-consent-tbl th {
    border: 1px solid #000000;
    box-sizing: border-box;
    vertical-align: top;
}

/* Deep Navy Blue Section Headers (#001F5F) */
.consent-navy-header {
    background-color: #001F5F !important;
    color: #ffffff !important;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 9pt;
    text-align: center;
    padding: 2px 4px;
    letter-spacing: 0.3px;
    line-height: 12pt;
}

/* Personal Information Rows */
.consent-info-row td {
    padding: 1px 6px;
    font-size: 8pt;
    line-height: 12pt;
    vertical-align: middle;
}

.consent-info-label {
    font-weight: bold;
    display: inline-block;
    margin-right: 4px;
    font-size: 8pt;
    white-space: nowrap;
}

.consent-info-val {
    font-weight: normal;
    font-size: 8pt;
    color: #000000;
}

/* Two-Column Body Content */
.consent-col-left {
    width: 45.3%;
    padding: 4px 6px;
    font-size: 7.5pt;
    line-height: 1.15;
    text-align: justify;
}

.consent-col-right {
    width: 54.7%;
    padding: 4px 6px;
    font-size: 7.5pt;
    line-height: 1.15;
    text-align: justify;
}

.consent-col-p {
    margin: 0 0 3px 0;
}

.consent-col-heading {
    font-weight: bold;
    margin: 3px 0 1px 0;
    font-size: 7.5pt;
}

.consent-bullet-list {
    margin: 0;
    padding-left: 12px;
    list-style-type: disc;
}

.consent-bullet-list li {
    margin-bottom: 2px;
}

.consent-bullet-sublist {
    margin: 1px 0 2px 0;
    padding-left: 14px;
    list-style-type: circle;
}

/* Acknowledgement Section */
.consent-ack-cell {
    padding: 6px 12px 10px 12px;
    font-size: 8pt;
    line-height: 1.25;
    color: #000000;
}

.consent-ack-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
}

.consent-chk-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    min-width: 10px;
    max-width: 10px;
    border: 1px solid #000000;
    margin-right: 8px;
    margin-top: 1.5px;
    flex-shrink: 0;
    background: #ffffff;
    font-size: 7pt;
    line-height: 1;
}

/* Centered Signature Block */
.consent-signature-container {
    text-align: center;
    margin: 14px auto 4px auto;
    width: 320px;
    position: relative;
}

.consent-signature-line {
    border-bottom: 1px solid #000000;
    min-height: 18px;
    font-weight: bold;
    font-size: 9.5pt;
    text-align: center;
    position: relative;
    padding-bottom: 1px;
}

.consent-signature-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 9pt;
    font-weight: bold;
    margin-top: 3px;
    letter-spacing: 0.3px;
    text-align: center;
}

.consent-sig-img-wrap {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
    z-index: 2;
}

/* Official Standardized ISO Footer */
.appointment-footer-container {
    position: absolute;
    bottom: 6mm;
    left: 0;
    right: 0;
    width: 100%;
    height: 1.86cm;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box;
}

.appointment-footer-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.5mm;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 7.5pt;
    line-height: 1.35;
    color: #000000;
    pointer-events: auto;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap;
}

.appointment-footer-text div:first-child {
    margin-bottom: 2px;
}

.appointment-footer-text a {
    color: #000000;
    text-decoration: none;
}

.appointment-footer-socotec {
    position: absolute;
    right: 12mm;
    bottom: 0;
    width: 3.6cm;
    height: 1.86cm;
    object-fit: fill;
    display: block;
    pointer-events: auto;
}

@media print {
    body.gcs-form-body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .gcs-toolbar {
        display: none !important;
    }
    .gcs-paper-viewport {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    .gcs-sheet-portrait {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: auto !important;
        padding: 6mm 12mm 18mm 12mm !important;
    }
    .appointment-footer-container {
        position: absolute !important;
        bottom: 4mm !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
    .appointment-footer-text {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }
    .appointment-footer-socotec {
        position: absolute !important;
        right: 12mm !important;
        bottom: 0 !important;
    }
}
