@page {
    size: A4 portrait;
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
}

.a4-page {
    width: 210mm;
    min-height: 297mm;
    padding: 20mm 15mm 50mm 15mm;
    margin: 20px auto;
    background: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    font-size: 11pt;
    line-height: 1.55;
    color: #222;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 3px solid #0e5aa0;
    padding-bottom: 15px;
}

.logo {
    display: block;
    margin: 0 auto 12px;
    max-width: 220px;
}

h1 {
    color: #0e5aa0;
    font-size: 24pt;
    margin: 8px 0 4px;
    font-weight: bold;
    letter-spacing: 1px;
}

.company-details {
    font-size: 10pt;
    line-height: 1.4;
    color: #444;
    margin: 0;
}

h2 {
    color: #0e5aa0;
    font-size: 13pt;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
    margin: 28px 0 12px;
}

p,
li {
    margin-bottom: 11px;
}

ul {
    padding-left: 22px;
}

.section-number {
    font-weight: bold;
    color: #0e5aa0;
}

.footer {
    position: absolute;
    bottom: 18mm;
    left: 15mm;
    right: 15mm;
    text-align: center;
    font-size: 9pt;
    color: #555;
    border-top: 1px solid #ddd;
    padding-top: 8px;
    line-height: 1.3;
}

.effective-date {
    text-align: right;
    font-size: 10pt;
    font-weight: bold;
    margin-bottom: 20px;
}

.reveal {
    cursor: pointer;
    color: #0e5aa0;
    text-decoration: underline;
}

/* --- CIF Form Page (cif.php) --- */
.cif-page-body {
    background: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
}

.cif-form-group {
    margin-bottom: 18px;
}

.cif-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.cif-form-group input[type="text"],
.cif-form-group input[type="email"],
.cif-form-group input[type="tel"],
.cif-form-group input[type="password"],
.cif-form-group input[type="date"],
.cif-form-group select,
.cif-form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #0e5aa0;
    border-radius: 4px;
    font-size: 11pt;
    box-sizing: border-box;
}

.cif-radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.cif-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin-bottom: 8px;
}

.cif-signature-box {
    border: 2px dashed #0e5aa0;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
    background: #f8f9fa;
    font-size: 11pt;
}

.cif-note-box {
    background: #f8f9fa;
    border-left: 5px solid #0e5aa0;
    padding: 12px 15px;
    margin: 20px 0;
    font-size: 10pt;
}

.cif-captcha-box {
    background: #f8f9fa;
    border: 2px solid #0e5aa0;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
}

.reveal-btn {
    color: #0e5aa0;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.reveal-content {
    display: none;
}

.cif-captcha-input {
    width: 240px !important; /* Use important to override the 100% width from the group style */
    font-size: 14pt !important;
    text-align: center;
    padding: 12px !important;
}

.cif-submit-button {
    background: #0e5aa0;
    color: white;
    padding: 14px 50px;
    border: none;
    font-size: 13pt;
    cursor: pointer;
    border-radius: 4px;
}

.cif-date-input {
    border: none;
    background: transparent;
    font-weight: bold;
    width: auto !important; /* Override 100% width */
}


.cif-captcha-input {
    width: 240px !important; /* Use important to override the 100% width from the group style */
    font-size: 14pt !important;
    text-align: center;
    padding: 12px !important;
}

.cif-submit-button {
    background: #0e5aa0;
    color: white;
    padding: 14px 50px;
    border: none;
    font-size: 13pt;
    cursor: pointer;
    border-radius: 4px;
}

.cif-date-input {
    border: none;
    background: transparent;
    font-weight: bold;
    width: auto !important; /* Override 100% width */
}