* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', 'Arial', sans-serif;
    font-size: 11pt;
    line-height: 1.5;
    background-color: #f5f5f5;
    color: #000;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #0f589d;
    padding-bottom: 20px;
}

header h1 {
    font-size: 24pt;
    color: #0f589d;
    font-weight: bold;
    margin-bottom: 10px;
}

header h2 {
    font-size: 18pt;
    color: #333;
    font-weight: normal;
}

.form-section {
    margin-bottom: 40px;
    page-break-inside: avoid;
}

.form-section h2 {
    font-size: 14pt;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    text-align: center;
    text-decoration: underline;
}

.form-section h3 {
    font-size: 12pt;
    font-weight: bold;
    color: #000;
    margin: 20px 0 10px 0;
}

.form-section h4 {
    font-size: 11pt;
    font-weight: bold;
    color: #333;
    margin: 15px 0 10px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 11pt;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #000;
    font-size: 11pt;
    font-family: 'Calibri', 'Arial', sans-serif;
    background-color: #fff;
}

.form-group textarea {
    resize: vertical;
}

.form-group-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.required {
    color: red;
    font-weight: bold;
}

.inline-input {
    border: none;
    border-bottom: 1px solid #000;
    padding: 2px 5px;
    font-size: 11pt;
    font-family: 'Calibri', 'Arial', sans-serif;
    min-width: 150px;
}

.declaration-text p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.declaration-box {
    background-color: #f9f9f9;
    border: 1px solid #000;
    padding: 15px;
    margin: 20px 0;
    font-size: 10pt;
    line-height: 1.6;
}

.declaration-box p {
    margin-bottom: 10px;
}

.info-box {
    background-color: #e8f4ff;
    border: 1px solid #0f589d;
    padding: 15px;
    margin: 20px 0;
    font-size: 10pt;
    line-height: 1.6;
}

.info-box p {
    margin-bottom: 10px;
}

.info-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

.info-box li {
    margin-bottom: 8px;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-group input[type="radio"] {
    margin: 0;
}

/* Tables */
.checklist-table,
.health-table,
.induction-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.checklist-table th,
.checklist-table td,
.health-table th,
.health-table td,
.induction-table th,
.induction-table td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
    font-size: 10pt;
}

.checklist-table th,
.health-table th,
.induction-table th {
    background-color: #0f589d;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.checklist-table td:first-child {
    text-align: center;
    width: 60px;
}

.checklist-table td:last-child,
.health-table td:nth-child(2),
.health-table td:nth-child(3),
.induction-table td:last-child {
    text-align: center;
    width: 120px;
}

.health-table td:nth-child(2),
.health-table td:nth-child(3) {
    width: 80px;
}

.checklist-table select,
.induction-table select {
    width: 100%;
    padding: 5px;
    border: 1px solid #000;
    font-size: 10pt;
}

/* Education and Experience blocks */
.education-block,
.experience-block,
.dependent-row,
.coi-block,
.coi-relative-block,
.coi-govt-block {
    background-color: #fafafa;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    font-size: 12pt;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Calibri', 'Arial', sans-serif;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #0f589d;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.submit-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #0f589d;
}

/* Success Message */
.success-message {
    background-color: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.success-message h2 {
    color: #28a745;
    font-size: 20pt;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 12pt;
    margin-bottom: 10px;
}

/* Lists */
ul {
    margin-left: 30px;
    margin-top: 10px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Checkboxes in form groups */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    line-height: 1.6;
}

/* Print styles */
@media print {
    body {
        background-color: #fff;
    }
    
    .container {
        box-shadow: none;
        padding: 20px;
    }
    
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    .form-section {
        page-break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .form-group-inline {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 20pt;
    }
    
    header h2 {
        font-size: 16pt;
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Disabled button */
.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
