.sub-list {
    margin-left: 20px;
    /* Adjust indentation */
}

/* Modern Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Header Styles */
.title-page {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px dashed #ddd;
}

.title-page h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.8em;
}

.title-page h2,
.title-page h3,
.title-page p {
    color: #777;
    font-size: 1.6em;
    margin-bottom: 10px;
}

/* Form Content Styles */
.form-content {
    margin-top: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.page-header p {
    color: #555;
    font-size: 0.9em;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #9cb4cc;
    /* A softer focus color */
    box-shadow: 0 0 8px rgba(156, 180, 204, 0.3);
}

/* New styles for checkbox groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.checkbox-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    /* Reset width for checkboxes */
    box-shadow: none;
    /* Remove shadow */
    padding: 0;
    /* Reset padding */
    height: auto;
    /* Reset height */
}

/* New styles for table layout */
.entity-table {
    width: 100%;
    margin-bottom: 20px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    /* Distribute cells evenly */
    flex-wrap: wrap;
    /* Allow cells to wrap on smaller screens */
}

.table-cell {
    width: calc(50% - 10px);
    /* Two cells per row */
    margin-bottom: 10px;
    flex-grow: 1;
    /* Allow cells to grow */
    flex-basis: calc(50% - 10px);
    /* Initial size of cell */
}

.table-cell label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

/* Specific style for signature inputs */
.signature-row input[type="text"],
.signature-row input[type="date"] {
    width: calc(33.33% - 5px);
    /* Three inputs per row */
    padding: 8px;
    /* Smaller padding */
    margin-bottom: 0;
    /* Remove margin */
    display: inline-block;
    /* Display inputs in a row */
}

/* Specific style for address section */
.address-section {
    margin-bottom: 20px;
}

.address-section p {
    white-space: pre-line;
    /* Respect newlines */
}

/* Specific style for subject section */
.subject-section {
    margin-bottom: 20px;
}

.subject-section h3 {
    color: #444;
    font-weight: 600;
    margin-bottom: 10px;
}

.subject-section .important {
    font-style: italic;
    color: #d32f2f;
    /* Red color */
}

/* Specific style for footnotes */
.footnotes {
    margin-top: 20px;
    font-size: 0.8em;
    color: #777;
}

.footnotes p {
    margin-bottom: 5px;
}

/* Agreement Info Section */
.agreement-info {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.agreement-info ul {
    margin-left: 20px;
}

.agreement-info li {
    margin-bottom: 8px;
    list-style-type: square;
    /* Modern bullet style */
}

/* Table Styles */
.assets-section,
.systems-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.assets-section h3,
.systems-section h3 {
    color: #444;
    font-weight: 600;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #eef2f6;
    color: #333;
    font-weight: 600;
}

/* Signature Section */
.signature-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.signature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.signature-row label {
    font-weight: 500;
    color: #555;
}

/* Button Styles */
.button-section {
    text-align: center;
    margin-top: 30px;
}

button {
    padding: 12px 25px;
    background-color: #507458;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

button:hover {
    background-color: #5a6268;
}

/* Footer Styles */
.page-footer {
    text-align: center;
    padding: 20px;
    color: #777;
    border-top: 1px solid #ddd;
    margin-top: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .signature-row {
        flex-direction: column;
        /* Stack the inputs */
        align-items: stretch;
        /* Stretch to fill the container */
    }

    .signature-row input[type="text"],
    .signature-row input[type="date"] {
        width: 100%;
        /* Full width on small screens */
    }

    .table-cell {
        width: 100%;
        /* Take full width on smaller screens */
    }

    button {
        width: 100%;
        margin: 5px 0;
    }
}
