body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    background-color: #f9f9f9;
    font-size: 16px;
  }
  
  button {
    padding: 12px 20px;
    background-color: #b47149;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
  }
  
  button:hover {
    background-color: #a05e3c;
  }
  
  input[type="number"], select {
    font-size: 18px;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    width: 200px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #b47149;
  }
  
  label {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .help-button {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 4px;
    transition: background-color 0.2s;
  }
  
  .help-button:hover {
    background-color: #5a6268;
  }
  
  .help-panel {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 300px;
    background-color: white;
    border: 2px solid #b47149;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    font-size: 15px;
    line-height: 1.5;
    z-index: 1000;
  }
  
  .help-panel.active {
    display: block;
  }
  
  .help-panel h4 {
    margin-top: 0;
    color: #b47149;
    font-size: 18px;
  }
  
  .help-panel p {
    margin: 0;
    color: #333;
  }
  
  .preferment-type-btn {
    padding: 8px 16px;
    margin-right: 8px;
    margin-bottom: 8px;
    background-color: #ddd;
    color: #333;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s ease;
  }
  
  .preferment-type-btn:hover {
    background-color: #e0e0e0;
    border-color: #999;
  }
  
  .preferment-type-btn.active {
    background-color: #b47149;
    color: white;
    border-color: #a05e3c;
  }
  
  .preferment-type-btn.active:hover {
    background-color: #a05e3c;
  }
  
  #results {
    margin-top: 2em;
  }
  
  #form {
    max-width: 800px;
  }
  
  h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  h3 {
    color: #333;
    font-size: 22px;
    margin-top: 24px;
    margin-bottom: 16px;
  }
  
  table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
  }
  
  table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #b47149;
    background-color: #f5f5f5;
  }
  
  table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
  }
  
  table tr:last-child td {
    border-bottom: none;
  }
  
  table tr.section-divider td {
    border-top: 2px solid #b47149;
    padding-top: 20px;
  }
  
  table tr.item-divider td {
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
  }
  