  /* :root {
      --maxw: 900px;
      --accent: #0b62a4;
      --muted: #666;
    } */

  body {
      font-family: "Segoe UI", Roboto, Arial, sans-serif;
      background: #fff;
      font-size: 18px;
      margin: 0;
      padding: 10px;
      color: #222;

  }

  .container {
      max-width: var(--maxw);
      margin: 18px auto;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 6px 20px rgba(18, 38, 63, 0.06);
      padding: 30px;
      width: 825px;
  }


  ul {
      margin-top: 0;
      /* Removes the top margin */
      /* Or set a custom value, e.g., margin-top: 0.5em; */
  }


  h1 {
      margin: 0;
      font-size: 20px;
      text-transform: uppercase;
      letter-spacing: .6px;
  }

  /* form .row {
      display: flex;
      gap: 18px;
      margin-top: 14px;
      flex-wrap: wrap;
    } */

  .field {
      flex: 1 1 260px;
      min-width: 220px;
      display: flex;
      flex-direction: column;
  }

  label {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 6px;
  }

  input[type="text"],
  input[type="date"],
  input[type="email"],
  textarea,
  select {
      padding: 5px 10px;
      border: 1px solid #d9dbe0;
      border-radius: 6px;
      font-size: 15px;
  }

  textarea {
      min-height: 80px;
      resize: vertical;
      padding-top: 10px;
  }

  .radio-row {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
  }

  .section {
      margin-top: 20px;
      padding-top: 10px;
      border-top: 1px solid #f0f0f0;
  }

  /* Signature pad- area around sig-panel, date and name*/
  .sig-wrap {
      margin-top: 10px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      flex-wrap: wrap;

  }

  /* area around sig canvas and buttons */
  .sig-panel {
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 8px;
      width: 100%;
      background: #fafafa;
  }

  /* where sig goes */
  canvas {
      display: block;
      /*max-width: 760px; */
      width: 100%;
      height: 120px;
      background: #fff;
      border-radius: 6px;
      box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
      touch-action: none;
  }

  .sig-controls {
      display: flex;
      gap: 8px;
      margin-top: 8px;
  }

  button,
  .btn {
      background: blue;
      color: #fff;
      border: none;
      padding: 10px 14px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
  }

  .btn:hover {
      background-color: darkblue;
      /* Darker blue on hover */

      color: white;
  }

  
  .btn:disabled {
      background-color: lightgray;
      color: white;
  }
  
  .btn.secondary:hover {
      background-color: darkblue;
      color: white;
  }

  .btn.secondary {
      background: lightblue;
      color: #111;
  }


  .small {
      padding: 8px 10px;
      font-size: 13px;
  }

  .help {
      font-size: 13px;
      color: var(--muted);
      margin-top: 6px;
  }

  .actions {
      margin-top: 30px;
      display: flex;
      gap: 10px;
      align-items: center;
  }

  /* hide UI when printing */
  @media print {
      .no-print {
          display: none !important;
      }

      .container {
          box-shadow: none;
          border-radius: 0;
          margin: 0;
          padding: 0;
      }

      canvas {
          border: none;
      }
  }

  /* responsiveness */
  @media (max-width:600px) {
      canvas {
          width: 100%;
          height: 140px;
      }
  }

  .status {
      margin-left: 10px;
      font-size: 14px;
      color: var(--muted);
  }

  .required {
      color: #c0392b;
      margin-left: 6px;
      font-weight: 600;
  }