.form-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    float: left; 
    min-width: 600px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    padding-top: 10px; /* Add padding on the top */
}
.form-group input, .form-group select, .form-group textarea, .result, .summary-table, .checkbox-table {
    width: calc(100% - 20px); /* Adjust the width to add indentation */
    padding: 8px;
    box-sizing: border-box;
    margin-left: 10px; /* Indentation */
}
.form-group.hidden {
    display: none;
}
.result {
    margin-top: 20px;
    font-size: 1.2em;
    text-align: center;
}
.submit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.submit-btn:hover {
    background-color: #0056b3;
}
.dropdown-group {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 15px;
}
.dropdown-group.hidden {
    display: none;
}
table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}
.summary-table th:first-child,
.checkbox-table th:first-child {
    width: 1%;
    white-space: nowrap;
}
table, th, td {
    border: 1px solid #ccc;
}
.checkbox-table {
    border: none;
}
.checkbox-table td {
    padding: 5px;
    vertical-align: middle;
}
.summary-table td, .summary-table th {
    padding: 5px;
    text-align: left; /* Left-align all cells in summary table */
    font-weight: normal; /* Unbold headers in summary table */
}
.group-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
    color: #111;
    background-color: #d3d3d3; /* Grey background */
    padding: 5px 10px;
    border-radius: 5px;
    position: relative;
}
.group-title::after {
    content: '\25B6'; /* Default: right-pointing triangle (expand) */
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 1.2em;
}
.group-title.active::after {
    content: '\25BC'; /* Down-pointing triangle (fold) when active */
}
.checkbox-text.hidden {
    display: none;
}
.hidden {
    display: none;
}
.highlight-row {
    background-color: #f9f9f9; /* Off-white background */
}